@mlightcad/libredwg-converter 3.5.15 → 3.5.17

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,5 +1,5 @@
1
- var ao = ((g) => (g[g.Invalid = -9999] = "Invalid", g[g.Start = 0] = "Start", g[g.Text = 1] = "Text", g[g.AttributeTag = 2] = "AttributeTag", g[g.BlockName = 2] = "BlockName", g[g.ShapeName = 2] = "ShapeName", g[g.SymbolTableName = 2] = "SymbolTableName", g[g.SymbolTableRecordName = 2] = "SymbolTableRecordName", g[g.MlineStyleName = 2] = "MlineStyleName", g[g.AttributePrompt = 3] = "AttributePrompt", g[g.Description = 3] = "Description", g[g.DimPostString = 3] = "DimPostString", g[g.DimStyleName = 3] = "DimStyleName", g[g.LinetypeProse = 3] = "LinetypeProse", g[g.TextFontFile = 3] = "TextFontFile", g[g.CLShapeName = 4] = "CLShapeName", g[g.DimensionAlternativePrefixSuffix = 4] = "DimensionAlternativePrefixSuffix", g[g.SymbolTableRecordComments = 4] = "SymbolTableRecordComments", g[g.TextBigFontFile = 4] = "TextBigFontFile", g[g.Handle = 5] = "Handle", g[g.DimensionBlock = 5] = "DimensionBlock", g[g.LinetypeName = 6] = "LinetypeName", g[g.DimBlk1 = 6] = "DimBlk1", g[g.TextStyleName = 7] = "TextStyleName", g[g.DimBlk2 = 7] = "DimBlk2", g[g.LayerName = 8] = "LayerName", g[g.CLShapeText = 9] = "CLShapeText", g[g.XCoordinate = 10] = "XCoordinate", g[g.YCoordinate = 20] = "YCoordinate", g[g.ZCoordinate = 30] = "ZCoordinate", g[g.Real = 40] = "Real", g[g.TxtSize = 40] = "TxtSize", g[g.ViewportHeight = 40] = "ViewportHeight", g[g.Angle = 50] = "Angle", g[g.ViewportSnapAngle = 50] = "ViewportSnapAngle", g[g.Visibility = 60] = "Visibility", g[g.Int16 = 70] = "Int16", g[g.Int32 = 90] = "Int32", g[g.Int64 = 160] = "Int64", g[g.Int8 = 280] = "Int8", g[g.Thickness = 39] = "Thickness", g[g.Elevation = 38] = "Elevation", g[g.LinetypeScale = 48] = "LinetypeScale", g[g.DashLength = 49] = "DashLength", g[g.MlineOffset = 49] = "MlineOffset", g[g.LinetypeElement = 49] = "LinetypeElement", g[g.NormalX = 210] = "NormalX", g[g.NormalY = 220] = "NormalY", g[g.NormalZ = 230] = "NormalZ", g[g.UcsOrg = 110] = "UcsOrg", g[g.UcsOrientationX = 111] = "UcsOrientationX", g[g.UcsOrientationY = 112] = "UcsOrientationY", g[g.ViewHeight = 45] = "ViewHeight", g[g.ViewWidth = 41] = "ViewWidth", g[g.ViewLensLength = 42] = "ViewLensLength", g[g.ViewFrontClip = 43] = "ViewFrontClip", g[g.ViewBackClip = 44] = "ViewBackClip", g[g.ViewBrightness = 141] = "ViewBrightness", g[g.ViewContrast = 142] = "ViewContrast", g[g.ViewMode = 71] = "ViewMode", g[g.ViewportActive = 68] = "ViewportActive", g[g.ViewportAspect = 41] = "ViewportAspect", g[g.ViewportGrid = 76] = "ViewportGrid", g[g.ViewportIcon = 74] = "ViewportIcon", g[g.ViewportNumber = 69] = "ViewportNumber", g[g.ViewportSnap = 75] = "ViewportSnap", g[g.ViewportSnapPair = 78] = "ViewportSnapPair", g[g.ViewportSnapStyle = 77] = "ViewportSnapStyle", g[g.ViewportTwist = 51] = "ViewportTwist", g[g.ViewportVisibility = 67] = "ViewportVisibility", g[g.ViewportZoom = 73] = "ViewportZoom", g[g.Color = 62] = "Color", g[g.ColorRgb = 420] = "ColorRgb", g[g.ColorName = 430] = "ColorName", g[g.LineWeight = 370] = "LineWeight", g[g.PlotStyleNameType = 380] = "PlotStyleNameType", g[g.PlotStyleNameId = 390] = "PlotStyleNameId", g[g.GradientObjType = 450] = "GradientObjType", g[g.GradientAngle = 460] = "GradientAngle", g[g.GradientName = 470] = "GradientName", g[g.GradientColCount = 453] = "GradientColCount", g[g.GradientPatType = 451] = "GradientPatType", g[g.GradientTintType = 452] = "GradientTintType", g[g.GradientShift = 461] = "GradientShift", g[g.GradientColVal = 463] = "GradientColVal", g[g.GradientTintVal = 462] = "GradientTintVal", g[g.SoftPointerId = 330] = "SoftPointerId", g[g.HardPointerId = 340] = "HardPointerId", g[g.SoftOwnershipId = 350] = "SoftOwnershipId", g[g.HardOwnershipId = 360] = "HardOwnershipId", g[g.ArbitraryHandle = 320] = "ArbitraryHandle", g[g.ExtendedDataAsciiString = 1e3] = "ExtendedDataAsciiString", g[g.ExtendedDataRegAppName = 1001] = "ExtendedDataRegAppName", g[g.ExtendedDataControlString = 1002] = "ExtendedDataControlString", g[g.ExtendedDataLayerName = 1003] = "ExtendedDataLayerName", g[g.ExtendedDataBinaryChunk = 1004] = "ExtendedDataBinaryChunk", g[g.ExtendedDataHandle = 1005] = "ExtendedDataHandle", g[g.ExtendedDataXCoordinate = 1010] = "ExtendedDataXCoordinate", g[g.ExtendedDataWorldXCoordinate = 1011] = "ExtendedDataWorldXCoordinate", g[g.ExtendedDataWorldXDisp = 1012] = "ExtendedDataWorldXDisp", g[g.ExtendedDataWorldXDir = 1013] = "ExtendedDataWorldXDir", g[g.ExtendedDataYCoordinate = 1020] = "ExtendedDataYCoordinate", g[g.ExtendedDataWorldYCoordinate = 1021] = "ExtendedDataWorldYCoordinate", g[g.ExtendedDataWorldYDisp = 1022] = "ExtendedDataWorldYDisp", g[g.ExtendedDataWorldYDir = 1023] = "ExtendedDataWorldYDir", g[g.ExtendedDataZCoordinate = 1030] = "ExtendedDataZCoordinate", g[g.ExtendedDataWorldZCoordinate = 1031] = "ExtendedDataWorldZCoordinate", g[g.ExtendedDataWorldZDisp = 1032] = "ExtendedDataWorldZDisp", g[g.ExtendedDataWorldZDir = 1033] = "ExtendedDataWorldZDir", g[g.ExtendedDataReal = 1040] = "ExtendedDataReal", g[g.ExtendedDataDist = 1041] = "ExtendedDataDist", g[g.ExtendedDataScale = 1042] = "ExtendedDataScale", g[g.ExtendedDataInteger16 = 1070] = "ExtendedDataInteger16", g[g.ExtendedDataInteger32 = 1071] = "ExtendedDataInteger32", g[g.XTextString = 300] = "XTextString", g[g.XReal = 140] = "XReal", g[g.XInt16 = 170] = "XInt16", g[g.XXInt16 = 270] = "XXInt16", g[g.Subclass = 100] = "Subclass", g[g.ControlString = 102] = "ControlString", g[g.EmbeddedObjectStart = 101] = "EmbeddedObjectStart", g[g.End = -1] = "End", g[g.FirstEntityId = -2] = "FirstEntityId", g[g.HeaderId = -2] = "HeaderId", g[g.XDataStart = -3] = "XDataStart", g[g.Operator = -4] = "Operator", g[g.PReactors = -5] = "PReactors", g[g.XDictionary = -6] = "XDictionary", g))(ao || {});
2
- function So(g, A) {
1
+ var so = ((g) => (g[g.Invalid = -9999] = "Invalid", g[g.Start = 0] = "Start", g[g.Text = 1] = "Text", g[g.AttributeTag = 2] = "AttributeTag", g[g.BlockName = 2] = "BlockName", g[g.ShapeName = 2] = "ShapeName", g[g.SymbolTableName = 2] = "SymbolTableName", g[g.SymbolTableRecordName = 2] = "SymbolTableRecordName", g[g.MlineStyleName = 2] = "MlineStyleName", g[g.AttributePrompt = 3] = "AttributePrompt", g[g.Description = 3] = "Description", g[g.DimPostString = 3] = "DimPostString", g[g.DimStyleName = 3] = "DimStyleName", g[g.LinetypeProse = 3] = "LinetypeProse", g[g.TextFontFile = 3] = "TextFontFile", g[g.CLShapeName = 4] = "CLShapeName", g[g.DimensionAlternativePrefixSuffix = 4] = "DimensionAlternativePrefixSuffix", g[g.SymbolTableRecordComments = 4] = "SymbolTableRecordComments", g[g.TextBigFontFile = 4] = "TextBigFontFile", g[g.Handle = 5] = "Handle", g[g.DimensionBlock = 5] = "DimensionBlock", g[g.LinetypeName = 6] = "LinetypeName", g[g.DimBlk1 = 6] = "DimBlk1", g[g.TextStyleName = 7] = "TextStyleName", g[g.DimBlk2 = 7] = "DimBlk2", g[g.LayerName = 8] = "LayerName", g[g.CLShapeText = 9] = "CLShapeText", g[g.XCoordinate = 10] = "XCoordinate", g[g.YCoordinate = 20] = "YCoordinate", g[g.ZCoordinate = 30] = "ZCoordinate", g[g.Real = 40] = "Real", g[g.TxtSize = 40] = "TxtSize", g[g.ViewportHeight = 40] = "ViewportHeight", g[g.Angle = 50] = "Angle", g[g.ViewportSnapAngle = 50] = "ViewportSnapAngle", g[g.Visibility = 60] = "Visibility", g[g.Int16 = 70] = "Int16", g[g.Int32 = 90] = "Int32", g[g.Int64 = 160] = "Int64", g[g.Int8 = 280] = "Int8", g[g.Thickness = 39] = "Thickness", g[g.Elevation = 38] = "Elevation", g[g.LinetypeScale = 48] = "LinetypeScale", g[g.DashLength = 49] = "DashLength", g[g.MlineOffset = 49] = "MlineOffset", g[g.LinetypeElement = 49] = "LinetypeElement", g[g.NormalX = 210] = "NormalX", g[g.NormalY = 220] = "NormalY", g[g.NormalZ = 230] = "NormalZ", g[g.UcsOrg = 110] = "UcsOrg", g[g.UcsOrientationX = 111] = "UcsOrientationX", g[g.UcsOrientationY = 112] = "UcsOrientationY", g[g.ViewHeight = 45] = "ViewHeight", g[g.ViewWidth = 41] = "ViewWidth", g[g.ViewLensLength = 42] = "ViewLensLength", g[g.ViewFrontClip = 43] = "ViewFrontClip", g[g.ViewBackClip = 44] = "ViewBackClip", g[g.ViewBrightness = 141] = "ViewBrightness", g[g.ViewContrast = 142] = "ViewContrast", g[g.ViewMode = 71] = "ViewMode", g[g.ViewportActive = 68] = "ViewportActive", g[g.ViewportAspect = 41] = "ViewportAspect", g[g.ViewportGrid = 76] = "ViewportGrid", g[g.ViewportIcon = 74] = "ViewportIcon", g[g.ViewportNumber = 69] = "ViewportNumber", g[g.ViewportSnap = 75] = "ViewportSnap", g[g.ViewportSnapPair = 78] = "ViewportSnapPair", g[g.ViewportSnapStyle = 77] = "ViewportSnapStyle", g[g.ViewportTwist = 51] = "ViewportTwist", g[g.ViewportVisibility = 67] = "ViewportVisibility", g[g.ViewportZoom = 73] = "ViewportZoom", g[g.Color = 62] = "Color", g[g.ColorRgb = 420] = "ColorRgb", g[g.ColorName = 430] = "ColorName", g[g.LineWeight = 370] = "LineWeight", g[g.PlotStyleNameType = 380] = "PlotStyleNameType", g[g.PlotStyleNameId = 390] = "PlotStyleNameId", g[g.GradientObjType = 450] = "GradientObjType", g[g.GradientAngle = 460] = "GradientAngle", g[g.GradientName = 470] = "GradientName", g[g.GradientColCount = 453] = "GradientColCount", g[g.GradientPatType = 451] = "GradientPatType", g[g.GradientTintType = 452] = "GradientTintType", g[g.GradientShift = 461] = "GradientShift", g[g.GradientColVal = 463] = "GradientColVal", g[g.GradientTintVal = 462] = "GradientTintVal", g[g.SoftPointerId = 330] = "SoftPointerId", g[g.HardPointerId = 340] = "HardPointerId", g[g.SoftOwnershipId = 350] = "SoftOwnershipId", g[g.HardOwnershipId = 360] = "HardOwnershipId", g[g.ArbitraryHandle = 320] = "ArbitraryHandle", g[g.ExtendedDataAsciiString = 1e3] = "ExtendedDataAsciiString", g[g.ExtendedDataRegAppName = 1001] = "ExtendedDataRegAppName", g[g.ExtendedDataControlString = 1002] = "ExtendedDataControlString", g[g.ExtendedDataLayerName = 1003] = "ExtendedDataLayerName", g[g.ExtendedDataBinaryChunk = 1004] = "ExtendedDataBinaryChunk", g[g.ExtendedDataHandle = 1005] = "ExtendedDataHandle", g[g.ExtendedDataXCoordinate = 1010] = "ExtendedDataXCoordinate", g[g.ExtendedDataWorldXCoordinate = 1011] = "ExtendedDataWorldXCoordinate", g[g.ExtendedDataWorldXDisp = 1012] = "ExtendedDataWorldXDisp", g[g.ExtendedDataWorldXDir = 1013] = "ExtendedDataWorldXDir", g[g.ExtendedDataYCoordinate = 1020] = "ExtendedDataYCoordinate", g[g.ExtendedDataWorldYCoordinate = 1021] = "ExtendedDataWorldYCoordinate", g[g.ExtendedDataWorldYDisp = 1022] = "ExtendedDataWorldYDisp", g[g.ExtendedDataWorldYDir = 1023] = "ExtendedDataWorldYDir", g[g.ExtendedDataZCoordinate = 1030] = "ExtendedDataZCoordinate", g[g.ExtendedDataWorldZCoordinate = 1031] = "ExtendedDataWorldZCoordinate", g[g.ExtendedDataWorldZDisp = 1032] = "ExtendedDataWorldZDisp", g[g.ExtendedDataWorldZDir = 1033] = "ExtendedDataWorldZDir", g[g.ExtendedDataReal = 1040] = "ExtendedDataReal", g[g.ExtendedDataDist = 1041] = "ExtendedDataDist", g[g.ExtendedDataScale = 1042] = "ExtendedDataScale", g[g.ExtendedDataInteger16 = 1070] = "ExtendedDataInteger16", g[g.ExtendedDataInteger32 = 1071] = "ExtendedDataInteger32", g[g.XTextString = 300] = "XTextString", g[g.XReal = 140] = "XReal", g[g.XInt16 = 170] = "XInt16", g[g.XXInt16 = 270] = "XXInt16", g[g.Subclass = 100] = "Subclass", g[g.ControlString = 102] = "ControlString", g[g.EmbeddedObjectStart = 101] = "EmbeddedObjectStart", g[g.End = -1] = "End", g[g.FirstEntityId = -2] = "FirstEntityId", g[g.HeaderId = -2] = "HeaderId", g[g.XDataStart = -3] = "XDataStart", g[g.Operator = -4] = "Operator", g[g.PReactors = -5] = "PReactors", g[g.XDictionary = -6] = "XDictionary", g))(so || {});
2
+ function ao(g, A) {
3
3
  for (var C = 0; C < A.length; C++) {
4
4
  const Q = A[C];
5
5
  if (typeof Q != "string" && !Array.isArray(Q)) {
@@ -439,7 +439,7 @@ let Og = class {
439
439
  const A = this.getColorByIndex(g);
440
440
  return this.getNameByColor(A);
441
441
  }
442
- }, so = class Yg {
442
+ }, So = class Yg {
443
443
  constructor(A = j.ByLayer, C) {
444
444
  this._colorMethod = A, this._colorMethod == j.ByColor && C == null ? this._value = 16777215 : this._colorMethod == j.ByACI ? C == null ? this._value = 8 : C === 0 ? this._colorMethod = j.ByBlock : C === 256 ? this._colorMethod = j.ByLayer : this._value = Math.max(0, Math.min(C, 256)) : this._value = C;
445
445
  }
@@ -664,28 +664,28 @@ var _B = { exports: {} };
664
664
  "warn",
665
665
  "error"
666
666
  ], o = {}, w = null;
667
- function k(H, s) {
668
- var a = H[s];
669
- if (typeof a.bind == "function")
670
- return a.bind(H);
667
+ function k(H, S) {
668
+ var s = H[S];
669
+ if (typeof s.bind == "function")
670
+ return s.bind(H);
671
671
  try {
672
- return Function.prototype.bind.call(a, H);
672
+ return Function.prototype.bind.call(s, H);
673
673
  } catch {
674
674
  return function() {
675
- return Function.prototype.apply.apply(a, [H, arguments]);
675
+ return Function.prototype.apply.apply(s, [H, arguments]);
676
676
  };
677
677
  }
678
678
  }
679
679
  function U() {
680
680
  console.log && (console.log.apply || Function.prototype.apply.apply(console.log, [console, arguments]));
681
681
  }
682
- function i(H) {
682
+ function y(H) {
683
683
  return H === "debug" && (H = "log"), typeof console === C ? !1 : H === "trace" && Q ? U : console[H] !== void 0 ? k(console, H) : console.log !== void 0 ? k(console, "log") : A;
684
684
  }
685
685
  function F() {
686
- for (var H = this.getLevel(), s = 0; s < D.length; s++) {
687
- var a = D[s];
688
- this[a] = s < H ? A : this.methodFactory(a, H, this.name);
686
+ for (var H = this.getLevel(), S = 0; S < D.length; S++) {
687
+ var s = D[S];
688
+ this[s] = S < H ? A : this.methodFactory(s, H, this.name);
689
689
  }
690
690
  if (this.log = this.debug, typeof console === C && H < this.levels.SILENT)
691
691
  return "No console available for logging";
@@ -695,11 +695,11 @@ var _B = { exports: {} };
695
695
  typeof console !== C && (F.call(this), this[H].apply(this, arguments));
696
696
  };
697
697
  }
698
- function L(H, s, a) {
699
- return i(H) || h.apply(this, arguments);
698
+ function L(H, S, s) {
699
+ return y(H) || h.apply(this, arguments);
700
700
  }
701
- function R(H, s) {
702
- var a = this, v, V, O, z = "loglevel";
701
+ function i(H, S) {
702
+ var s = this, v, V, O, z = "loglevel";
703
703
  typeof H == "string" ? z += ":" + H : typeof H == "symbol" && (z = void 0);
704
704
  function f(P) {
705
705
  var d = (D[P] || "silent").toUpperCase();
@@ -724,13 +724,13 @@ var _B = { exports: {} };
724
724
  }
725
725
  if (typeof P === C)
726
726
  try {
727
- var d = window.document.cookie, e = encodeURIComponent(z), iA = d.indexOf(e + "=");
728
- iA !== -1 && (P = /^([^;]+)/.exec(
729
- d.slice(iA + e.length + 1)
727
+ var d = window.document.cookie, e = encodeURIComponent(z), yA = d.indexOf(e + "=");
728
+ yA !== -1 && (P = /^([^;]+)/.exec(
729
+ d.slice(yA + e.length + 1)
730
730
  )[1]);
731
731
  } catch {
732
732
  }
733
- return a.levels[P] === void 0 && (P = void 0), P;
733
+ return s.levels[P] === void 0 && (P = void 0), P;
734
734
  }
735
735
  }
736
736
  function W() {
@@ -747,47 +747,47 @@ var _B = { exports: {} };
747
747
  }
748
748
  function AA(P) {
749
749
  var d = P;
750
- if (typeof d == "string" && a.levels[d.toUpperCase()] !== void 0 && (d = a.levels[d.toUpperCase()]), typeof d == "number" && d >= 0 && d <= a.levels.SILENT)
750
+ if (typeof d == "string" && s.levels[d.toUpperCase()] !== void 0 && (d = s.levels[d.toUpperCase()]), typeof d == "number" && d >= 0 && d <= s.levels.SILENT)
751
751
  return d;
752
752
  throw new TypeError("log.setLevel() called with invalid level: " + P);
753
753
  }
754
- a.name = H, a.levels = {
754
+ s.name = H, s.levels = {
755
755
  TRACE: 0,
756
756
  DEBUG: 1,
757
757
  INFO: 2,
758
758
  WARN: 3,
759
759
  ERROR: 4,
760
760
  SILENT: 5
761
- }, a.methodFactory = s || L, a.getLevel = function() {
761
+ }, s.methodFactory = S || L, s.getLevel = function() {
762
762
  return O ?? V ?? v;
763
- }, a.setLevel = function(P, d) {
764
- return O = AA(P), d !== !1 && f(O), F.call(a);
765
- }, a.setDefaultLevel = function(P) {
766
- V = AA(P), q() || a.setLevel(P, !1);
767
- }, a.resetLevel = function() {
768
- O = null, W(), F.call(a);
769
- }, a.enableAll = function(P) {
770
- a.setLevel(a.levels.TRACE, P);
771
- }, a.disableAll = function(P) {
772
- a.setLevel(a.levels.SILENT, P);
773
- }, a.rebuild = function() {
774
- if (w !== a && (v = AA(w.getLevel())), F.call(a), w === a)
763
+ }, s.setLevel = function(P, d) {
764
+ return O = AA(P), d !== !1 && f(O), F.call(s);
765
+ }, s.setDefaultLevel = function(P) {
766
+ V = AA(P), q() || s.setLevel(P, !1);
767
+ }, s.resetLevel = function() {
768
+ O = null, W(), F.call(s);
769
+ }, s.enableAll = function(P) {
770
+ s.setLevel(s.levels.TRACE, P);
771
+ }, s.disableAll = function(P) {
772
+ s.setLevel(s.levels.SILENT, P);
773
+ }, s.rebuild = function() {
774
+ if (w !== s && (v = AA(w.getLevel())), F.call(s), w === s)
775
775
  for (var P in o)
776
776
  o[P].rebuild();
777
777
  }, v = AA(
778
778
  w ? w.getLevel() : "WARN"
779
779
  );
780
780
  var EA = q();
781
- EA != null && (O = AA(EA)), F.call(a);
781
+ EA != null && (O = AA(EA)), F.call(s);
782
782
  }
783
- w = new R(), w.getLogger = function(H) {
783
+ w = new i(), w.getLogger = function(H) {
784
784
  if (typeof H != "symbol" && typeof H != "string" || H === "")
785
785
  throw new TypeError("You must supply a name when creating a logger.");
786
- var s = o[H];
787
- return s || (s = o[H] = new R(
786
+ var S = o[H];
787
+ return S || (S = o[H] = new i(
788
788
  H,
789
789
  w.methodFactory
790
- )), s;
790
+ )), S;
791
791
  };
792
792
  var c = typeof window !== C ? window.log : void 0;
793
793
  return w.noConflict = function() {
@@ -798,12 +798,12 @@ var _B = { exports: {} };
798
798
  });
799
799
  })(_B);
800
800
  var $B = _B.exports;
801
- const To = to($B), xo = So({ __proto__: null, default: To }, [$B]), zo = xo;
801
+ const To = to($B), xo = ao({ __proto__: null, default: To }, [$B]), zo = xo;
802
802
  zo.setLevel("debug");
803
803
  var Vo = ((g) => (g[g.ByLayer = 0] = "ByLayer", g[g.ByBlock = 1] = "ByBlock", g[g.ByAlpha = 2] = "ByAlpha", g[g.ErrorValue = 3] = "ErrorValue", g))(Vo || {}), ZB = 256;
804
804
  for (; ZB--; ) (ZB + 256).toString(16).substring(1);
805
805
  var vo = ((g) => (g.kForRead = "kForRead", g.kForWrite = "kForWrite", g))(vo || {}), Oo = ((g) => (g.DXF = "dxf", g.DWG = "dwg", g))(Oo || {}), lo = ((g) => (g[g.DecimalDegrees = 0] = "DecimalDegrees", g[g.DegreesMinutesSeconds = 1] = "DegreesMinutesSeconds", g[g.Gradians = 2] = "Gradians", g[g.Radians = 3] = "Radians", g[g.SurveyorsUnits = 4] = "SurveyorsUnits", g))(lo || {});
806
- new so();
806
+ new So();
807
807
  var bo = ((g) => (g[g.UTF8 = 0] = "UTF8", g[g.US_ASCII = 1] = "US_ASCII", g[g.ISO_8859_1 = 2] = "ISO_8859_1", g[g.ISO_8859_2 = 3] = "ISO_8859_2", g[g.ISO_8859_3 = 4] = "ISO_8859_3", g[g.ISO_8859_4 = 5] = "ISO_8859_4", g[g.ISO_8859_5 = 6] = "ISO_8859_5", g[g.ISO_8859_6 = 7] = "ISO_8859_6", g[g.ISO_8859_7 = 8] = "ISO_8859_7", g[g.ISO_8859_8 = 9] = "ISO_8859_8", g[g.ISO_8859_9 = 10] = "ISO_8859_9", g[g.CP437 = 11] = "CP437", g[g.CP850 = 12] = "CP850", g[g.CP852 = 13] = "CP852", g[g.CP855 = 14] = "CP855", g[g.CP857 = 15] = "CP857", g[g.CP860 = 16] = "CP860", g[g.CP861 = 17] = "CP861", g[g.CP863 = 18] = "CP863", g[g.CP864 = 19] = "CP864", g[g.CP865 = 20] = "CP865", g[g.CP869 = 21] = "CP869", g[g.CP932 = 22] = "CP932", g[g.MACINTOSH = 23] = "MACINTOSH", g[g.BIG5 = 24] = "BIG5", g[g.CP949 = 25] = "CP949", g[g.JOHAB = 26] = "JOHAB", g[g.CP866 = 27] = "CP866", g[g.ANSI_1250 = 28] = "ANSI_1250", g[g.ANSI_1251 = 29] = "ANSI_1251", g[g.ANSI_1252 = 30] = "ANSI_1252", g[g.GB2312 = 31] = "GB2312", g[g.ANSI_1253 = 32] = "ANSI_1253", g[g.ANSI_1254 = 33] = "ANSI_1254", g[g.ANSI_1255 = 34] = "ANSI_1255", g[g.ANSI_1256 = 35] = "ANSI_1256", g[g.ANSI_1257 = 36] = "ANSI_1257", g[g.ANSI_874 = 37] = "ANSI_874", g[g.ANSI_932 = 38] = "ANSI_932", g[g.ANSI_936 = 39] = "ANSI_936", g[g.ANSI_949 = 40] = "ANSI_949", g[g.ANSI_950 = 41] = "ANSI_950", g[g.ANSI_1361 = 42] = "ANSI_1361", g[g.UTF16 = 43] = "UTF16", g[g.ANSI_1258 = 44] = "ANSI_1258", g[g.UNDEFINED = 255] = "UNDEFINED", g))(bo || {});
808
808
  const HA = [
809
809
  "00",
@@ -1388,12 +1388,12 @@ const qB = {
1388
1388
  EB.EMPTY = Object.freeze(new EB(0, 0));
1389
1389
  let UC = EB;
1390
1390
  const DB = class DI {
1391
- constructor(A, C, Q, D, o, w, k, U, i) {
1392
- this.elements = [1, 0, 0, 0, 1, 0, 0, 0, 1], A != null && C != null && Q != null && D != null && o != null && w != null && k != null && U != null && i != null && this.set(A, C, Q, D, o, w, k, U, i);
1391
+ constructor(A, C, Q, D, o, w, k, U, y) {
1392
+ this.elements = [1, 0, 0, 0, 1, 0, 0, 0, 1], A != null && C != null && Q != null && D != null && o != null && w != null && k != null && U != null && y != null && this.set(A, C, Q, D, o, w, k, U, y);
1393
1393
  }
1394
- set(A, C, Q, D, o, w, k, U, i) {
1394
+ set(A, C, Q, D, o, w, k, U, y) {
1395
1395
  const F = this.elements;
1396
- return F[0] = A, F[1] = D, F[2] = k, F[3] = C, F[4] = o, F[5] = U, F[6] = Q, F[7] = w, F[8] = i, this;
1396
+ return F[0] = A, F[1] = D, F[2] = k, F[3] = C, F[4] = o, F[5] = U, F[6] = Q, F[7] = w, F[8] = y, this;
1397
1397
  }
1398
1398
  identity() {
1399
1399
  return this.set(1, 0, 0, 0, 1, 0, 0, 0, 1), this;
@@ -1416,22 +1416,22 @@ const DB = class DI {
1416
1416
  return this.multiplyMatrices(A, this);
1417
1417
  }
1418
1418
  multiplyMatrices(A, C) {
1419
- const Q = A.elements, D = C.elements, o = this.elements, w = Q[0], k = Q[3], U = Q[6], i = Q[1], F = Q[4], h = Q[7], L = Q[2], R = Q[5], c = Q[8], H = D[0], s = D[3], a = D[6], v = D[1], V = D[4], O = D[7], z = D[2], f = D[5], q = D[8];
1420
- return o[0] = w * H + k * v + U * z, o[3] = w * s + k * V + U * f, o[6] = w * a + k * O + U * q, o[1] = i * H + F * v + h * z, o[4] = i * s + F * V + h * f, o[7] = i * a + F * O + h * q, o[2] = L * H + R * v + c * z, o[5] = L * s + R * V + c * f, o[8] = L * a + R * O + c * q, this;
1419
+ const Q = A.elements, D = C.elements, o = this.elements, w = Q[0], k = Q[3], U = Q[6], y = Q[1], F = Q[4], h = Q[7], L = Q[2], i = Q[5], c = Q[8], H = D[0], S = D[3], s = D[6], v = D[1], V = D[4], O = D[7], z = D[2], f = D[5], q = D[8];
1420
+ return o[0] = w * H + k * v + U * z, o[3] = w * S + k * V + U * f, o[6] = w * s + k * O + U * q, o[1] = y * H + F * v + h * z, o[4] = y * S + F * V + h * f, o[7] = y * s + F * O + h * q, o[2] = L * H + i * v + c * z, o[5] = L * S + i * V + c * f, o[8] = L * s + i * O + c * q, this;
1421
1421
  }
1422
1422
  multiplyScalar(A) {
1423
1423
  const C = this.elements;
1424
1424
  return C[0] *= A, C[3] *= A, C[6] *= A, C[1] *= A, C[4] *= A, C[7] *= A, C[2] *= A, C[5] *= A, C[8] *= A, this;
1425
1425
  }
1426
1426
  determinant() {
1427
- const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], i = A[7], F = A[8];
1428
- return C * w * F - C * k * i - Q * o * F + Q * k * U + D * o * i - D * w * U;
1427
+ const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], y = A[7], F = A[8];
1428
+ return C * w * F - C * k * y - Q * o * F + Q * k * U + D * o * y - D * w * U;
1429
1429
  }
1430
1430
  invert() {
1431
- const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], i = A[7], F = A[8], h = F * w - k * i, L = k * U - F * o, R = i * o - w * U, c = C * h + Q * L + D * R;
1431
+ const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], y = A[7], F = A[8], h = F * w - k * y, L = k * U - F * o, i = y * o - w * U, c = C * h + Q * L + D * i;
1432
1432
  if (c === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0);
1433
1433
  const H = 1 / c;
1434
- return A[0] = h * H, A[1] = (D * i - F * Q) * H, A[2] = (k * Q - D * w) * H, A[3] = L * H, A[4] = (F * C - D * U) * H, A[5] = (D * o - k * C) * H, A[6] = R * H, A[7] = (Q * U - i * C) * H, A[8] = (w * C - Q * o) * H, this;
1434
+ return A[0] = h * H, A[1] = (D * y - F * Q) * H, A[2] = (k * Q - D * w) * H, A[3] = L * H, A[4] = (F * C - D * U) * H, A[5] = (D * o - k * C) * H, A[6] = i * H, A[7] = (Q * U - y * C) * H, A[8] = (w * C - Q * o) * H, this;
1435
1435
  }
1436
1436
  transpose() {
1437
1437
  let A;
@@ -1446,14 +1446,14 @@ const DB = class DI {
1446
1446
  return A.elements[0] = C[0], A.elements[1] = C[3], A.elements[2] = C[6], A.elements[3] = C[1], A.elements[4] = C[4], A.elements[5] = C[7], A.elements[6] = C[2], A.elements[7] = C[5], A.elements[8] = C[8], this;
1447
1447
  }
1448
1448
  setUvTransform(A, C, Q, D, o, w, k) {
1449
- const U = Math.cos(o), i = Math.sin(o);
1449
+ const U = Math.cos(o), y = Math.sin(o);
1450
1450
  return this.set(
1451
1451
  Q * U,
1452
- Q * i,
1453
- -Q * (U * w + i * k) + w + A,
1454
- -D * i,
1452
+ Q * y,
1453
+ -Q * (U * w + y * k) + w + A,
1454
+ -D * y,
1455
1455
  D * U,
1456
- -D * (-i * w + U * k) + k + C,
1456
+ -D * (-y * w + U * k) + k + C,
1457
1457
  0,
1458
1458
  0,
1459
1459
  1
@@ -1529,34 +1529,34 @@ class NB {
1529
1529
  this._x = A, this._y = C, this._z = Q, this._w = D;
1530
1530
  }
1531
1531
  static slerpFlat(A, C, Q, D, o, w, k) {
1532
- let U = Q[D + 0], i = Q[D + 1], F = Q[D + 2], h = Q[D + 3];
1533
- const L = o[w + 0], R = o[w + 1], c = o[w + 2], H = o[w + 3];
1532
+ let U = Q[D + 0], y = Q[D + 1], F = Q[D + 2], h = Q[D + 3];
1533
+ const L = o[w + 0], i = o[w + 1], c = o[w + 2], H = o[w + 3];
1534
1534
  if (k === 0) {
1535
- A[C + 0] = U, A[C + 1] = i, A[C + 2] = F, A[C + 3] = h;
1535
+ A[C + 0] = U, A[C + 1] = y, A[C + 2] = F, A[C + 3] = h;
1536
1536
  return;
1537
1537
  }
1538
1538
  if (k === 1) {
1539
- A[C + 0] = L, A[C + 1] = R, A[C + 2] = c, A[C + 3] = H;
1539
+ A[C + 0] = L, A[C + 1] = i, A[C + 2] = c, A[C + 3] = H;
1540
1540
  return;
1541
1541
  }
1542
- if (h !== H || U !== L || i !== R || F !== c) {
1543
- let s = 1 - k;
1544
- const a = U * L + i * R + F * c + h * H, v = a >= 0 ? 1 : -1, V = 1 - a * a;
1542
+ if (h !== H || U !== L || y !== i || F !== c) {
1543
+ let S = 1 - k;
1544
+ const s = U * L + y * i + F * c + h * H, v = s >= 0 ? 1 : -1, V = 1 - s * s;
1545
1545
  if (V > Number.EPSILON) {
1546
- const z = Math.sqrt(V), f = Math.atan2(z, a * v);
1547
- s = Math.sin(s * f) / z, k = Math.sin(k * f) / z;
1546
+ const z = Math.sqrt(V), f = Math.atan2(z, s * v);
1547
+ S = Math.sin(S * f) / z, k = Math.sin(k * f) / z;
1548
1548
  }
1549
1549
  const O = k * v;
1550
- if (U = U * s + L * O, i = i * s + R * O, F = F * s + c * O, h = h * s + H * O, s === 1 - k) {
1551
- const z = 1 / Math.sqrt(U * U + i * i + F * F + h * h);
1552
- U *= z, i *= z, F *= z, h *= z;
1550
+ if (U = U * S + L * O, y = y * S + i * O, F = F * S + c * O, h = h * S + H * O, S === 1 - k) {
1551
+ const z = 1 / Math.sqrt(U * U + y * y + F * F + h * h);
1552
+ U *= z, y *= z, F *= z, h *= z;
1553
1553
  }
1554
1554
  }
1555
- A[C] = U, A[C + 1] = i, A[C + 2] = F, A[C + 3] = h;
1555
+ A[C] = U, A[C + 1] = y, A[C + 2] = F, A[C + 3] = h;
1556
1556
  }
1557
1557
  static multiplyQuaternionsFlat(A, C, Q, D, o, w) {
1558
- const k = Q[D], U = Q[D + 1], i = Q[D + 2], F = Q[D + 3], h = o[w], L = o[w + 1], R = o[w + 2], c = o[w + 3];
1559
- return A[C] = k * c + F * h + U * R - i * L, A[C + 1] = U * c + F * L + i * h - k * R, A[C + 2] = i * c + F * R + k * L - U * h, A[C + 3] = F * c - k * h - U * L - i * R, A;
1558
+ const k = Q[D], U = Q[D + 1], y = Q[D + 2], F = Q[D + 3], h = o[w], L = o[w + 1], i = o[w + 2], c = o[w + 3];
1559
+ return A[C] = k * c + F * h + U * i - y * L, A[C + 1] = U * c + F * L + y * h - k * i, A[C + 2] = y * c + F * i + k * L - U * h, A[C + 3] = F * c - k * h - U * L - y * i, A;
1560
1560
  }
1561
1561
  get x() {
1562
1562
  return this._x;
@@ -1592,25 +1592,25 @@ class NB {
1592
1592
  return this._x = A.x, this._y = A.y, this._z = A.z, this._w = A.w, this._onChangeCallback(), this;
1593
1593
  }
1594
1594
  setFromEuler(A, C = !0) {
1595
- const Q = A.x, D = A.y, o = A.z, w = A.order, k = Math.cos, U = Math.sin, i = k(Q / 2), F = k(D / 2), h = k(o / 2), L = U(Q / 2), R = U(D / 2), c = U(o / 2);
1595
+ const Q = A.x, D = A.y, o = A.z, w = A.order, k = Math.cos, U = Math.sin, y = k(Q / 2), F = k(D / 2), h = k(o / 2), L = U(Q / 2), i = U(D / 2), c = U(o / 2);
1596
1596
  switch (w) {
1597
1597
  case "XYZ":
1598
- this._x = L * F * h + i * R * c, this._y = i * R * h - L * F * c, this._z = i * F * c + L * R * h, this._w = i * F * h - L * R * c;
1598
+ this._x = L * F * h + y * i * c, this._y = y * i * h - L * F * c, this._z = y * F * c + L * i * h, this._w = y * F * h - L * i * c;
1599
1599
  break;
1600
1600
  case "YXZ":
1601
- this._x = L * F * h + i * R * c, this._y = i * R * h - L * F * c, this._z = i * F * c - L * R * h, this._w = i * F * h + L * R * c;
1601
+ this._x = L * F * h + y * i * c, this._y = y * i * h - L * F * c, this._z = y * F * c - L * i * h, this._w = y * F * h + L * i * c;
1602
1602
  break;
1603
1603
  case "ZXY":
1604
- this._x = L * F * h - i * R * c, this._y = i * R * h + L * F * c, this._z = i * F * c + L * R * h, this._w = i * F * h - L * R * c;
1604
+ this._x = L * F * h - y * i * c, this._y = y * i * h + L * F * c, this._z = y * F * c + L * i * h, this._w = y * F * h - L * i * c;
1605
1605
  break;
1606
1606
  case "ZYX":
1607
- this._x = L * F * h - i * R * c, this._y = i * R * h + L * F * c, this._z = i * F * c - L * R * h, this._w = i * F * h + L * R * c;
1607
+ this._x = L * F * h - y * i * c, this._y = y * i * h + L * F * c, this._z = y * F * c - L * i * h, this._w = y * F * h + L * i * c;
1608
1608
  break;
1609
1609
  case "YZX":
1610
- this._x = L * F * h + i * R * c, this._y = i * R * h + L * F * c, this._z = i * F * c - L * R * h, this._w = i * F * h - L * R * c;
1610
+ this._x = L * F * h + y * i * c, this._y = y * i * h + L * F * c, this._z = y * F * c - L * i * h, this._w = y * F * h - L * i * c;
1611
1611
  break;
1612
1612
  case "XZY":
1613
- this._x = L * F * h - i * R * c, this._y = i * R * h - L * F * c, this._z = i * F * c + L * R * h, this._w = i * F * h + L * R * c;
1613
+ this._x = L * F * h - y * i * c, this._y = y * i * h - L * F * c, this._z = y * F * c + L * i * h, this._w = y * F * h + L * i * c;
1614
1614
  break;
1615
1615
  }
1616
1616
  return C === !0 && this._onChangeCallback(), this;
@@ -1620,19 +1620,19 @@ class NB {
1620
1620
  return this._x = A.x * D, this._y = A.y * D, this._z = A.z * D, this._w = Math.cos(Q), this._onChangeCallback(), this;
1621
1621
  }
1622
1622
  setFromRotationMatrix(A) {
1623
- const C = A.elements, Q = C[0], D = C[4], o = C[8], w = C[1], k = C[5], U = C[9], i = C[2], F = C[6], h = C[10], L = Q + k + h;
1623
+ const C = A.elements, Q = C[0], D = C[4], o = C[8], w = C[1], k = C[5], U = C[9], y = C[2], F = C[6], h = C[10], L = Q + k + h;
1624
1624
  if (L > 0) {
1625
- const R = 0.5 / Math.sqrt(L + 1);
1626
- this._w = 0.25 / R, this._x = (F - U) * R, this._y = (o - i) * R, this._z = (w - D) * R;
1625
+ const i = 0.5 / Math.sqrt(L + 1);
1626
+ this._w = 0.25 / i, this._x = (F - U) * i, this._y = (o - y) * i, this._z = (w - D) * i;
1627
1627
  } else if (Q > k && Q > h) {
1628
- const R = 2 * Math.sqrt(1 + Q - k - h);
1629
- this._w = (F - U) / R, this._x = 0.25 * R, this._y = (D + w) / R, this._z = (o + i) / R;
1628
+ const i = 2 * Math.sqrt(1 + Q - k - h);
1629
+ this._w = (F - U) / i, this._x = 0.25 * i, this._y = (D + w) / i, this._z = (o + y) / i;
1630
1630
  } else if (k > h) {
1631
- const R = 2 * Math.sqrt(1 + k - Q - h);
1632
- this._w = (o - i) / R, this._x = (D + w) / R, this._y = 0.25 * R, this._z = (U + F) / R;
1631
+ const i = 2 * Math.sqrt(1 + k - Q - h);
1632
+ this._w = (o - y) / i, this._x = (D + w) / i, this._y = 0.25 * i, this._z = (U + F) / i;
1633
1633
  } else {
1634
- const R = 2 * Math.sqrt(1 + h - Q - k);
1635
- this._w = (w - D) / R, this._x = (o + i) / R, this._y = (U + F) / R, this._z = 0.25 * R;
1634
+ const i = 2 * Math.sqrt(1 + h - Q - k);
1635
+ this._w = (w - D) / i, this._x = (o + y) / i, this._y = (U + F) / i, this._z = 0.25 * i;
1636
1636
  }
1637
1637
  return this._onChangeCallback(), this;
1638
1638
  }
@@ -1680,8 +1680,8 @@ class NB {
1680
1680
  return this.multiplyQuaternions(A, this);
1681
1681
  }
1682
1682
  multiplyQuaternions(A, C) {
1683
- const Q = A._x, D = A._y, o = A._z, w = A._w, k = C._x, U = C._y, i = C._z, F = C._w;
1684
- return this._x = Q * F + w * k + D * i - o * U, this._y = D * F + w * U + o * k - Q * i, this._z = o * F + w * i + Q * U - D * k, this._w = w * F - Q * k - D * U - o * i, this._onChangeCallback(), this;
1683
+ const Q = A._x, D = A._y, o = A._z, w = A._w, k = C._x, U = C._y, y = C._z, F = C._w;
1684
+ return this._x = Q * F + w * k + D * y - o * U, this._y = D * F + w * U + o * k - Q * y, this._z = o * F + w * y + Q * U - D * k, this._w = w * F - Q * k - D * U - o * y, this._onChangeCallback(), this;
1685
1685
  }
1686
1686
  slerp(A, C) {
1687
1687
  if (C === 0) return this;
@@ -1692,10 +1692,10 @@ class NB {
1692
1692
  return this._w = w, this._x = Q, this._y = D, this._z = o, this;
1693
1693
  const U = 1 - k * k;
1694
1694
  if (U <= Number.EPSILON) {
1695
- const R = 1 - C;
1696
- return this._w = R * w + C * this._w, this._x = R * Q + C * this._x, this._y = R * D + C * this._y, this._z = R * o + C * this._z, this.normalize(), this;
1695
+ const i = 1 - C;
1696
+ return this._w = i * w + C * this._w, this._x = i * Q + C * this._x, this._y = i * D + C * this._y, this._z = i * o + C * this._z, this.normalize(), this;
1697
1697
  }
1698
- const i = Math.sqrt(U), F = Math.atan2(i, k), h = Math.sin((1 - C) * F) / i, L = Math.sin(C * F) / i;
1698
+ const y = Math.sqrt(U), F = Math.atan2(y, k), h = Math.sin((1 - C) * F) / y, L = Math.sin(C * F) / y;
1699
1699
  return this._w = w * h + this._w * L, this._x = Q * h + this._x * L, this._y = D * h + this._y * L, this._z = o * h + this._z * L, this._onChangeCallback(), this;
1700
1700
  }
1701
1701
  slerpQuaternions(A, C, Q) {
@@ -1849,8 +1849,8 @@ const cA = class GI {
1849
1849
  return this.x = (o[0] * C + o[4] * Q + o[8] * D + o[12]) * w, this.y = (o[1] * C + o[5] * Q + o[9] * D + o[13]) * w, this.z = (o[2] * C + o[6] * Q + o[10] * D + o[14]) * w, this;
1850
1850
  }
1851
1851
  applyQuaternion(A) {
1852
- const C = this.x, Q = this.y, D = this.z, o = A.x, w = A.y, k = A.z, U = A.w, i = 2 * (w * D - k * Q), F = 2 * (k * C - o * D), h = 2 * (o * Q - w * C);
1853
- return this.x = C + U * i + w * h - k * F, this.y = Q + U * F + k * i - o * h, this.z = D + U * h + o * F - w * i, this;
1852
+ const C = this.x, Q = this.y, D = this.z, o = A.x, w = A.y, k = A.z, U = A.w, y = 2 * (w * D - k * Q), F = 2 * (k * C - o * D), h = 2 * (o * Q - w * C);
1853
+ return this.x = C + U * y + w * h - k * F, this.y = Q + U * F + k * y - o * h, this.z = D + U * h + o * F - w * y, this;
1854
1854
  }
1855
1855
  transformDirection(A) {
1856
1856
  const C = this.x, Q = this.y, D = this.z, o = A.elements;
@@ -1995,8 +1995,8 @@ const cA = class GI {
1995
1995
  cA.ORIGIN = Object.freeze(new cA(0, 0, 0)), cA.X_AXIS = Object.freeze(new cA(1, 0, 0)), cA.NEGATIVE_X_AXIS = Object.freeze(new cA(-1, 0, 0)), cA.Y_AXIS = Object.freeze(new cA(0, 1, 0)), cA.NEGATIVE_Y_AXIS = Object.freeze(new cA(0, -1, 0)), cA.Z_AXIS = Object.freeze(new cA(0, 0, 1)), cA.NEGATIVE_Z_AXIS = Object.freeze(new cA(0, 0, -1));
1996
1996
  let CA = cA;
1997
1997
  const _C = new CA(), pB = new NB(), oB = class wI {
1998
- constructor(A, C, Q, D, o, w, k, U, i, F, h, L, R, c, H, s) {
1999
- this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], A != null && C != null && Q != null && D != null && o != null && w != null && k != null && U != null && i != null && F != null && h != null && L != null && R != null && c != null && H != null && s != null && this.set(
1998
+ constructor(A, C, Q, D, o, w, k, U, y, F, h, L, i, c, H, S) {
1999
+ this.elements = [1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1], A != null && C != null && Q != null && D != null && o != null && w != null && k != null && U != null && y != null && F != null && h != null && L != null && i != null && c != null && H != null && S != null && this.set(
2000
2000
  A,
2001
2001
  C,
2002
2002
  Q,
@@ -2005,19 +2005,19 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2005
2005
  w,
2006
2006
  k,
2007
2007
  U,
2008
- i,
2008
+ y,
2009
2009
  F,
2010
2010
  h,
2011
2011
  L,
2012
- R,
2012
+ i,
2013
2013
  c,
2014
2014
  H,
2015
- s
2015
+ S
2016
2016
  );
2017
2017
  }
2018
- set(A, C, Q, D, o, w, k, U, i, F, h, L, R, c, H, s) {
2019
- const a = this.elements;
2020
- return a[0] = A, a[4] = C, a[8] = Q, a[12] = D, a[1] = o, a[5] = w, a[9] = k, a[13] = U, a[2] = i, a[6] = F, a[10] = h, a[14] = L, a[3] = R, a[7] = c, a[11] = H, a[15] = s, this;
2018
+ set(A, C, Q, D, o, w, k, U, y, F, h, L, i, c, H, S) {
2019
+ const s = this.elements;
2020
+ return s[0] = A, s[4] = C, s[8] = Q, s[12] = D, s[1] = o, s[5] = w, s[9] = k, s[13] = U, s[2] = y, s[6] = F, s[10] = h, s[14] = L, s[3] = i, s[7] = c, s[11] = H, s[15] = S, this;
2021
2021
  }
2022
2022
  identity() {
2023
2023
  return this.set(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
@@ -2114,7 +2114,7 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2114
2114
  }
2115
2115
  lookAt(A, C, Q) {
2116
2116
  const D = this.elements;
2117
- return OA.subVectors(A, C), OA.lengthSq() === 0 && (OA.z = 1), OA.normalize(), yg.crossVectors(Q, OA), yg.lengthSq() === 0 && (Math.abs(Q.z) === 1 ? OA.x += 1e-4 : OA.z += 1e-4, OA.normalize(), yg.crossVectors(Q, OA)), yg.normalize(), qQ.crossVectors(OA, yg), D[0] = yg.x, D[4] = qQ.x, D[8] = OA.x, D[1] = yg.y, D[5] = qQ.y, D[9] = OA.y, D[2] = yg.z, D[6] = qQ.z, D[10] = OA.z, this;
2117
+ return OA.subVectors(A, C), OA.lengthSq() === 0 && (OA.z = 1), OA.normalize(), Rg.crossVectors(Q, OA), Rg.lengthSq() === 0 && (Math.abs(Q.z) === 1 ? OA.x += 1e-4 : OA.z += 1e-4, OA.normalize(), Rg.crossVectors(Q, OA)), Rg.normalize(), qQ.crossVectors(OA, Rg), D[0] = Rg.x, D[4] = qQ.x, D[8] = OA.x, D[1] = Rg.y, D[5] = qQ.y, D[9] = OA.y, D[2] = Rg.z, D[6] = qQ.z, D[10] = OA.z, this;
2118
2118
  }
2119
2119
  multiply(A) {
2120
2120
  return this.multiplyMatrices(this, A);
@@ -2123,16 +2123,16 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2123
2123
  return this.multiplyMatrices(A, this);
2124
2124
  }
2125
2125
  multiplyMatrices(A, C) {
2126
- const Q = A.elements, D = C.elements, o = this.elements, w = Q[0], k = Q[4], U = Q[8], i = Q[12], F = Q[1], h = Q[5], L = Q[9], R = Q[13], c = Q[2], H = Q[6], s = Q[10], a = Q[14], v = Q[3], V = Q[7], O = Q[11], z = Q[15], f = D[0], q = D[4], W = D[8], AA = D[12], EA = D[1], P = D[5], d = D[9], e = D[13], iA = D[2], MA = D[6], zA = D[10], TA = D[14], RA = D[3], VA = D[7], vA = D[11], nA = D[15];
2127
- return o[0] = w * f + k * EA + U * iA + i * RA, o[4] = w * q + k * P + U * MA + i * VA, o[8] = w * W + k * d + U * zA + i * vA, o[12] = w * AA + k * e + U * TA + i * nA, o[1] = F * f + h * EA + L * iA + R * RA, o[5] = F * q + h * P + L * MA + R * VA, o[9] = F * W + h * d + L * zA + R * vA, o[13] = F * AA + h * e + L * TA + R * nA, o[2] = c * f + H * EA + s * iA + a * RA, o[6] = c * q + H * P + s * MA + a * VA, o[10] = c * W + H * d + s * zA + a * vA, o[14] = c * AA + H * e + s * TA + a * nA, o[3] = v * f + V * EA + O * iA + z * RA, o[7] = v * q + V * P + O * MA + z * VA, o[11] = v * W + V * d + O * zA + z * vA, o[15] = v * AA + V * e + O * TA + z * nA, this;
2126
+ const Q = A.elements, D = C.elements, o = this.elements, w = Q[0], k = Q[4], U = Q[8], y = Q[12], F = Q[1], h = Q[5], L = Q[9], i = Q[13], c = Q[2], H = Q[6], S = Q[10], s = Q[14], v = Q[3], V = Q[7], O = Q[11], z = Q[15], f = D[0], q = D[4], W = D[8], AA = D[12], EA = D[1], P = D[5], d = D[9], e = D[13], yA = D[2], MA = D[6], zA = D[10], TA = D[14], iA = D[3], VA = D[7], vA = D[11], nA = D[15];
2127
+ return o[0] = w * f + k * EA + U * yA + y * iA, o[4] = w * q + k * P + U * MA + y * VA, o[8] = w * W + k * d + U * zA + y * vA, o[12] = w * AA + k * e + U * TA + y * nA, o[1] = F * f + h * EA + L * yA + i * iA, o[5] = F * q + h * P + L * MA + i * VA, o[9] = F * W + h * d + L * zA + i * vA, o[13] = F * AA + h * e + L * TA + i * nA, o[2] = c * f + H * EA + S * yA + s * iA, o[6] = c * q + H * P + S * MA + s * VA, o[10] = c * W + H * d + S * zA + s * vA, o[14] = c * AA + H * e + S * TA + s * nA, o[3] = v * f + V * EA + O * yA + z * iA, o[7] = v * q + V * P + O * MA + z * VA, o[11] = v * W + V * d + O * zA + z * vA, o[15] = v * AA + V * e + O * TA + z * nA, this;
2128
2128
  }
2129
2129
  multiplyScalar(A) {
2130
2130
  const C = this.elements;
2131
2131
  return C[0] *= A, C[4] *= A, C[8] *= A, C[12] *= A, C[1] *= A, C[5] *= A, C[9] *= A, C[13] *= A, C[2] *= A, C[6] *= A, C[10] *= A, C[14] *= A, C[3] *= A, C[7] *= A, C[11] *= A, C[15] *= A, this;
2132
2132
  }
2133
2133
  determinant() {
2134
- const A = this.elements, C = A[0], Q = A[4], D = A[8], o = A[12], w = A[1], k = A[5], U = A[9], i = A[13], F = A[2], h = A[6], L = A[10], R = A[14], c = A[3], H = A[7], s = A[11], a = A[15];
2135
- return c * (+o * U * h - D * i * h - o * k * L + Q * i * L + D * k * R - Q * U * R) + H * (+C * U * R - C * i * L + o * w * L - D * w * R + D * i * F - o * U * F) + s * (+C * i * h - C * k * R - o * w * h + Q * w * R + o * k * F - Q * i * F) + a * (-D * k * F - C * U * h + C * k * L + D * w * h - Q * w * L + Q * U * F);
2134
+ const A = this.elements, C = A[0], Q = A[4], D = A[8], o = A[12], w = A[1], k = A[5], U = A[9], y = A[13], F = A[2], h = A[6], L = A[10], i = A[14], c = A[3], H = A[7], S = A[11], s = A[15];
2135
+ return c * (+o * U * h - D * y * h - o * k * L + Q * y * L + D * k * i - Q * U * i) + H * (+C * U * i - C * y * L + o * w * L - D * w * i + D * y * F - o * U * F) + S * (+C * y * h - C * k * i - o * w * h + Q * w * i + o * k * F - Q * y * F) + s * (-D * k * F - C * U * h + C * k * L + D * w * h - Q * w * L + Q * U * F);
2136
2136
  }
2137
2137
  transpose() {
2138
2138
  const A = this.elements;
@@ -2144,11 +2144,11 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2144
2144
  return A instanceof CA ? (D[12] = A.x, D[13] = A.y, D[14] = A.z) : (D[12] = A, D[13] = C, D[14] = Q), this;
2145
2145
  }
2146
2146
  invert() {
2147
- const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], i = A[7], F = A[8], h = A[9], L = A[10], R = A[11], c = A[12], H = A[13], s = A[14], a = A[15], v = h * s * i - H * L * i + H * U * R - k * s * R - h * U * a + k * L * a, V = c * L * i - F * s * i - c * U * R + w * s * R + F * U * a - w * L * a, O = F * H * i - c * h * i + c * k * R - w * H * R - F * k * a + w * h * a, z = c * h * U - F * H * U - c * k * L + w * H * L + F * k * s - w * h * s, f = C * v + Q * V + D * O + o * z;
2147
+ const A = this.elements, C = A[0], Q = A[1], D = A[2], o = A[3], w = A[4], k = A[5], U = A[6], y = A[7], F = A[8], h = A[9], L = A[10], i = A[11], c = A[12], H = A[13], S = A[14], s = A[15], v = h * S * y - H * L * y + H * U * i - k * S * i - h * U * s + k * L * s, V = c * L * y - F * S * y - c * U * i + w * S * i + F * U * s - w * L * s, O = F * H * y - c * h * y + c * k * i - w * H * i - F * k * s + w * h * s, z = c * h * U - F * H * U - c * k * L + w * H * L + F * k * S - w * h * S, f = C * v + Q * V + D * O + o * z;
2148
2148
  if (f === 0)
2149
2149
  return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
2150
2150
  const q = 1 / f;
2151
- return A[0] = v * q, A[1] = (H * L * o - h * s * o - H * D * R + Q * s * R + h * D * a - Q * L * a) * q, A[2] = (k * s * o - H * U * o + H * D * i - Q * s * i - k * D * a + Q * U * a) * q, A[3] = (h * U * o - k * L * o - h * D * i + Q * L * i + k * D * R - Q * U * R) * q, A[4] = V * q, A[5] = (F * s * o - c * L * o + c * D * R - C * s * R - F * D * a + C * L * a) * q, A[6] = (c * U * o - w * s * o - c * D * i + C * s * i + w * D * a - C * U * a) * q, A[7] = (w * L * o - F * U * o + F * D * i - C * L * i - w * D * R + C * U * R) * q, A[8] = O * q, A[9] = (c * h * o - F * H * o - c * Q * R + C * H * R + F * Q * a - C * h * a) * q, A[10] = (w * H * o - c * k * o + c * Q * i - C * H * i - w * Q * a + C * k * a) * q, A[11] = (F * k * o - w * h * o - F * Q * i + C * h * i + w * Q * R - C * k * R) * q, A[12] = z * q, A[13] = (F * H * D - c * h * D + c * Q * L - C * H * L - F * Q * s + C * h * s) * q, A[14] = (c * k * D - w * H * D - c * Q * U + C * H * U + w * Q * s - C * k * s) * q, A[15] = (w * h * D - F * k * D + F * Q * U - C * h * U - w * Q * L + C * k * L) * q, this;
2151
+ return A[0] = v * q, A[1] = (H * L * o - h * S * o - H * D * i + Q * S * i + h * D * s - Q * L * s) * q, A[2] = (k * S * o - H * U * o + H * D * y - Q * S * y - k * D * s + Q * U * s) * q, A[3] = (h * U * o - k * L * o - h * D * y + Q * L * y + k * D * i - Q * U * i) * q, A[4] = V * q, A[5] = (F * S * o - c * L * o + c * D * i - C * S * i - F * D * s + C * L * s) * q, A[6] = (c * U * o - w * S * o - c * D * y + C * S * y + w * D * s - C * U * s) * q, A[7] = (w * L * o - F * U * o + F * D * y - C * L * y - w * D * i + C * U * i) * q, A[8] = O * q, A[9] = (c * h * o - F * H * o - c * Q * i + C * H * i + F * Q * s - C * h * s) * q, A[10] = (w * H * o - c * k * o + c * Q * y - C * H * y - w * Q * s + C * k * s) * q, A[11] = (F * k * o - w * h * o - F * Q * y + C * h * y + w * Q * i - C * k * i) * q, A[12] = z * q, A[13] = (F * H * D - c * h * D + c * Q * L - C * H * L - F * Q * S + C * h * S) * q, A[14] = (c * k * D - w * H * D - c * Q * U + C * H * U + w * Q * S - C * k * S) * q, A[15] = (w * h * D - F * k * D + F * Q * U - C * h * U - w * Q * L + C * k * L) * q, this;
2152
2152
  }
2153
2153
  scale(A) {
2154
2154
  const C = this.elements, Q = A.x, D = A.y, o = A.z;
@@ -2174,17 +2174,17 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2174
2174
  return this.set(C, -Q, 0, 0, Q, C, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1), this;
2175
2175
  }
2176
2176
  makeRotationAxis(A, C) {
2177
- const Q = Math.cos(C), D = Math.sin(C), o = 1 - Q, w = A.x, k = A.y, U = A.z, i = o * w, F = o * k;
2177
+ const Q = Math.cos(C), D = Math.sin(C), o = 1 - Q, w = A.x, k = A.y, U = A.z, y = o * w, F = o * k;
2178
2178
  return this.set(
2179
- i * w + Q,
2180
- i * k - D * U,
2181
- i * U + D * k,
2179
+ y * w + Q,
2180
+ y * k - D * U,
2181
+ y * U + D * k,
2182
2182
  0,
2183
- i * k + D * U,
2183
+ y * k + D * U,
2184
2184
  F * k + Q,
2185
2185
  F * U - D * w,
2186
2186
  0,
2187
- i * U - D * k,
2187
+ y * U - D * k,
2188
2188
  F * U + D * w,
2189
2189
  o * U * U + Q,
2190
2190
  0,
@@ -2201,16 +2201,16 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2201
2201
  return this.set(1, Q, o, 0, A, 1, w, 0, C, D, 1, 0, 0, 0, 0, 1), this;
2202
2202
  }
2203
2203
  compose(A, C, Q) {
2204
- const D = this.elements, o = C.x, w = C.y, k = C.z, U = C.w, i = o + o, F = w + w, h = k + k, L = o * i, R = o * F, c = o * h, H = w * F, s = w * h, a = k * h, v = U * i, V = U * F, O = U * h, z = Q.x, f = Q.y, q = Q.z;
2205
- return D[0] = (1 - (H + a)) * z, D[1] = (R + O) * z, D[2] = (c - V) * z, D[3] = 0, D[4] = (R - O) * f, D[5] = (1 - (L + a)) * f, D[6] = (s + v) * f, D[7] = 0, D[8] = (c + V) * q, D[9] = (s - v) * q, D[10] = (1 - (L + H)) * q, D[11] = 0, D[12] = A.x, D[13] = A.y, D[14] = A.z, D[15] = 1, this;
2204
+ const D = this.elements, o = C.x, w = C.y, k = C.z, U = C.w, y = o + o, F = w + w, h = k + k, L = o * y, i = o * F, c = o * h, H = w * F, S = w * h, s = k * h, v = U * y, V = U * F, O = U * h, z = Q.x, f = Q.y, q = Q.z;
2205
+ return D[0] = (1 - (H + s)) * z, D[1] = (i + O) * z, D[2] = (c - V) * z, D[3] = 0, D[4] = (i - O) * f, D[5] = (1 - (L + s)) * f, D[6] = (S + v) * f, D[7] = 0, D[8] = (c + V) * q, D[9] = (S - v) * q, D[10] = (1 - (L + H)) * q, D[11] = 0, D[12] = A.x, D[13] = A.y, D[14] = A.z, D[15] = 1, this;
2206
2206
  }
2207
2207
  decompose(A, C, Q) {
2208
2208
  const D = this.elements;
2209
2209
  let o = eg.set(D[0], D[1], D[2]).length();
2210
2210
  const w = eg.set(D[4], D[5], D[6]).length(), k = eg.set(D[8], D[9], D[10]).length();
2211
2211
  this.determinant() < 0 && (o = -o), A.x = D[12], A.y = D[13], A.z = D[14], _A.copy(this);
2212
- const U = 1 / o, i = 1 / w, F = 1 / k;
2213
- return _A.elements[0] *= U, _A.elements[1] *= U, _A.elements[2] *= U, _A.elements[4] *= i, _A.elements[5] *= i, _A.elements[6] *= i, _A.elements[8] *= F, _A.elements[9] *= F, _A.elements[10] *= F, C.setFromRotationMatrix(_A), Q.x = o, Q.y = w, Q.z = k, this;
2212
+ const U = 1 / o, y = 1 / w, F = 1 / k;
2213
+ return _A.elements[0] *= U, _A.elements[1] *= U, _A.elements[2] *= U, _A.elements[4] *= y, _A.elements[5] *= y, _A.elements[6] *= y, _A.elements[8] *= F, _A.elements[9] *= F, _A.elements[10] *= F, C.setFromRotationMatrix(_A), Q.x = o, Q.y = w, Q.z = k, this;
2214
2214
  }
2215
2215
  equals(A) {
2216
2216
  const C = this.elements, Q = A.elements;
@@ -2230,7 +2230,7 @@ const _C = new CA(), pB = new NB(), oB = class wI {
2230
2230
  };
2231
2231
  oB.IDENTITY = Object.freeze(new oB());
2232
2232
  let YB = oB;
2233
- const eg = new CA(), _A = new YB(), EG = new CA(0, 0, 0), DG = new CA(1, 1, 1), yg = new CA(), qQ = new CA(), OA = new CA();
2233
+ const eg = new CA(), _A = new YB(), EG = new CA(0, 0, 0), DG = new CA(1, 1, 1), Rg = new CA(), qQ = new CA(), OA = new CA();
2234
2234
  new CA(), new CA(), new CA(), new CA(), new CA(), new CA(), new CA(), new CA();
2235
2235
  new CA();
2236
2236
  new UC();
@@ -2250,10 +2250,10 @@ new CA();
2250
2250
  new CA();
2251
2251
  new CA();
2252
2252
  new CA();
2253
- var oG = ((g) => (g.ClosedFilled = "", g.Dot = "_DOT", g.DotSmall = "_DOTSMALL", g.DotBlank = "_DOTBLANK", g.Origin = "_ORIGIN", g.Origin2 = "_ORIGIN2", g.Open = "_OPEN", g.Open90 = "_OPEN90", g.Open30 = "_OPEN30", g.Closed = "_CLOSED", g.Small = "_SMALL", g.None = "_NONE", g.Oblique = "_OBLIQUE", g.BoxFilled = "_BOXFILLED", g.Box = "_BOXBLANK", g.ClosedBlank = "_CLOSEDBLANK", g.DatumBlank = "_DATUMBLANK", g.DatumFilled = "_DATUMFILLED", g.Integral = "_INTEGRAL", g.ArchTick = "_ARCHTICK", g))(oG || {}), GG = ((g) => (g[g.ByBlock = -2] = "ByBlock", g[g.ByDIPs = -4] = "ByDIPs", g[g.ByLayer = -1] = "ByLayer", g[g.ByLineWeightDefault = -3] = "ByLineWeightDefault", g[g.LineWeight000 = 0] = "LineWeight000", g[g.LineWeight005 = 5] = "LineWeight005", g[g.LineWeight009 = 9] = "LineWeight009", g[g.LineWeight013 = 13] = "LineWeight013", g[g.LineWeight015 = 15] = "LineWeight015", g[g.LineWeight018 = 18] = "LineWeight018", g[g.LineWeight020 = 20] = "LineWeight020", g[g.LineWeight025 = 25] = "LineWeight025", g[g.LineWeight030 = 30] = "LineWeight030", g[g.LineWeight035 = 35] = "LineWeight035", g[g.LineWeight040 = 40] = "LineWeight040", g[g.LineWeight050 = 50] = "LineWeight050", g[g.LineWeight053 = 53] = "LineWeight053", g[g.LineWeight060 = 60] = "LineWeight060", g[g.LineWeight070 = 70] = "LineWeight070", g[g.LineWeight080 = 80] = "LineWeight080", g[g.LineWeight090 = 90] = "LineWeight090", g[g.LineWeight100 = 100] = "LineWeight100", g[g.LineWeight106 = 106] = "LineWeight106", g[g.LineWeight120 = 120] = "LineWeight120", g[g.LineWeight140 = 140] = "LineWeight140", g[g.LineWeight158 = 158] = "LineWeight158", g[g.LineWeight200 = 200] = "LineWeight200", g[g.LineWeight211 = 211] = "LineWeight211", g))(GG || {}), wG = ((g) => (g[g.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", g[g.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", g[g.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", g[g.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", g[g.BY_STYLE = 5] = "BY_STYLE", g))(wG || {}), MG = ((g) => (g[g.TopLeft = 1] = "TopLeft", g[g.TopCenter = 2] = "TopCenter", g[g.TopRight = 3] = "TopRight", g[g.MiddleLeft = 4] = "MiddleLeft", g[g.MiddleCenter = 5] = "MiddleCenter", g[g.MiddleRight = 6] = "MiddleRight", g[g.BottomLeft = 7] = "BottomLeft", g[g.BottomCenter = 8] = "BottomCenter", g[g.BottomRight = 9] = "BottomRight", g))(MG || {}), NG = ((g) => (g[g.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", g[g.WIREFRAME = 1] = "WIREFRAME", g[g.HIDDEN_LINE = 2] = "HIDDEN_LINE", g[g.FLAT_SHADED = 3] = "FLAT_SHADED", g[g.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", g[g.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", g[g.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", g))(NG || {}), YG = ((g) => (g[g.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", g[g.TOP = 1] = "TOP", g[g.BOTTOM = 2] = "BOTTOM", g[g.FRONT = 3] = "FRONT", g[g.BACK = 4] = "BACK", g[g.LEFT = 5] = "LEFT", g[g.RIGHT = 6] = "RIGHT", g))(YG || {}), kG = ((g) => (g[g.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", g[g.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", g))(kG || {}), UG = ((g) => (g[g.SimplePoly = 0] = "SimplePoly", g[g.FitCurvePoly = 1] = "FitCurvePoly", g[g.QuadSplinePoly = 2] = "QuadSplinePoly", g[g.CubicSplinePoly = 3] = "CubicSplinePoly", g))(UG || {}), KG = ((g) => (g[g.Vertex = 0] = "Vertex", g[g.CurveFitVertex = 1] = "CurveFitVertex", g[g.SplineFitVertex = 8] = "SplineFitVertex", g[g.SplineCtlVertex = 9] = "SplineCtlVertex", g))(KG || {}), FG = ((g) => (g[g.SimplePoly = 0] = "SimplePoly", g[g.QuadSplinePoly = 1] = "QuadSplinePoly", g[g.CubicSplinePoly = 2] = "CubicSplinePoly", g))(FG || {}), iG = ((g) => (g[g.SimpleVertex = 0] = "SimpleVertex", g[g.ControlVertex = 1] = "ControlVertex", g[g.FitVertex = 2] = "FitVertex", g))(iG || {}), yG = ((g) => (g[g.LEFT = 0] = "LEFT", g[g.CENTER = 1] = "CENTER", g[g.RIGHT = 2] = "RIGHT", g[g.ALIGNED = 3] = "ALIGNED", g[g.MIDDLE = 4] = "MIDDLE", g[g.FIT = 5] = "FIT", g))(yG || {}), RG = ((g) => (g[g.BASELINE = 0] = "BASELINE", g[g.BOTTOM = 1] = "BOTTOM", g[g.MIDDLE = 2] = "MIDDLE", g[g.TOP = 3] = "TOP", g))(RG || {}), hG = ((g) => (g[g.Invisible = 1] = "Invisible", g[g.Const = 2] = "Const", g[g.Verifiable = 4] = "Verifiable", g[g.Preset = 8] = "Preset", g))(hG || {}), JG = ((g) => (g[g.MultiLine = 2] = "MultiLine", g[g.ConstMultiLine = 4] = "ConstMultiLine", g))(JG || {}), LG = ((g) => (g[g.UserDefined = 0] = "UserDefined", g[g.Predefined = 1] = "Predefined", g[g.Custom = 2] = "Custom", g))(LG || {}), HG = ((g) => (g[g.Normal = 0] = "Normal", g[g.Outer = 1] = "Outer", g[g.Ignore = 2] = "Ignore", g))(HG || {}), aG = ((g) => (g[g.MText = 0] = "MText", g[g.Fcf = 1] = "Fcf", g[g.BlockReference = 2] = "BlockReference", g[g.NoAnnotation = 3] = "NoAnnotation", g))(aG || {}), SG = ((g) => (g[g.EndPoint = 1] = "EndPoint", g[g.MidPoint = 2] = "MidPoint", g[g.Center = 3] = "Center", g[g.Node = 4] = "Node", g[g.Quadrant = 5] = "Quadrant", g[g.Insertion = 7] = "Insertion", g[g.Perpendicular = 8] = "Perpendicular", g[g.Tangent = 9] = "Tangent", g[g.Nearest = 10] = "Nearest", g[g.Centroid = 11] = "Centroid", g))(SG || {});
2253
+ var oG = ((g) => (g.ClosedFilled = "", g.Dot = "_DOT", g.DotSmall = "_DOTSMALL", g.DotBlank = "_DOTBLANK", g.Origin = "_ORIGIN", g.Origin2 = "_ORIGIN2", g.Open = "_OPEN", g.Open90 = "_OPEN90", g.Open30 = "_OPEN30", g.Closed = "_CLOSED", g.Small = "_SMALL", g.None = "_NONE", g.Oblique = "_OBLIQUE", g.BoxFilled = "_BOXFILLED", g.Box = "_BOXBLANK", g.ClosedBlank = "_CLOSEDBLANK", g.DatumBlank = "_DATUMBLANK", g.DatumFilled = "_DATUMFILLED", g.Integral = "_INTEGRAL", g.ArchTick = "_ARCHTICK", g))(oG || {}), GG = ((g) => (g[g.ByBlock = -2] = "ByBlock", g[g.ByDIPs = -4] = "ByDIPs", g[g.ByLayer = -1] = "ByLayer", g[g.ByLineWeightDefault = -3] = "ByLineWeightDefault", g[g.LineWeight000 = 0] = "LineWeight000", g[g.LineWeight005 = 5] = "LineWeight005", g[g.LineWeight009 = 9] = "LineWeight009", g[g.LineWeight013 = 13] = "LineWeight013", g[g.LineWeight015 = 15] = "LineWeight015", g[g.LineWeight018 = 18] = "LineWeight018", g[g.LineWeight020 = 20] = "LineWeight020", g[g.LineWeight025 = 25] = "LineWeight025", g[g.LineWeight030 = 30] = "LineWeight030", g[g.LineWeight035 = 35] = "LineWeight035", g[g.LineWeight040 = 40] = "LineWeight040", g[g.LineWeight050 = 50] = "LineWeight050", g[g.LineWeight053 = 53] = "LineWeight053", g[g.LineWeight060 = 60] = "LineWeight060", g[g.LineWeight070 = 70] = "LineWeight070", g[g.LineWeight080 = 80] = "LineWeight080", g[g.LineWeight090 = 90] = "LineWeight090", g[g.LineWeight100 = 100] = "LineWeight100", g[g.LineWeight106 = 106] = "LineWeight106", g[g.LineWeight120 = 120] = "LineWeight120", g[g.LineWeight140 = 140] = "LineWeight140", g[g.LineWeight158 = 158] = "LineWeight158", g[g.LineWeight200 = 200] = "LineWeight200", g[g.LineWeight211 = 211] = "LineWeight211", g))(GG || {}), wG = ((g) => (g[g.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", g[g.RIGHT_TO_LEFT = 2] = "RIGHT_TO_LEFT", g[g.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", g[g.BOTTOM_TO_TOP = 4] = "BOTTOM_TO_TOP", g[g.BY_STYLE = 5] = "BY_STYLE", g))(wG || {}), MG = ((g) => (g[g.TopLeft = 1] = "TopLeft", g[g.TopCenter = 2] = "TopCenter", g[g.TopRight = 3] = "TopRight", g[g.MiddleLeft = 4] = "MiddleLeft", g[g.MiddleCenter = 5] = "MiddleCenter", g[g.MiddleRight = 6] = "MiddleRight", g[g.BottomLeft = 7] = "BottomLeft", g[g.BottomCenter = 8] = "BottomCenter", g[g.BottomRight = 9] = "BottomRight", g))(MG || {}), NG = ((g) => (g[g.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", g[g.WIREFRAME = 1] = "WIREFRAME", g[g.HIDDEN_LINE = 2] = "HIDDEN_LINE", g[g.FLAT_SHADED = 3] = "FLAT_SHADED", g[g.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", g[g.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", g[g.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME", g))(NG || {}), YG = ((g) => (g[g.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", g[g.TOP = 1] = "TOP", g[g.BOTTOM = 2] = "BOTTOM", g[g.FRONT = 3] = "FRONT", g[g.BACK = 4] = "BACK", g[g.LEFT = 5] = "LEFT", g[g.RIGHT = 6] = "RIGHT", g))(YG || {}), kG = ((g) => (g[g.ONE_DISTANT_LIGHT = 0] = "ONE_DISTANT_LIGHT", g[g.TWO_DISTANT_LIGHTS = 1] = "TWO_DISTANT_LIGHTS", g))(kG || {}), UG = ((g) => (g[g.SimplePoly = 0] = "SimplePoly", g[g.FitCurvePoly = 1] = "FitCurvePoly", g[g.QuadSplinePoly = 2] = "QuadSplinePoly", g[g.CubicSplinePoly = 3] = "CubicSplinePoly", g))(UG || {}), KG = ((g) => (g[g.Vertex = 0] = "Vertex", g[g.CurveFitVertex = 1] = "CurveFitVertex", g[g.SplineFitVertex = 8] = "SplineFitVertex", g[g.SplineCtlVertex = 9] = "SplineCtlVertex", g))(KG || {}), FG = ((g) => (g[g.SimplePoly = 0] = "SimplePoly", g[g.QuadSplinePoly = 1] = "QuadSplinePoly", g[g.CubicSplinePoly = 2] = "CubicSplinePoly", g))(FG || {}), yG = ((g) => (g[g.SimpleVertex = 0] = "SimpleVertex", g[g.ControlVertex = 1] = "ControlVertex", g[g.FitVertex = 2] = "FitVertex", g))(yG || {}), RG = ((g) => (g[g.LEFT = 0] = "LEFT", g[g.CENTER = 1] = "CENTER", g[g.RIGHT = 2] = "RIGHT", g[g.ALIGNED = 3] = "ALIGNED", g[g.MIDDLE = 4] = "MIDDLE", g[g.FIT = 5] = "FIT", g))(RG || {}), iG = ((g) => (g[g.BASELINE = 0] = "BASELINE", g[g.BOTTOM = 1] = "BOTTOM", g[g.MIDDLE = 2] = "MIDDLE", g[g.TOP = 3] = "TOP", g))(iG || {}), hG = ((g) => (g[g.Invisible = 1] = "Invisible", g[g.Const = 2] = "Const", g[g.Verifiable = 4] = "Verifiable", g[g.Preset = 8] = "Preset", g))(hG || {}), JG = ((g) => (g[g.MultiLine = 2] = "MultiLine", g[g.ConstMultiLine = 4] = "ConstMultiLine", g))(JG || {}), LG = ((g) => (g[g.UserDefined = 0] = "UserDefined", g[g.Predefined = 1] = "Predefined", g[g.Custom = 2] = "Custom", g))(LG || {}), HG = ((g) => (g[g.Normal = 0] = "Normal", g[g.Outer = 1] = "Outer", g[g.Ignore = 2] = "Ignore", g))(HG || {}), sG = ((g) => (g[g.MText = 0] = "MText", g[g.Fcf = 1] = "Fcf", g[g.BlockReference = 2] = "BlockReference", g[g.NoAnnotation = 3] = "NoAnnotation", g))(sG || {}), aG = ((g) => (g[g.EndPoint = 1] = "EndPoint", g[g.MidPoint = 2] = "MidPoint", g[g.Center = 3] = "Center", g[g.Node = 4] = "Node", g[g.Quadrant = 5] = "Quadrant", g[g.Insertion = 7] = "Insertion", g[g.Perpendicular = 8] = "Perpendicular", g[g.Tangent = 9] = "Tangent", g[g.Nearest = 10] = "Nearest", g[g.Centroid = 11] = "Centroid", g))(aG || {});
2254
2254
  new CA();
2255
2255
  new YB();
2256
- var sG = ((g) => (g[g.Invalid = 0] = "Invalid", g[g.Rect = 1] = "Rect", g[g.Poly = 2] = "Poly", g))(sG || {}), cG = ((g) => (g[g.Show = 1] = "Show", g[g.ShowUnAligned = 2] = "ShowUnAligned", g[g.Clip = 4] = "Clip", g[g.Transparent = 8] = "Transparent", g))(cG || {});
2256
+ var SG = ((g) => (g[g.Invalid = 0] = "Invalid", g[g.Rect = 1] = "Rect", g[g.Poly = 2] = "Poly", g))(SG || {}), cG = ((g) => (g[g.Show = 1] = "Show", g[g.ShowUnAligned = 2] = "ShowUnAligned", g[g.Clip = 4] = "Clip", g[g.Transparent = 8] = "Transparent", g))(cG || {});
2257
2257
  new MI();
2258
2258
  new MI();
2259
2259
  var tG = ((g) => (g[g.AtLeast = 1] = "AtLeast", g[g.Exactly = 2] = "Exactly", g))(tG || {}), TG = ((g) => (g[g.kInches = 0] = "kInches", g[g.kMillimeters = 1] = "kMillimeters", g[g.kPixels = 2] = "kPixels", g))(TG || {}), xG = ((g) => (g[g.k0degrees = 0] = "k0degrees", g[g.k90degrees = 1] = "k90degrees", g[g.k180degrees = 2] = "k180degrees", g[g.k270degrees = 3] = "k270degrees", g))(xG || {}), dG = ((g) => (g[g.kDisplay = 0] = "kDisplay", g[g.kExtents = 1] = "kExtents", g[g.kLimits = 2] = "kLimits", g[g.kView = 3] = "kView", g[g.kWindow = 4] = "kWindow", g[g.kLayout = 5] = "kLayout", g))(dG || {}), zG = ((g) => (g[g.kDraft = 0] = "kDraft", g[g.kPreview = 1] = "kPreview", g[g.kNormal = 2] = "kNormal", g[g.kPresentation = 3] = "kPresentation", g[g.kMaximum = 4] = "kMaximum", g[g.kCustom = 5] = "kCustom", g))(zG || {}), VG = ((g) => (g[g.kAsDisplayed = 0] = "kAsDisplayed", g[g.kWireframe = 1] = "kWireframe", g[g.kHidden = 2] = "kHidden", g[g.kRendered = 3] = "kRendered", g[g.kVisualStyle = 4] = "kVisualStyle", g[g.kRenderPreset = 5] = "kRenderPreset", g))(VG || {}), vG = ((g) => (g[g.kScaleToFit = 0] = "kScaleToFit", g[g.k1_128in_1ft = 1] = "k1_128in_1ft", g[g.k1_64in_1ft = 2] = "k1_64in_1ft", g[g.k1_32in_1ft = 3] = "k1_32in_1ft", g[g.k1_16in_1ft = 4] = "k1_16in_1ft", g[g.k3_32in_1ft = 5] = "k3_32in_1ft", g[g.k1_8in_1ft = 6] = "k1_8in_1ft", g[g.k3_16in_1ft = 7] = "k3_16in_1ft", g[g.k1_4in_1ft = 8] = "k1_4in_1ft", g[g.k3_8in_1ft = 9] = "k3_8in_1ft", g[g.k1_2in_1ft = 10] = "k1_2in_1ft", g[g.k3_4in_1ft = 11] = "k3_4in_1ft", g[g.k1in_1ft = 12] = "k1in_1ft", g[g.k3in_1ft = 13] = "k3in_1ft", g[g.k6in_1ft = 14] = "k6in_1ft", g[g.k1ft_1ft = 15] = "k1ft_1ft", g[g.k1_1 = 16] = "k1_1", g[g.k1_2 = 17] = "k1_2", g[g.k1_4 = 18] = "k1_4", g[g.k1_5 = 19] = "k1_5", g[g.k1_8 = 20] = "k1_8", g[g.k1_10 = 21] = "k1_10", g[g.k1_16 = 22] = "k1_16", g[g.k1_20 = 23] = "k1_20", g[g.k1_30 = 24] = "k1_30", g[g.k1_40 = 25] = "k1_40", g[g.k1_50 = 26] = "k1_50", g[g.k1_100 = 27] = "k1_100", g[g.k2_1 = 28] = "k2_1", g[g.k4_1 = 29] = "k4_1", g[g.k8_1 = 30] = "k8_1", g[g.k10_1 = 31] = "k10_1", g[g.k100_1 = 32] = "k100_1", g[g.k1000_1 = 33] = "k1000_1", g[g.k1and1_2in_1ft = 34] = "k1and1_2in_1ft", g))(vG || {}), OG = ((g) => (g[g.Any = 0] = "Any", g[g.Uniform = 1] = "Uniform", g))(OG || {}), lG = ((g) => (g[g.NotApplicable = 0] = "NotApplicable", g[g.Ignore = 1] = "Ignore", g[g.Replace = 2] = "Replace", g[g.XrefMangleName = 3] = "XrefMangleName", g[g.MangleName = 4] = "MangleName", g))(lG || {}), bG = ((g) => (g.ClosedFilled = "", g.Dot = "_DOT", g.DotSmall = "_DOTSMALL", g.DotBlank = "_DOTBLANK", g.Origin = "_ORIGIN", g.Origin2 = "_ORIGIN2", g.Open = "_OPEN", g.Open90 = "_OPEN90", g.Open30 = "_OPEN30", g.Closed = "_CLOSED", g.Small = "_SMALL", g.None = "_NONE", g.Oblique = "_OBLIQUE", g.BoxFilled = "_BOXFILLED", g.Box = "_BOXBLANK", g.ClosedBlank = "_CLOSEDBLANK", g.DatumBlank = "_DATUMBLANK", g.DatumFilled = "_DATUMFILLED", g.Integral = "_INTEGRAL", g.ArchTick = "_ARCHTICK", g))(bG || {}), nG = ((g) => (g[g.Undefined = 0] = "Undefined", g[g.Inches = 1] = "Inches", g[g.Feet = 2] = "Feet", g[g.Miles = 3] = "Miles", g[g.Millimeters = 4] = "Millimeters", g[g.Centimeters = 5] = "Centimeters", g[g.Meters = 6] = "Meters", g[g.Kilometers = 7] = "Kilometers", g[g.Microinches = 8] = "Microinches", g[g.Mils = 9] = "Mils", g[g.Yards = 10] = "Yards", g[g.Angstroms = 11] = "Angstroms", g[g.Nanometers = 12] = "Nanometers", g[g.Microns = 13] = "Microns", g[g.Decimeters = 14] = "Decimeters", g[g.Dekameters = 15] = "Dekameters", g[g.Hectometers = 16] = "Hectometers", g[g.Gigameters = 17] = "Gigameters", g[g.Astronomical = 18] = "Astronomical", g[g.LightYears = 19] = "LightYears", g[g.Parsecs = 20] = "Parsecs", g[g.USSurveyFeet = 21] = "USSurveyFeet", g[g.USSurveyInch = 22] = "USSurveyInch", g[g.USSurveyYard = 23] = "USSurveyYard", g[g.USSurveyMile = 24] = "USSurveyMile", g[g.Max = 24] = "Max", g))(nG || {}), ZG = ((g) => (g[g.Center = 0] = "Center", g[g.Left = 1] = "Left", g[g.Right = 2] = "Right", g[g.OverFirst = 3] = "OverFirst", g[g.OverSecond = 4] = "OverSecond", g))(ZG || {}), fG = ((g) => (g[g.Center = 0] = "Center", g[g.Above = 1] = "Above", g[g.Outside = 2] = "Outside", g[g.JIS = 3] = "JIS", g[g.Below = 4] = "Below", g))(fG || {}), qG = ((g) => (g[g.Feet = 0] = "Feet", g[g.None = 1] = "None", g[g.Inch = 2] = "Inch", g[g.FeetAndInch = 3] = "FeetAndInch", g[g.Leading = 4] = "Leading", g[g.Trailing = 8] = "Trailing", g[g.LeadingAndTrailing = 12] = "LeadingAndTrailing", g))(qG || {}), pG = ((g) => (g[g.None = 0] = "None", g[g.Leading = 1] = "Leading", g[g.Trailing = 2] = "Trailing", g[g.LeadingAndTrailing = 3] = "LeadingAndTrailing", g))(pG || {}), eG = ((g) => (g[g.Bottom = 0] = "Bottom", g[g.Middle = 1] = "Middle", g[g.Top = 2] = "Top", g))(eG || {});
@@ -2267,6 +2267,8 @@ const mG = {
2267
2267
  CELWEIGHT: "CELWEIGHT",
2268
2268
  CLAYER: "CLAYER",
2269
2269
  COLORTHEME: "COLORTHEME",
2270
+ DYNMODE: "DYNMODE",
2271
+ DYNPROMPT: "DYNPROMPT",
2270
2272
  EXTMAX: "EXTMAX",
2271
2273
  EXTMIN: "EXTMIN",
2272
2274
  INSUNITS: "INSUNITS",
@@ -2277,22 +2279,23 @@ const mG = {
2277
2279
  PDMODE: "PDMODE",
2278
2280
  PDSIZE: "PDSIZE",
2279
2281
  PICKBOX: "PICKBOX",
2282
+ SHORTCUTMENU: "SHORTCUTMENU",
2280
2283
  TEXTSTYLE: "TEXTSTYLE",
2281
2284
  WHITEBKCOLOR: "WHITEBKCOLOR"
2282
2285
  };
2283
2286
  Object.freeze(
2284
2287
  Object.values(mG)
2285
2288
  );
2286
- var aA, pQ, YA, FA, eQ, $A, mg, Rg, sA, Gg, Ag, lg, ug, Wg, qA, hg, FQ, mQ, rg, Pg, uQ, WQ, rQ, lA, wg, oA, jg, PQ, r, xA, jQ, dA, XQ, Jg, QA, _Q, Lg, Xg, $C, AB, Qg, $Q, _g, bA, Mg, Hg, ag, AC, gC, Sg, $g, AQ, gB, QC, gQ, sg, QQ, SA, Ng, pA, QB, yA, CB, cg, eA, CQ, CC, BQ, mA, tg, uA, Tg, eB, IQ, WA;
2287
- (aA = {})[aA.None = 0] = "None", aA[aA.Anonymous = 1] = "Anonymous", aA[aA.NonConstant = 2] = "NonConstant", aA[aA.Xref = 4] = "Xref", aA[aA.XrefOverlay = 8] = "XrefOverlay", aA[aA.ExternallyDependent = 16] = "ExternallyDependent", aA[aA.ResolvedOrDependent = 32] = "ResolvedOrDependent", aA[aA.ReferencedXref = 64] = "ReferencedXref";
2289
+ var sA, pQ, YA, FA, eQ, $A, mg, ig, SA, Gg, Ag, lg, ug, Wg, qA, hg, FQ, mQ, rg, Pg, uQ, WQ, rQ, lA, wg, oA, jg, PQ, r, xA, jQ, dA, XQ, Jg, QA, _Q, Lg, Xg, $C, AB, Qg, $Q, _g, bA, Mg, Hg, sg, AC, gC, ag, $g, AQ, gB, QC, gQ, Sg, QQ, aA, Ng, pA, QB, RA, CB, cg, eA, CQ, CC, BQ, mA, tg, uA, Tg, eB, IQ, WA;
2290
+ (sA = {})[sA.None = 0] = "None", sA[sA.Anonymous = 1] = "Anonymous", sA[sA.NonConstant = 2] = "NonConstant", sA[sA.Xref = 4] = "Xref", sA[sA.XrefOverlay = 8] = "XrefOverlay", sA[sA.ExternallyDependent = 16] = "ExternallyDependent", sA[sA.ResolvedOrDependent = 32] = "ResolvedOrDependent", sA[sA.ReferencedXref = 64] = "ReferencedXref";
2288
2291
  (pQ = {})[pQ.BYBLOCK = 0] = "BYBLOCK", pQ[pQ.BYLAYER = 256] = "BYLAYER";
2289
2292
  (YA = {})[YA.Rotated = 0] = "Rotated", YA[YA.Aligned = 1] = "Aligned", YA[YA.Angular = 2] = "Angular", YA[YA.Diameter = 3] = "Diameter", YA[YA.Radius = 4] = "Radius", YA[YA.Angular3Point = 5] = "Angular3Point", YA[YA.Ordinate = 6] = "Ordinate", YA[YA.ReferenceIsExclusive = 32] = "ReferenceIsExclusive", YA[YA.IsOrdinateXTypeFlag = 64] = "IsOrdinateXTypeFlag", YA[YA.IsCustomTextPositionFlag = 128] = "IsCustomTextPositionFlag";
2290
2293
  (FA = {})[FA.TopLeft = 1] = "TopLeft", FA[FA.TopCenter = 2] = "TopCenter", FA[FA.TopRight = 3] = "TopRight", FA[FA.MiddleLeft = 4] = "MiddleLeft", FA[FA.MiddleCenter = 5] = "MiddleCenter", FA[FA.MiddleRight = 6] = "MiddleRight", FA[FA.BottomLeft = 7] = "BottomLeft", FA[FA.BottomCenter = 8] = "BottomCenter", FA[FA.BottomRight = 9] = "BottomRight";
2291
2294
  (eQ = {})[eQ.AtLeast = 1] = "AtLeast", eQ[eQ.Exact = 2] = "Exact";
2292
2295
  var mB = (($A = {})[$A.Center = 0] = "Center", $A[$A.Above = 1] = "Above", $A[$A.Outside = 2] = "Outside", $A[$A.JIS = 3] = "JIS", $A[$A.Below = 4] = "Below", $A);
2293
2296
  (mg = {})[mg.WithDimension = 0] = "WithDimension", mg[mg.AddLeader = 1] = "AddLeader", mg[mg.Independent = 2] = "Independent";
2294
- (Rg = {})[Rg.BothOutside = 0] = "BothOutside", Rg[Rg.ArrowFirst = 1] = "ArrowFirst", Rg[Rg.TextFirst = 2] = "TextFirst", Rg[Rg.Auto = 3] = "Auto";
2295
- var EQ = ((sA = {})[sA.Feet = 0] = "Feet", sA[sA.None = 1] = "None", sA[sA.Inch = 2] = "Inch", sA[sA.FeetAndInch = 3] = "FeetAndInch", sA[sA.Leading = 4] = "Leading", sA[sA.Trailing = 8] = "Trailing", sA[sA.LeadingAndTrailing = 12] = "LeadingAndTrailing", sA), uG = ((Gg = {})[Gg.None = 0] = "None", Gg[Gg.Leading = 1] = "Leading", Gg[Gg.Trailing = 2] = "Trailing", Gg[Gg.LeadingAndTrailing = 3] = "LeadingAndTrailing", Gg), WG = ((Ag = {})[Ag.Center = 0] = "Center", Ag[Ag.First = 1] = "First", Ag[Ag.Second = 2] = "Second", Ag[Ag.OverFirst = 3] = "OverFirst", Ag[Ag.OverSecond = 4] = "OverSecond", Ag), rG = ((lg = {})[lg.Bottom = 0] = "Bottom", lg[lg.Center = 1] = "Center", lg[lg.Top = 2] = "Top", lg);
2297
+ (ig = {})[ig.BothOutside = 0] = "BothOutside", ig[ig.ArrowFirst = 1] = "ArrowFirst", ig[ig.TextFirst = 2] = "TextFirst", ig[ig.Auto = 3] = "Auto";
2298
+ var EQ = ((SA = {})[SA.Feet = 0] = "Feet", SA[SA.None = 1] = "None", SA[SA.Inch = 2] = "Inch", SA[SA.FeetAndInch = 3] = "FeetAndInch", SA[SA.Leading = 4] = "Leading", SA[SA.Trailing = 8] = "Trailing", SA[SA.LeadingAndTrailing = 12] = "LeadingAndTrailing", SA), uG = ((Gg = {})[Gg.None = 0] = "None", Gg[Gg.Leading = 1] = "Leading", Gg[Gg.Trailing = 2] = "Trailing", Gg[Gg.LeadingAndTrailing = 3] = "LeadingAndTrailing", Gg), WG = ((Ag = {})[Ag.Center = 0] = "Center", Ag[Ag.First = 1] = "First", Ag[Ag.Second = 2] = "Second", Ag[Ag.OverFirst = 3] = "OverFirst", Ag[Ag.OverSecond = 4] = "OverSecond", Ag), rG = ((lg = {})[lg.Bottom = 0] = "Bottom", lg[lg.Center = 1] = "Center", lg[lg.Top = 2] = "Top", lg);
2296
2299
  (ug = {})[ug.None = 0] = "None", ug[ug.UseDrawingBackground = 1] = "UseDrawingBackground", ug[ug.Custom = 2] = "Custom";
2297
2300
  (Wg = {})[Wg.Horizontal = 0] = "Horizontal", Wg[Wg.Diagonal = 1] = "Diagonal", Wg[Wg.NotStacked = 2] = "NotStacked";
2298
2301
  (qA = {})[qA.Scientific = 1] = "Scientific", qA[qA.Decimal = 2] = "Decimal", qA[qA.Engineering = 3] = "Engineering", qA[qA.Architectural = 4] = "Architectural", qA[qA.Fractional = 5] = "Fractional", qA[qA.WindowDesktop = 6] = "WindowDesktop";
@@ -2328,37 +2331,37 @@ function DQ(g) {
2328
2331
  let KC = Symbol();
2329
2332
  function u(g, A) {
2330
2333
  return (C, Q, D) => {
2331
- let o = function(U, i = !1) {
2334
+ let o = function(U, y = !1) {
2332
2335
  return U.reduce((F, h) => {
2333
2336
  h.pushContext && F.push({});
2334
2337
  let L = F[F.length - 1];
2335
- for (let R of typeof h.code == "number" ? [h.code] : h.code) {
2336
- let c = L[R] ?? (L[R] = []);
2338
+ for (let i of typeof h.code == "number" ? [h.code] : h.code) {
2339
+ let c = L[i] ?? (L[i] = []);
2337
2340
  h.isMultiple && c.length, c.push(h);
2338
2341
  }
2339
2342
  return F;
2340
2343
  }, [{}]);
2341
2344
  }(g, Q.debug), w = !1, k = o.length - 1;
2342
2345
  for (; !tA(C, 0, "EOF"); ) {
2343
- let U = function(s, a, v) {
2344
- return s.find((V, O) => {
2346
+ let U = function(S, s, v) {
2347
+ return S.find((V, O) => {
2345
2348
  var z;
2346
- return O >= v && ((z = V[a]) == null ? void 0 : z.length);
2349
+ return O >= v && ((z = V[s]) == null ? void 0 : z.length);
2347
2350
  });
2348
- }(o, C.code, k), i = U == null ? void 0 : U[C.code], F = i == null ? void 0 : i[i.length - 1];
2351
+ }(o, C.code, k), y = U == null ? void 0 : U[C.code], F = y == null ? void 0 : y[y.length - 1];
2349
2352
  if (!U || !F) {
2350
2353
  Q.rewind();
2351
2354
  break;
2352
2355
  }
2353
2356
  F.isMultiple || U[C.code].pop();
2354
- let { name: h, parser: L, isMultiple: R, isReducible: c } = F, H = L == null ? void 0 : L(C, Q, D);
2357
+ let { name: h, parser: L, isMultiple: i, isReducible: c } = F, H = L == null ? void 0 : L(C, Q, D);
2355
2358
  if (H === KC) {
2356
2359
  Q.rewind();
2357
2360
  break;
2358
2361
  }
2359
2362
  if (h) {
2360
- let [s, a] = XG(D, h);
2361
- R && !c ? (Object.prototype.hasOwnProperty.call(s, a) || (s[a] = []), s[a].push(H)) : s[a] = H;
2363
+ let [S, s] = XG(D, h);
2364
+ i && !c ? (Object.prototype.hasOwnProperty.call(S, s) || (S[s] = []), S[s].push(H)) : S[s] = H;
2362
2365
  }
2363
2366
  F.pushContext && (k -= 1), w = !0, C = Q.next();
2364
2367
  }
@@ -2487,28 +2490,28 @@ var Gw = ((bA = {})[bA.LEFT = 0] = "LEFT", bA[bA.CENTER = 1] = "CENTER", bA[bA.R
2487
2490
  function KI(g, A, C) {
2488
2491
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2489
2492
  }
2490
- let FI = { thickness: 0, rotation: 0, xScale: 1, obliqueAngle: 0, styleName: "STANDARD", generationFlag: 0, halign: Gw.LEFT, valign: ww.BASELINE, extrusionDirection: { x: 0, y: 0, z: 1 } }, iI = [{ code: 73, name: "valign", parser: Y }, { code: 100 }, { code: 210, name: "extrusionDirection", parser: t }, { code: 11, name: "endPoint", parser: t }, { code: 72, name: "valign", parser: Y }, { code: 72, name: "halign", parser: Y }, { code: 71, name: "generationFlag", parser: Y }, { code: 7, name: "styleName", parser: Y }, { code: 51, name: "obliqueAngle", parser: Y }, { code: 41, name: "xScale", parser: Y }, { code: 50, name: "rotation", parser: Y }, { code: 1, name: "text", parser: Y }, { code: 40, name: "textHeight", parser: Y }, { code: 10, name: "startPoint", parser: t }, { code: 39, name: "thickness", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2491
- class yI {
2493
+ let FI = { thickness: 0, rotation: 0, xScale: 1, obliqueAngle: 0, styleName: "STANDARD", generationFlag: 0, halign: Gw.LEFT, valign: ww.BASELINE, extrusionDirection: { x: 0, y: 0, z: 1 } }, yI = [{ code: 73, name: "valign", parser: Y }, { code: 100 }, { code: 210, name: "extrusionDirection", parser: t }, { code: 11, name: "endPoint", parser: t }, { code: 72, name: "valign", parser: Y }, { code: 72, name: "halign", parser: Y }, { code: 71, name: "generationFlag", parser: Y }, { code: 7, name: "styleName", parser: Y }, { code: 51, name: "obliqueAngle", parser: Y }, { code: 41, name: "xScale", parser: Y }, { code: 50, name: "rotation", parser: Y }, { code: 1, name: "text", parser: Y }, { code: 40, name: "textHeight", parser: Y }, { code: 10, name: "startPoint", parser: t }, { code: 39, name: "thickness", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2494
+ class RI {
2492
2495
  parseEntity(A, C) {
2493
2496
  let Q = {};
2494
2497
  return this.parser(C, A, Q), Q;
2495
2498
  }
2496
2499
  constructor() {
2497
- KI(this, "parser", u(iI, FI));
2500
+ KI(this, "parser", u(yI, FI));
2498
2501
  }
2499
2502
  }
2500
- function RI(g, A, C) {
2503
+ function iI(g, A, C) {
2501
2504
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2502
2505
  }
2503
- KI(yI, "ForEntityName", "TEXT");
2504
- let Mw = { ...FI }, Nw = [{ code: 2 }, { code: 40, name: "annotationScale", parser: Y }, { code: 10, name: "alignmentPoint", parser: t }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: Y }, { code: 70, name: "numberOfSecondaryAttributes", parser: Y }, { code: 70, name: "isReallyLocked", parser: _ }, { code: 70, name: "mtextFlag", parser: Y }, { code: 280, name: "isDuplicatedRecord", parser: _ }, { code: 100 }, { code: 280, name: "isLocked", parser: _ }, { code: 74, name: "valign", parser: Y }, { code: 73 }, { code: 70, name: "attributeFlag", parser: Y }, { code: 2, name: "tag", parser: Y }, { code: 3, name: "prompt", parser: Y }, { code: 280 }, { code: 100, name: "subclassMarker", parser: Y }, ...iI.slice(2)];
2506
+ KI(RI, "ForEntityName", "TEXT");
2507
+ let Mw = { ...FI }, Nw = [{ code: 2 }, { code: 40, name: "annotationScale", parser: Y }, { code: 10, name: "alignmentPoint", parser: t }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: Y }, { code: 70, name: "numberOfSecondaryAttributes", parser: Y }, { code: 70, name: "isReallyLocked", parser: _ }, { code: 70, name: "mtextFlag", parser: Y }, { code: 280, name: "isDuplicatedRecord", parser: _ }, { code: 100 }, { code: 280, name: "isLocked", parser: _ }, { code: 74, name: "valign", parser: Y }, { code: 73 }, { code: 70, name: "attributeFlag", parser: Y }, { code: 2, name: "tag", parser: Y }, { code: 3, name: "prompt", parser: Y }, { code: 280 }, { code: 100, name: "subclassMarker", parser: Y }, ...yI.slice(2)];
2505
2508
  class hI {
2506
2509
  parseEntity(A, C) {
2507
2510
  let Q = {};
2508
2511
  return this.parser(C, A, Q), Q;
2509
2512
  }
2510
2513
  constructor() {
2511
- RI(this, "parser", u(Nw, Mw));
2514
+ iI(this, "parser", u(Nw, Mw));
2512
2515
  }
2513
2516
  }
2514
2517
  function* kC(g, A = 1 / 0, C = 1) {
@@ -2517,7 +2520,7 @@ function* kC(g, A = 1 / 0, C = 1) {
2517
2520
  function uB(g) {
2518
2521
  return { x: g.x ?? 0, y: g.y ?? 0, z: g.z ?? 0 };
2519
2522
  }
2520
- RI(hI, "ForEntityName", "ATTDEF");
2523
+ iI(hI, "ForEntityName", "ATTDEF");
2521
2524
  var Yw = [0, 16711680, 16776960, 65280, 65535, 255, 16711935, 16777215, 8421504, 12632256, 16711680, 16744319, 13369344, 13395558, 10027008, 10046540, 8323072, 8339263, 4980736, 4990502, 16727808, 16752511, 13382400, 13401958, 10036736, 10051404, 8331008, 8343359, 4985600, 4992806, 16744192, 16760703, 13395456, 13408614, 10046464, 10056268, 8339200, 8347455, 4990464, 4995366, 16760576, 16768895, 13408512, 13415014, 10056192, 10061132, 8347392, 8351551, 4995328, 4997670, 16776960, 16777087, 13421568, 13421670, 10000384, 10000460, 8355584, 8355647, 5000192, 5000230, 12582656, 14679935, 10079232, 11717734, 7510016, 8755276, 6258432, 7307071, 3755008, 4344870, 8388352, 12582783, 6736896, 10079334, 5019648, 7510092, 4161280, 6258495, 2509824, 3755046, 4194048, 10485631, 3394560, 8375398, 2529280, 6264908, 2064128, 5209919, 1264640, 3099686, 65280, 8388479, 52224, 6736998, 38912, 5019724, 32512, 4161343, 19456, 2509862, 65343, 8388511, 52275, 6737023, 38950, 5019743, 32543, 4161359, 19475, 2509871, 65407, 8388543, 52326, 6737049, 38988, 5019762, 32575, 4161375, 19494, 2509881, 65471, 8388575, 52377, 6737074, 39026, 5019781, 32607, 4161391, 19513, 2509890, 65535, 8388607, 52428, 6737100, 39064, 5019800, 32639, 4161407, 19532, 2509900, 49151, 8380415, 39372, 6730444, 29336, 5014936, 24447, 4157311, 14668, 2507340, 32767, 8372223, 26316, 6724044, 19608, 5010072, 16255, 4153215, 9804, 2505036, 16383, 8364031, 13260, 6717388, 9880, 5005208, 8063, 4149119, 4940, 2502476, 255, 8355839, 204, 6710988, 152, 5000344, 127, 4145023, 76, 2500172, 4129023, 10452991, 3342540, 8349388, 2490520, 6245528, 2031743, 5193599, 1245260, 3089996, 8323327, 12550143, 6684876, 10053324, 4980888, 7490712, 4128895, 6242175, 2490444, 3745356, 12517631, 14647295, 10027212, 11691724, 7471256, 8735896, 6226047, 7290751, 3735628, 4335180, 16711935, 16744447, 13369548, 13395660, 9961624, 9981080, 8323199, 8339327, 4980812, 4990540, 16711871, 16744415, 13369497, 13395634, 9961586, 9981061, 8323167, 8339311, 4980793, 4990530, 16711807, 16744383, 13369446, 13395609, 9961548, 9981042, 8323135, 8339295, 4980774, 4990521, 16711743, 16744351, 13369395, 13395583, 9961510, 9981023, 8323103, 8339279, 4980755, 4990511, 3355443, 5987163, 8684676, 11382189, 14079702, 16777215];
2522
2525
  function kw(g) {
2523
2526
  return Yw[g];
@@ -2614,36 +2617,36 @@ function HI(g, A, C) {
2614
2617
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2615
2618
  }
2616
2619
  JI(LI, "ForEntityName", "MTEXT");
2617
- let iw = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, yw = [...GC.slice(GC.findIndex(({ name: g }) => g === "columnType"), GC.findIndex(({ name: g }) => g === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(g) {
2620
+ let yw = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Rw = [...GC.slice(GC.findIndex(({ name: g }) => g === "columnType"), GC.findIndex(({ name: g }) => g === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(g) {
2618
2621
  if (!tA(g, 0, "MTEXT")) return KC;
2619
2622
  } }, { code: 2, name: "definitionTag", parser: Y }, { code: 40, name: "annotationScale", parser: Y }, { code: 10, name: "alignmentPoint", parser: t }, { code: 340, name: "secondaryAttributesHardId", parser: Y }, { code: 70, name: "numberOfSecondaryAttributes", parser: Y }, { code: 70, name: "isReallyLocked", parser: _ }, { code: 70, name: "mtextFlag", parser: Y }, { code: 280, name: "isDuplicatedEntriesKeep", parser: _ }, { code: 100 }, { code: 280, name: "lockPositionFlag", parser: _ }, { code: 210, name: "extrusionDirection", parser: t }, { code: 11, name: "alignmentPoint", parser: t }, { code: 74, name: "verticalJustification", parser: Y }, { code: 72, name: "horizontalJustification", parser: Y }, { code: 71, name: "textGenerationFlag", parser: Y }, { code: 7, name: "textStyle", parser: Y }, { code: 51, name: "obliqueAngle", parser: Y }, { code: 41, name: "scale", parser: Y }, { code: 50, name: "rotation", parser: Y }, { code: 73 }, { code: 70, name: "attributeFlag", parser: Y }, { code: 2, name: "tag", parser: Y }, { code: 280 }, { code: 100, name: "subclassMarker", parser: Y }, { code: 1, name: "text", parser: Y }, { code: 40, name: "textHeight", parser: Y }, { code: 10, name: "startPoint", parser: t }, { code: 39, name: "thickness", parser: Y }, { code: 100 }, ...$];
2620
- class aI {
2623
+ class sI {
2621
2624
  parseEntity(A, C) {
2622
2625
  let Q = {};
2623
2626
  return this.parser(C, A, Q), Q;
2624
2627
  }
2625
2628
  constructor() {
2626
- HI(this, "parser", u(yw, iw));
2629
+ HI(this, "parser", u(Rw, yw));
2627
2630
  }
2628
2631
  }
2629
- function SI(g, A, C) {
2632
+ function aI(g, A, C) {
2630
2633
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2631
2634
  }
2632
- HI(aI, "ForEntityName", "ATTRIB");
2633
- let Rw = [...FC("data"), { code: 70, name: "version", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2634
- class sI {
2635
+ HI(sI, "ForEntityName", "ATTRIB");
2636
+ let iw = [...FC("data"), { code: 70, name: "version", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2637
+ class SI {
2635
2638
  parseEntity(A, C) {
2636
2639
  let Q = {};
2637
2640
  return this.parser(C, A, Q), Q;
2638
2641
  }
2639
2642
  constructor() {
2640
- SI(this, "parser", u(Rw));
2643
+ aI(this, "parser", u(iw));
2641
2644
  }
2642
2645
  }
2643
2646
  function cI(g, A, C) {
2644
2647
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2645
2648
  }
2646
- SI(sI, "ForEntityName", "BODY");
2649
+ aI(SI, "ForEntityName", "BODY");
2647
2650
  let hw = { thickness: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Jw = [{ code: 210, name: "extrusionDirection", parser: t }, { code: 40, name: "radius", parser: Y }, { code: 10, name: "center", parser: t }, { code: 39, name: "thickness", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2648
2651
  class tI {
2649
2652
  parseEntity(A, C) {
@@ -2672,22 +2675,22 @@ function dI(g, A, C) {
2672
2675
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2673
2676
  }
2674
2677
  TI(xI, "ForEntityName", "ELLIPSE");
2675
- let aw = [{ code: 13, name: "vertices.3", parser: t }, { code: 12, name: "vertices.2", parser: t }, { code: 11, name: "vertices.1", parser: t }, { code: 10, name: "vertices.0", parser: t }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2678
+ let sw = [{ code: 13, name: "vertices.3", parser: t }, { code: 12, name: "vertices.2", parser: t }, { code: 11, name: "vertices.1", parser: t }, { code: 10, name: "vertices.0", parser: t }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
2676
2679
  class zI {
2677
2680
  parseEntity(A, C) {
2678
2681
  let Q = {};
2679
2682
  return this.parser(C, A, Q), Q;
2680
2683
  }
2681
2684
  constructor() {
2682
- dI(this, "parser", u(aw));
2685
+ dI(this, "parser", u(sw));
2683
2686
  }
2684
2687
  }
2685
2688
  dI(zI, "ForEntityName", "3DFACE");
2686
2689
  (Hg = {})[Hg.First = 1] = "First", Hg[Hg.Second = 2] = "Second", Hg[Hg.Third = 4] = "Third", Hg[Hg.Fourth = 8] = "Fourth";
2687
- let VI = [{ code: 330, name: "sourceBoundaryObjects", parser: Y, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: Y }], Sw = [{ code: 11, name: "end", parser: t }, { code: 10, name: "start", parser: t }], sw = [{ code: 73, name: "isCCW", parser: _ }, { code: 51, name: "endAngle", parser: Y }, { code: 50, name: "startAngle", parser: Y }, { code: 40, name: "radius", parser: Y }, { code: 10, name: "center", parser: t }], cw = [{ code: 73, name: "isCCW", parser: _ }, { code: 51, name: "endAngle", parser: Y }, { code: 50, name: "startAngle", parser: Y }, { code: 40, name: "lengthOfMinorAxis", parser: Y }, { code: 11, name: "end", parser: t }, { code: 10, name: "center", parser: t }], tw = [{ code: 13, name: "endTangent", parser: t }, { code: 12, name: "startTangent", parser: t }, { code: 11, name: "fitDatum", isMultiple: !0, parser: t }, { code: 97, name: "numberOfFitData", parser: Y }, { code: 10, name: "controlPoints", isMultiple: !0, parser(g, A) {
2690
+ let VI = [{ code: 330, name: "sourceBoundaryObjects", parser: Y, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: Y }], aw = [{ code: 11, name: "end", parser: t }, { code: 10, name: "start", parser: t }], Sw = [{ code: 73, name: "isCCW", parser: _ }, { code: 51, name: "endAngle", parser: Y }, { code: 50, name: "startAngle", parser: Y }, { code: 40, name: "radius", parser: Y }, { code: 10, name: "center", parser: t }], cw = [{ code: 73, name: "isCCW", parser: _ }, { code: 51, name: "endAngle", parser: Y }, { code: 50, name: "startAngle", parser: Y }, { code: 40, name: "lengthOfMinorAxis", parser: Y }, { code: 11, name: "end", parser: t }, { code: 10, name: "center", parser: t }], tw = [{ code: 13, name: "endTangent", parser: t }, { code: 12, name: "startTangent", parser: t }, { code: 11, name: "fitDatum", isMultiple: !0, parser: t }, { code: 97, name: "numberOfFitData", parser: Y }, { code: 10, name: "controlPoints", isMultiple: !0, parser(g, A) {
2688
2691
  let C = { ...DQ(A), weight: 1 };
2689
2692
  return (g = A.next()).code === 42 ? C.weight = g.value : A.rewind(), C;
2690
- } }, { code: 40, name: "knots", isMultiple: !0, parser: Y }, { code: 96, name: "numberOfControlPoints", parser: Y }, { code: 95, name: "numberOfKnots", parser: Y }, { code: 74, name: "isPeriodic", parser: _ }, { code: 73, name: "splineFlag", parser: Y }, { code: 94, name: "degree", parser: Y }], Tw = { [BC.Line]: Sw, [BC.Circular]: sw, [BC.Elliptic]: cw, [BC.Spline]: tw }, xw = [...VI, { code: 72, name: "edges", parser(g, A) {
2693
+ } }, { code: 40, name: "knots", isMultiple: !0, parser: Y }, { code: 96, name: "numberOfControlPoints", parser: Y }, { code: 95, name: "numberOfKnots", parser: Y }, { code: 74, name: "isPeriodic", parser: _ }, { code: 73, name: "splineFlag", parser: Y }, { code: 94, name: "degree", parser: Y }], Tw = { [BC.Line]: aw, [BC.Circular]: Sw, [BC.Elliptic]: cw, [BC.Spline]: tw }, xw = [...VI, { code: 72, name: "edges", parser(g, A) {
2691
2694
  let C = { type: g.value }, Q = u(Tw[C.type]);
2692
2695
  if (!Q) throw Error(`Invalid edge type ${C.type}`);
2693
2696
  return Q(g = A.next(), A, C), C;
@@ -2736,7 +2739,7 @@ class bI {
2736
2739
  }
2737
2740
  }
2738
2741
  lI(bI, "ForEntityName", "IMAGE");
2739
- (ag = {})[ag.ShowImage = 1] = "ShowImage", ag[ag.ShowImageWhenNotAlignedWithScreen = 2] = "ShowImageWhenNotAlignedWithScreen", ag[ag.UseClippingBoundary = 4] = "UseClippingBoundary", ag[ag.TransparencyIsOn = 8] = "TransparencyIsOn";
2742
+ (sg = {})[sg.ShowImage = 1] = "ShowImage", sg[sg.ShowImageWhenNotAlignedWithScreen = 2] = "ShowImageWhenNotAlignedWithScreen", sg[sg.UseClippingBoundary = 4] = "UseClippingBoundary", sg[sg.TransparencyIsOn = 8] = "TransparencyIsOn";
2740
2743
  (AC = {})[AC.Rectangular = 1] = "Rectangular", AC[AC.Polygonal = 2] = "Polygonal";
2741
2744
  (gC = {})[gC.Outside = 0] = "Outside", gC[gC.Inside = 1] = "Inside";
2742
2745
  function nI(g, A, C) {
@@ -2767,7 +2770,7 @@ class qI {
2767
2770
  }
2768
2771
  }
2769
2772
  fI(qI, "ForEntityName", "LEADER");
2770
- (Sg = {})[Sg.TextAnnotation = 0] = "TextAnnotation", Sg[Sg.ToleranceAnnotation = 1] = "ToleranceAnnotation", Sg[Sg.BlockReferenceAnnotation = 2] = "BlockReferenceAnnotation", Sg[Sg.NoAnnotation = 3] = "NoAnnotation";
2773
+ (ag = {})[ag.TextAnnotation = 0] = "TextAnnotation", ag[ag.ToleranceAnnotation = 1] = "ToleranceAnnotation", ag[ag.BlockReferenceAnnotation = 2] = "BlockReferenceAnnotation", ag[ag.NoAnnotation = 3] = "NoAnnotation";
2771
2774
  function pI(g, A, C) {
2772
2775
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
2773
2776
  }
@@ -2861,7 +2864,7 @@ class jI {
2861
2864
  }
2862
2865
  PI(jI, "ForEntityName", "MLINE");
2863
2866
  (gQ = {})[gQ.Top = 0] = "Top", gQ[gQ.Zero = 1] = "Zero", gQ[gQ.Bottom = 2] = "Bottom";
2864
- (sg = {})[sg.HasVertex = 1] = "HasVertex", sg[sg.Closed = 2] = "Closed", sg[sg.SuppressStartCaps = 4] = "SuppressStartCaps", sg[sg.SuppressEndCaps = 8] = "SuppressEndCaps";
2867
+ (Sg = {})[Sg.HasVertex = 1] = "HasVertex", Sg[Sg.Closed = 2] = "Closed", Sg[Sg.SuppressStartCaps = 4] = "SuppressStartCaps", Sg[Sg.SuppressEndCaps = 8] = "SuppressEndCaps";
2865
2868
  (QQ = {})[QQ.LEFT_TO_RIGHT = 1] = "LEFT_TO_RIGHT", QQ[QQ.TOP_TO_BOTTOM = 3] = "TOP_TO_BOTTOM", QQ[QQ.BY_STYLE = 5] = "BY_STYLE";
2866
2869
  function XI(g, A, C) {
2867
2870
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
@@ -2939,7 +2942,7 @@ class CE {
2939
2942
  }
2940
2943
  }
2941
2944
  QE(CE, "ForEntityName", "POLYLINE");
2942
- (SA = {})[SA.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", SA[SA.CURVE_FIT = 2] = "CURVE_FIT", SA[SA.SPLINE_FIT = 4] = "SPLINE_FIT", SA[SA.POLYLINE_3D = 8] = "POLYLINE_3D", SA[SA.POLYGON_3D = 16] = "POLYGON_3D", SA[SA.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", SA[SA.POLYFACE = 64] = "POLYFACE", SA[SA.CONTINUOUS = 128] = "CONTINUOUS";
2945
+ (aA = {})[aA.CLOSED_POLYLINE = 1] = "CLOSED_POLYLINE", aA[aA.CURVE_FIT = 2] = "CURVE_FIT", aA[aA.SPLINE_FIT = 4] = "SPLINE_FIT", aA[aA.POLYLINE_3D = 8] = "POLYLINE_3D", aA[aA.POLYGON_3D = 16] = "POLYGON_3D", aA[aA.CLOSED_POLYGON = 32] = "CLOSED_POLYGON", aA[aA.POLYFACE = 64] = "POLYFACE", aA[aA.CONTINUOUS = 128] = "CONTINUOUS";
2943
2946
  (Ng = {})[Ng.NONE = 0] = "NONE", Ng[Ng.QUADRATIC = 5] = "QUADRATIC", Ng[Ng.CUBIC = 6] = "CUBIC", Ng[Ng.BEZIER = 8] = "BEZIER";
2944
2947
  function BE(g, A, C) {
2945
2948
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
@@ -3029,14 +3032,14 @@ kE(UE, "ForEntityName", "SPLINE");
3029
3032
  function KE(g, A, C) {
3030
3033
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
3031
3034
  }
3032
- let iM = [{ code: 280, name: "shadowMapSoftness", parser: Y }, { code: 71, name: "shadowMapSize", parser: Y }, { code: 70, name: "shadowType", parser: Y }, { code: 292, name: "isSummerTime", parser: _ }, { code: 92, name: "time", parser: Y }, { code: 91, name: "julianDay", parser: Y }, { code: 291, name: "hasShadow", parser: _ }, { code: 40, name: "intensity", parser: Y }, { code: 421, name: "lightColorInstance", parser: Y }, { code: 63, name: "lightColorIndex", parser: Y }, { code: 290, name: "isOn", parser: _ }, { code: 90, name: "version", parser: Y }, { code: 100, name: "subclassMarker", parser: Y, pushContext: !0 }, ...$.filter((g) => g.code !== 100)];
3035
+ let yM = [{ code: 280, name: "shadowMapSoftness", parser: Y }, { code: 71, name: "shadowMapSize", parser: Y }, { code: 70, name: "shadowType", parser: Y }, { code: 292, name: "isSummerTime", parser: _ }, { code: 92, name: "time", parser: Y }, { code: 91, name: "julianDay", parser: Y }, { code: 291, name: "hasShadow", parser: _ }, { code: 40, name: "intensity", parser: Y }, { code: 421, name: "lightColorInstance", parser: Y }, { code: 63, name: "lightColorIndex", parser: Y }, { code: 290, name: "isOn", parser: _ }, { code: 90, name: "version", parser: Y }, { code: 100, name: "subclassMarker", parser: Y, pushContext: !0 }, ...$.filter((g) => g.code !== 100)];
3033
3036
  class FE {
3034
3037
  parseEntity(A, C) {
3035
3038
  let Q = { layer: "" };
3036
3039
  return this.parser(C, A, Q), Q;
3037
3040
  }
3038
3041
  constructor() {
3039
- KE(this, "parser", u(iM));
3042
+ KE(this, "parser", u(yM));
3040
3043
  }
3041
3044
  }
3042
3045
  KE(FE, "ForEntityName", "SUN");
@@ -3181,7 +3184,7 @@ class MC {
3181
3184
  U.topBorderVisibility = !!(o.value ?? !0), o = D.next();
3182
3185
  break;
3183
3186
  case 301:
3184
- (function(i, F, h) {
3187
+ (function(y, F, h) {
3185
3188
  for (; h.code !== 304; ) switch (h.code) {
3186
3189
  case 301:
3187
3190
  case 93:
@@ -3190,13 +3193,13 @@ class MC {
3190
3193
  h = F.next();
3191
3194
  break;
3192
3195
  case 1:
3193
- i.text = h.value, h = F.next();
3196
+ y.text = h.value, h = F.next();
3194
3197
  break;
3195
3198
  case 300:
3196
- i.attrText = h.value, h = F.next();
3199
+ y.attrText = h.value, h = F.next();
3197
3200
  break;
3198
3201
  case 302:
3199
- i.text = h.value ? h.value : i.text, h = F.next();
3202
+ y.text = h.value ? h.value : y.text, h = F.next();
3200
3203
  break;
3201
3204
  default:
3202
3205
  h = F.next();
@@ -3216,30 +3219,30 @@ class MC {
3216
3219
  return Q;
3217
3220
  }
3218
3221
  }
3219
- function iE(g, A, C) {
3222
+ function yE(g, A, C) {
3220
3223
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
3221
3224
  }
3222
3225
  (QB = "ForEntityName") in MC ? Object.defineProperty(MC, QB, { value: "ACAD_TABLE", enumerable: !0, configurable: !0, writable: !0 }) : MC[QB] = "ACAD_TABLE";
3223
- let yM = [{ code: 11, name: "xAxisDirection", parser: t }, { code: 210, name: "extrusionDirection", parser: t }, { code: 1, name: "text", parser: Y }, { code: 10, name: "position", parser: t }, { code: 3, name: "styleName", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
3224
- class yE {
3226
+ let RM = [{ code: 11, name: "xAxisDirection", parser: t }, { code: 210, name: "extrusionDirection", parser: t }, { code: 1, name: "text", parser: Y }, { code: 10, name: "position", parser: t }, { code: 3, name: "styleName", parser: Y }, { code: 100, name: "subclassMarker", parser: Y }, ...$];
3227
+ class RE {
3225
3228
  parseEntity(A, C) {
3226
3229
  let Q = {};
3227
3230
  return this.parser(C, A, Q), Q;
3228
3231
  }
3229
3232
  constructor() {
3230
- iE(this, "parser", u(yM));
3233
+ yE(this, "parser", u(RM));
3231
3234
  }
3232
3235
  }
3233
- iE(yE, "ForEntityName", "TOLERANCE");
3234
- (yA = {})[yA.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", yA[yA.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", yA[yA.NOT_USED = 4] = "NOT_USED", yA[yA.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", yA[yA.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", yA[yA.FOR_POLYLINE = 32] = "FOR_POLYLINE", yA[yA.FOR_POLYGON = 64] = "FOR_POLYGON", yA[yA.POLYFACE = 128] = "POLYFACE";
3235
- let RM = [{ code: [335, 343, 344, 91], name: "softPointers", isMultiple: !0, parser: Y }, { code: 361, name: "sunId", parser: Y }, { code: 431, name: "ambientLightColorName", parser: Y }, { code: 421, name: "ambientLightColorInstance", parser: Y }, { code: 63, name: "ambientLightColorIndex", parser: Y }, { code: 142, name: "contrast", parser: Y }, { code: 141, name: "brightness", parser: Y }, { code: 282, name: "defaultLightingType", parser: Y }, { code: 292, name: "isDefaultLighting", parser: _ }, { code: 348, name: "visualStyleId", parser: Y }, { code: 333, name: "shadePlotId", parser: Y }, { code: 332, name: "backgroundId", parser: Y }, { code: 61, name: "majorGridFrequency", parser: Y }, { code: 170, name: "shadePlotMode", parser: Y }, { code: 146, name: "elevation", parser: Y }, { code: 79, name: "orthographicType", parser: Y }, { code: 346, name: "ucsBaseId", parser: Y }, { code: 345, name: "ucsId", parser: Y }, { code: 112, name: "ucsYAxis", parser: t }, { code: 111, name: "ucsXAxis", parser: t }, { code: 110, name: "ucsOrigin", parser: t }, { code: 74, name: "iconFlag", parser: Y }, { code: 71, name: "ucsPerViewport", parser: Y }, { code: 281, name: "renderMode", parser: Y }, { code: 1, name: "sheetName", parser: Y }, { code: 340, name: "clippingBoundaryId", parser: Y }, { code: 90, name: "statusBitFlags", parser: Y }, { code: 331, name: "frozenLayerIds", isMultiple: !0, parser: Y }, { code: 72, name: "circleZoomPercent", parser: Y }, { code: 51, name: "viewTwistAngle", parser: Y }, { code: 50, name: "snapAngle", parser: Y }, { code: 45, name: "viewHeight", parser: Y }, { code: 44, name: "backClipZ", parser: Y }, { code: 43, name: "frontClipZ", parser: Y }, { code: 42, name: "perspectiveLensLength", parser: Y }, { code: 17, name: "targetPoint", parser: t }, { code: 16, name: "viewDirection", parser: t }, { code: 15, name: "gridSpacing", parser: t }, { code: 14, name: "snapSpacing", parser: t }, { code: 13, name: "snapBase", parser: t }, { code: 12, name: "displayCenter", parser: t }, { code: 69, name: "viewportId", parser: Y }, { code: 68, name: "status", parser: Y }, { code: 41, name: "height", parser: Y }, { code: 40, name: "width", parser: Y }, { code: 10, name: "viewportCenter", parser: t }, { code: 100, name: "subclassMarker", parser: Y, pushContext: !0 }, ...$];
3236
+ yE(RE, "ForEntityName", "TOLERANCE");
3237
+ (RA = {})[RA.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", RA[RA.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", RA[RA.NOT_USED = 4] = "NOT_USED", RA[RA.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", RA[RA.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", RA[RA.FOR_POLYLINE = 32] = "FOR_POLYLINE", RA[RA.FOR_POLYGON = 64] = "FOR_POLYGON", RA[RA.POLYFACE = 128] = "POLYFACE";
3238
+ let iM = [{ code: [335, 343, 344, 91], name: "softPointers", isMultiple: !0, parser: Y }, { code: 361, name: "sunId", parser: Y }, { code: 431, name: "ambientLightColorName", parser: Y }, { code: 421, name: "ambientLightColorInstance", parser: Y }, { code: 63, name: "ambientLightColorIndex", parser: Y }, { code: 142, name: "contrast", parser: Y }, { code: 141, name: "brightness", parser: Y }, { code: 282, name: "defaultLightingType", parser: Y }, { code: 292, name: "isDefaultLighting", parser: _ }, { code: 348, name: "visualStyleId", parser: Y }, { code: 333, name: "shadePlotId", parser: Y }, { code: 332, name: "backgroundId", parser: Y }, { code: 61, name: "majorGridFrequency", parser: Y }, { code: 170, name: "shadePlotMode", parser: Y }, { code: 146, name: "elevation", parser: Y }, { code: 79, name: "orthographicType", parser: Y }, { code: 346, name: "ucsBaseId", parser: Y }, { code: 345, name: "ucsId", parser: Y }, { code: 112, name: "ucsYAxis", parser: t }, { code: 111, name: "ucsXAxis", parser: t }, { code: 110, name: "ucsOrigin", parser: t }, { code: 74, name: "iconFlag", parser: Y }, { code: 71, name: "ucsPerViewport", parser: Y }, { code: 281, name: "renderMode", parser: Y }, { code: 1, name: "sheetName", parser: Y }, { code: 340, name: "clippingBoundaryId", parser: Y }, { code: 90, name: "statusBitFlags", parser: Y }, { code: 331, name: "frozenLayerIds", isMultiple: !0, parser: Y }, { code: 72, name: "circleZoomPercent", parser: Y }, { code: 51, name: "viewTwistAngle", parser: Y }, { code: 50, name: "snapAngle", parser: Y }, { code: 45, name: "viewHeight", parser: Y }, { code: 44, name: "backClipZ", parser: Y }, { code: 43, name: "frontClipZ", parser: Y }, { code: 42, name: "perspectiveLensLength", parser: Y }, { code: 17, name: "targetPoint", parser: t }, { code: 16, name: "viewDirection", parser: t }, { code: 15, name: "gridSpacing", parser: t }, { code: 14, name: "snapSpacing", parser: t }, { code: 13, name: "snapBase", parser: t }, { code: 12, name: "displayCenter", parser: t }, { code: 69, name: "viewportId", parser: Y }, { code: 68, name: "status", parser: Y }, { code: 41, name: "height", parser: Y }, { code: 40, name: "width", parser: Y }, { code: 10, name: "viewportCenter", parser: t }, { code: 100, name: "subclassMarker", parser: Y, pushContext: !0 }, ...$];
3236
3239
  class NC {
3237
3240
  parseEntity(A, C) {
3238
3241
  let Q = {};
3239
- return u(RM)(C, A, Q), Q;
3242
+ return u(iM)(C, A, Q), Q;
3240
3243
  }
3241
3244
  }
3242
- function RE(g, A, C) {
3245
+ function iE(g, A, C) {
3243
3246
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
3244
3247
  }
3245
3248
  (CB = "ForEntityName") in NC ? Object.defineProperty(NC, CB, { value: "VIEWPORT", enumerable: !0, configurable: !0, writable: !0 }) : NC[CB] = "VIEWPORT";
@@ -3250,10 +3253,10 @@ class hE {
3250
3253
  return this.parser(C, A, Q), Q;
3251
3254
  }
3252
3255
  constructor() {
3253
- RE(this, "parser", u(JM, hM));
3256
+ iE(this, "parser", u(JM, hM));
3254
3257
  }
3255
3258
  }
3256
- RE(hE, "ForEntityName", "WIPEOUT");
3259
+ iE(hE, "ForEntityName", "WIPEOUT");
3257
3260
  (cg = {})[cg.ShowImage = 1] = "ShowImage", cg[cg.ShowImageWhenNotAligned = 2] = "ShowImageWhenNotAligned", cg[cg.UseClippingBoundary = 4] = "UseClippingBoundary", cg[cg.Transparency = 8] = "Transparency";
3258
3261
  function JE(g, A, C) {
3259
3262
  return A in g ? Object.defineProperty(g, A, { value: C, enumerable: !0, configurable: !0, writable: !0 }) : g[A] = C, g;
@@ -3269,7 +3272,7 @@ class LE {
3269
3272
  }
3270
3273
  }
3271
3274
  JE(LE, "ForEntityName", "XLINE");
3272
- Object.fromEntries([kI, oC, hI, aI, sI, tI, DC, xI, zI, bI, ZI, qI, eI, uI, wC, rI, jI, LI, _I, AE, CE, IE, DE, GE, ME, YE, UE, FE, MC, yI, yE, OI, UB, NC, hE, LE].map((g) => [g.ForEntityName, new g()]));
3275
+ Object.fromEntries([kI, oC, hI, sI, SI, tI, DC, xI, zI, bI, ZI, qI, eI, uI, wC, rI, jI, LI, _I, AE, CE, IE, DE, GE, ME, YE, UE, FE, MC, RI, RE, OI, UB, NC, hE, LE].map((g) => [g.ForEntityName, new g()]));
3273
3276
  let HM = [{ code: 100, name: "subclassMarker", parser: Y }, { code: 330, name: "ownerObjectId", parser: Y }, { code: 102, isMultiple: !0, parser(g, A) {
3274
3277
  for (; !tA(g, 0, "EOF") && !tA(g, 102, "}"); ) g = A.next();
3275
3278
  } }, { code: 5, name: "handle", parser: Y }];
@@ -3285,7 +3288,7 @@ u([...kB.map((g) => ({ ...g, parser: Y })), { code: 70, name: "standardFlag", pa
3285
3288
  (eB = {})[eB.PaperSpace = 1] = "PaperSpace";
3286
3289
  (IQ = {})[IQ.XrefDependent = 16] = "XrefDependent", IQ[IQ.XrefResolved = 32] = "XrefResolved", IQ[IQ.Referenced = 64] = "Referenced";
3287
3290
  (WA = {})[WA.Off = 0] = "Off", WA[WA.Perspective = 1] = "Perspective", WA[WA.ClipFront = 2] = "ClipFront", WA[WA.ClipBack = 4] = "ClipBack", WA[WA.UcsFollow = 8] = "UcsFollow", WA[WA.ClipFrontByFrontZ = 16] = "ClipFrontByFrontZ";
3288
- class aM {
3291
+ class sM {
3289
3292
  constructor() {
3290
3293
  this.setupMessageHandler();
3291
3294
  }
@@ -3315,7 +3318,7 @@ class aM {
3315
3318
  self.postMessage(o);
3316
3319
  }
3317
3320
  }
3318
- var SM = Object.defineProperty, sM = (g, A, C) => A in g ? SM(g, A, { enumerable: !0, configurable: !0, writable: !0, value: C }) : g[A] = C, IA = (g, A, C) => sM(g, typeof A != "symbol" ? A + "" : A, C);
3321
+ var aM = Object.defineProperty, SM = (g, A, C) => A in g ? aM(g, A, { enumerable: !0, configurable: !0, writable: !0, value: C }) : g[A] = C, IA = (g, A, C) => SM(g, typeof A != "symbol" ? A + "" : A, C);
3319
3322
  const cM = [
3320
3323
  "utf-8",
3321
3324
  // 0
@@ -3398,7 +3401,7 @@ const cM = [
3398
3401
  "windows-1258"
3399
3402
  // Vietnamese
3400
3403
  ], rB = (g) => cM[g];
3401
- var bg = /* @__PURE__ */ ((g) => (g[g.TopLeft = 1] = "TopLeft", g[g.TopCenter = 2] = "TopCenter", g[g.TopRight = 3] = "TopRight", g[g.MiddleLeft = 4] = "MiddleLeft", g[g.MiddleCenter = 5] = "MiddleCenter", g[g.MiddleRight = 6] = "MiddleRight", g[g.BottomLeft = 7] = "BottomLeft", g[g.BottomCenter = 8] = "BottomCenter", g[g.BottomRight = 9] = "BottomRight", g))(bg || {}), GB = /* @__PURE__ */ ((g) => (g[g.PatternFill = 0] = "PatternFill", g[g.SolidFill = 1] = "SolidFill", g))(GB || {}), wB = /* @__PURE__ */ ((g) => (g[g.NonAssociative = 0] = "NonAssociative", g[g.Associative = 1] = "Associative", g))(wB || {}), yQ = /* @__PURE__ */ ((g) => (g[g.Line = 1] = "Line", g[g.Circular = 2] = "Circular", g[g.Elliptic = 3] = "Elliptic", g[g.Spline = 4] = "Spline", g))(yQ || {}), MB = /* @__PURE__ */ ((g) => (g[g.LEFT = 0] = "LEFT", g[g.CENTER = 1] = "CENTER", g[g.RIGHT = 2] = "RIGHT", g[g.ALIGNED = 3] = "ALIGNED", g[g.MIDDLE = 4] = "MIDDLE", g[g.FIT = 5] = "FIT", g))(MB || {});
3404
+ var bg = /* @__PURE__ */ ((g) => (g[g.TopLeft = 1] = "TopLeft", g[g.TopCenter = 2] = "TopCenter", g[g.TopRight = 3] = "TopRight", g[g.MiddleLeft = 4] = "MiddleLeft", g[g.MiddleCenter = 5] = "MiddleCenter", g[g.MiddleRight = 6] = "MiddleRight", g[g.BottomLeft = 7] = "BottomLeft", g[g.BottomCenter = 8] = "BottomCenter", g[g.BottomRight = 9] = "BottomRight", g))(bg || {}), GB = /* @__PURE__ */ ((g) => (g[g.PatternFill = 0] = "PatternFill", g[g.SolidFill = 1] = "SolidFill", g))(GB || {}), wB = /* @__PURE__ */ ((g) => (g[g.NonAssociative = 0] = "NonAssociative", g[g.Associative = 1] = "Associative", g))(wB || {}), RQ = /* @__PURE__ */ ((g) => (g[g.Line = 1] = "Line", g[g.Circular = 2] = "Circular", g[g.Elliptic = 3] = "Elliptic", g[g.Spline = 4] = "Spline", g))(RQ || {}), MB = /* @__PURE__ */ ((g) => (g[g.LEFT = 0] = "LEFT", g[g.CENTER = 1] = "CENTER", g[g.RIGHT = 2] = "RIGHT", g[g.ALIGNED = 3] = "ALIGNED", g[g.MIDDLE = 4] = "MIDDLE", g[g.FIT = 5] = "FIT", g))(MB || {});
3402
3405
  const tM = Object.freeze([
3403
3406
  "ACADMAINTVER",
3404
3407
  "ACADVER",
@@ -3879,32 +3882,32 @@ var PB = (() => {
3879
3882
  return async function(A = {}) {
3880
3883
  var C, Q = A, D, o, w = new Promise((B, I) => {
3881
3884
  D = B, o = I;
3882
- }), k = typeof window == "object", U = typeof WorkerGlobalScope < "u", i = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer";
3883
- if (i) {
3885
+ }), k = typeof window == "object", U = typeof WorkerGlobalScope < "u", y = typeof process == "object" && typeof process.versions == "object" && typeof process.versions.node == "string" && process.type != "renderer";
3886
+ if (y) {
3884
3887
  const { createRequire: B } = await Promise.resolve().then(() => eM);
3885
3888
  var F = B(import.meta.url);
3886
3889
  }
3887
- var h = Object.assign({}, Q), L = "./this.program", R = "";
3890
+ var h = Object.assign({}, Q), L = "./this.program", i = "";
3888
3891
  function c(B) {
3889
- return Q.locateFile ? Q.locateFile(B, R) : R + B;
3892
+ return Q.locateFile ? Q.locateFile(B, i) : i + B;
3890
3893
  }
3891
- var H, s;
3892
- if (i) {
3893
- var a = F("fs"), v = F("path");
3894
- import.meta.url.startsWith("data:") || (R = v.dirname(F("url").fileURLToPath(import.meta.url)) + "/"), s = (B) => {
3895
- B = RA(B) ? new URL(B) : B;
3896
- var I = a.readFileSync(B);
3894
+ var H, S;
3895
+ if (y) {
3896
+ var s = F("fs"), v = F("path");
3897
+ import.meta.url.startsWith("data:") || (i = v.dirname(F("url").fileURLToPath(import.meta.url)) + "/"), S = (B) => {
3898
+ B = iA(B) ? new URL(B) : B;
3899
+ var I = s.readFileSync(B);
3897
3900
  return I;
3898
3901
  }, H = async (B, I = !0) => {
3899
- B = RA(B) ? new URL(B) : B;
3900
- var E = a.readFileSync(B, I ? void 0 : "utf8");
3902
+ B = iA(B) ? new URL(B) : B;
3903
+ var E = s.readFileSync(B, I ? void 0 : "utf8");
3901
3904
  return E;
3902
3905
  }, !Q.thisProgram && process.argv.length > 1 && (L = process.argv[1].replace(/\\/g, "/")), process.argv.slice(2);
3903
- } else (k || U) && (U ? R = self.location.href : typeof document < "u" && document.currentScript && (R = document.currentScript.src), g && (R = g), R.startsWith("blob:") ? R = "" : R = R.slice(0, R.replace(/[?#].*/, "").lastIndexOf("/") + 1), U && (s = (B) => {
3906
+ } else (k || U) && (U ? i = self.location.href : typeof document < "u" && document.currentScript && (i = document.currentScript.src), g && (i = g), i.startsWith("blob:") ? i = "" : i = i.slice(0, i.replace(/[?#].*/, "").lastIndexOf("/") + 1), U && (S = (B) => {
3904
3907
  var I = new XMLHttpRequest();
3905
3908
  return I.open("GET", B, !1), I.responseType = "arraybuffer", I.send(null), new Uint8Array(I.response);
3906
3909
  }), H = async (B) => {
3907
- if (RA(B))
3910
+ if (iA(B))
3908
3911
  return new Promise((E, G) => {
3909
3912
  var N = new XMLHttpRequest();
3910
3913
  N.open("GET", B, !0), N.responseType = "arraybuffer", N.onload = () => {
@@ -3922,10 +3925,10 @@ var PB = (() => {
3922
3925
  });
3923
3926
  var V = Q.print || void 0, O = Q.printErr || void 0;
3924
3927
  Object.assign(Q, h), h = null, Q.arguments && Q.arguments, Q.thisProgram && (L = Q.thisProgram);
3925
- var z = Q.wasmBinary, f, q = !1, W, AA, EA, P, d, e, iA, MA, zA, TA, RA = (B) => B.startsWith("file://");
3928
+ var z = Q.wasmBinary, f, q = !1, W, AA, EA, P, d, e, yA, MA, zA, TA, iA = (B) => B.startsWith("file://");
3926
3929
  function VA() {
3927
3930
  var B = f.buffer;
3928
- Q.HEAP8 = W = new Int8Array(B), Q.HEAP16 = EA = new Int16Array(B), Q.HEAPU8 = AA = new Uint8Array(B), Q.HEAPU16 = P = new Uint16Array(B), Q.HEAP32 = d = new Int32Array(B), Q.HEAPU32 = e = new Uint32Array(B), Q.HEAPF32 = iA = new Float32Array(B), Q.HEAPF64 = TA = new Float64Array(B), Q.HEAP64 = MA = new BigInt64Array(B), Q.HEAPU64 = zA = new BigUint64Array(B);
3931
+ Q.HEAP8 = W = new Int8Array(B), Q.HEAP16 = EA = new Int16Array(B), Q.HEAPU8 = AA = new Uint8Array(B), Q.HEAPU16 = P = new Uint16Array(B), Q.HEAP32 = d = new Int32Array(B), Q.HEAPU32 = e = new Uint32Array(B), Q.HEAPF32 = yA = new Float32Array(B), Q.HEAPF64 = TA = new Float64Array(B), Q.HEAP64 = MA = new BigInt64Array(B), Q.HEAPU64 = zA = new BigUint64Array(B);
3929
3932
  }
3930
3933
  function vA() {
3931
3934
  if (Q.preRun)
@@ -3967,8 +3970,8 @@ var PB = (() => {
3967
3970
  function wQ(B) {
3968
3971
  if (B == kg && z)
3969
3972
  return new Uint8Array(z);
3970
- if (s)
3971
- return s(B);
3973
+ if (S)
3974
+ return S(B);
3972
3975
  throw "both async and sync fetching of the wasm failed";
3973
3976
  }
3974
3977
  async function MQ(B) {
@@ -3980,7 +3983,7 @@ var PB = (() => {
3980
3983
  }
3981
3984
  return wQ(B);
3982
3985
  }
3983
- async function iC(B, I) {
3986
+ async function yC(B, I) {
3984
3987
  try {
3985
3988
  var E = await MQ(B), G = await WebAssembly.instantiate(E, I);
3986
3989
  return G;
@@ -3988,37 +3991,37 @@ var PB = (() => {
3988
3991
  O(`failed to asynchronously prepare wasm: ${N}`), Bg(N);
3989
3992
  }
3990
3993
  }
3991
- async function yC(B, I, E) {
3992
- if (!B && typeof WebAssembly.instantiateStreaming == "function" && !RA(I) && !i)
3994
+ async function RC(B, I, E) {
3995
+ if (!B && typeof WebAssembly.instantiateStreaming == "function" && !iA(I) && !y)
3993
3996
  try {
3994
3997
  var G = fetch(I, { credentials: "same-origin" }), N = await WebAssembly.instantiateStreaming(G, E);
3995
3998
  return N;
3996
3999
  } catch (K) {
3997
4000
  O(`wasm streaming compile failed: ${K}`), O("falling back to ArrayBuffer instantiation");
3998
4001
  }
3999
- return iC(I, E);
4002
+ return yC(I, E);
4000
4003
  }
4001
- function RC() {
4004
+ function iC() {
4002
4005
  return { env: lB, wasi_snapshot_preview1: lB };
4003
4006
  }
4004
4007
  async function hC() {
4005
- function B(K, y) {
4006
- return ZA = K.exports, f = ZA.memory, VA(), aB = ZA.__indirect_function_table, xg(), ZA;
4008
+ function B(K, R) {
4009
+ return ZA = K.exports, f = ZA.memory, VA(), sB = ZA.__indirect_function_table, xg(), ZA;
4007
4010
  }
4008
4011
  ng();
4009
4012
  function I(K) {
4010
4013
  return B(K.instance);
4011
4014
  }
4012
- var E = RC();
4015
+ var E = iC();
4013
4016
  if (Q.instantiateWasm)
4014
- return new Promise((K, y) => {
4015
- Q.instantiateWasm(E, (J, S) => {
4017
+ return new Promise((K, R) => {
4018
+ Q.instantiateWasm(E, (J, a) => {
4016
4019
  B(J), K(J.exports);
4017
4020
  });
4018
4021
  });
4019
4022
  kg ?? (kg = GQ());
4020
4023
  try {
4021
- var G = await yC(z, kg, E), N = I(G);
4024
+ var G = await RC(z, kg, E), N = I(G);
4022
4025
  return N;
4023
4026
  } catch (K) {
4024
4027
  return o(K), Promise.reject(K);
@@ -4047,7 +4050,7 @@ var PB = (() => {
4047
4050
  MA[B >> 3] = BigInt(I);
4048
4051
  break;
4049
4052
  case "float":
4050
- iA[B >> 2] = I;
4053
+ yA[B >> 2] = I;
4051
4054
  break;
4052
4055
  case "double":
4053
4056
  TA[B >> 3] = I;
@@ -4059,31 +4062,31 @@ var PB = (() => {
4059
4062
  Bg(`invalid type for setValue: ${E}`);
4060
4063
  }
4061
4064
  }
4062
- var aC = (B) => Jo(B), SC = () => Ho(), HQ = typeof TextDecoder < "u" ? new TextDecoder() : void 0, Ug = (B, I = 0, E = NaN) => {
4065
+ var sC = (B) => Jo(B), aC = () => Ho(), HQ = typeof TextDecoder < "u" ? new TextDecoder() : void 0, Ug = (B, I = 0, E = NaN) => {
4063
4066
  for (var G = I + E, N = I; B[N] && !(N >= G); ) ++N;
4064
4067
  if (N - I > 16 && B.buffer && HQ)
4065
4068
  return HQ.decode(B.subarray(I, N));
4066
4069
  for (var K = ""; I < N; ) {
4067
- var y = B[I++];
4068
- if (!(y & 128)) {
4069
- K += String.fromCharCode(y);
4070
+ var R = B[I++];
4071
+ if (!(R & 128)) {
4072
+ K += String.fromCharCode(R);
4070
4073
  continue;
4071
4074
  }
4072
4075
  var J = B[I++] & 63;
4073
- if ((y & 224) == 192) {
4074
- K += String.fromCharCode((y & 31) << 6 | J);
4076
+ if ((R & 224) == 192) {
4077
+ K += String.fromCharCode((R & 31) << 6 | J);
4075
4078
  continue;
4076
4079
  }
4077
- var S = B[I++] & 63;
4078
- if ((y & 240) == 224 ? y = (y & 15) << 12 | J << 6 | S : y = (y & 7) << 18 | J << 12 | S << 6 | B[I++] & 63, y < 65536)
4079
- K += String.fromCharCode(y);
4080
+ var a = B[I++] & 63;
4081
+ if ((R & 240) == 224 ? R = (R & 15) << 12 | J << 6 | a : R = (R & 7) << 18 | J << 12 | a << 6 | B[I++] & 63, R < 65536)
4082
+ K += String.fromCharCode(R);
4080
4083
  else {
4081
- var T = y - 65536;
4084
+ var T = R - 65536;
4082
4085
  K += String.fromCharCode(55296 | T >> 10, 56320 | T & 1023);
4083
4086
  }
4084
4087
  }
4085
4088
  return K;
4086
- }, Ig = (B, I) => B ? Ug(AA, B, I) : "", sC = (B, I, E, G) => Bg(`Assertion failed: ${Ig(B)}, at: ` + [I ? Ig(I) : "unknown filename", E, G ? Ig(G) : "unknown function"]);
4089
+ }, Ig = (B, I) => B ? Ug(AA, B, I) : "", SC = (B, I, E, G) => Bg(`Assertion failed: ${Ig(B)}, at: ` + [I ? Ig(I) : "unknown filename", E, G ? Ig(G) : "unknown function"]);
4087
4090
  class cC {
4088
4091
  constructor(I) {
4089
4092
  this.excPtr = I, this.ptr = I - 24;
@@ -4122,9 +4125,9 @@ var PB = (() => {
4122
4125
  return e[this.ptr + 16 >> 2];
4123
4126
  }
4124
4127
  }
4125
- var aQ = 0, tC = (B, I, E) => {
4128
+ var sQ = 0, tC = (B, I, E) => {
4126
4129
  var G = new cC(B);
4127
- throw G.init(I, E), aQ = B, aQ;
4130
+ throw G.init(I, E), sQ = B, sQ;
4128
4131
  }, Zg = () => {
4129
4132
  var B = d[+GA.varargs >> 2];
4130
4133
  return GA.varargs += 4, B;
@@ -4147,13 +4150,13 @@ var PB = (() => {
4147
4150
  var I = BA.splitPath(B), E = I[0], G = I[1];
4148
4151
  return !E && !G ? "." : (G && (G = G.slice(0, -1)), E + G);
4149
4152
  }, basename: (B) => B && B.match(/([^\/]+|\/)\/*$/)[1], join: (...B) => BA.normalize(B.join("/")), join2: (B, I) => BA.normalize(B + "/" + I) }, TC = () => {
4150
- if (i) {
4153
+ if (y) {
4151
4154
  var B = F("crypto");
4152
4155
  return (I) => B.randomFillSync(I);
4153
4156
  }
4154
4157
  return (I) => crypto.getRandomValues(I);
4155
- }, SQ = (B) => {
4156
- (SQ = TC())(B);
4158
+ }, aQ = (B) => {
4159
+ (aQ = TC())(B);
4157
4160
  }, Fg = { resolve: (...B) => {
4158
4161
  for (var I = "", E = !1, G = B.length - 1; G >= -1 && !E; G--) {
4159
4162
  var N = G >= 0 ? B[G] : M.cwd();
@@ -4173,14 +4176,14 @@ var PB = (() => {
4173
4176
  ;
4174
4177
  return x > l ? [] : T.slice(x, l - x + 1);
4175
4178
  }
4176
- for (var G = E(B.split("/")), N = E(I.split("/")), K = Math.min(G.length, N.length), y = K, J = 0; J < K; J++)
4179
+ for (var G = E(B.split("/")), N = E(I.split("/")), K = Math.min(G.length, N.length), R = K, J = 0; J < K; J++)
4177
4180
  if (G[J] !== N[J]) {
4178
- y = J;
4181
+ R = J;
4179
4182
  break;
4180
4183
  }
4181
- for (var S = [], J = y; J < G.length; J++)
4182
- S.push("..");
4183
- return S = S.concat(N.slice(y)), S.join("/");
4184
+ for (var a = [], J = R; J < G.length; J++)
4185
+ a.push("..");
4186
+ return a = a.concat(N.slice(R)), a.join("/");
4184
4187
  } }, NQ = [], dg = (B) => {
4185
4188
  for (var I = 0, E = 0; E < B.length; ++E) {
4186
4189
  var G = B.charCodeAt(E);
@@ -4189,11 +4192,11 @@ var PB = (() => {
4189
4192
  return I;
4190
4193
  }, YQ = (B, I, E, G) => {
4191
4194
  if (!(G > 0)) return 0;
4192
- for (var N = E, K = E + G - 1, y = 0; y < B.length; ++y) {
4193
- var J = B.charCodeAt(y);
4195
+ for (var N = E, K = E + G - 1, R = 0; R < B.length; ++R) {
4196
+ var J = B.charCodeAt(R);
4194
4197
  if (J >= 55296 && J <= 57343) {
4195
- var S = B.charCodeAt(++y);
4196
- J = 65536 + ((J & 1023) << 10) | S & 1023;
4198
+ var a = B.charCodeAt(++R);
4199
+ J = 65536 + ((J & 1023) << 10) | a & 1023;
4197
4200
  }
4198
4201
  if (J <= 127) {
4199
4202
  if (E >= K) break;
@@ -4210,16 +4213,16 @@ var PB = (() => {
4210
4213
  }
4211
4214
  }
4212
4215
  return I[E] = 0, E - N;
4213
- }, sQ = (B, I, E) => {
4216
+ }, SQ = (B, I, E) => {
4214
4217
  var G = dg(B) + 1, N = new Array(G), K = YQ(B, N, 0, N.length);
4215
4218
  return N.length = K, N;
4216
4219
  }, xC = () => {
4217
4220
  if (!NQ.length) {
4218
4221
  var B = null;
4219
- if (i) {
4222
+ if (y) {
4220
4223
  var I = 256, E = Buffer.alloc(I), G = 0, N = process.stdin.fd;
4221
4224
  try {
4222
- G = a.readSync(N, E, 0, I);
4225
+ G = s.readSync(N, E, 0, I);
4223
4226
  } catch (K) {
4224
4227
  if (K.toString().includes("EOF")) G = 0;
4225
4228
  else throw K;
@@ -4229,7 +4232,7 @@ var PB = (() => {
4229
4232
  `));
4230
4233
  if (!B)
4231
4234
  return null;
4232
- NQ = sQ(B);
4235
+ NQ = SQ(B);
4233
4236
  }
4234
4237
  return NQ.shift();
4235
4238
  }, Eg = { ttys: [], init() {
@@ -4248,7 +4251,7 @@ var PB = (() => {
4248
4251
  }, read(B, I, E, G, N) {
4249
4252
  if (!B.tty || !B.tty.ops.get_char)
4250
4253
  throw new M.ErrnoError(60);
4251
- for (var K = 0, y = 0; y < G; y++) {
4254
+ for (var K = 0, R = 0; R < G; R++) {
4252
4255
  var J;
4253
4256
  try {
4254
4257
  J = B.tty.ops.get_char(B.tty);
@@ -4258,7 +4261,7 @@ var PB = (() => {
4258
4261
  if (J === void 0 && K === 0)
4259
4262
  throw new M.ErrnoError(6);
4260
4263
  if (J == null) break;
4261
- K++, I[E + y] = J;
4264
+ K++, I[E + R] = J;
4262
4265
  }
4263
4266
  return K && (B.node.atime = Date.now()), K;
4264
4267
  }, write(B, I, E, G, N) {
@@ -4360,29 +4363,29 @@ var PB = (() => {
4360
4363
  } }, stream_ops: { read(B, I, E, G, N) {
4361
4364
  var K = B.node.contents;
4362
4365
  if (N >= B.node.usedBytes) return 0;
4363
- var y = Math.min(B.node.usedBytes - N, G);
4364
- if (y > 8 && K.subarray)
4365
- I.set(K.subarray(N, N + y), E);
4366
+ var R = Math.min(B.node.usedBytes - N, G);
4367
+ if (R > 8 && K.subarray)
4368
+ I.set(K.subarray(N, N + R), E);
4366
4369
  else
4367
- for (var J = 0; J < y; J++) I[E + J] = K[N + J];
4368
- return y;
4370
+ for (var J = 0; J < R; J++) I[E + J] = K[N + J];
4371
+ return R;
4369
4372
  }, write(B, I, E, G, N, K) {
4370
4373
  if (I.buffer === W.buffer && (K = !1), !G) return 0;
4371
- var y = B.node;
4372
- if (y.mtime = y.ctime = Date.now(), I.subarray && (!y.contents || y.contents.subarray)) {
4374
+ var R = B.node;
4375
+ if (R.mtime = R.ctime = Date.now(), I.subarray && (!R.contents || R.contents.subarray)) {
4373
4376
  if (K)
4374
- return y.contents = I.subarray(E, E + G), y.usedBytes = G, G;
4375
- if (y.usedBytes === 0 && N === 0)
4376
- return y.contents = I.slice(E, E + G), y.usedBytes = G, G;
4377
- if (N + G <= y.usedBytes)
4378
- return y.contents.set(I.subarray(E, E + G), N), G;
4379
- }
4380
- if (m.expandFileStorage(y, N + G), y.contents.subarray && I.subarray)
4381
- y.contents.set(I.subarray(E, E + G), N);
4377
+ return R.contents = I.subarray(E, E + G), R.usedBytes = G, G;
4378
+ if (R.usedBytes === 0 && N === 0)
4379
+ return R.contents = I.slice(E, E + G), R.usedBytes = G, G;
4380
+ if (N + G <= R.usedBytes)
4381
+ return R.contents.set(I.subarray(E, E + G), N), G;
4382
+ }
4383
+ if (m.expandFileStorage(R, N + G), R.contents.subarray && I.subarray)
4384
+ R.contents.set(I.subarray(E, E + G), N);
4382
4385
  else
4383
4386
  for (var J = 0; J < G; J++)
4384
- y.contents[N + J] = I[E + J];
4385
- return y.usedBytes = Math.max(y.usedBytes, N + G), G;
4387
+ R.contents[N + J] = I[E + J];
4388
+ return R.usedBytes = Math.max(R.usedBytes, N + G), G;
4386
4389
  }, llseek(B, I, E) {
4387
4390
  var G = I;
4388
4391
  if (E === 1 ? G += B.position : E === 2 && M.isFile(B.node.mode) && (G += B.node.usedBytes), G < 0)
@@ -4393,15 +4396,15 @@ var PB = (() => {
4393
4396
  }, mmap(B, I, E, G, N) {
4394
4397
  if (!M.isFile(B.node.mode))
4395
4398
  throw new M.ErrnoError(43);
4396
- var K, y, J = B.node.contents;
4399
+ var K, R, J = B.node.contents;
4397
4400
  if (!(N & 2) && J && J.buffer === W.buffer)
4398
- y = !1, K = J.byteOffset;
4401
+ R = !1, K = J.byteOffset;
4399
4402
  else {
4400
- if (y = !0, K = cQ(), !K)
4403
+ if (R = !0, K = cQ(), !K)
4401
4404
  throw new M.ErrnoError(48);
4402
4405
  J && ((E > 0 || E + I < J.length) && (J.subarray ? J = J.subarray(E, E + I) : J = Array.prototype.slice.call(J, E, E + I)), W.set(J, K));
4403
4406
  }
4404
- return { ptr: K, allocated: y };
4407
+ return { ptr: K, allocated: R };
4405
4408
  }, msync(B, I, E, G, N) {
4406
4409
  return m.stream_ops.write(B, I, 0, G, E, !1), 0;
4407
4410
  } } }, zC = async (B) => {
@@ -4415,17 +4418,17 @@ var PB = (() => {
4415
4418
  return vC.forEach((K) => {
4416
4419
  N || K.canHandle(I) && (K.handle(B, I, E, G), N = !0);
4417
4420
  }), N;
4418
- }, lC = (B, I, E, G, N, K, y, J, S, T) => {
4421
+ }, lC = (B, I, E, G, N, K, R, J, a, T) => {
4419
4422
  var x = I ? Fg.resolve(BA.join2(B, I)) : B;
4420
4423
  function l(p) {
4421
4424
  function b(Z) {
4422
- T == null || T(), J || VC(B, I, Z, G, N, S), K == null || K(), xg();
4425
+ T == null || T(), J || VC(B, I, Z, G, N, a), K == null || K(), xg();
4423
4426
  }
4424
4427
  OC(p, x, b, () => {
4425
- y == null || y(), xg();
4428
+ R == null || R(), xg();
4426
4429
  }) || b(p);
4427
4430
  }
4428
- ng(), typeof E == "string" ? zC(E).then(l, y) : l(E);
4431
+ ng(), typeof E == "string" ? zC(E).then(l, R) : l(E);
4429
4432
  }, tE = (B) => {
4430
4433
  var I = { r: 0, "r+": 2, w: 577, "w+": 578, a: 1089, "a+": 1090 }, E = I[B];
4431
4434
  if (typeof E > "u")
@@ -4496,18 +4499,18 @@ var PB = (() => {
4496
4499
  throw new M.ErrnoError(44);
4497
4500
  I.follow_mount ?? (I.follow_mount = !0), BA.isAbs(B) || (B = M.cwd() + "/" + B);
4498
4501
  A: for (var E = 0; E < 40; E++) {
4499
- for (var G = B.split("/").filter((T) => !!T), N = M.root, K = "/", y = 0; y < G.length; y++) {
4500
- var J = y === G.length - 1;
4502
+ for (var G = B.split("/").filter((T) => !!T), N = M.root, K = "/", R = 0; R < G.length; R++) {
4503
+ var J = R === G.length - 1;
4501
4504
  if (J && I.parent)
4502
4505
  break;
4503
- if (G[y] !== ".") {
4504
- if (G[y] === "..") {
4506
+ if (G[R] !== ".") {
4507
+ if (G[R] === "..") {
4505
4508
  K = BA.dirname(K), N = N.parent;
4506
4509
  continue;
4507
4510
  }
4508
- K = BA.join2(K, G[y]);
4511
+ K = BA.join2(K, G[R]);
4509
4512
  try {
4510
- N = M.lookupNode(N, G[y]);
4513
+ N = M.lookupNode(N, G[R]);
4511
4514
  } catch (T) {
4512
4515
  if ((T == null ? void 0 : T.errno) === 44 && J && I.noent_okay)
4513
4516
  return { path: K };
@@ -4516,8 +4519,8 @@ var PB = (() => {
4516
4519
  if (M.isMountpoint(N) && (!J || I.follow_mount) && (N = N.mounted.root), M.isLink(N.mode) && (!J || I.follow)) {
4517
4520
  if (!N.node_ops.readlink)
4518
4521
  throw new M.ErrnoError(52);
4519
- var S = N.node_ops.readlink(N);
4520
- BA.isAbs(S) || (S = BA.dirname(K) + "/" + S), B = S + "/" + G.slice(y + 1).join("/");
4522
+ var a = N.node_ops.readlink(N);
4523
+ BA.isAbs(a) || (a = BA.dirname(K) + "/" + a), B = a + "/" + G.slice(R + 1).join("/");
4521
4524
  continue A;
4522
4525
  }
4523
4526
  }
@@ -4663,41 +4666,41 @@ var PB = (() => {
4663
4666
  }, syncfs(B, I) {
4664
4667
  typeof B == "function" && (I = B, B = !1), M.syncFSRequests++, M.syncFSRequests > 1 && O(`warning: ${M.syncFSRequests} FS.syncfs operations in flight at once, probably just doing extra work`);
4665
4668
  var E = M.getMounts(M.root.mount), G = 0;
4666
- function N(y) {
4667
- return M.syncFSRequests--, I(y);
4669
+ function N(R) {
4670
+ return M.syncFSRequests--, I(R);
4668
4671
  }
4669
- function K(y) {
4670
- if (y)
4671
- return K.errored ? void 0 : (K.errored = !0, N(y));
4672
+ function K(R) {
4673
+ if (R)
4674
+ return K.errored ? void 0 : (K.errored = !0, N(R));
4672
4675
  ++G >= E.length && N(null);
4673
4676
  }
4674
- E.forEach((y) => {
4675
- if (!y.type.syncfs)
4677
+ E.forEach((R) => {
4678
+ if (!R.type.syncfs)
4676
4679
  return K(null);
4677
- y.type.syncfs(y, B, K);
4680
+ R.type.syncfs(R, B, K);
4678
4681
  });
4679
4682
  }, mount(B, I, E) {
4680
4683
  var G = E === "/", N = !E, K;
4681
4684
  if (G && M.root)
4682
4685
  throw new M.ErrnoError(10);
4683
4686
  if (!G && !N) {
4684
- var y = M.lookupPath(E, { follow_mount: !1 });
4685
- if (E = y.path, K = y.node, M.isMountpoint(K))
4687
+ var R = M.lookupPath(E, { follow_mount: !1 });
4688
+ if (E = R.path, K = R.node, M.isMountpoint(K))
4686
4689
  throw new M.ErrnoError(10);
4687
4690
  if (!M.isDir(K.mode))
4688
4691
  throw new M.ErrnoError(54);
4689
4692
  }
4690
- var J = { type: B, opts: I, mountpoint: E, mounts: [] }, S = B.mount(J);
4691
- return S.mount = J, J.root = S, G ? M.root = S : K && (K.mounted = J, K.mount && K.mount.mounts.push(J)), S;
4693
+ var J = { type: B, opts: I, mountpoint: E, mounts: [] }, a = B.mount(J);
4694
+ return a.mount = J, J.root = a, G ? M.root = a : K && (K.mounted = J, K.mount && K.mount.mounts.push(J)), a;
4692
4695
  }, unmount(B) {
4693
4696
  var I = M.lookupPath(B, { follow_mount: !1 });
4694
4697
  if (!M.isMountpoint(I.node))
4695
4698
  throw new M.ErrnoError(28);
4696
4699
  var E = I.node, G = E.mounted, N = M.getMounts(G);
4697
- Object.keys(M.nameTable).forEach((y) => {
4698
- for (var J = M.nameTable[y]; J; ) {
4699
- var S = J.name_next;
4700
- N.includes(J.mount) && M.destroyNode(J), J = S;
4700
+ Object.keys(M.nameTable).forEach((R) => {
4701
+ for (var J = M.nameTable[R]; J; ) {
4702
+ var a = J.name_next;
4703
+ N.includes(J.mount) && M.destroyNode(J), J = a;
4701
4704
  }
4702
4705
  }), E.mounted = null;
4703
4706
  var K = E.mount.mounts.indexOf(G);
@@ -4710,9 +4713,9 @@ var PB = (() => {
4710
4713
  throw new M.ErrnoError(28);
4711
4714
  if (K === "." || K === "..")
4712
4715
  throw new M.ErrnoError(20);
4713
- var y = M.mayCreate(N, K);
4714
- if (y)
4715
- throw new M.ErrnoError(y);
4716
+ var R = M.mayCreate(N, K);
4717
+ if (R)
4718
+ throw new M.ErrnoError(R);
4716
4719
  if (!N.node_ops.mknod)
4717
4720
  throw new M.ErrnoError(63);
4718
4721
  return N.node_ops.mknod(N, K, I, E);
@@ -4752,9 +4755,9 @@ var PB = (() => {
4752
4755
  throw new M.ErrnoError(63);
4753
4756
  return G.node_ops.symlink(G, N, B);
4754
4757
  }, rename(B, I) {
4755
- var E = BA.dirname(B), G = BA.dirname(I), N = BA.basename(B), K = BA.basename(I), y, J, S;
4756
- if (y = M.lookupPath(B, { parent: !0 }), J = y.node, y = M.lookupPath(I, { parent: !0 }), S = y.node, !J || !S) throw new M.ErrnoError(44);
4757
- if (J.mount !== S.mount)
4758
+ var E = BA.dirname(B), G = BA.dirname(I), N = BA.basename(B), K = BA.basename(I), R, J, a;
4759
+ if (R = M.lookupPath(B, { parent: !0 }), J = R.node, R = M.lookupPath(I, { parent: !0 }), a = R.node, !J || !a) throw new M.ErrnoError(44);
4760
+ if (J.mount !== a.mount)
4758
4761
  throw new M.ErrnoError(75);
4759
4762
  var T = M.lookupNode(J, N), x = Fg.relative(B, G);
4760
4763
  if (x.charAt(0) !== ".")
@@ -4763,24 +4766,24 @@ var PB = (() => {
4763
4766
  throw new M.ErrnoError(55);
4764
4767
  var l;
4765
4768
  try {
4766
- l = M.lookupNode(S, K);
4769
+ l = M.lookupNode(a, K);
4767
4770
  } catch {
4768
4771
  }
4769
4772
  if (T !== l) {
4770
4773
  var p = M.isDir(T.mode), b = M.mayDelete(J, N, p);
4771
4774
  if (b)
4772
4775
  throw new M.ErrnoError(b);
4773
- if (b = l ? M.mayDelete(S, K, p) : M.mayCreate(S, K), b)
4776
+ if (b = l ? M.mayDelete(a, K, p) : M.mayCreate(a, K), b)
4774
4777
  throw new M.ErrnoError(b);
4775
4778
  if (!J.node_ops.rename)
4776
4779
  throw new M.ErrnoError(63);
4777
4780
  if (M.isMountpoint(T) || l && M.isMountpoint(l))
4778
4781
  throw new M.ErrnoError(10);
4779
- if (S !== J && (b = M.nodePermissions(J, "w"), b))
4782
+ if (a !== J && (b = M.nodePermissions(J, "w"), b))
4780
4783
  throw new M.ErrnoError(b);
4781
4784
  M.hashRemoveNode(T);
4782
4785
  try {
4783
- J.node_ops.rename(T, S, K), T.parent = S;
4786
+ J.node_ops.rename(T, a, K), T.parent = a;
4784
4787
  } catch (Z) {
4785
4788
  throw Z;
4786
4789
  } finally {
@@ -4895,7 +4898,7 @@ var PB = (() => {
4895
4898
  var K = M.lookupPath(B, { follow: !(I & 131072), noent_okay: !0 });
4896
4899
  G = K.node, B = K.path;
4897
4900
  }
4898
- var y = !1;
4901
+ var R = !1;
4899
4902
  if (I & 64)
4900
4903
  if (G) {
4901
4904
  if (I & 128)
@@ -4903,20 +4906,20 @@ var PB = (() => {
4903
4906
  } else {
4904
4907
  if (N)
4905
4908
  throw new M.ErrnoError(31);
4906
- G = M.mknod(B, E | 511, 0), y = !0;
4909
+ G = M.mknod(B, E | 511, 0), R = !0;
4907
4910
  }
4908
4911
  if (!G)
4909
4912
  throw new M.ErrnoError(44);
4910
4913
  if (M.isChrdev(G.mode) && (I &= -513), I & 65536 && !M.isDir(G.mode))
4911
4914
  throw new M.ErrnoError(54);
4912
- if (!y) {
4915
+ if (!R) {
4913
4916
  var J = M.mayOpen(G, I);
4914
4917
  if (J)
4915
4918
  throw new M.ErrnoError(J);
4916
4919
  }
4917
- I & 512 && !y && M.truncate(G, 0), I &= -131713;
4918
- var S = M.createStream({ node: G, path: M.getPath(G), flags: I, seekable: !0, position: 0, stream_ops: G.stream_ops, ungotten: [], error: !1 });
4919
- return S.stream_ops.open && S.stream_ops.open(S), y && M.chmod(G, E & 511), Q.logReadFiles && !(I & 1) && (B in M.readFiles || (M.readFiles[B] = 1)), S;
4920
+ I & 512 && !R && M.truncate(G, 0), I &= -131713;
4921
+ var a = M.createStream({ node: G, path: M.getPath(G), flags: I, seekable: !0, position: 0, stream_ops: G.stream_ops, ungotten: [], error: !1 });
4922
+ return a.stream_ops.open && a.stream_ops.open(a), R && M.chmod(G, E & 511), Q.logReadFiles && !(I & 1) && (B in M.readFiles || (M.readFiles[B] = 1)), a;
4920
4923
  }, close(B) {
4921
4924
  if (M.isClosed(B))
4922
4925
  throw new M.ErrnoError(8);
@@ -4955,8 +4958,8 @@ var PB = (() => {
4955
4958
  N = B.position;
4956
4959
  else if (!B.seekable)
4957
4960
  throw new M.ErrnoError(70);
4958
- var y = B.stream_ops.read(B, I, E, G, N);
4959
- return K || (B.position += y), y;
4961
+ var R = B.stream_ops.read(B, I, E, G, N);
4962
+ return K || (B.position += R), R;
4960
4963
  }, write(B, I, E, G, N, K) {
4961
4964
  if (G < 0 || N < 0)
4962
4965
  throw new M.ErrnoError(28);
@@ -4969,13 +4972,13 @@ var PB = (() => {
4969
4972
  if (!B.stream_ops.write)
4970
4973
  throw new M.ErrnoError(28);
4971
4974
  B.seekable && B.flags & 1024 && M.llseek(B, 0, 2);
4972
- var y = typeof N < "u";
4973
- if (!y)
4975
+ var R = typeof N < "u";
4976
+ if (!R)
4974
4977
  N = B.position;
4975
4978
  else if (!B.seekable)
4976
4979
  throw new M.ErrnoError(70);
4977
4980
  var J = B.stream_ops.write(B, I, E, G, N, K);
4978
- return y || (B.position += J), J;
4981
+ return R || (B.position += J), J;
4979
4982
  }, allocate(B, I, E) {
4980
4983
  if (M.isClosed(B))
4981
4984
  throw new M.ErrnoError(8);
@@ -5007,8 +5010,8 @@ var PB = (() => {
5007
5010
  }, readFile(B, I = {}) {
5008
5011
  if (I.flags = I.flags || 0, I.encoding = I.encoding || "binary", I.encoding !== "utf8" && I.encoding !== "binary")
5009
5012
  throw new Error(`Invalid encoding type "${I.encoding}"`);
5010
- var E, G = M.open(B, I.flags), N = M.stat(B), K = N.size, y = new Uint8Array(K);
5011
- return M.read(G, y, 0, K, 0), I.encoding === "utf8" ? E = Ug(y) : I.encoding === "binary" && (E = y), M.close(G), E;
5013
+ var E, G = M.open(B, I.flags), N = M.stat(B), K = N.size, R = new Uint8Array(K);
5014
+ return M.read(G, R, 0, K, 0), I.encoding === "utf8" ? E = Ug(R) : I.encoding === "binary" && (E = R), M.close(G), E;
5012
5015
  }, writeFile(B, I, E = {}) {
5013
5016
  E.flags = E.flags || 577;
5014
5017
  var G = M.open(B, E.flags, E.mode);
@@ -5033,8 +5036,8 @@ var PB = (() => {
5033
5036
  }, createDefaultDirectories() {
5034
5037
  M.mkdir("/tmp"), M.mkdir("/home"), M.mkdir("/home/web_user");
5035
5038
  }, createDefaultDevices() {
5036
- M.mkdir("/dev"), M.registerDevice(M.makedev(1, 3), { read: () => 0, write: (G, N, K, y, J) => y, llseek: () => 0 }), M.mkdev("/dev/null", M.makedev(1, 3)), Eg.register(M.makedev(5, 0), Eg.default_tty_ops), Eg.register(M.makedev(6, 0), Eg.default_tty1_ops), M.mkdev("/dev/tty", M.makedev(5, 0)), M.mkdev("/dev/tty1", M.makedev(6, 0));
5037
- var B = new Uint8Array(1024), I = 0, E = () => (I === 0 && (SQ(B), I = B.byteLength), B[--I]);
5039
+ M.mkdir("/dev"), M.registerDevice(M.makedev(1, 3), { read: () => 0, write: (G, N, K, R, J) => R, llseek: () => 0 }), M.mkdev("/dev/null", M.makedev(1, 3)), Eg.register(M.makedev(5, 0), Eg.default_tty_ops), Eg.register(M.makedev(6, 0), Eg.default_tty1_ops), M.mkdev("/dev/tty", M.makedev(5, 0)), M.mkdev("/dev/tty1", M.makedev(6, 0));
5040
+ var B = new Uint8Array(1024), I = 0, E = () => (I === 0 && (aQ(B), I = B.byteLength), B[--I]);
5038
5041
  M.createDevice("/dev", "random", E), M.createDevice("/dev", "urandom", E), M.mkdir("/dev/shm"), M.mkdir("/dev/shm/tmp");
5039
5042
  }, createSpecialDirectories() {
5040
5043
  M.mkdir("/proc");
@@ -5042,8 +5045,8 @@ var PB = (() => {
5042
5045
  M.mkdir("/proc/self/fd"), M.mount({ mount() {
5043
5046
  var I = M.createNode(B, "fd", 16895, 73);
5044
5047
  return I.stream_ops = { llseek: m.stream_ops.llseek }, I.node_ops = { lookup(E, G) {
5045
- var N = +G, K = M.getStreamChecked(N), y = { parent: null, mount: { mountpoint: "fake" }, node_ops: { readlink: () => K.path }, id: N + 1 };
5046
- return y.parent = y, y;
5048
+ var N = +G, K = M.getStreamChecked(N), R = { parent: null, mount: { mountpoint: "fake" }, node_ops: { readlink: () => K.path }, id: N + 1 };
5049
+ return R.parent = R, R;
5047
5050
  }, readdir() {
5048
5051
  return Array.from(M.streams.entries()).filter(([E, G]) => G).map(([E, G]) => E.toString());
5049
5052
  } }, I;
@@ -5082,41 +5085,41 @@ var PB = (() => {
5082
5085
  for (var N = I.split("/").reverse(); N.length; ) {
5083
5086
  var K = N.pop();
5084
5087
  if (K) {
5085
- var y = BA.join2(B, K);
5088
+ var R = BA.join2(B, K);
5086
5089
  try {
5087
- M.mkdir(y);
5090
+ M.mkdir(R);
5088
5091
  } catch {
5089
5092
  }
5090
- B = y;
5093
+ B = R;
5091
5094
  }
5092
5095
  }
5093
- return y;
5096
+ return R;
5094
5097
  }, createFile(B, I, E, G, N) {
5095
- var K = BA.join2(typeof B == "string" ? B : M.getPath(B), I), y = bC(G, N);
5096
- return M.create(K, y);
5098
+ var K = BA.join2(typeof B == "string" ? B : M.getPath(B), I), R = bC(G, N);
5099
+ return M.create(K, R);
5097
5100
  }, createDataFile(B, I, E, G, N, K) {
5098
- var y = I;
5099
- B && (B = typeof B == "string" ? B : M.getPath(B), y = I ? BA.join2(B, I) : B);
5100
- var J = bC(G, N), S = M.create(y, J);
5101
+ var R = I;
5102
+ B && (B = typeof B == "string" ? B : M.getPath(B), R = I ? BA.join2(B, I) : B);
5103
+ var J = bC(G, N), a = M.create(R, J);
5101
5104
  if (E) {
5102
5105
  if (typeof E == "string") {
5103
5106
  for (var T = new Array(E.length), x = 0, l = E.length; x < l; ++x) T[x] = E.charCodeAt(x);
5104
5107
  E = T;
5105
5108
  }
5106
- M.chmod(S, J | 146);
5107
- var p = M.open(S, 577);
5108
- M.write(p, E, 0, E.length, 0, K), M.close(p), M.chmod(S, J);
5109
+ M.chmod(a, J | 146);
5110
+ var p = M.open(a, 577);
5111
+ M.write(p, E, 0, E.length, 0, K), M.close(p), M.chmod(a, J);
5109
5112
  }
5110
5113
  }, createDevice(B, I, E, G) {
5111
- var N, K = BA.join2(typeof B == "string" ? B : M.getPath(B), I), y = bC(!!E, !!G);
5114
+ var N, K = BA.join2(typeof B == "string" ? B : M.getPath(B), I), R = bC(!!E, !!G);
5112
5115
  (N = M.createDevice).major ?? (N.major = 64);
5113
5116
  var J = M.makedev(M.createDevice.major++, 0);
5114
- return M.registerDevice(J, { open(S) {
5115
- S.seekable = !1;
5116
- }, close(S) {
5117
+ return M.registerDevice(J, { open(a) {
5118
+ a.seekable = !1;
5119
+ }, close(a) {
5117
5120
  var T;
5118
5121
  (T = G == null ? void 0 : G.buffer) != null && T.length && G(10);
5119
- }, read(S, T, x, l, p) {
5122
+ }, read(a, T, x, l, p) {
5120
5123
  for (var b = 0, Z = 0; Z < l; Z++) {
5121
5124
  var gA;
5122
5125
  try {
@@ -5129,22 +5132,22 @@ var PB = (() => {
5129
5132
  if (gA == null) break;
5130
5133
  b++, T[x + Z] = gA;
5131
5134
  }
5132
- return b && (S.node.atime = Date.now()), b;
5133
- }, write(S, T, x, l, p) {
5135
+ return b && (a.node.atime = Date.now()), b;
5136
+ }, write(a, T, x, l, p) {
5134
5137
  for (var b = 0; b < l; b++)
5135
5138
  try {
5136
5139
  G(T[x + b]);
5137
5140
  } catch {
5138
5141
  throw new M.ErrnoError(29);
5139
5142
  }
5140
- return l && (S.node.mtime = S.node.ctime = Date.now()), b;
5141
- } }), M.mkdev(K, y, J);
5143
+ return l && (a.node.mtime = a.node.ctime = Date.now()), b;
5144
+ } }), M.mkdev(K, R, J);
5142
5145
  }, forceLoadFile(B) {
5143
5146
  if (B.isDevice || B.isFolder || B.link || B.contents) return !0;
5144
5147
  if (typeof XMLHttpRequest < "u")
5145
5148
  throw new Error("Lazy loading should have been performed (contents set) in createLazyFile, but it was not. Lazy loading only works in web workers. Use --embed-file or --preload-file in emcc on the main thread.");
5146
5149
  try {
5147
- B.contents = s(B.url), B.usedBytes = B.contents.length;
5150
+ B.contents = S(B.url), B.usedBytes = B.contents.length;
5148
5151
  } catch {
5149
5152
  throw new M.ErrnoError(29);
5150
5153
  }
@@ -5172,7 +5175,7 @@ var PB = (() => {
5172
5175
  if (og > Z - 1) throw new Error("only " + Z + " bytes available! programmer error!");
5173
5176
  var NA = new XMLHttpRequest();
5174
5177
  if (NA.open("GET", E, !1), Z !== UA && NA.setRequestHeader("Range", "bytes=" + fA + "-" + og), NA.responseType = "arraybuffer", NA.overrideMimeType && NA.overrideMimeType("text/plain; charset=x-user-defined"), NA.send(null), !(NA.status >= 200 && NA.status < 300 || NA.status === 304)) throw new Error("Couldn't load " + E + ". Status: " + NA.status);
5175
- return NA.response !== void 0 ? new Uint8Array(NA.response || []) : sQ(NA.responseText || "");
5178
+ return NA.response !== void 0 ? new Uint8Array(NA.response || []) : SQ(NA.responseText || "");
5176
5179
  }, LA = this;
5177
5180
  LA.setDataGetter((fA) => {
5178
5181
  var og = fA * UA, NA = (fA + 1) * UA - 1;
@@ -5189,17 +5192,17 @@ var PB = (() => {
5189
5192
  }
5190
5193
  if (typeof XMLHttpRequest < "u") {
5191
5194
  if (!U) throw "Cannot do synchronous binary XHRs outside webworkers in modern browsers. Use --embed-file or --preload-file in emcc";
5192
- var y = new K(), J = { isDevice: !1, contents: y };
5195
+ var R = new K(), J = { isDevice: !1, contents: R };
5193
5196
  } else
5194
5197
  var J = { isDevice: !1, url: E };
5195
- var S = M.createFile(B, I, J, G, N);
5196
- J.contents ? S.contents = J.contents : J.url && (S.contents = null, S.url = J.url), Object.defineProperties(S, { usedBytes: { get: function() {
5198
+ var a = M.createFile(B, I, J, G, N);
5199
+ J.contents ? a.contents = J.contents : J.url && (a.contents = null, a.url = J.url), Object.defineProperties(a, { usedBytes: { get: function() {
5197
5200
  return this.contents.length;
5198
5201
  } } });
5199
- var T = {}, x = Object.keys(S.stream_ops);
5202
+ var T = {}, x = Object.keys(a.stream_ops);
5200
5203
  x.forEach((p) => {
5201
- var b = S.stream_ops[p];
5202
- T[p] = (...Z) => (M.forceLoadFile(S), b(...Z));
5204
+ var b = a.stream_ops[p];
5205
+ T[p] = (...Z) => (M.forceLoadFile(a), b(...Z));
5203
5206
  });
5204
5207
  function l(p, b, Z, gA, kA) {
5205
5208
  var wA = p.node.contents;
@@ -5213,13 +5216,13 @@ var PB = (() => {
5213
5216
  b[Z + KA] = wA.get(kA + KA);
5214
5217
  return UA;
5215
5218
  }
5216
- return T.read = (p, b, Z, gA, kA) => (M.forceLoadFile(S), l(p, b, Z, gA, kA)), T.mmap = (p, b, Z, gA, kA) => {
5217
- M.forceLoadFile(S);
5219
+ return T.read = (p, b, Z, gA, kA) => (M.forceLoadFile(a), l(p, b, Z, gA, kA)), T.mmap = (p, b, Z, gA, kA) => {
5220
+ M.forceLoadFile(a);
5218
5221
  var wA = cQ();
5219
5222
  if (!wA)
5220
5223
  throw new M.ErrnoError(48);
5221
5224
  return l(p, W, wA, b, Z), { ptr: wA, allocated: !0 };
5222
- }, S.stream_ops = T, S;
5225
+ }, a.stream_ops = T, a;
5223
5226
  } }, GA = { DEFAULT_POLLMASK: 5, calculateAt(B, I, E) {
5224
5227
  if (BA.isAbs(I))
5225
5228
  return I;
@@ -5280,8 +5283,8 @@ var PB = (() => {
5280
5283
  return G.flags |= N, 0;
5281
5284
  }
5282
5285
  case 12: {
5283
- var N = Kg(), y = 0;
5284
- return EA[N + y >> 1] = 2, 0;
5286
+ var N = Kg(), R = 0;
5287
+ return EA[N + R >> 1] = 2, 0;
5285
5288
  }
5286
5289
  case 13:
5287
5290
  case 14:
@@ -5313,8 +5316,8 @@ var PB = (() => {
5313
5316
  if (G.tty.ops.ioctl_tcgets) {
5314
5317
  var N = G.tty.ops.ioctl_tcgets(G), K = Kg();
5315
5318
  d[K >> 2] = N.c_iflag || 0, d[K + 4 >> 2] = N.c_oflag || 0, d[K + 8 >> 2] = N.c_cflag || 0, d[K + 12 >> 2] = N.c_lflag || 0;
5316
- for (var y = 0; y < 32; y++)
5317
- W[K + y + 17] = N.c_cc[y] || 0;
5319
+ for (var R = 0; R < 32; R++)
5320
+ W[K + R + 17] = N.c_cc[R] || 0;
5318
5321
  return 0;
5319
5322
  }
5320
5323
  return 0;
@@ -5328,9 +5331,9 @@ var PB = (() => {
5328
5331
  case 21508: {
5329
5332
  if (!G.tty) return -59;
5330
5333
  if (G.tty.ops.ioctl_tcsets) {
5331
- for (var K = Kg(), J = d[K >> 2], S = d[K + 4 >> 2], T = d[K + 8 >> 2], x = d[K + 12 >> 2], l = [], y = 0; y < 32; y++)
5332
- l.push(W[K + y + 17]);
5333
- return G.tty.ops.ioctl_tcsets(G.tty, I, { c_iflag: J, c_oflag: S, c_cflag: T, c_lflag: x, c_cc: l });
5334
+ for (var K = Kg(), J = d[K >> 2], a = d[K + 4 >> 2], T = d[K + 8 >> 2], x = d[K + 12 >> 2], l = [], R = 0; R < 32; R++)
5335
+ l.push(W[K + R + 17]);
5336
+ return G.tty.ops.ioctl_tcsets(G.tty, I, { c_iflag: J, c_oflag: a, c_cflag: T, c_lflag: x, c_cc: l });
5334
5337
  }
5335
5338
  return 0;
5336
5339
  }
@@ -5378,9 +5381,9 @@ var PB = (() => {
5378
5381
  I = GA.getStr(I);
5379
5382
  var N = G & 256, K = G & 4096;
5380
5383
  return G = G & -6401, I = GA.calculateAt(B, I, K), GA.writeStat(E, N ? M.lstat(I) : M.stat(I));
5381
- } catch (y) {
5382
- if (typeof M > "u" || y.name !== "ErrnoError") throw y;
5383
- return -y.errno;
5384
+ } catch (R) {
5385
+ if (typeof M > "u" || R.name !== "ErrnoError") throw R;
5386
+ return -R.errno;
5384
5387
  }
5385
5388
  }
5386
5389
  function vE(B, I, E, G) {
@@ -5417,20 +5420,20 @@ var PB = (() => {
5417
5420
  return I;
5418
5421
  }, fg = {}, zg = {}, TQ = {}, kQ, X = (B) => {
5419
5422
  throw new kQ(B);
5420
- }, iB, xQ = (B) => {
5421
- throw new iB(B);
5423
+ }, yB, xQ = (B) => {
5424
+ throw new yB(B);
5422
5425
  }, dQ = (B, I, E) => {
5423
5426
  B.forEach((J) => TQ[J] = I);
5424
5427
  function G(J) {
5425
- var S = E(J);
5426
- S.length !== B.length && xQ("Mismatched type converter count");
5428
+ var a = E(J);
5429
+ a.length !== B.length && xQ("Mismatched type converter count");
5427
5430
  for (var T = 0; T < B.length; ++T)
5428
- XA(B[T], S[T]);
5431
+ XA(B[T], a[T]);
5429
5432
  }
5430
- var N = new Array(I.length), K = [], y = 0;
5431
- I.forEach((J, S) => {
5432
- zg.hasOwnProperty(J) ? N[S] = zg[J] : (K.push(J), fg.hasOwnProperty(J) || (fg[J] = []), fg[J].push(() => {
5433
- N[S] = zg[J], ++y, y === K.length && G(N);
5433
+ var N = new Array(I.length), K = [], R = 0;
5434
+ I.forEach((J, a) => {
5435
+ zg.hasOwnProperty(J) ? N[a] = zg[J] : (K.push(J), fg.hasOwnProperty(J) || (fg[J] = []), fg[J].push(() => {
5436
+ N[a] = zg[J], ++R, R === K.length && G(N);
5434
5437
  }));
5435
5438
  }), K.length === 0 && G(N);
5436
5439
  };
@@ -5449,7 +5452,7 @@ var PB = (() => {
5449
5452
  function XA(B, I, E = {}) {
5450
5453
  return nE(B, I, E);
5451
5454
  }
5452
- var yB = (B, I, E) => {
5455
+ var RB = (B, I, E) => {
5453
5456
  switch (I) {
5454
5457
  case 1:
5455
5458
  return E ? (G) => W[G] : (G) => AA[G];
@@ -5465,11 +5468,11 @@ var PB = (() => {
5465
5468
  }, ZE = (B, I, E, G, N) => {
5466
5469
  I = hA(I);
5467
5470
  var K = I.indexOf("u") != -1;
5468
- XA(B, { name: I, fromWireType: (y) => y, toWireType: function(y, J) {
5471
+ XA(B, { name: I, fromWireType: (R) => R, toWireType: function(R, J) {
5469
5472
  if (typeof J != "bigint" && typeof J != "number")
5470
5473
  throw new TypeError(`Cannot convert "${tQ(J)}" to ${this.name}`);
5471
5474
  return typeof J == "number" && (J = BigInt(J)), J;
5472
- }, argPackAdvance: gg, readValueFromPointer: yB(I, E, !K), destructorFunction: null });
5475
+ }, argPackAdvance: gg, readValueFromPointer: RB(I, E, !K), destructorFunction: null });
5473
5476
  }, gg = 8, fE = (B, I, E, G) => {
5474
5477
  I = hA(I), XA(B, { name: I, fromWireType: function(N) {
5475
5478
  return !!N;
@@ -5483,7 +5486,7 @@ var PB = (() => {
5483
5486
  return E.$$.ptrType.registeredClass.name;
5484
5487
  }
5485
5488
  X(I(B) + " instance already deleted");
5486
- }, ZC = !1, RB = (B) => {
5489
+ }, ZC = !1, iB = (B) => {
5487
5490
  }, pE = (B) => {
5488
5491
  B.smartPtr ? B.smartPtrType.rawDestructor(B.smartPtr) : B.ptrType.registeredClass.rawDestructor(B.ptr);
5489
5492
  }, hB = (B) => {
@@ -5520,13 +5523,13 @@ var PB = (() => {
5520
5523
  function N() {
5521
5524
  return this.isSmartPointer ? zQ(this.registeredClass.instancePrototype, { ptrType: this.pointeeType, ptr: I, smartPtrType: this, smartPtr: B }) : zQ(this.registeredClass.instancePrototype, { ptrType: this, ptr: B });
5522
5525
  }
5523
- var K = this.registeredClass.getActualType(I), y = LB[K];
5524
- if (!y)
5526
+ var K = this.registeredClass.getActualType(I), R = LB[K];
5527
+ if (!R)
5525
5528
  return N.call(this);
5526
5529
  var J;
5527
- this.isConst ? J = y.constPointerType : J = y.pointerType;
5528
- var S = JB(I, this.registeredClass, J.registeredClass);
5529
- return S === null ? N.call(this) : this.isSmartPointer ? zQ(J.registeredClass.instancePrototype, { ptrType: J, ptr: S, smartPtrType: this, smartPtr: B }) : zQ(J.registeredClass.instancePrototype, { ptrType: J, ptr: S });
5530
+ this.isConst ? J = R.constPointerType : J = R.pointerType;
5531
+ var a = JB(I, this.registeredClass, J.registeredClass);
5532
+ return a === null ? N.call(this) : this.isSmartPointer ? zQ(J.registeredClass.instancePrototype, { ptrType: J, ptr: a, smartPtrType: this, smartPtr: B }) : zQ(J.registeredClass.instancePrototype, { ptrType: J, ptr: a });
5530
5533
  }
5531
5534
  var UQ = (B) => typeof FinalizationRegistry > "u" ? (UQ = (I) => I, B) : (ZC = new FinalizationRegistry((I) => {
5532
5535
  hB(I.$$);
@@ -5537,7 +5540,7 @@ var PB = (() => {
5537
5540
  ZC.register(I, N, I);
5538
5541
  }
5539
5542
  return I;
5540
- }, RB = (I) => ZC.unregister(I), UQ(B)), rE = () => {
5543
+ }, iB = (I) => ZC.unregister(I), UQ(B)), rE = () => {
5541
5544
  Object.assign(VQ.prototype, { isAliasOf(B) {
5542
5545
  if (!(this instanceof VQ) || !(B instanceof VQ))
5543
5546
  return !1;
@@ -5554,7 +5557,7 @@ var PB = (() => {
5554
5557
  var B = UQ(Object.create(Object.getPrototypeOf(this), { $$: { value: qE(this.$$) } }));
5555
5558
  return B.$$.count.value += 1, B.$$.deleteScheduled = !1, B;
5556
5559
  }, delete() {
5557
- this.$$.ptr || nC(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && X("Object already scheduled for deletion"), RB(this), hB(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
5560
+ this.$$.ptr || nC(this), this.$$.deleteScheduled && !this.$$.preservePointerOnDelete && X("Object already scheduled for deletion"), iB(this), hB(this.$$), this.$$.preservePointerOnDelete || (this.$$.smartPtr = void 0, this.$$.ptr = void 0);
5558
5561
  }, isDeleted() {
5559
5562
  return !this.$$.ptr;
5560
5563
  }, deleteLater() {
@@ -5577,8 +5580,8 @@ var PB = (() => {
5577
5580
  var I = B.charCodeAt(0);
5578
5581
  return I >= jE && I <= XE ? `_${B}` : B;
5579
5582
  };
5580
- function $E(B, I, E, G, N, K, y, J) {
5581
- this.name = B, this.constructor = I, this.instancePrototype = E, this.rawDestructor = G, this.baseClass = N, this.getActualType = K, this.upcast = y, this.downcast = J, this.pureVirtualFunctions = [];
5583
+ function $E(B, I, E, G, N, K, R, J) {
5584
+ this.name = B, this.constructor = I, this.instancePrototype = E, this.rawDestructor = G, this.baseClass = N, this.getActualType = K, this.upcast = R, this.downcast = J, this.pureVirtualFunctions = [];
5582
5585
  }
5583
5586
  var vQ = (B, I, E) => {
5584
5587
  for (; I !== E; )
@@ -5637,14 +5640,14 @@ var PB = (() => {
5637
5640
  (I = this.rawDestructor) == null || I.call(this, B);
5638
5641
  }, argPackAdvance: gg, readValueFromPointer: OQ, fromWireType: WE });
5639
5642
  };
5640
- function lQ(B, I, E, G, N, K, y, J, S, T, x) {
5641
- this.name = B, this.registeredClass = I, this.isReference = E, this.isConst = G, this.isSmartPointer = N, this.pointeeType = K, this.sharingPolicy = y, this.rawGetPointee = J, this.rawConstructor = S, this.rawShare = T, this.rawDestructor = x, !N && I.baseClass === void 0 ? G ? (this.toWireType = AD, this.destructorFunction = null) : (this.toWireType = QD, this.destructorFunction = null) : this.toWireType = gD;
5643
+ function lQ(B, I, E, G, N, K, R, J, a, T, x) {
5644
+ this.name = B, this.registeredClass = I, this.isReference = E, this.isConst = G, this.isSmartPointer = N, this.pointeeType = K, this.sharingPolicy = R, this.rawGetPointee = J, this.rawConstructor = a, this.rawShare = T, this.rawDestructor = x, !N && I.baseClass === void 0 ? G ? (this.toWireType = AD, this.destructorFunction = null) : (this.toWireType = QD, this.destructorFunction = null) : this.toWireType = gD;
5642
5645
  }
5643
5646
  var HB = (B, I, E) => {
5644
5647
  Q.hasOwnProperty(B) || xQ("Replacing nonexistent public symbol"), Q[B].overloadTable !== void 0 && E !== void 0 ? Q[B].overloadTable[E] = I : (Q[B] = I, Q[B].argCount = E);
5645
- }, bQ = [], aB, BD = (B) => {
5648
+ }, bQ = [], sB, BD = (B) => {
5646
5649
  var I = bQ[B];
5647
- return I || (B >= bQ.length && (bQ.length = B + 1), bQ[B] = I = aB.get(B)), I;
5650
+ return I || (B >= bQ.length && (bQ.length = B + 1), bQ[B] = I = sB.get(B)), I;
5648
5651
  }, Vg = (B, I) => {
5649
5652
  B = hA(B);
5650
5653
  function E() {
@@ -5662,9 +5665,9 @@ var PB = (() => {
5662
5665
  return E.prototype = Object.create(B.prototype), E.prototype.constructor = E, E.prototype.toString = function() {
5663
5666
  return this.message === void 0 ? this.name : `${this.name}: ${this.message}`;
5664
5667
  }, E;
5665
- }, SB, sB = (B) => {
5668
+ }, aB, SB = (B) => {
5666
5669
  var I = ho(B), E = hA(I);
5667
- return ig(I), E;
5670
+ return yg(I), E;
5668
5671
  }, nQ = (B, I) => {
5669
5672
  var E = [], G = {};
5670
5673
  function N(K) {
@@ -5676,9 +5679,9 @@ var PB = (() => {
5676
5679
  E.push(K), G[K] = !0;
5677
5680
  }
5678
5681
  }
5679
- throw I.forEach(N), new SB(`${B}: ` + E.map(sB).join([", "]));
5680
- }, ED = (B, I, E, G, N, K, y, J, S, T, x, l, p) => {
5681
- x = hA(x), K = Vg(N, K), J && (J = Vg(y, J)), T && (T = Vg(S, T)), p = Vg(l, p);
5682
+ throw I.forEach(N), new aB(`${B}: ` + E.map(SB).join([", "]));
5683
+ }, ED = (B, I, E, G, N, K, R, J, a, T, x, l, p) => {
5684
+ x = hA(x), K = Vg(N, K), J && (J = Vg(R, J)), T && (T = Vg(a, T)), p = Vg(l, p);
5682
5685
  var b = _E(x);
5683
5686
  fC(b, function() {
5684
5687
  nQ(`Cannot construct ${x} due to unbound types`, [G]);
@@ -5708,23 +5711,23 @@ var PB = (() => {
5708
5711
  var I = B.pop(), E = B.pop();
5709
5712
  E(I);
5710
5713
  }
5711
- }, cB = (B, I, E) => (B instanceof Object || X(`${E} with invalid "this": ${B}`), B instanceof I.registeredClass.constructor || X(`${E} incompatible with "this" of type ${B.constructor.name}`), B.$$.ptr || X(`cannot call emscripten binding method ${E} on deleted object`), vQ(B.$$.ptr, B.$$.ptrType.registeredClass, I.registeredClass)), DD = (B, I, E, G, N, K, y, J, S, T) => {
5714
+ }, cB = (B, I, E) => (B instanceof Object || X(`${E} with invalid "this": ${B}`), B instanceof I.registeredClass.constructor || X(`${E} incompatible with "this" of type ${B.constructor.name}`), B.$$.ptr || X(`cannot call emscripten binding method ${E} on deleted object`), vQ(B.$$.ptr, B.$$.ptrType.registeredClass, I.registeredClass)), DD = (B, I, E, G, N, K, R, J, a, T) => {
5712
5715
  I = hA(I), N = Vg(G, N), dQ([], [B], (x) => {
5713
5716
  x = x[0];
5714
5717
  var l = `${x.name}.${I}`, p = { get() {
5715
- nQ(`Cannot access ${l} due to unbound types`, [E, y]);
5718
+ nQ(`Cannot access ${l} due to unbound types`, [E, R]);
5716
5719
  }, enumerable: !0, configurable: !0 };
5717
- return S ? p.set = () => nQ(`Cannot access ${l} due to unbound types`, [E, y]) : p.set = (b) => X(l + " is a read-only property"), Object.defineProperty(x.registeredClass.instancePrototype, I, p), dQ([], S ? [E, y] : [E], (b) => {
5720
+ return a ? p.set = () => nQ(`Cannot access ${l} due to unbound types`, [E, R]) : p.set = (b) => X(l + " is a read-only property"), Object.defineProperty(x.registeredClass.instancePrototype, I, p), dQ([], a ? [E, R] : [E], (b) => {
5718
5721
  var Z = b[0], gA = { get() {
5719
5722
  var wA = cB(this, x, l + " getter");
5720
5723
  return Z.fromWireType(N(K, wA));
5721
5724
  }, enumerable: !0 };
5722
- if (S) {
5723
- S = Vg(J, S);
5725
+ if (a) {
5726
+ a = Vg(J, a);
5724
5727
  var kA = b[1];
5725
5728
  gA.set = function(wA) {
5726
5729
  var UA = cB(this, x, l + " setter"), KA = [];
5727
- S(T, UA, kA.toWireType(KA, wA)), qC(KA);
5730
+ a(T, UA, kA.toWireType(KA, wA)), qC(KA);
5728
5731
  };
5729
5732
  }
5730
5733
  return Object.defineProperty(x.registeredClass.instancePrototype, I, gA), [];
@@ -5781,10 +5784,10 @@ var PB = (() => {
5781
5784
  }
5782
5785
  N.values = {}, XA(B, { name: I, constructor: N, fromWireType: function(K) {
5783
5786
  return this.constructor.values[K];
5784
- }, toWireType: (K, y) => y.value, argPackAdvance: gg, readValueFromPointer: ND(I, E, G), destructorFunction: null }), fC(I, N);
5787
+ }, toWireType: (K, R) => R.value, argPackAdvance: gg, readValueFromPointer: ND(I, E, G), destructorFunction: null }), fC(I, N);
5785
5788
  }, mC = (B, I) => {
5786
5789
  var E = zg[B];
5787
- return E === void 0 && X(`${I} has unknown type ${sB(B)}`), E;
5790
+ return E === void 0 && X(`${I} has unknown type ${SB(B)}`), E;
5788
5791
  }, kD = (B, I, E) => {
5789
5792
  var G = mC(B, "enum");
5790
5793
  I = hA(I);
@@ -5795,7 +5798,7 @@ var PB = (() => {
5795
5798
  switch (I) {
5796
5799
  case 4:
5797
5800
  return function(E) {
5798
- return this.fromWireType(iA[E >> 2]);
5801
+ return this.fromWireType(yA[E >> 2]);
5799
5802
  };
5800
5803
  case 8:
5801
5804
  return function(E) {
@@ -5823,24 +5826,24 @@ var PB = (() => {
5823
5826
  return N instanceof Object ? N : G;
5824
5827
  }
5825
5828
  function FD(B, I, E, G) {
5826
- for (var N = tB(B), K = B.length - 2, y = [], J = ["fn"], S = 0; S < K; ++S)
5827
- y.push(`arg${S}`), J.push(`arg${S}Wired`);
5828
- y = y.join(","), J = J.join(",");
5829
- var T = `return function (${y}) {
5829
+ for (var N = tB(B), K = B.length - 2, R = [], J = ["fn"], a = 0; a < K; ++a)
5830
+ R.push(`arg${a}`), J.push(`arg${a}Wired`);
5831
+ R = R.join(","), J = J.join(",");
5832
+ var T = `return function (${R}) {
5830
5833
  `;
5831
5834
  N && (T += `var destructors = [];
5832
5835
  `);
5833
- for (var x = N ? "destructors" : "null", l = ["humanName", "throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"], S = 0; S < K; ++S)
5834
- T += `var arg${S}Wired = argType${S}['toWireType'](${x}, arg${S});
5835
- `, l.push(`argType${S}`);
5836
+ for (var x = N ? "destructors" : "null", l = ["humanName", "throwBindingError", "invoker", "fn", "runDestructors", "retType", "classParam"], a = 0; a < K; ++a)
5837
+ T += `var arg${a}Wired = argType${a}['toWireType'](${x}, arg${a});
5838
+ `, l.push(`argType${a}`);
5836
5839
  if (T += (E || G ? "var rv = " : "") + `invoker(${J});
5837
5840
  `, N)
5838
5841
  T += `runDestructors(destructors);
5839
5842
  `;
5840
5843
  else
5841
- for (var S = 2; S < B.length; ++S) {
5842
- var p = S === 1 ? "thisWired" : "arg" + (S - 2) + "Wired";
5843
- B[S].destructorFunction !== null && (T += `${p}_dtor(${p});
5844
+ for (var a = 2; a < B.length; ++a) {
5845
+ var p = a === 1 ? "thisWired" : "arg" + (a - 2) + "Wired";
5846
+ B[a].destructorFunction !== null && (T += `${p}_dtor(${p});
5844
5847
  `, l.push(`${p}_dtor`));
5845
5848
  }
5846
5849
  return E && (T += `var ret = retType['fromWireType'](rv);
@@ -5848,12 +5851,12 @@ return ret;
5848
5851
  `), T += `}
5849
5852
  `, [l, T];
5850
5853
  }
5851
- function iD(B, I, E, G, N, K) {
5852
- var y = I.length;
5853
- y < 2 && X("argTypes array size mismatch! Must at least get return value and 'this' types!");
5854
- for (var J = I[1] !== null && E !== null, S = tB(I), T = I[0].name !== "void", x = [B, X, G, N, qC, I[0], I[1]], l = 0; l < y - 2; ++l)
5854
+ function yD(B, I, E, G, N, K) {
5855
+ var R = I.length;
5856
+ R < 2 && X("argTypes array size mismatch! Must at least get return value and 'this' types!");
5857
+ for (var J = I[1] !== null && E !== null, a = tB(I), T = I[0].name !== "void", x = [B, X, G, N, qC, I[0], I[1]], l = 0; l < R - 2; ++l)
5855
5858
  x.push(I[l + 2]);
5856
- if (!S)
5859
+ if (!a)
5857
5860
  for (var l = 2; l < I.length; ++l)
5858
5861
  I[l].destructorFunction !== null && x.push(I[l].destructorFunction);
5859
5862
  let [p, b] = FD(I, J, T, K);
@@ -5861,90 +5864,90 @@ return ret;
5861
5864
  var Z = TB(Function, p)(...x);
5862
5865
  return qg(B, Z);
5863
5866
  }
5864
- var yD = (B, I) => {
5867
+ var RD = (B, I) => {
5865
5868
  for (var E = [], G = 0; G < B; G++)
5866
5869
  E.push(e[I + G * 4 >> 2]);
5867
5870
  return E;
5868
- }, RD = (B) => {
5871
+ }, iD = (B) => {
5869
5872
  B = B.trim();
5870
5873
  const I = B.indexOf("(");
5871
5874
  return I === -1 ? B : B.slice(0, I);
5872
- }, hD = (B, I, E, G, N, K, y, J) => {
5873
- var S = yD(I, E);
5874
- B = hA(B), B = RD(B), N = Vg(G, N), fC(B, function() {
5875
- nQ(`Cannot call ${B} due to unbound types`, S);
5876
- }, I - 1), dQ([], S, (T) => {
5875
+ }, hD = (B, I, E, G, N, K, R, J) => {
5876
+ var a = RD(I, E);
5877
+ B = hA(B), B = iD(B), N = Vg(G, N), fC(B, function() {
5878
+ nQ(`Cannot call ${B} due to unbound types`, a);
5879
+ }, I - 1), dQ([], a, (T) => {
5877
5880
  var x = [T[0], null].concat(T.slice(1));
5878
- return HB(B, iD(B, x, null, N, K, y), I - 1), [];
5881
+ return HB(B, yD(B, x, null, N, K, R), I - 1), [];
5879
5882
  });
5880
5883
  }, JD = (B, I, E, G, N) => {
5881
5884
  I = hA(I);
5882
5885
  var K = (x) => x;
5883
5886
  if (G === 0) {
5884
- var y = 32 - 8 * E;
5885
- K = (x) => x << y >>> y;
5887
+ var R = 32 - 8 * E;
5888
+ K = (x) => x << R >>> R;
5886
5889
  }
5887
- var J = I.includes("unsigned"), S = (x, l) => {
5890
+ var J = I.includes("unsigned"), a = (x, l) => {
5888
5891
  }, T;
5889
5892
  J ? T = function(x, l) {
5890
- return S(l, this.name), l >>> 0;
5893
+ return a(l, this.name), l >>> 0;
5891
5894
  } : T = function(x, l) {
5892
- return S(l, this.name), l;
5893
- }, XA(B, { name: I, fromWireType: K, toWireType: T, argPackAdvance: gg, readValueFromPointer: yB(I, E, G !== 0), destructorFunction: null });
5895
+ return a(l, this.name), l;
5896
+ }, XA(B, { name: I, fromWireType: K, toWireType: T, argPackAdvance: gg, readValueFromPointer: RB(I, E, G !== 0), destructorFunction: null });
5894
5897
  }, LD = (B, I, E) => {
5895
5898
  var G = [Int8Array, Uint8Array, Int16Array, Uint16Array, Int32Array, Uint32Array, Float32Array, Float64Array, BigInt64Array, BigUint64Array], N = G[I];
5896
- function K(y) {
5897
- var J = e[y >> 2], S = e[y + 4 >> 2];
5898
- return new N(W.buffer, S, J);
5899
+ function K(R) {
5900
+ var J = e[R >> 2], a = e[R + 4 >> 2];
5901
+ return new N(W.buffer, a, J);
5899
5902
  }
5900
5903
  E = hA(E), XA(B, { name: E, fromWireType: K, argPackAdvance: gg, readValueFromPointer: K }, { ignoreDuplicateRegistrations: !0 });
5901
5904
  }, vg = (B, I, E) => YQ(B, AA, I, E), HD = (B, I) => {
5902
5905
  I = hA(I), XA(B, { name: I, fromWireType(E) {
5903
- for (var G = e[E >> 2], N = E + 4, K, y, J = N, y = 0; y <= G; ++y) {
5904
- var S = N + y;
5905
- if (y == G || AA[S] == 0) {
5906
- var T = S - J, x = Ig(J, T);
5907
- K === void 0 ? K = x : (K += "\0", K += x), J = S + 1;
5906
+ for (var G = e[E >> 2], N = E + 4, K, R, J = N, R = 0; R <= G; ++R) {
5907
+ var a = N + R;
5908
+ if (R == G || AA[a] == 0) {
5909
+ var T = a - J, x = Ig(J, T);
5910
+ K === void 0 ? K = x : (K += "\0", K += x), J = a + 1;
5908
5911
  }
5909
5912
  }
5910
- return ig(E), K;
5913
+ return yg(E), K;
5911
5914
  }, toWireType(E, G) {
5912
5915
  G instanceof ArrayBuffer && (G = new Uint8Array(G));
5913
5916
  var N, K = typeof G == "string";
5914
5917
  K || G instanceof Uint8Array || G instanceof Uint8ClampedArray || G instanceof Int8Array || X("Cannot pass non-string to std::string"), K ? N = dg(G) : N = G.length;
5915
- var y = WC(4 + N + 1), J = y + 4;
5916
- if (e[y >> 2] = N, K)
5918
+ var R = WC(4 + N + 1), J = R + 4;
5919
+ if (e[R >> 2] = N, K)
5917
5920
  vg(G, J, N + 1);
5918
5921
  else if (K)
5919
- for (var S = 0; S < N; ++S) {
5920
- var T = G.charCodeAt(S);
5921
- T > 255 && (ig(y), X("String has UTF-16 code units that do not fit in 8 bits")), AA[J + S] = T;
5922
+ for (var a = 0; a < N; ++a) {
5923
+ var T = G.charCodeAt(a);
5924
+ T > 255 && (yg(R), X("String has UTF-16 code units that do not fit in 8 bits")), AA[J + a] = T;
5922
5925
  }
5923
5926
  else
5924
- for (var S = 0; S < N; ++S)
5925
- AA[J + S] = G[S];
5926
- return E !== null && E.push(ig, y), y;
5927
+ for (var a = 0; a < N; ++a)
5928
+ AA[J + a] = G[a];
5929
+ return E !== null && E.push(yg, R), R;
5927
5930
  }, argPackAdvance: gg, readValueFromPointer: OQ, destructorFunction(E) {
5928
- ig(E);
5931
+ yg(E);
5929
5932
  } });
5930
- }, xB = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, aD = (B, I) => {
5933
+ }, xB = typeof TextDecoder < "u" ? new TextDecoder("utf-16le") : void 0, sD = (B, I) => {
5931
5934
  for (var E = B, G = E >> 1, N = G + I / 2; !(G >= N) && P[G]; ) ++G;
5932
5935
  if (E = G << 1, E - B > 32 && xB) return xB.decode(AA.subarray(B, E));
5933
- for (var K = "", y = 0; !(y >= I / 2); ++y) {
5934
- var J = EA[B + y * 2 >> 1];
5936
+ for (var K = "", R = 0; !(R >= I / 2); ++R) {
5937
+ var J = EA[B + R * 2 >> 1];
5935
5938
  if (J == 0) break;
5936
5939
  K += String.fromCharCode(J);
5937
5940
  }
5938
5941
  return K;
5939
- }, SD = (B, I, E) => {
5942
+ }, aD = (B, I, E) => {
5940
5943
  if (E ?? (E = 2147483647), E < 2) return 0;
5941
5944
  E -= 2;
5942
5945
  for (var G = I, N = E < B.length * 2 ? E / 2 : B.length, K = 0; K < N; ++K) {
5943
- var y = B.charCodeAt(K);
5944
- EA[I >> 1] = y, I += 2;
5946
+ var R = B.charCodeAt(K);
5947
+ EA[I >> 1] = R, I += 2;
5945
5948
  }
5946
5949
  return EA[I >> 1] = 0, I - G;
5947
- }, sD = (B) => B.length * 2, cD = (B, I) => {
5950
+ }, SD = (B) => B.length * 2, cD = (B, I) => {
5948
5951
  for (var E = 0, G = ""; !(E >= I / 4); ) {
5949
5952
  var N = d[B + E * 4 >> 2];
5950
5953
  if (N == 0) break;
@@ -5958,12 +5961,12 @@ return ret;
5958
5961
  }, tD = (B, I, E) => {
5959
5962
  if (E ?? (E = 2147483647), E < 4) return 0;
5960
5963
  for (var G = I, N = G + E - 4, K = 0; K < B.length; ++K) {
5961
- var y = B.charCodeAt(K);
5962
- if (y >= 55296 && y <= 57343) {
5964
+ var R = B.charCodeAt(K);
5965
+ if (R >= 55296 && R <= 57343) {
5963
5966
  var J = B.charCodeAt(++K);
5964
- y = 65536 + ((y & 1023) << 10) | J & 1023;
5967
+ R = 65536 + ((R & 1023) << 10) | J & 1023;
5965
5968
  }
5966
- if (d[I >> 2] = y, I += 4, I + 4 > N) break;
5969
+ if (d[I >> 2] = R, I += 4, I + 4 > N) break;
5967
5970
  }
5968
5971
  return d[I >> 2] = 0, I - G;
5969
5972
  }, TD = (B) => {
@@ -5974,22 +5977,22 @@ return ret;
5974
5977
  return I;
5975
5978
  }, xD = (B, I, E) => {
5976
5979
  E = hA(E);
5977
- var G, N, K, y;
5978
- I === 2 ? (G = aD, N = SD, y = sD, K = (J) => P[J >> 1]) : I === 4 && (G = cD, N = tD, y = TD, K = (J) => e[J >> 2]), XA(B, { name: E, fromWireType: (J) => {
5979
- for (var S = e[J >> 2], T, x = J + 4, l = 0; l <= S; ++l) {
5980
+ var G, N, K, R;
5981
+ I === 2 ? (G = sD, N = aD, R = SD, K = (J) => P[J >> 1]) : I === 4 && (G = cD, N = tD, R = TD, K = (J) => e[J >> 2]), XA(B, { name: E, fromWireType: (J) => {
5982
+ for (var a = e[J >> 2], T, x = J + 4, l = 0; l <= a; ++l) {
5980
5983
  var p = J + 4 + l * I;
5981
- if (l == S || K(p) == 0) {
5984
+ if (l == a || K(p) == 0) {
5982
5985
  var b = p - x, Z = G(x, b);
5983
5986
  T === void 0 ? T = Z : (T += "\0", T += Z), x = p + I;
5984
5987
  }
5985
5988
  }
5986
- return ig(J), T;
5987
- }, toWireType: (J, S) => {
5988
- typeof S != "string" && X(`Cannot pass non-string to C++ string type ${E}`);
5989
- var T = y(S), x = WC(4 + T + I);
5990
- return e[x >> 2] = T / I, N(S, x + 4, T + I), J !== null && J.push(ig, x), x;
5989
+ return yg(J), T;
5990
+ }, toWireType: (J, a) => {
5991
+ typeof a != "string" && X(`Cannot pass non-string to C++ string type ${E}`);
5992
+ var T = R(a), x = WC(4 + T + I);
5993
+ return e[x >> 2] = T / I, N(a, x + 4, T + I), J !== null && J.push(yg, x), x;
5991
5994
  }, argPackAdvance: gg, readValueFromPointer: OQ, destructorFunction(J) {
5992
- ig(J);
5995
+ yg(J);
5993
5996
  } });
5994
5997
  }, dD = (B, I) => {
5995
5998
  I = hA(I), XA(B, { isVoid: !0, name: I, argPackAdvance: 0, fromWireType: () => {
@@ -6014,17 +6017,17 @@ return ret;
6014
6017
  var G = bD(B, I), N = G.shift();
6015
6018
  B--;
6016
6019
  var K = `return function (obj, func, destructorsRef, args) {
6017
- `, y = 0, J = [];
6020
+ `, R = 0, J = [];
6018
6021
  E === 0 && J.push("obj");
6019
- for (var S = ["retType"], T = [N], x = 0; x < B; ++x)
6020
- J.push("arg" + x), S.push("argType" + x), T.push(G[x]), K += ` var arg${x} = argType${x}.readValueFromPointer(args${y ? "+" + y : ""});
6021
- `, y += G[x].argPackAdvance;
6022
+ for (var a = ["retType"], T = [N], x = 0; x < B; ++x)
6023
+ J.push("arg" + x), a.push("argType" + x), T.push(G[x]), K += ` var arg${x} = argType${x}.readValueFromPointer(args${R ? "+" + R : ""});
6024
+ `, R += G[x].argPackAdvance;
6022
6025
  var l = E === 1 ? "new func" : "func.call";
6023
6026
  K += ` var rv = ${l}(${J.join(", ")});
6024
- `, N.isVoid || (S.push("emval_returnValue"), T.push(nD), K += ` return emval_returnValue(retType, destructorsRef, rv);
6027
+ `, N.isVoid || (a.push("emval_returnValue"), T.push(nD), K += ` return emval_returnValue(retType, destructorsRef, rv);
6025
6028
  `), K += `};
6026
- `, S.push(K);
6027
- var p = TB(Function, S)(...T), b = `methodCaller<(${G.map((Z) => Z.name).join(", ")}) => ${N.name}>`;
6029
+ `, a.push(K);
6030
+ var p = TB(Function, a)(...T), b = `methodCaller<(${G.map((Z) => Z.name).join(", ")}) => ${N.name}>`;
6028
6031
  return lD(qg(b, p));
6029
6032
  }, fD = (B) => {
6030
6033
  B > 9 && (Dg[B + 1] += 1);
@@ -6050,11 +6053,11 @@ return ret;
6050
6053
  return G;
6051
6054
  }, go = function(B) {
6052
6055
  var I = (() => {
6053
- var E = new Date(d[B + 20 >> 2] + 1900, d[B + 16 >> 2], d[B + 12 >> 2], d[B + 8 >> 2], d[B + 4 >> 2], d[B >> 2], 0), G = d[B + 32 >> 2], N = E.getTimezoneOffset(), K = new Date(E.getFullYear(), 0, 1), y = new Date(E.getFullYear(), 6, 1).getTimezoneOffset(), J = K.getTimezoneOffset(), S = Math.min(J, y);
6056
+ var E = new Date(d[B + 20 >> 2] + 1900, d[B + 16 >> 2], d[B + 12 >> 2], d[B + 8 >> 2], d[B + 4 >> 2], d[B >> 2], 0), G = d[B + 32 >> 2], N = E.getTimezoneOffset(), K = new Date(E.getFullYear(), 0, 1), R = new Date(E.getFullYear(), 6, 1).getTimezoneOffset(), J = K.getTimezoneOffset(), a = Math.min(J, R);
6054
6057
  if (G < 0)
6055
- d[B + 32 >> 2] = +(y != J && S == N);
6056
- else if (G > 0 != (S == N)) {
6057
- var T = Math.max(J, y), x = G > 0 ? S : T;
6058
+ d[B + 32 >> 2] = +(R != J && a == N);
6059
+ else if (G > 0 != (a == N)) {
6060
+ var T = Math.max(J, R), x = G > 0 ? a : T;
6058
6061
  E.setTime(E.getTime() + (x - N) * 6e4);
6059
6062
  }
6060
6063
  d[B + 24 >> 2] = E.getDay();
@@ -6065,13 +6068,13 @@ return ret;
6065
6068
  })();
6066
6069
  return BigInt(I);
6067
6070
  }, Qo = (B, I, E, G) => {
6068
- var N = (/* @__PURE__ */ new Date()).getFullYear(), K = new Date(N, 0, 1), y = new Date(N, 6, 1), J = K.getTimezoneOffset(), S = y.getTimezoneOffset(), T = Math.max(J, S);
6069
- e[B >> 2] = T * 60, d[I >> 2] = +(J != S);
6071
+ var N = (/* @__PURE__ */ new Date()).getFullYear(), K = new Date(N, 0, 1), R = new Date(N, 6, 1), J = K.getTimezoneOffset(), a = R.getTimezoneOffset(), T = Math.max(J, a);
6072
+ e[B >> 2] = T * 60, d[I >> 2] = +(J != a);
6070
6073
  var x = (b) => {
6071
6074
  var Z = b >= 0 ? "-" : "+", gA = Math.abs(b), kA = String(Math.floor(gA / 60)).padStart(2, "0"), wA = String(gA % 60).padStart(2, "0");
6072
6075
  return `UTC${Z}${kA}${wA}`;
6073
- }, l = x(J), p = x(S);
6074
- S < J ? (vg(l, E, 17), vg(p, G, 17)) : (vg(l, G, 17), vg(p, E, 17));
6076
+ }, l = x(J), p = x(a);
6077
+ a < J ? (vg(l, E, 17), vg(p, G, 17)) : (vg(l, G, 17), vg(p, E, 17));
6075
6078
  }, Co = () => Date.now(), Bo = () => 2147483648, Io = (B) => {
6076
6079
  var I = f.buffer, E = (B - I.byteLength + 65535) / 65536 | 0;
6077
6080
  try {
@@ -6087,8 +6090,8 @@ return ret;
6087
6090
  for (var G = 1; G <= 4; G *= 2) {
6088
6091
  var N = I * (1 + 0.2 / G);
6089
6092
  N = Math.min(N, B + 100663296);
6090
- var K = Math.min(E, dC(Math.max(B, N), 65536)), y = Io(K);
6091
- if (y)
6093
+ var K = Math.min(E, dC(Math.max(B, N), 65536)), R = Io(K);
6094
+ if (R)
6092
6095
  return !0;
6093
6096
  }
6094
6097
  return !1;
@@ -6130,11 +6133,11 @@ return ret;
6130
6133
  }
6131
6134
  var No = (B, I, E, G) => {
6132
6135
  for (var N = 0, K = 0; K < E; K++) {
6133
- var y = e[I >> 2], J = e[I + 4 >> 2];
6136
+ var R = e[I >> 2], J = e[I + 4 >> 2];
6134
6137
  I += 8;
6135
- var S = M.read(B, W, y, J, G);
6136
- if (S < 0) return -1;
6137
- if (N += S, S < J) break;
6138
+ var a = M.read(B, W, R, J, G);
6139
+ if (a < 0) return -1;
6140
+ if (N += a, a < J) break;
6138
6141
  }
6139
6142
  return N;
6140
6143
  };
@@ -6142,9 +6145,9 @@ return ret;
6142
6145
  try {
6143
6146
  var N = GA.getStreamFromFD(B), K = No(N, I, E);
6144
6147
  return e[G >> 2] = K, 0;
6145
- } catch (y) {
6146
- if (typeof M > "u" || y.name !== "ErrnoError") throw y;
6147
- return y.errno;
6148
+ } catch (R) {
6149
+ if (typeof M > "u" || R.name !== "ErrnoError") throw R;
6150
+ return R.errno;
6148
6151
  }
6149
6152
  }
6150
6153
  function ko(B, I, E, G) {
@@ -6160,11 +6163,11 @@ return ret;
6160
6163
  }
6161
6164
  var Uo = (B, I, E, G) => {
6162
6165
  for (var N = 0, K = 0; K < E; K++) {
6163
- var y = e[I >> 2], J = e[I + 4 >> 2];
6166
+ var R = e[I >> 2], J = e[I + 4 >> 2];
6164
6167
  I += 8;
6165
- var S = M.write(B, W, y, J, G);
6166
- if (S < 0) return -1;
6167
- if (N += S, S < J)
6168
+ var a = M.write(B, W, R, J, G);
6169
+ if (a < 0) return -1;
6170
+ if (N += a, a < J)
6168
6171
  break;
6169
6172
  }
6170
6173
  return N;
@@ -6173,9 +6176,9 @@ return ret;
6173
6176
  try {
6174
6177
  var N = GA.getStreamFromFD(B), K = Uo(N, I, E);
6175
6178
  return e[G >> 2] = K, 0;
6176
- } catch (y) {
6177
- if (typeof M > "u" || y.name !== "ErrnoError") throw y;
6178
- return y.errno;
6179
+ } catch (R) {
6180
+ if (typeof M > "u" || R.name !== "ErrnoError") throw R;
6181
+ return R.errno;
6179
6182
  }
6180
6183
  }
6181
6184
  var VB = (B) => {
@@ -6183,35 +6186,35 @@ return ret;
6183
6186
  return I;
6184
6187
  }, Fo = (B, I) => {
6185
6188
  W.set(B, I);
6186
- }, vB = (B) => Lo(B), io = (B) => {
6189
+ }, vB = (B) => Lo(B), yo = (B) => {
6187
6190
  var I = dg(B) + 1, E = vB(I);
6188
6191
  return vg(B, E, I), E;
6189
6192
  }, OB = (B, I, E, G, N) => {
6190
6193
  var K = { string: (Z) => {
6191
6194
  var gA = 0;
6192
- return Z != null && Z !== 0 && (gA = io(Z)), gA;
6195
+ return Z != null && Z !== 0 && (gA = yo(Z)), gA;
6193
6196
  }, array: (Z) => {
6194
6197
  var gA = vB(Z.length);
6195
6198
  return Fo(Z, gA), gA;
6196
6199
  } };
6197
- function y(Z) {
6200
+ function R(Z) {
6198
6201
  return I === "string" ? Ig(Z) : I === "boolean" ? !!Z : Z;
6199
6202
  }
6200
- var J = VB(B), S = [], T = 0;
6203
+ var J = VB(B), a = [], T = 0;
6201
6204
  if (G)
6202
6205
  for (var x = 0; x < G.length; x++) {
6203
6206
  var l = K[E[x]];
6204
- l ? (T === 0 && (T = SC()), S[x] = l(G[x])) : S[x] = G[x];
6207
+ l ? (T === 0 && (T = aC()), a[x] = l(G[x])) : a[x] = G[x];
6205
6208
  }
6206
- var p = J(...S);
6209
+ var p = J(...a);
6207
6210
  function b(Z) {
6208
- return T !== 0 && aC(T), y(Z);
6211
+ return T !== 0 && sC(T), R(Z);
6209
6212
  }
6210
6213
  return p = b(p), p;
6211
- }, yo = (B, I, E, G) => {
6212
- var N = !E || E.every((y) => y === "number" || y === "boolean"), K = I !== "string";
6213
- return K && N && !G ? VB(B) : (...y) => OB(B, I, E, y);
6214
- }, Ro = (B) => {
6214
+ }, Ro = (B, I, E, G) => {
6215
+ var N = !E || E.every((R) => R === "number" || R === "boolean"), K = I !== "string";
6216
+ return K && N && !G ? VB(B) : (...R) => OB(B, I, E, R);
6217
+ }, io = (B) => {
6215
6218
  var I = dg(B) + 1, E = WC(I);
6216
6219
  return E && vg(B, E, I), E;
6217
6220
  };
@@ -6219,15 +6222,15 @@ return ret;
6219
6222
  constructor(I) {
6220
6223
  super(I), this.name = "BindingError";
6221
6224
  }
6222
- }, iB = Q.InternalError = class extends Error {
6225
+ }, yB = Q.InternalError = class extends Error {
6223
6226
  constructor(I) {
6224
6227
  super(I), this.name = "InternalError";
6225
6228
  }
6226
- }, rE(), CD(), SB = Q.UnboundTypeError = ID(Error, "UnboundTypeError"), GD();
6227
- var lB = { __assert_fail: sC, __cxa_throw: tC, __syscall_fcntl64: TE, __syscall_fstat64: xE, __syscall_ioctl: dE, __syscall_lstat64: zE, __syscall_newfstatat: VE, __syscall_openat: vE, __syscall_stat64: OE, _abort_js: lE, _embind_register_bigint: ZE, _embind_register_bool: fE, _embind_register_class: ED, _embind_register_class_property: DD, _embind_register_emval: MD, _embind_register_enum: YD, _embind_register_enum_value: kD, _embind_register_float: KD, _embind_register_function: hD, _embind_register_integer: JD, _embind_register_memory_view: LD, _embind_register_std_string: HD, _embind_register_std_wstring: xD, _embind_register_void: dD, _emval_call: zD, _emval_call_method: vD, _emval_decref: eC, _emval_get_global: OD, _emval_get_method_caller: ZD, _emval_incref: fD, _emval_new_array: qD, _emval_new_cstring: pD, _emval_new_object: eD, _emval_run_destructors: mD, _emval_set_property: uD, _emval_take_value: WD, _gmtime_js: jD, _mktime_js: go, _tzset_js: Qo, emscripten_date_now: Co, emscripten_resize_heap: Eo, environ_get: Go, environ_sizes_get: wo, fd_close: Mo, fd_read: Yo, fd_seek: ko, fd_write: Ko }, ZA = await hC();
6229
+ }, rE(), CD(), aB = Q.UnboundTypeError = ID(Error, "UnboundTypeError"), GD();
6230
+ var lB = { __assert_fail: SC, __cxa_throw: tC, __syscall_fcntl64: TE, __syscall_fstat64: xE, __syscall_ioctl: dE, __syscall_lstat64: zE, __syscall_newfstatat: VE, __syscall_openat: vE, __syscall_stat64: OE, _abort_js: lE, _embind_register_bigint: ZE, _embind_register_bool: fE, _embind_register_class: ED, _embind_register_class_property: DD, _embind_register_emval: MD, _embind_register_enum: YD, _embind_register_enum_value: kD, _embind_register_float: KD, _embind_register_function: hD, _embind_register_integer: JD, _embind_register_memory_view: LD, _embind_register_std_string: HD, _embind_register_std_wstring: xD, _embind_register_void: dD, _emval_call: zD, _emval_call_method: vD, _emval_decref: eC, _emval_get_global: OD, _emval_get_method_caller: ZD, _emval_incref: fD, _emval_new_array: qD, _emval_new_cstring: pD, _emval_new_object: eD, _emval_run_destructors: mD, _emval_set_property: uD, _emval_take_value: WD, _gmtime_js: jD, _mktime_js: go, _tzset_js: Qo, emscripten_date_now: Co, emscripten_resize_heap: Eo, environ_get: Go, environ_sizes_get: wo, fd_close: Mo, fd_read: Yo, fd_seek: ko, fd_write: Ko }, ZA = await hC();
6228
6231
  ZA.__wasm_call_ctors;
6229
- var WC = ZA.malloc, ig = ZA.free, ho = ZA.__getTypeName, Jo = ZA._emscripten_stack_restore, Lo = ZA._emscripten_stack_alloc, Ho = ZA.emscripten_stack_get_current;
6230
- Q.ENV = fQ, Q.ccall = OB, Q.cwrap = yo, Q.setValue = HC, Q.UTF8ToString = Ig, Q.stringToNewUTF8 = Ro, Q.FS = M;
6232
+ var WC = ZA.malloc, yg = ZA.free, ho = ZA.__getTypeName, Jo = ZA._emscripten_stack_restore, Lo = ZA._emscripten_stack_alloc, Ho = ZA.emscripten_stack_get_current;
6233
+ Q.ENV = fQ, Q.ccall = OB, Q.cwrap = Ro, Q.setValue = HC, Q.UTF8ToString = Ig, Q.stringToNewUTF8 = io, Q.FS = M;
6231
6234
  function rC() {
6232
6235
  if (jA > 0) {
6233
6236
  Cg = rC;
@@ -6254,7 +6257,7 @@ return ret;
6254
6257
  Object.fromEntries(
6255
6258
  Object.entries(n).map(([g, A]) => [A, g])
6256
6259
  );
6257
- var KB = /* @__PURE__ */ ((g) => (g[g.DWG = 0] = "DWG", g[g.DXF = 1] = "DXF", g))(KB || {}), RQ = /* @__PURE__ */ ((g) => (g[g.Line = 1] = "Line", g[g.CircularArc = 2] = "CircularArc", g[g.EllipticArc = 3] = "EllipticArc", g[g.Spline = 4] = "Spline", g))(RQ || {});
6260
+ var KB = /* @__PURE__ */ ((g) => (g[g.DWG = 0] = "DWG", g[g.DXF = 1] = "DXF", g))(KB || {}), iQ = /* @__PURE__ */ ((g) => (g[g.Line = 1] = "Line", g[g.CircularArc = 2] = "CircularArc", g[g.EllipticArc = 3] = "EllipticArc", g[g.Spline = 4] = "Spline", g))(iQ || {});
6258
6261
  const xM = "*MODEL_SPACE", dM = "*PAPER_SPACE", HE = (g) => g && g.toUpperCase() == xM, zM = (g) => g && g.toUpperCase().startsWith(dM), DA = (g) => g.toString(16).toUpperCase();
6259
6262
  class VM {
6260
6263
  constructor(A) {
@@ -6361,7 +6364,7 @@ class VM {
6361
6364
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "center").data, o = Q.dwg_dynapi_entity_value(A, "radius").data, w = Q.dwg_dynapi_entity_value(A, "thickness").data, k = Q.dwg_dynapi_entity_value(
6362
6365
  A,
6363
6366
  "extrusion"
6364
- ).data, U = Q.dwg_dynapi_entity_value(A, "start_angle").data, i = Q.dwg_dynapi_entity_value(A, "end_angle").data;
6367
+ ).data, U = Q.dwg_dynapi_entity_value(A, "start_angle").data, y = Q.dwg_dynapi_entity_value(A, "end_angle").data;
6365
6368
  return {
6366
6369
  type: "ARC",
6367
6370
  ...C,
@@ -6369,7 +6372,7 @@ class VM {
6369
6372
  center: D,
6370
6373
  radius: o,
6371
6374
  startAngle: U,
6372
- endAngle: i,
6375
+ endAngle: y,
6373
6376
  extrusionDirection: k
6374
6377
  };
6375
6378
  }
@@ -6394,7 +6397,7 @@ class VM {
6394
6397
  A,
6395
6398
  C,
6396
6399
  "rect_width"
6397
- ).data, i = Q.dwg_dynapi_subclass_value(
6400
+ ).data, y = Q.dwg_dynapi_subclass_value(
6398
6401
  A,
6399
6402
  C,
6400
6403
  "extents_height"
@@ -6407,7 +6410,7 @@ class VM {
6407
6410
  insertionPoint: o,
6408
6411
  rectHeight: k,
6409
6412
  rectWidth: U,
6410
- extentsHeight: i,
6413
+ extentsHeight: y,
6411
6414
  extentsWidth: F,
6412
6415
  attachmentPoint: D,
6413
6416
  direction: w
@@ -6423,7 +6426,7 @@ class VM {
6423
6426
  convertAttdef(A, C) {
6424
6427
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "default_value").data, o = this.convertTextBase(A);
6425
6428
  o.text = D;
6426
- const w = Q.dwg_dynapi_entity_value(A, "prompt").data, k = Q.dwg_dynapi_entity_value(A, "tag").data, U = Q.dwg_dynapi_entity_value(A, "flags").data, i = Q.dwg_dynapi_entity_value(A, "field_length").data, F = Q.dwg_dynapi_entity_value(
6429
+ const w = Q.dwg_dynapi_entity_value(A, "prompt").data, k = Q.dwg_dynapi_entity_value(A, "tag").data, U = Q.dwg_dynapi_entity_value(A, "flags").data, y = Q.dwg_dynapi_entity_value(A, "field_length").data, F = Q.dwg_dynapi_entity_value(
6427
6430
  A,
6428
6431
  "lock_position_flag"
6429
6432
  ).data, h = Q.dwg_dynapi_entity_value(
@@ -6432,7 +6435,7 @@ class VM {
6432
6435
  ).data, L = Q.dwg_dynapi_entity_value(
6433
6436
  A,
6434
6437
  "is_really_locked"
6435
- ).data, R = Q.dwg_dynapi_entity_value(A, "mtext_type").data, c = Q.dwg_dynapi_entity_value(
6438
+ ).data, i = Q.dwg_dynapi_entity_value(A, "mtext_type").data, c = Q.dwg_dynapi_entity_value(
6436
6439
  A,
6437
6440
  "alignment_pt"
6438
6441
  ).data;
@@ -6443,10 +6446,10 @@ class VM {
6443
6446
  prompt: w,
6444
6447
  tag: k,
6445
6448
  flags: U,
6446
- fieldLength: i,
6449
+ fieldLength: y,
6447
6450
  lockPositionFlag: F > 0,
6448
6451
  duplicateRecordCloningFlag: h > 0,
6449
- mtextFlag: R,
6452
+ mtextFlag: i,
6450
6453
  isReallyLocked: L > 0,
6451
6454
  alignmentPoint: c,
6452
6455
  annotationScale: 1,
@@ -6460,7 +6463,7 @@ class VM {
6460
6463
  const Q = this.libredwg, D = this.convertTextBase(A), o = Q.dwg_dynapi_entity_value(A, "tag").data, w = Q.dwg_dynapi_entity_value(A, "flags").data, k = Q.dwg_dynapi_entity_value(A, "field_length").data, U = Q.dwg_dynapi_entity_value(
6461
6464
  A,
6462
6465
  "lock_position_flag"
6463
- ).data, i = Q.dwg_dynapi_entity_value(
6466
+ ).data, y = Q.dwg_dynapi_entity_value(
6464
6467
  A,
6465
6468
  "keep_duplicate_records"
6466
6469
  ).data, F = Q.dwg_dynapi_entity_value(A, "mtext_type").data, h = Q.dwg_dynapi_entity_value(
@@ -6478,7 +6481,7 @@ class VM {
6478
6481
  flags: w,
6479
6482
  fieldLength: k,
6480
6483
  lockPositionFlag: !!U,
6481
- duplicateRecordCloningFlag: !!i,
6484
+ duplicateRecordCloningFlag: !!y,
6482
6485
  mtextFlag: F,
6483
6486
  isReallyLocked: !!h,
6484
6487
  numberOfSecondaryAttrs: 0,
@@ -6520,7 +6523,7 @@ class VM {
6520
6523
  ).data, U = Q.dwg_dynapi_entity_value(
6521
6524
  A,
6522
6525
  "ins_rotation"
6523
- ).data, i = Q.dwg_dynapi_entity_value(
6526
+ ).data, y = Q.dwg_dynapi_entity_value(
6524
6527
  A,
6525
6528
  "oblique_angle"
6526
6529
  ).data;
@@ -6532,7 +6535,7 @@ class VM {
6532
6535
  subDefinitionPoint1: w,
6533
6536
  subDefinitionPoint2: k,
6534
6537
  rotationAngle: U ?? 0,
6535
- obliqueAngle: i
6538
+ obliqueAngle: y
6536
6539
  };
6537
6540
  }
6538
6541
  convert3PointAngularDimension(A, C) {
@@ -6596,7 +6599,7 @@ class VM {
6596
6599
  ).data, w = Q.dwg_dynapi_entity_value(
6597
6600
  A,
6598
6601
  "extrusion"
6599
- ).data, k = Q.dwg_dynapi_entity_value(A, "axis_ratio").data, U = Q.dwg_dynapi_entity_value(A, "start_angle").data, i = Q.dwg_dynapi_entity_value(A, "end_angle").data;
6602
+ ).data, k = Q.dwg_dynapi_entity_value(A, "axis_ratio").data, U = Q.dwg_dynapi_entity_value(A, "start_angle").data, y = Q.dwg_dynapi_entity_value(A, "end_angle").data;
6600
6603
  return {
6601
6604
  type: "ELLIPSE",
6602
6605
  ...C,
@@ -6605,7 +6608,7 @@ class VM {
6605
6608
  extrusionDirection: w,
6606
6609
  axisRatio: k,
6607
6610
  startAngle: U,
6608
- endAngle: i
6611
+ endAngle: y
6609
6612
  };
6610
6613
  }
6611
6614
  convertHatch(A, C) {
@@ -6621,20 +6624,20 @@ class VM {
6621
6624
  ).data, U = Q.dwg_dynapi_entity_value(
6622
6625
  A,
6623
6626
  "num_paths"
6624
- ).data, i = Q.dwg_dynapi_entity_value(A, "paths").data, F = Q.dwg_ptr_to_hatch_path_array(
6625
- i,
6627
+ ).data, y = Q.dwg_dynapi_entity_value(A, "paths").data, F = Q.dwg_ptr_to_hatch_path_array(
6628
+ y,
6626
6629
  U
6627
- ), h = Q.dwg_dynapi_entity_value(A, "style").data, L = Q.dwg_dynapi_entity_value(A, "pattern_type").data, R = Q.dwg_dynapi_entity_value(A, "angle").data, c = Q.dwg_dynapi_entity_value(
6630
+ ), h = Q.dwg_dynapi_entity_value(A, "style").data, L = Q.dwg_dynapi_entity_value(A, "pattern_type").data, i = Q.dwg_dynapi_entity_value(A, "angle").data, c = Q.dwg_dynapi_entity_value(
6628
6631
  A,
6629
6632
  "scale_spacing"
6630
6633
  ).data, H = Q.dwg_dynapi_entity_value(
6631
6634
  A,
6632
6635
  "num_deflines"
6633
- ).data, s = Q.dwg_dynapi_entity_value(
6636
+ ).data, S = Q.dwg_dynapi_entity_value(
6634
6637
  A,
6635
6638
  "deflines"
6636
- ).data, a = Q.dwg_ptr_to_hatch_defline_array(
6637
- s,
6639
+ ).data, s = Q.dwg_ptr_to_hatch_defline_array(
6640
+ S,
6638
6641
  H
6639
6642
  ), v = Q.dwg_dynapi_entity_value(A, "pixel_size").data, V = Q.dwg_dynapi_entity_value(
6640
6643
  A,
@@ -6656,10 +6659,10 @@ class VM {
6656
6659
  boundaryPaths: this.convertHatchBoundaryPaths(F),
6657
6660
  hatchStyle: h,
6658
6661
  patternType: L,
6659
- patternAngle: R,
6662
+ patternAngle: i,
6660
6663
  patternScale: c,
6661
6664
  numberOfDefinitionLines: H,
6662
- definitionLines: a.map((f) => ({
6665
+ definitionLines: s.map((f) => ({
6663
6666
  angle: f.angle,
6664
6667
  base: f.pt0,
6665
6668
  offset: f.offset,
@@ -6692,24 +6695,24 @@ class VM {
6692
6695
  };
6693
6696
  {
6694
6697
  const o = Q.segs.map((w) => {
6695
- if (w.curve_type == RQ.Line)
6698
+ if (w.curve_type == iQ.Line)
6696
6699
  return {
6697
- type: yQ.Line,
6700
+ type: RQ.Line,
6698
6701
  start: w.first_endpoint,
6699
6702
  end: w.second_endpoint
6700
6703
  };
6701
- if (w.curve_type == RQ.CircularArc)
6704
+ if (w.curve_type == iQ.CircularArc)
6702
6705
  return {
6703
- type: yQ.Circular,
6706
+ type: RQ.Circular,
6704
6707
  center: w.center,
6705
6708
  radius: w.radius,
6706
6709
  startAngle: w.start_angle,
6707
6710
  endAngle: w.end_angle,
6708
6711
  isCCW: w.is_ccw
6709
6712
  };
6710
- if (w.curve_type == RQ.EllipticArc)
6713
+ if (w.curve_type == iQ.EllipticArc)
6711
6714
  return {
6712
- type: yQ.Elliptic,
6715
+ type: RQ.Elliptic,
6713
6716
  center: w.center,
6714
6717
  end: w.endpoint,
6715
6718
  lengthOfMinorAxis: w.minor_major_ratio,
@@ -6717,9 +6720,9 @@ class VM {
6717
6720
  endAngle: w.end_angle,
6718
6721
  isCCW: w.is_ccw
6719
6722
  };
6720
- if (w.curve_type == RQ.Spline)
6723
+ if (w.curve_type == iQ.Spline)
6721
6724
  return {
6722
- type: yQ.Spline,
6725
+ type: RQ.Spline,
6723
6726
  degree: w.degree,
6724
6727
  isRational: w.is_rational,
6725
6728
  isPeriodic: w.is_periodic,
@@ -6742,15 +6745,15 @@ class VM {
6742
6745
  });
6743
6746
  }
6744
6747
  convertImage(A, C) {
6745
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "class_version").data, o = Q.dwg_dynapi_entity_value(A, "pt0").data, w = Q.dwg_dynapi_entity_value(A, "uvec").data, k = Q.dwg_dynapi_entity_value(A, "vvec").data, U = Q.dwg_dynapi_entity_value(A, "image_size").data, i = Q.dwg_dynapi_entity_value(A, "display_props").data, F = Q.dwg_dynapi_entity_value(A, "clipping").data, h = Q.dwg_dynapi_entity_value(A, "brightness").data, L = Q.dwg_dynapi_entity_value(A, "contrast").data, R = Q.dwg_dynapi_entity_value(A, "fade").data, c = Q.dwg_dynapi_entity_value(A, "clip_mode").data, H = Q.dwg_dynapi_entity_value(
6748
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "class_version").data, o = Q.dwg_dynapi_entity_value(A, "pt0").data, w = Q.dwg_dynapi_entity_value(A, "uvec").data, k = Q.dwg_dynapi_entity_value(A, "vvec").data, U = Q.dwg_dynapi_entity_value(A, "image_size").data, y = Q.dwg_dynapi_entity_value(A, "display_props").data, F = Q.dwg_dynapi_entity_value(A, "clipping").data, h = Q.dwg_dynapi_entity_value(A, "brightness").data, L = Q.dwg_dynapi_entity_value(A, "contrast").data, i = Q.dwg_dynapi_entity_value(A, "fade").data, c = Q.dwg_dynapi_entity_value(A, "clip_mode").data, H = Q.dwg_dynapi_entity_value(
6746
6749
  A,
6747
6750
  "clip_boundary_type"
6748
- ).data, s = Q.dwg_dynapi_entity_value(
6751
+ ).data, S = Q.dwg_dynapi_entity_value(
6749
6752
  A,
6750
6753
  "num_clip_verts"
6751
- ).data, a = Q.dwg_dynapi_entity_value(A, "clip_verts").data, v = Q.dwg_ptr_to_point3d_array(
6752
- a,
6753
- s
6754
+ ).data, s = Q.dwg_dynapi_entity_value(A, "clip_verts").data, v = Q.dwg_ptr_to_point3d_array(
6755
+ s,
6756
+ S
6754
6757
  ), V = Q.dwg_dynapi_entity_value(A, "imagedef").data, O = DA(Q.dwg_ref_get_absref(V)), z = Q.dwg_dynapi_entity_value(
6755
6758
  A,
6756
6759
  "imagedefreactor"
@@ -6766,14 +6769,14 @@ class VM {
6766
6769
  vPixel: k,
6767
6770
  imageSize: U,
6768
6771
  imageDefHandle: O,
6769
- flags: i,
6772
+ flags: y,
6770
6773
  clipping: F,
6771
6774
  brightness: h,
6772
6775
  contrast: L,
6773
- fade: R,
6776
+ fade: i,
6774
6777
  imageDefReactorHandle: f,
6775
6778
  clippingBoundaryType: H,
6776
- countBoundaryPoints: s,
6779
+ countBoundaryPoints: S,
6777
6780
  clippingBoundaryPath: v,
6778
6781
  clipMode: c
6779
6782
  };
@@ -6786,25 +6789,25 @@ class VM {
6786
6789
  "block_header"
6787
6790
  ).data;
6788
6791
  if (o) {
6789
- const s = Q.dwg_ref_get_object(o);
6790
- if (s) {
6791
- const a = Q.dwg_object_to_object_tio(s);
6792
- a && (D = Q.dwg_entity_block_header_get_block(a).name);
6792
+ const S = Q.dwg_ref_get_object(o);
6793
+ if (S) {
6794
+ const s = Q.dwg_object_to_object_tio(S);
6795
+ s && (D = Q.dwg_entity_block_header_get_block(s).name);
6793
6796
  }
6794
6797
  }
6795
6798
  D || (D = Q.dwg_dynapi_entity_value(A, "block_name").data);
6796
- const w = Q.dwg_dynapi_entity_value(A, "ins_pt").data, k = Q.dwg_dynapi_entity_value(A, "scale").data, U = Q.dwg_dynapi_entity_value(A, "rotation").data, i = Q.dwg_dynapi_entity_value(A, "num_cols").data, F = Q.dwg_dynapi_entity_value(A, "num_rows").data, h = Q.dwg_dynapi_entity_value(
6799
+ const w = Q.dwg_dynapi_entity_value(A, "ins_pt").data, k = Q.dwg_dynapi_entity_value(A, "scale").data, U = Q.dwg_dynapi_entity_value(A, "rotation").data, y = Q.dwg_dynapi_entity_value(A, "num_cols").data, F = Q.dwg_dynapi_entity_value(A, "num_rows").data, h = Q.dwg_dynapi_entity_value(
6797
6800
  A,
6798
6801
  "col_spacing"
6799
- ).data, L = Q.dwg_dynapi_entity_value(A, "row_spacing").data, R = Q.dwg_dynapi_entity_value(
6802
+ ).data, L = Q.dwg_dynapi_entity_value(A, "row_spacing").data, i = Q.dwg_dynapi_entity_value(
6800
6803
  A,
6801
6804
  "extrusion"
6802
6805
  ).data, c = Q.dwg_entity_insert_get_attribs(A), H = [];
6803
- return c.forEach((s) => {
6804
- const a = Q.dwg_object_to_entity(s), v = Q.dwg_object_to_entity_tio(s);
6805
- if (a && v) {
6806
- const V = this.getCommonAttrs(a);
6807
- Q.dwg_object_get_fixedtype(s) == n.DWG_TYPE_ATTRIB && H.push(this.convertAttrib(v, V));
6806
+ return c.forEach((S) => {
6807
+ const s = Q.dwg_object_to_entity(S), v = Q.dwg_object_to_entity_tio(S);
6808
+ if (s && v) {
6809
+ const V = this.getCommonAttrs(s);
6810
+ Q.dwg_object_get_fixedtype(S) == n.DWG_TYPE_ATTRIB && H.push(this.convertAttrib(v, V));
6808
6811
  }
6809
6812
  }), {
6810
6813
  type: "INSERT",
@@ -6815,11 +6818,11 @@ class VM {
6815
6818
  yScale: k ? k.y : 1,
6816
6819
  zScale: k ? k.z : 1,
6817
6820
  rotation: U,
6818
- columnCount: i,
6821
+ columnCount: y,
6819
6822
  rowCount: F,
6820
6823
  columnSpacing: h,
6821
6824
  rowSpacing: L,
6822
- extrusionDirection: R,
6825
+ extrusionDirection: i,
6823
6826
  attribs: H
6824
6827
  };
6825
6828
  }
@@ -6833,16 +6836,16 @@ class VM {
6833
6836
  ).data, U = Q.dwg_dynapi_entity_value(
6834
6837
  A,
6835
6838
  "hookline_dir"
6836
- ).data, i = Q.dwg_dynapi_entity_value(
6839
+ ).data, y = Q.dwg_dynapi_entity_value(
6837
6840
  A,
6838
6841
  "hookline_on"
6839
6842
  ).data, F = Q.dwg_dynapi_entity_value(A, "box_height").data, h = Q.dwg_dynapi_entity_value(A, "box_width").data, L = Q.dwg_dynapi_entity_value(
6840
6843
  A,
6841
6844
  "num_points"
6842
- ).data, R = Q.dwg_dynapi_entity_value(A, "points").data, c = L > 0 ? Q.dwg_ptr_to_point3d_array(R, L) : [], H = Q.dwg_dynapi_entity_value(
6845
+ ).data, i = Q.dwg_dynapi_entity_value(A, "points").data, c = L > 0 ? Q.dwg_ptr_to_point3d_array(i, L) : [], H = Q.dwg_dynapi_entity_value(
6843
6846
  A,
6844
6847
  "byblock_color"
6845
- ).data, s = Q.dwg_dynapi_entity_value(A, "extrusion").data, a = Q.dwg_dynapi_entity_value(
6848
+ ).data, S = Q.dwg_dynapi_entity_value(A, "extrusion").data, s = Q.dwg_dynapi_entity_value(
6846
6849
  A,
6847
6850
  "x_direction"
6848
6851
  ).data, v = Q.dwg_dynapi_entity_value(
@@ -6860,14 +6863,14 @@ class VM {
6860
6863
  isSpline: w > 0,
6861
6864
  leaderCreationFlag: k,
6862
6865
  isHooklineSameDirection: U > 0,
6863
- isHooklineExists: i > 0,
6866
+ isHooklineExists: y > 0,
6864
6867
  textHeight: F,
6865
6868
  textWidth: h,
6866
6869
  numberOfVertices: L,
6867
6870
  vertices: c,
6868
6871
  byBlockColor: H,
6869
- normal: s,
6870
- horizontalDirection: a,
6872
+ normal: S,
6873
+ horizontalDirection: s,
6871
6874
  offsetFromBlock: v,
6872
6875
  offsetFromAnnotation: V
6873
6876
  };
@@ -6893,16 +6896,16 @@ class VM {
6893
6896
  ).data, o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(
6894
6897
  A,
6895
6898
  "const_width"
6896
- ).data, k = Q.dwg_dynapi_entity_value(A, "elevation").data, U = Q.dwg_dynapi_entity_value(A, "thickness").data, i = Q.dwg_dynapi_entity_value(
6899
+ ).data, k = Q.dwg_dynapi_entity_value(A, "elevation").data, U = Q.dwg_dynapi_entity_value(A, "thickness").data, y = Q.dwg_dynapi_entity_value(
6897
6900
  A,
6898
6901
  "extrusion"
6899
- ).data, F = [], h = Q.dwg_dynapi_entity_value(A, "num_points").data, L = Q.dwg_dynapi_entity_value(A, "points").data, R = Q.dwg_ptr_to_point2d_array(L, h), c = Q.dwg_dynapi_entity_value(A, "num_bulges").data, H = Q.dwg_dynapi_entity_value(A, "bulges").data, s = Q.dwg_ptr_to_double_array(H, c);
6900
- return R.forEach((a, v) => {
6902
+ ).data, F = [], h = Q.dwg_dynapi_entity_value(A, "num_points").data, L = Q.dwg_dynapi_entity_value(A, "points").data, i = Q.dwg_ptr_to_point2d_array(L, h), c = Q.dwg_dynapi_entity_value(A, "num_bulges").data, H = Q.dwg_dynapi_entity_value(A, "bulges").data, S = Q.dwg_ptr_to_double_array(H, c);
6903
+ return i.forEach((s, v) => {
6901
6904
  F.push({
6902
6905
  id: v,
6903
- x: a.x,
6904
- y: a.y,
6905
- bulge: s.length > v ? s[v] : 0
6906
+ x: s.x,
6907
+ y: s.y,
6908
+ bulge: S.length > v ? S[v] : 0
6906
6909
  });
6907
6910
  }), {
6908
6911
  type: "LWPOLYLINE",
@@ -6912,7 +6915,7 @@ class VM {
6912
6915
  constantWidth: w,
6913
6916
  elevation: k,
6914
6917
  thickness: U,
6915
- extrusionDirection: i,
6918
+ extrusionDirection: y,
6916
6919
  vertices: F
6917
6920
  };
6918
6921
  }
@@ -6923,15 +6926,15 @@ class VM {
6923
6926
  ).data, k = Q.dwg_dynapi_entity_value(A, "base_point").data, U = Q.dwg_dynapi_entity_value(
6924
6927
  A,
6925
6928
  "extrusion"
6926
- ).data, i = Q.dwg_dynapi_entity_value(A, "num_lines").data, F = Q.dwg_dynapi_entity_value(
6929
+ ).data, y = Q.dwg_dynapi_entity_value(A, "num_lines").data, F = Q.dwg_dynapi_entity_value(
6927
6930
  A,
6928
6931
  "num_verts"
6929
6932
  ).data, h = Q.dwg_dynapi_entity_value(A, "verts").data, L = Q.dwg_ptr_to_mline_vertex_array(
6930
6933
  h,
6931
6934
  F
6932
- ), R = [];
6935
+ ), i = [];
6933
6936
  return L.forEach((c) => {
6934
- R.push({
6937
+ i.push({
6935
6938
  vertex: c.vertex,
6936
6939
  vertexDirection: c.vertex_direction,
6937
6940
  miterDirection: c.miter_direction,
@@ -6951,15 +6954,15 @@ class VM {
6951
6954
  justification: w,
6952
6955
  startPoint: k,
6953
6956
  extrusionDirection: U,
6954
- numberOfLines: i,
6957
+ numberOfLines: y,
6955
6958
  numberOfVertices: F,
6956
- vertices: R,
6959
+ vertices: i,
6957
6960
  mlineStyle: ""
6958
6961
  // TODO: Set the correct value
6959
6962
  };
6960
6963
  }
6961
6964
  convertOle2Frame(A, C) {
6962
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "oleversion").data, o = Q.dwg_dynapi_entity_value(A, "oleclient").data, w = Q.dwg_dynapi_entity_value(A, "data_size").data, k = Q.dwg_dynapi_entity_value(A, "pt1").data, U = Q.dwg_dynapi_entity_value(A, "pt2").data, i = Q.dwg_dynapi_entity_value(A, "lock_aspect").data, F = Q.dwg_dynapi_entity_value(A, "type").data, h = Q.dwg_dynapi_entity_value(A, "mode").data, L = Q.dwg_dynapi_entity_value(A, "data").data;
6965
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "oleversion").data, o = Q.dwg_dynapi_entity_value(A, "oleclient").data, w = Q.dwg_dynapi_entity_value(A, "data_size").data, k = Q.dwg_dynapi_entity_value(A, "pt1").data, U = Q.dwg_dynapi_entity_value(A, "pt2").data, y = Q.dwg_dynapi_entity_value(A, "lock_aspect").data, F = Q.dwg_dynapi_entity_value(A, "type").data, h = Q.dwg_dynapi_entity_value(A, "mode").data, L = Q.dwg_dynapi_entity_value(A, "data").data;
6963
6966
  return {
6964
6967
  type: "OLE2FRAME",
6965
6968
  ...C,
@@ -6968,7 +6971,7 @@ class VM {
6968
6971
  dataSize: w,
6969
6972
  leftUpPoint: k,
6970
6973
  rightDownPoint: U,
6971
- lockAspect: i,
6974
+ lockAspect: y,
6972
6975
  oleObjectType: F,
6973
6976
  tileModeDescriptor: h,
6974
6977
  binaryData: L
@@ -6989,7 +6992,7 @@ class VM {
6989
6992
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "ins_pt").data, o = Q.dwg_dynapi_entity_value(A, "text_height").data, w = Q.dwg_dynapi_entity_value(A, "rect_height").data, k = Q.dwg_dynapi_entity_value(A, "rect_width").data, U = Q.dwg_dynapi_entity_value(
6990
6993
  A,
6991
6994
  "extents_width"
6992
- ).data, i = Q.dwg_dynapi_entity_value(
6995
+ ).data, y = Q.dwg_dynapi_entity_value(
6993
6996
  A,
6994
6997
  "extents_height"
6995
6998
  ).data, F = Q.dwg_dynapi_entity_value(
@@ -6998,13 +7001,13 @@ class VM {
6998
7001
  ).data, h = Q.dwg_dynapi_entity_value(
6999
7002
  A,
7000
7003
  "flow_dir"
7001
- ).data, L = Q.dwg_dynapi_entity_value(A, "text").data, R = Q.dwg_entity_mtext_get_style_name(A), c = Q.dwg_dynapi_entity_value(
7004
+ ).data, L = Q.dwg_dynapi_entity_value(A, "text").data, i = Q.dwg_entity_mtext_get_style_name(A), c = Q.dwg_dynapi_entity_value(
7002
7005
  A,
7003
7006
  "extrusion"
7004
- ).data, H = Q.dwg_dynapi_entity_value(A, "x_axis_dir").data, s = Q.dwg_dynapi_entity_value(
7007
+ ).data, H = Q.dwg_dynapi_entity_value(A, "x_axis_dir").data, S = Q.dwg_dynapi_entity_value(
7005
7008
  A,
7006
7009
  "linespace_style"
7007
- ).data, a = Q.dwg_dynapi_entity_value(
7010
+ ).data, s = Q.dwg_dynapi_entity_value(
7008
7011
  A,
7009
7012
  "linespace_factor"
7010
7013
  ).data, v = Q.dwg_dynapi_entity_value(
@@ -7042,18 +7045,18 @@ class VM {
7042
7045
  textHeight: o,
7043
7046
  rectHeight: w,
7044
7047
  rectWidth: k,
7045
- extentsHeight: i,
7048
+ extentsHeight: y,
7046
7049
  extentsWidth: U,
7047
7050
  attachmentPoint: F,
7048
7051
  drawingDirection: h,
7049
7052
  text: L,
7050
- styleName: R,
7053
+ styleName: i,
7051
7054
  extrusionDirection: c,
7052
7055
  direction: H,
7053
7056
  rotation: 0,
7054
7057
  // TODO: Didn't find the corresponding field in libredwg
7055
- lineSpacingStyle: s,
7056
- lineSpacing: a,
7058
+ lineSpacingStyle: S,
7059
+ lineSpacing: s,
7057
7060
  backgroundFill: v,
7058
7061
  // backgroundColor: backgroundColor.rgb, // TODO: Double check whether it should be color index
7059
7062
  fillBoxScale: V,
@@ -7074,18 +7077,18 @@ class VM {
7074
7077
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "x").data, o = Q.dwg_dynapi_entity_value(A, "y").data, w = Q.dwg_dynapi_entity_value(A, "z").data, k = Q.dwg_dynapi_entity_value(A, "thickness").data, U = Q.dwg_dynapi_entity_value(
7075
7078
  A,
7076
7079
  "extrusion"
7077
- ).data, i = Q.dwg_dynapi_entity_value(A, "x_ang").data;
7080
+ ).data, y = Q.dwg_dynapi_entity_value(A, "x_ang").data;
7078
7081
  return {
7079
7082
  type: "POINT",
7080
7083
  ...C,
7081
7084
  position: { x: D, y: o, z: w },
7082
7085
  thickness: k,
7083
7086
  extrusionDirection: U,
7084
- angle: i
7087
+ angle: y
7085
7088
  };
7086
7089
  }
7087
7090
  convertPolyline2d(A, C, Q) {
7088
- const D = this.libredwg, o = D.dwg_dynapi_entity_value(A, "flag").data, w = D.dwg_dynapi_entity_value(A, "curve_type").data, k = D.dwg_dynapi_entity_value(A, "start_width").data, U = D.dwg_dynapi_entity_value(A, "end_width").data, i = D.dwg_dynapi_entity_value(A, "elevation").data, F = D.dwg_dynapi_entity_value(A, "thickness").data, h = D.dwg_dynapi_entity_value(
7091
+ const D = this.libredwg, o = D.dwg_dynapi_entity_value(A, "flag").data, w = D.dwg_dynapi_entity_value(A, "curve_type").data, k = D.dwg_dynapi_entity_value(A, "start_width").data, U = D.dwg_dynapi_entity_value(A, "end_width").data, y = D.dwg_dynapi_entity_value(A, "elevation").data, F = D.dwg_dynapi_entity_value(A, "thickness").data, h = D.dwg_dynapi_entity_value(
7089
7092
  A,
7090
7093
  "extrusion"
7091
7094
  ).data, L = D.dwg_entity_polyline_2d_get_vertices(Q);
@@ -7096,18 +7099,18 @@ class VM {
7096
7099
  smoothType: w,
7097
7100
  startWidth: k,
7098
7101
  endWidth: U,
7099
- elevation: i,
7102
+ elevation: y,
7100
7103
  thickness: F,
7101
7104
  extrusionDirection: h,
7102
- vertices: L.map((R) => ({
7103
- x: R.point.x,
7104
- y: R.point.y,
7105
- z: R.point.z,
7106
- startWidth: R.start_width,
7107
- endWidth: R.end_width,
7108
- bulge: R.bulge,
7109
- flag: R.flag,
7110
- tangentDirection: R.tangent_dir
7105
+ vertices: L.map((i) => ({
7106
+ x: i.point.x,
7107
+ y: i.point.y,
7108
+ z: i.point.z,
7109
+ startWidth: i.start_width,
7110
+ endWidth: i.end_width,
7111
+ bulge: i.bulge,
7112
+ flag: i.flag,
7113
+ tangentDirection: i.tangent_dir
7111
7114
  })),
7112
7115
  meshMVertexCount: 0,
7113
7116
  meshNVertexCount: 0,
@@ -7116,7 +7119,7 @@ class VM {
7116
7119
  };
7117
7120
  }
7118
7121
  convertPolyline3d(A, C, Q) {
7119
- const D = this.libredwg, o = D.dwg_dynapi_entity_value(A, "flag").data, w = D.dwg_dynapi_entity_value(A, "curve_type").data, k = D.dwg_dynapi_entity_value(A, "start_width").data, U = D.dwg_dynapi_entity_value(A, "end_width").data, i = D.dwg_dynapi_entity_value(
7122
+ const D = this.libredwg, o = D.dwg_dynapi_entity_value(A, "flag").data, w = D.dwg_dynapi_entity_value(A, "curve_type").data, k = D.dwg_dynapi_entity_value(A, "start_width").data, U = D.dwg_dynapi_entity_value(A, "end_width").data, y = D.dwg_dynapi_entity_value(
7120
7123
  A,
7121
7124
  "extrusion"
7122
7125
  ).data, F = D.dwg_entity_polyline_3d_get_vertices(Q);
@@ -7127,7 +7130,7 @@ class VM {
7127
7130
  smoothType: w,
7128
7131
  startWidth: k,
7129
7132
  endWidth: U,
7130
- extrusionDirection: i,
7133
+ extrusionDirection: y,
7131
7134
  vertices: F.map((h) => ({
7132
7135
  x: h.point.x,
7133
7136
  y: h.point.y,
@@ -7157,7 +7160,7 @@ class VM {
7157
7160
  const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "state").data, o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "name").data, k = Q.dwg_dynapi_entity_value(
7158
7161
  A,
7159
7162
  "vert_dir"
7160
- ).data, U = Q.dwg_dynapi_entity_value(A, "top_height").data, i = Q.dwg_dynapi_entity_value(
7163
+ ).data, U = Q.dwg_dynapi_entity_value(A, "top_height").data, y = Q.dwg_dynapi_entity_value(
7161
7164
  A,
7162
7165
  "bottom_height"
7163
7166
  ).data, F = Q.dwg_dynapi_entity_value(
@@ -7169,14 +7172,14 @@ class VM {
7169
7172
  ).data, L = Q.dwg_dynapi_entity_value(
7170
7173
  A,
7171
7174
  "num_verts"
7172
- ).data, R = Q.dwg_dynapi_entity_value(A, "verts").data, c = L > 0 ? Q.dwg_ptr_to_point3d_array(R, L) : [], H = Q.dwg_dynapi_entity_value(
7175
+ ).data, i = Q.dwg_dynapi_entity_value(A, "verts").data, c = L > 0 ? Q.dwg_ptr_to_point3d_array(i, L) : [], H = Q.dwg_dynapi_entity_value(
7173
7176
  A,
7174
7177
  "num_blverts"
7175
- ).data, s = Q.dwg_dynapi_entity_value(
7178
+ ).data, S = Q.dwg_dynapi_entity_value(
7176
7179
  A,
7177
7180
  "blverts"
7178
- ).data, a = H > 0 ? Q.dwg_ptr_to_point3d_array(
7179
- s,
7181
+ ).data, s = H > 0 ? Q.dwg_ptr_to_point3d_array(
7182
+ S,
7180
7183
  H
7181
7184
  ) : [], v = Q.dwg_dynapi_entity_value(
7182
7185
  A,
@@ -7192,18 +7195,18 @@ class VM {
7192
7195
  name: w,
7193
7196
  verticalDirection: k,
7194
7197
  topHeight: U,
7195
- bottomHeight: i,
7198
+ bottomHeight: y,
7196
7199
  indicatorTransparency: F,
7197
7200
  indicatorColor: h.rgb,
7198
7201
  numberOfVertices: L,
7199
7202
  vertices: c,
7200
7203
  numberOfBackLineVertices: H,
7201
- backLineVertices: a,
7204
+ backLineVertices: s,
7202
7205
  geometrySettingHardId: V
7203
7206
  };
7204
7207
  }
7205
7208
  convertSolid(A, C) {
7206
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "corner1").data, o = Q.dwg_dynapi_entity_value(A, "corner2").data, w = Q.dwg_dynapi_entity_value(A, "corner3").data, k = Q.dwg_dynapi_entity_value(A, "corner4").data, U = Q.dwg_dynapi_entity_value(A, "thickness").data, i = Q.dwg_dynapi_entity_value(
7209
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "corner1").data, o = Q.dwg_dynapi_entity_value(A, "corner2").data, w = Q.dwg_dynapi_entity_value(A, "corner3").data, k = Q.dwg_dynapi_entity_value(A, "corner4").data, U = Q.dwg_dynapi_entity_value(A, "thickness").data, y = Q.dwg_dynapi_entity_value(
7207
7210
  A,
7208
7211
  "extrusion"
7209
7212
  ).data;
@@ -7215,25 +7218,25 @@ class VM {
7215
7218
  corner3: w,
7216
7219
  corner4: k,
7217
7220
  thickness: U,
7218
- extrusionDirection: i
7221
+ extrusionDirection: y
7219
7222
  };
7220
7223
  }
7221
7224
  convertSpline(A, C) {
7222
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "splineflags").data, o = Q.dwg_dynapi_entity_value(A, "degree").data, w = Q.dwg_dynapi_entity_value(A, "knot_tol").data, k = Q.dwg_dynapi_entity_value(A, "num_knots").data, U = Q.dwg_dynapi_entity_value(A, "knots").data, i = Q.dwg_ptr_to_double_array(U, k), F = Q.dwg_dynapi_entity_value(A, "fit_tol").data, h = Q.dwg_dynapi_entity_value(
7225
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "splineflags").data, o = Q.dwg_dynapi_entity_value(A, "degree").data, w = Q.dwg_dynapi_entity_value(A, "knot_tol").data, k = Q.dwg_dynapi_entity_value(A, "num_knots").data, U = Q.dwg_dynapi_entity_value(A, "knots").data, y = Q.dwg_ptr_to_double_array(U, k), F = Q.dwg_dynapi_entity_value(A, "fit_tol").data, h = Q.dwg_dynapi_entity_value(
7223
7226
  A,
7224
7227
  "num_fit_pts"
7225
- ).data, L = Q.dwg_dynapi_entity_value(A, "fit_pts").data, R = Q.dwg_ptr_to_point3d_array(
7228
+ ).data, L = Q.dwg_dynapi_entity_value(A, "fit_pts").data, i = Q.dwg_ptr_to_point3d_array(
7226
7229
  L,
7227
7230
  h
7228
7231
  ), c = Q.dwg_dynapi_entity_value(A, "weighted").data, H = Q.dwg_dynapi_entity_value(
7229
7232
  A,
7230
7233
  "ctrl_tol"
7231
- ).data, s = Q.dwg_dynapi_entity_value(
7234
+ ).data, S = Q.dwg_dynapi_entity_value(
7232
7235
  A,
7233
7236
  "num_ctrl_pts"
7234
- ).data, a = Q.dwg_dynapi_entity_value(A, "ctrl_pts").data, v = Q.dwg_ptr_to_point4d_array(
7235
- a,
7236
- s
7237
+ ).data, s = Q.dwg_dynapi_entity_value(A, "ctrl_pts").data, v = Q.dwg_ptr_to_point4d_array(
7238
+ s,
7239
+ S
7237
7240
  ), V = Q.dwg_dynapi_entity_value(A, "beg_tan_vec").data, O = Q.dwg_dynapi_entity_value(A, "end_tan_vec").data;
7238
7241
  return {
7239
7242
  type: "SPLINE",
@@ -7242,21 +7245,21 @@ class VM {
7242
7245
  flag: D,
7243
7246
  degree: o,
7244
7247
  numberOfKnots: k,
7245
- numberOfControlPoints: s,
7248
+ numberOfControlPoints: S,
7246
7249
  numberOfFitPoints: h,
7247
7250
  knotTolerance: w,
7248
7251
  controlTolerance: H,
7249
7252
  fitTolerance: F,
7250
7253
  startTangent: V,
7251
7254
  endTangent: O,
7252
- knots: i,
7255
+ knots: y,
7253
7256
  weights: c ? v.map((z) => z.w) : void 0,
7254
7257
  controlPoints: v.map((z) => ({
7255
7258
  x: z.x,
7256
7259
  y: z.y,
7257
7260
  z: z.z
7258
7261
  })),
7259
- fitPoints: R
7262
+ fitPoints: i
7260
7263
  };
7261
7264
  }
7262
7265
  convertTable(A, C) {
@@ -7266,7 +7269,7 @@ class VM {
7266
7269
  ).data, k = Q.dwg_dynapi_entity_value(
7267
7270
  A,
7268
7271
  "flag_for_table_value"
7269
- ).data, U = Q.dwg_dynapi_entity_value(A, "num_rows").data, i = Q.dwg_dynapi_entity_value(A, "num_cols").data, F = Q.dwg_dynapi_entity_value(
7272
+ ).data, U = Q.dwg_dynapi_entity_value(A, "num_rows").data, y = Q.dwg_dynapi_entity_value(A, "num_cols").data, F = Q.dwg_dynapi_entity_value(
7270
7273
  A,
7271
7274
  "row_heights"
7272
7275
  ).data, h = Q.dwg_ptr_to_double_array(
@@ -7275,19 +7278,19 @@ class VM {
7275
7278
  ), L = Q.dwg_dynapi_entity_value(
7276
7279
  A,
7277
7280
  "col_widths"
7278
- ).data, R = Q.dwg_ptr_to_double_array(
7281
+ ).data, i = Q.dwg_ptr_to_double_array(
7279
7282
  L,
7280
- i
7283
+ y
7281
7284
  ), c = Q.dwg_dynapi_entity_value(
7282
7285
  A,
7283
7286
  "tablestyle"
7284
7287
  ).data, H = DA(
7285
7288
  Q.dwg_ref_get_absref(c)
7286
- ), s = Q.dwg_dynapi_entity_value(
7289
+ ), S = Q.dwg_dynapi_entity_value(
7287
7290
  A,
7288
7291
  "block_header"
7289
- ).data, a = DA(
7290
- Q.dwg_ref_get_absref(s)
7292
+ ).data, s = DA(
7293
+ Q.dwg_ref_get_absref(S)
7291
7294
  ), v = Q.dwg_dynapi_entity_value(
7292
7295
  A,
7293
7296
  "table_flag_override"
@@ -7310,15 +7313,15 @@ class VM {
7310
7313
  // attachmentPoint: DwgAttachmentPoint
7311
7314
  tableValue: k,
7312
7315
  rowCount: U,
7313
- columnCount: i,
7316
+ columnCount: y,
7314
7317
  overrideFlag: v,
7315
7318
  borderColorOverrideFlag: V,
7316
7319
  borderLineWeightOverrideFlag: O,
7317
7320
  borderVisibilityOverrideFlag: z,
7318
7321
  rowHeightArr: h,
7319
- columnWidthArr: R,
7322
+ columnWidthArr: i,
7320
7323
  tableStyleId: H,
7321
- blockRecordHandle: a,
7324
+ blockRecordHandle: s,
7322
7325
  cells: this.convertTableCells(W),
7323
7326
  bmpPreview: ""
7324
7327
  };
@@ -7354,13 +7357,13 @@ class VM {
7354
7357
  })), C;
7355
7358
  }
7356
7359
  convertTextBase(A) {
7357
- const C = this.libredwg, Q = C.dwg_dynapi_entity_value(A, "text_value").data, D = C.dwg_dynapi_entity_value(A, "thickness").data, o = C.dwg_dynapi_entity_value(A, "ins_pt").data, w = C.dwg_dynapi_entity_value(A, "alignment_pt").data, k = C.dwg_dynapi_entity_value(A, "rotation").data, U = C.dwg_dynapi_entity_value(A, "height").data, i = C.dwg_dynapi_entity_value(A, "width_factor").data, F = C.dwg_dynapi_entity_value(
7360
+ const C = this.libredwg, Q = C.dwg_dynapi_entity_value(A, "text_value").data, D = C.dwg_dynapi_entity_value(A, "thickness").data, o = C.dwg_dynapi_entity_value(A, "ins_pt").data, w = C.dwg_dynapi_entity_value(A, "alignment_pt").data, k = C.dwg_dynapi_entity_value(A, "rotation").data, U = C.dwg_dynapi_entity_value(A, "height").data, y = C.dwg_dynapi_entity_value(A, "width_factor").data, F = C.dwg_dynapi_entity_value(
7358
7361
  A,
7359
7362
  "oblique_angle"
7360
7363
  ).data, h = C.dwg_entity_text_get_style_name(A), L = C.dwg_dynapi_entity_value(
7361
7364
  A,
7362
7365
  "generation"
7363
- ).data, R = C.dwg_dynapi_entity_value(A, "horiz_alignment").data, c = C.dwg_dynapi_entity_value(A, "vert_alignment").data, H = C.dwg_dynapi_entity_value(
7366
+ ).data, i = C.dwg_dynapi_entity_value(A, "horiz_alignment").data, c = C.dwg_dynapi_entity_value(A, "vert_alignment").data, H = C.dwg_dynapi_entity_value(
7364
7367
  A,
7365
7368
  "extrusion"
7366
7369
  ).data;
@@ -7371,11 +7374,11 @@ class VM {
7371
7374
  endPoint: w,
7372
7375
  textHeight: U,
7373
7376
  rotation: k,
7374
- xScale: i,
7377
+ xScale: y,
7375
7378
  obliqueAngle: F,
7376
7379
  styleName: h,
7377
7380
  generationFlag: L,
7378
- halign: R,
7381
+ halign: i,
7379
7382
  valign: c,
7380
7383
  extrusionDirection: H
7381
7384
  };
@@ -7406,10 +7409,10 @@ class VM {
7406
7409
  };
7407
7410
  }
7408
7411
  convertViewport(A, C) {
7409
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "center").data, o = Q.dwg_dynapi_entity_value(A, "width").data, w = Q.dwg_dynapi_entity_value(A, "height").data, k = Q.dwg_dynapi_entity_value(A, "on_off").data, U = Q.dwg_dynapi_entity_value(A, "VIEWCTR").data, i = Q.dwg_dynapi_entity_value(A, "SNAPBASE").data, F = Q.dwg_dynapi_entity_value(A, "SNAPUNIT").data, h = Q.dwg_dynapi_entity_value(A, "GRIDUNIT").data, L = Q.dwg_dynapi_entity_value(A, "VIEWDIR").data, R = Q.dwg_dynapi_entity_value(A, "view_target").data, c = Q.dwg_dynapi_entity_value(
7412
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "center").data, o = Q.dwg_dynapi_entity_value(A, "width").data, w = Q.dwg_dynapi_entity_value(A, "height").data, k = Q.dwg_dynapi_entity_value(A, "on_off").data, U = Q.dwg_dynapi_entity_value(A, "VIEWCTR").data, y = Q.dwg_dynapi_entity_value(A, "SNAPBASE").data, F = Q.dwg_dynapi_entity_value(A, "SNAPUNIT").data, h = Q.dwg_dynapi_entity_value(A, "GRIDUNIT").data, L = Q.dwg_dynapi_entity_value(A, "VIEWDIR").data, i = Q.dwg_dynapi_entity_value(A, "view_target").data, c = Q.dwg_dynapi_entity_value(
7410
7413
  A,
7411
7414
  "lens_length"
7412
- ).data, H = Q.dwg_dynapi_entity_value(A, "front_clip_z").data, s = Q.dwg_dynapi_entity_value(A, "back_clip_z").data, a = Q.dwg_dynapi_entity_value(A, "VIEWSIZE").data, v = Q.dwg_dynapi_entity_value(A, "SNAPANG").data, V = Q.dwg_dynapi_entity_value(
7415
+ ).data, H = Q.dwg_dynapi_entity_value(A, "front_clip_z").data, S = Q.dwg_dynapi_entity_value(A, "back_clip_z").data, s = Q.dwg_dynapi_entity_value(A, "VIEWSIZE").data, v = Q.dwg_dynapi_entity_value(A, "SNAPANG").data, V = Q.dwg_dynapi_entity_value(
7413
7416
  A,
7414
7417
  "twist_angle"
7415
7418
  ).data, O = Q.dwg_dynapi_entity_value(
@@ -7418,10 +7421,10 @@ class VM {
7418
7421
  ).data, z = Q.dwg_dynapi_entity_value(
7419
7422
  A,
7420
7423
  "status_flag"
7421
- ).data, f = Q.dwg_dynapi_entity_value(A, "style_sheet").data, q = Q.dwg_dynapi_entity_value(A, "render_mode").data, W = Q.dwg_dynapi_entity_value(A, "UCSVP").data, AA = Q.dwg_dynapi_entity_value(A, "ucsorg").data, EA = Q.dwg_dynapi_entity_value(A, "ucsxdir").data, P = Q.dwg_dynapi_entity_value(A, "ucsydir").data, d = Q.dwg_dynapi_entity_value(A, "named_ucs").data, e = Q.dwg_ref_get_absref(d), iA = Q.dwg_dynapi_entity_value(A, "base_ucs").data, MA = Q.dwg_ref_get_absref(iA), zA = Q.dwg_dynapi_entity_value(
7424
+ ).data, f = Q.dwg_dynapi_entity_value(A, "style_sheet").data, q = Q.dwg_dynapi_entity_value(A, "render_mode").data, W = Q.dwg_dynapi_entity_value(A, "UCSVP").data, AA = Q.dwg_dynapi_entity_value(A, "ucsorg").data, EA = Q.dwg_dynapi_entity_value(A, "ucsxdir").data, P = Q.dwg_dynapi_entity_value(A, "ucsydir").data, d = Q.dwg_dynapi_entity_value(A, "named_ucs").data, e = Q.dwg_ref_get_absref(d), yA = Q.dwg_dynapi_entity_value(A, "base_ucs").data, MA = Q.dwg_ref_get_absref(yA), zA = Q.dwg_dynapi_entity_value(
7422
7425
  A,
7423
7426
  "UCSORTHOVIEW"
7424
- ).data, TA = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, RA = Q.dwg_dynapi_entity_value(
7427
+ ).data, TA = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, iA = Q.dwg_dynapi_entity_value(
7425
7428
  A,
7426
7429
  "shadeplot_mode"
7427
7430
  ).data, VA = Q.dwg_dynapi_entity_value(
@@ -7450,15 +7453,15 @@ class VM {
7450
7453
  viewportId: 0,
7451
7454
  // Will be set later in LibreDwgConverter.convert
7452
7455
  displayCenter: U,
7453
- snapBase: i,
7456
+ snapBase: y,
7454
7457
  snapSpacing: F,
7455
7458
  gridSpacing: h,
7456
7459
  viewDirection: L,
7457
- targetPoint: R,
7460
+ targetPoint: i,
7458
7461
  perspectiveLensLength: c,
7459
7462
  frontClipZ: H,
7460
- backClipZ: s,
7461
- viewHeight: a,
7463
+ backClipZ: S,
7464
+ viewHeight: s,
7462
7465
  snapAngle: v,
7463
7466
  viewTwistAngle: V,
7464
7467
  circleZoomPercent: O,
@@ -7473,7 +7476,7 @@ class VM {
7473
7476
  ucsBaseId: DA(MA),
7474
7477
  orthographicType: zA,
7475
7478
  elevation: TA,
7476
- shadePlotMode: RA,
7479
+ shadePlotMode: iA,
7477
7480
  majorGridFrequency: jA,
7478
7481
  backgroundId: DA(ng),
7479
7482
  shadePlotId: DA(Bg),
@@ -7486,15 +7489,15 @@ class VM {
7486
7489
  };
7487
7490
  }
7488
7491
  convertWipeout(A, C) {
7489
- const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "class_version").data, o = Q.dwg_dynapi_entity_value(A, "pt0").data, w = Q.dwg_dynapi_entity_value(A, "uvec").data, k = Q.dwg_dynapi_entity_value(A, "vvec").data, U = Q.dwg_dynapi_entity_value(A, "image_size").data, i = Q.dwg_dynapi_entity_value(A, "display_props").data, F = Q.dwg_dynapi_entity_value(A, "clipping").data, h = Q.dwg_dynapi_entity_value(A, "brightness").data, L = Q.dwg_dynapi_entity_value(A, "contrast").data, R = Q.dwg_dynapi_entity_value(A, "fade").data, c = Q.dwg_dynapi_entity_value(A, "clip_mode").data, H = Q.dwg_dynapi_entity_value(
7492
+ const Q = this.libredwg, D = Q.dwg_dynapi_entity_value(A, "class_version").data, o = Q.dwg_dynapi_entity_value(A, "pt0").data, w = Q.dwg_dynapi_entity_value(A, "uvec").data, k = Q.dwg_dynapi_entity_value(A, "vvec").data, U = Q.dwg_dynapi_entity_value(A, "image_size").data, y = Q.dwg_dynapi_entity_value(A, "display_props").data, F = Q.dwg_dynapi_entity_value(A, "clipping").data, h = Q.dwg_dynapi_entity_value(A, "brightness").data, L = Q.dwg_dynapi_entity_value(A, "contrast").data, i = Q.dwg_dynapi_entity_value(A, "fade").data, c = Q.dwg_dynapi_entity_value(A, "clip_mode").data, H = Q.dwg_dynapi_entity_value(
7490
7493
  A,
7491
7494
  "clip_boundary_type"
7492
- ).data, s = Q.dwg_dynapi_entity_value(
7495
+ ).data, S = Q.dwg_dynapi_entity_value(
7493
7496
  A,
7494
7497
  "num_clip_verts"
7495
- ).data, a = Q.dwg_dynapi_entity_value(A, "clip_verts").data, v = Q.dwg_ptr_to_point2d_array(
7496
- a,
7497
- s
7498
+ ).data, s = Q.dwg_dynapi_entity_value(A, "clip_verts").data, v = Q.dwg_ptr_to_point2d_array(
7499
+ s,
7500
+ S
7498
7501
  ), V = Q.dwg_dynapi_entity_value(A, "imagedef").data, O = Q.dwg_ref_get_absref(V), z = Q.dwg_dynapi_entity_value(
7499
7502
  A,
7500
7503
  "imagedefreactor"
@@ -7508,14 +7511,14 @@ class VM {
7508
7511
  vPixel: k,
7509
7512
  imageSize: U,
7510
7513
  imageDefHandle: O,
7511
- flags: i,
7514
+ flags: y,
7512
7515
  clipping: F,
7513
7516
  brightness: h,
7514
7517
  contrast: L,
7515
- fade: R,
7518
+ fade: i,
7516
7519
  imageDefReactorHandle: f,
7517
7520
  clippingBoundaryType: H,
7518
- countBoundaryPoints: s,
7521
+ countBoundaryPoints: S,
7519
7522
  clippingBoundaryPath: v,
7520
7523
  clipMode: c
7521
7524
  };
@@ -7533,7 +7536,7 @@ class VM {
7533
7536
  const C = this.libredwg, Q = C.dwg_dynapi_entity_value(A, "class_version").data, D = C.dwg_entity_get_block_name(A, "block"), o = C.dwg_dynapi_entity_value(A, "def_pt").data, w = C.dwg_dynapi_entity_value(A, "text_midpt").data, k = C.dwg_dynapi_entity_value(
7534
7537
  A,
7535
7538
  "attachmentPoint"
7536
- ).data, U = C.dwg_dynapi_entity_value(A, "flag").data, i = C.dwg_dynapi_entity_value(
7539
+ ).data, U = C.dwg_dynapi_entity_value(A, "flag").data, y = C.dwg_dynapi_entity_value(
7537
7540
  A,
7538
7541
  "lspace_factor"
7539
7542
  ).data, F = C.dwg_dynapi_entity_value(
@@ -7542,13 +7545,13 @@ class VM {
7542
7545
  ).data, h = C.dwg_dynapi_entity_value(
7543
7546
  A,
7544
7547
  "act_measurement"
7545
- ).data, L = C.dwg_dynapi_entity_value(A, "user_text").data, R = C.dwg_dynapi_entity_value(
7548
+ ).data, L = C.dwg_dynapi_entity_value(A, "user_text").data, i = C.dwg_dynapi_entity_value(
7546
7549
  A,
7547
7550
  "text_rotation"
7548
7551
  ).data, c = C.dwg_dynapi_entity_value(A, "ins_rotation").data, H = C.dwg_dynapi_entity_value(
7549
7552
  A,
7550
7553
  "extrusion"
7551
- ).data, s = C.dwg_entity_get_dimstyle_name(A);
7554
+ ).data, S = C.dwg_entity_get_dimstyle_name(A);
7552
7555
  return {
7553
7556
  type: "DIMENSION",
7554
7557
  version: Q,
@@ -7557,32 +7560,32 @@ class VM {
7557
7560
  textPoint: w,
7558
7561
  dimensionType: U,
7559
7562
  attachmentPoint: k,
7560
- textLineSpacingStyle: i,
7563
+ textLineSpacingStyle: y,
7561
7564
  textLineSpacingFactor: F || 1,
7562
7565
  measurement: h,
7563
7566
  text: L,
7564
- textRotation: R,
7567
+ textRotation: i,
7565
7568
  ocsRotation: c,
7566
7569
  extrusionDirection: H,
7567
- styleName: s
7570
+ styleName: S
7568
7571
  };
7569
7572
  }
7570
7573
  getCommonAttrs(A) {
7571
7574
  const C = this.libredwg, Q = C.dwg_object_entity_get_color_object(A), D = Q.method, o = Q.index;
7572
7575
  let w;
7573
7576
  (D == 194 || (Q.rgb >>> 24 & 255) === 194) && (w = Q.rgb & 16777215);
7574
- const k = this.getLayerName(A), U = C.dwg_object_entity_get_handle_object(A), i = C.dwg_object_entity_get_ownerhandle_object(A), F = C.dwg_object_entity_get_xdicobjhandle_object(A), h = this.getLtypeName(A), L = C.dwg_object_entity_get_line_weight(A), R = C.dwg_object_entity_get_ltype_scale(A), c = !C.dwg_object_entity_get_invisible(A), H = C.dwg_object_entity_get_xdata(A);
7577
+ const k = this.getLayerName(A), U = C.dwg_object_entity_get_handle_object(A), y = C.dwg_object_entity_get_ownerhandle_object(A), F = C.dwg_object_entity_get_xdicobjhandle_object(A), h = this.getLtypeName(A), L = C.dwg_object_entity_get_line_weight(A), i = C.dwg_object_entity_get_ltype_scale(A), c = !C.dwg_object_entity_get_invisible(A), H = C.dwg_object_entity_get_xdata(A);
7575
7578
  return {
7576
7579
  handle: DA(U.value),
7577
7580
  ownerDictionaryHardId: DA(F.absolute_ref),
7578
- ownerBlockRecordSoftId: DA(i.absolute_ref),
7581
+ ownerBlockRecordSoftId: DA(y.absolute_ref),
7579
7582
  layer: k,
7580
7583
  color: w,
7581
7584
  colorIndex: o,
7582
7585
  colorName: Q.name,
7583
7586
  lineType: h,
7584
7587
  lineweight: L,
7585
- lineTypeScale: R,
7588
+ lineTypeScale: i,
7586
7589
  isVisible: c,
7587
7590
  transparency: Q.alpha,
7588
7591
  transparencyType: Q.alpha_type,
@@ -7708,8 +7711,8 @@ class jB {
7708
7711
  }
7709
7712
  const o = C.entities.filter((w) => w.type === "VIEWPORT");
7710
7713
  return o.sort((w, k) => {
7711
- const U = parseInt(w.handle, 16), i = parseInt(k.handle, 16);
7712
- return U - i;
7714
+ const U = parseInt(w.handle, 16), y = parseInt(k.handle, 16);
7715
+ return U - y;
7713
7716
  }), o.forEach((w, k) => {
7714
7717
  w.viewportId = k + 1;
7715
7718
  }), C;
@@ -7755,18 +7758,18 @@ class jB {
7755
7758
  convertBlockRecord(A, C) {
7756
7759
  const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_entity_block_header_get_block(A);
7757
7760
  o.name && (D.name = o.name);
7758
- const w = Q.dwg_dynapi_entity_value(A, "num_owned").data, k = Q.dwg_dynapi_entity_value(A, "flag").data, U = Q.dwg_dynapi_entity_value(A, "description").data, i = Q.dwg_dynapi_entity_value(A, "base_pt").data, F = Q.dwg_dynapi_entity_value(
7761
+ const w = Q.dwg_dynapi_entity_value(A, "num_owned").data, k = Q.dwg_dynapi_entity_value(A, "flag").data, U = Q.dwg_dynapi_entity_value(A, "description").data, y = Q.dwg_dynapi_entity_value(A, "base_pt").data, F = Q.dwg_dynapi_entity_value(
7759
7762
  A,
7760
7763
  "insert_units"
7761
- ).data, h = Q.dwg_dynapi_entity_value(A, "explodable").data, L = Q.dwg_dynapi_entity_value(A, "block_scaling").data, R = Q.dwg_dynapi_entity_value(A, "layout").data, c = DA(Q.dwg_ref_get_absref(R));
7764
+ ).data, h = Q.dwg_dynapi_entity_value(A, "explodable").data, L = Q.dwg_dynapi_entity_value(A, "block_scaling").data, i = Q.dwg_dynapi_entity_value(A, "layout").data, c = DA(Q.dwg_ref_get_absref(i));
7762
7765
  let H = "";
7763
- const s = (V) => {
7766
+ const S = (V) => {
7764
7767
  const O = new Array(V.length);
7765
7768
  for (let z = 0; z < V.length; z++)
7766
7769
  O[z] = V[z].toString(16).toUpperCase();
7767
7770
  return O.join("");
7768
- }, a = Q.dwg_entity_block_header_get_preview(A);
7769
- a && a.length > 0 && (H = s(a));
7771
+ }, s = Q.dwg_entity_block_header_get_preview(A);
7772
+ s && s.length > 0 && (H = S(s));
7770
7773
  let v = this.convertEntities(C, D.handle);
7771
7774
  if (!v || v.length == 0) {
7772
7775
  v = [];
@@ -7788,7 +7791,7 @@ class jB {
7788
7791
  ...D,
7789
7792
  flags: k,
7790
7793
  description: U,
7791
- basePoint: i,
7794
+ basePoint: y,
7792
7795
  layout: c,
7793
7796
  insertionUnits: F,
7794
7797
  explodability: h,
@@ -7807,18 +7810,18 @@ class jB {
7807
7810
  return o;
7808
7811
  }
7809
7812
  convertDimStyle(A, C) {
7810
- const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "DIMTOL").data, w = Q.dwg_dynapi_entity_value(A, "DIMLIM").data, k = Q.dwg_dynapi_entity_value(A, "DIMTIH").data, U = Q.dwg_dynapi_entity_value(A, "DIMTOH").data, i = Q.dwg_dynapi_entity_value(A, "DIMSE1").data, F = Q.dwg_dynapi_entity_value(A, "DIMSE2").data, h = Q.dwg_dynapi_entity_value(A, "DIMALT").data, L = Q.dwg_dynapi_entity_value(A, "DIMTOFL").data, R = Q.dwg_dynapi_entity_value(A, "DIMSAH").data, c = Q.dwg_dynapi_entity_value(A, "DIMTIX").data, H = Q.dwg_dynapi_entity_value(A, "DIMSOXD").data, s = Q.dwg_dynapi_entity_value(A, "DIMALTD").data, a = Q.dwg_dynapi_entity_value(A, "DIMZIN").data, v = Q.dwg_dynapi_entity_value(A, "DIMSD1").data, V = Q.dwg_dynapi_entity_value(A, "DIMSD2").data, O = Q.dwg_dynapi_entity_value(A, "DIMTOLJ").data, z = Q.dwg_dynapi_entity_value(A, "DIMJUST").data, f = Q.dwg_dynapi_entity_value(A, "DIMFIT").data, q = Q.dwg_dynapi_entity_value(A, "DIMUPT").data, W = Q.dwg_dynapi_entity_value(A, "DIMTZIN").data, AA = Q.dwg_dynapi_entity_value(A, "DIMALTZ").data, EA = Q.dwg_dynapi_entity_value(A, "DIMALTTZ").data, P = Q.dwg_dynapi_entity_value(A, "DIMTAD").data, d = Q.dwg_dynapi_entity_value(A, "DIMUNIT").data, e = Q.dwg_dynapi_entity_value(A, "DIMAUNIT").data, iA = Q.dwg_dynapi_entity_value(A, "DIMDEC").data, MA = Q.dwg_dynapi_entity_value(A, "DIMTDEC").data, zA = Q.dwg_dynapi_entity_value(A, "DIMALTU").data, TA = Q.dwg_dynapi_entity_value(A, "DIMALTTD").data, RA = Q.dwg_dynapi_entity_value(A, "DIMSCALE").data, VA = Q.dwg_dynapi_entity_value(A, "DIMASZ").data, vA = Q.dwg_dynapi_entity_value(A, "DIMEXO").data, nA = Q.dwg_dynapi_entity_value(A, "DIMDLI").data, oQ = Q.dwg_dynapi_entity_value(A, "DIMEXE").data, jA = Q.dwg_dynapi_entity_value(A, "DIMRND").data, Cg = Q.dwg_dynapi_entity_value(A, "DIMDLE").data, ng = Q.dwg_dynapi_entity_value(A, "DIMTP").data, xg = Q.dwg_dynapi_entity_value(A, "DIMTM").data, Bg = Q.dwg_dynapi_entity_value(A, "DIMFXL").data, kg = Q.dwg_dynapi_entity_value(A, "DIMJOGANG").data, GQ = Q.dwg_dynapi_entity_value(A, "DIMTFILL").data, wQ = Q.dwg_dynapi_entity_value(A, "DIMTFILLCLR").data, MQ = Q.dwg_dynapi_entity_value(A, "DIMAZIN").data, iC = Q.dwg_dynapi_entity_value(A, "DIMARCSYM").data, yC = Q.dwg_dynapi_entity_value(A, "DIMTXT").data, RC = Q.dwg_dynapi_entity_value(A, "DIMCEN").data, hC = Q.dwg_dynapi_entity_value(A, "DIMTSZ").data, hQ = Q.dwg_dynapi_entity_value(A, "DIMALTF").data, JQ = Q.dwg_dynapi_entity_value(A, "DIMLFAC").data, JC = Q.dwg_dynapi_entity_value(A, "DIMTVP").data, LQ = Q.dwg_dynapi_entity_value(A, "DIMTFAC").data, LC = Q.dwg_dynapi_entity_value(A, "DIMGAP").data, HC = Q.dwg_dynapi_entity_value(A, "DIMPOST").data, aC = Q.dwg_dynapi_entity_value(A, "DIMAPOST").data, SC = Q.dwg_dynapi_entity_value(A, "DIMBLK_T").data, HQ = Q.dwg_dynapi_entity_value(A, "DIMBLK1_T").data, Ug = Q.dwg_dynapi_entity_value(A, "DIMBLK2_T").data, Ig = Q.dwg_dynapi_entity_value(A, "DIMALTRND").data, sC = Q.dwg_dynapi_entity_value(A, "DIMCLRD_N").data, cC = Q.dwg_dynapi_entity_value(A, "DIMCLRE_N").data, aQ = Q.dwg_dynapi_entity_value(A, "DIMCLRT_N").data, tC = Q.dwg_dynapi_entity_value(A, "DIMCLRD").data, Zg = Q.dwg_dynapi_entity_value(A, "DIMCLRE").data, Kg = Q.dwg_dynapi_entity_value(A, "DIMCLRT").data, BA = Q.dwg_dynapi_entity_value(A, "DIMADEC").data, TC = Q.dwg_dynapi_entity_value(A, "DIMFRAC").data, SQ = Q.dwg_dynapi_entity_value(A, "DIMLUNIT").data, Fg = Q.dwg_dynapi_entity_value(A, "DIMDSEP").data, NQ = Q.dwg_dynapi_entity_value(A, "DIMTMOVE").data, dg = Q.dwg_dynapi_entity_value(A, "DIMATFIT").data, YQ = Q.dwg_dynapi_entity_value(A, "DIMFXLON").data, sQ = Q.dwg_dynapi_entity_value(
7813
+ const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "DIMTOL").data, w = Q.dwg_dynapi_entity_value(A, "DIMLIM").data, k = Q.dwg_dynapi_entity_value(A, "DIMTIH").data, U = Q.dwg_dynapi_entity_value(A, "DIMTOH").data, y = Q.dwg_dynapi_entity_value(A, "DIMSE1").data, F = Q.dwg_dynapi_entity_value(A, "DIMSE2").data, h = Q.dwg_dynapi_entity_value(A, "DIMALT").data, L = Q.dwg_dynapi_entity_value(A, "DIMTOFL").data, i = Q.dwg_dynapi_entity_value(A, "DIMSAH").data, c = Q.dwg_dynapi_entity_value(A, "DIMTIX").data, H = Q.dwg_dynapi_entity_value(A, "DIMSOXD").data, S = Q.dwg_dynapi_entity_value(A, "DIMALTD").data, s = Q.dwg_dynapi_entity_value(A, "DIMZIN").data, v = Q.dwg_dynapi_entity_value(A, "DIMSD1").data, V = Q.dwg_dynapi_entity_value(A, "DIMSD2").data, O = Q.dwg_dynapi_entity_value(A, "DIMTOLJ").data, z = Q.dwg_dynapi_entity_value(A, "DIMJUST").data, f = Q.dwg_dynapi_entity_value(A, "DIMFIT").data, q = Q.dwg_dynapi_entity_value(A, "DIMUPT").data, W = Q.dwg_dynapi_entity_value(A, "DIMTZIN").data, AA = Q.dwg_dynapi_entity_value(A, "DIMALTZ").data, EA = Q.dwg_dynapi_entity_value(A, "DIMALTTZ").data, P = Q.dwg_dynapi_entity_value(A, "DIMTAD").data, d = Q.dwg_dynapi_entity_value(A, "DIMUNIT").data, e = Q.dwg_dynapi_entity_value(A, "DIMAUNIT").data, yA = Q.dwg_dynapi_entity_value(A, "DIMDEC").data, MA = Q.dwg_dynapi_entity_value(A, "DIMTDEC").data, zA = Q.dwg_dynapi_entity_value(A, "DIMALTU").data, TA = Q.dwg_dynapi_entity_value(A, "DIMALTTD").data, iA = Q.dwg_dynapi_entity_value(A, "DIMSCALE").data, VA = Q.dwg_dynapi_entity_value(A, "DIMASZ").data, vA = Q.dwg_dynapi_entity_value(A, "DIMEXO").data, nA = Q.dwg_dynapi_entity_value(A, "DIMDLI").data, oQ = Q.dwg_dynapi_entity_value(A, "DIMEXE").data, jA = Q.dwg_dynapi_entity_value(A, "DIMRND").data, Cg = Q.dwg_dynapi_entity_value(A, "DIMDLE").data, ng = Q.dwg_dynapi_entity_value(A, "DIMTP").data, xg = Q.dwg_dynapi_entity_value(A, "DIMTM").data, Bg = Q.dwg_dynapi_entity_value(A, "DIMFXL").data, kg = Q.dwg_dynapi_entity_value(A, "DIMJOGANG").data, GQ = Q.dwg_dynapi_entity_value(A, "DIMTFILL").data, wQ = Q.dwg_dynapi_entity_value(A, "DIMTFILLCLR").data, MQ = Q.dwg_dynapi_entity_value(A, "DIMAZIN").data, yC = Q.dwg_dynapi_entity_value(A, "DIMARCSYM").data, RC = Q.dwg_dynapi_entity_value(A, "DIMTXT").data, iC = Q.dwg_dynapi_entity_value(A, "DIMCEN").data, hC = Q.dwg_dynapi_entity_value(A, "DIMTSZ").data, hQ = Q.dwg_dynapi_entity_value(A, "DIMALTF").data, JQ = Q.dwg_dynapi_entity_value(A, "DIMLFAC").data, JC = Q.dwg_dynapi_entity_value(A, "DIMTVP").data, LQ = Q.dwg_dynapi_entity_value(A, "DIMTFAC").data, LC = Q.dwg_dynapi_entity_value(A, "DIMGAP").data, HC = Q.dwg_dynapi_entity_value(A, "DIMPOST").data, sC = Q.dwg_dynapi_entity_value(A, "DIMAPOST").data, aC = Q.dwg_dynapi_entity_value(A, "DIMBLK_T").data, HQ = Q.dwg_dynapi_entity_value(A, "DIMBLK1_T").data, Ug = Q.dwg_dynapi_entity_value(A, "DIMBLK2_T").data, Ig = Q.dwg_dynapi_entity_value(A, "DIMALTRND").data, SC = Q.dwg_dynapi_entity_value(A, "DIMCLRD_N").data, cC = Q.dwg_dynapi_entity_value(A, "DIMCLRE_N").data, sQ = Q.dwg_dynapi_entity_value(A, "DIMCLRT_N").data, tC = Q.dwg_dynapi_entity_value(A, "DIMCLRD").data, Zg = Q.dwg_dynapi_entity_value(A, "DIMCLRE").data, Kg = Q.dwg_dynapi_entity_value(A, "DIMCLRT").data, BA = Q.dwg_dynapi_entity_value(A, "DIMADEC").data, TC = Q.dwg_dynapi_entity_value(A, "DIMFRAC").data, aQ = Q.dwg_dynapi_entity_value(A, "DIMLUNIT").data, Fg = Q.dwg_dynapi_entity_value(A, "DIMDSEP").data, NQ = Q.dwg_dynapi_entity_value(A, "DIMTMOVE").data, dg = Q.dwg_dynapi_entity_value(A, "DIMATFIT").data, YQ = Q.dwg_dynapi_entity_value(A, "DIMFXLON").data, SQ = Q.dwg_dynapi_entity_value(
7811
7814
  A,
7812
7815
  "DIMTXTDIRECTION"
7813
7816
  ).data, xC = Q.dwg_dynapi_entity_value(A, "DIMALTMZF").data, Eg = Q.dwg_dynapi_entity_value(A, "DIMALTMZS").data, dC = Q.dwg_dynapi_entity_value(A, "DIMMZF").data, cQ = Q.dwg_dynapi_entity_value(A, "DIMMZS").data, m = Q.dwg_dynapi_entity_value(A, "DIMLWD").data, zC = Q.dwg_dynapi_entity_value(A, "DIMLWE").data, VC = Q.dwg_dynapi_entity_value(A, "DIMTXSTY").data, vC = Q.dwg_ref_get_absref(VC), OC = Q.dwg_dynapi_entity_value(A, "DIMLDRBLK").data, lC = Q.dwg_ref_get_absref(OC);
7814
7817
  return {
7815
7818
  ...D,
7816
7819
  DIMPOST: HC,
7817
- DIMAPOST: aC,
7818
- DIMBLK: SC,
7820
+ DIMAPOST: sC,
7821
+ DIMBLK: aC,
7819
7822
  DIMBLK1: HQ,
7820
7823
  DIMBLK2: Ug,
7821
- DIMSCALE: RA,
7824
+ DIMSCALE: iA,
7822
7825
  DIMASZ: VA,
7823
7826
  DIMEXO: vA,
7824
7827
  DIMDLI: nA,
@@ -7827,8 +7830,8 @@ class jB {
7827
7830
  DIMDLE: Cg,
7828
7831
  DIMTP: ng,
7829
7832
  DIMTM: xg,
7830
- DIMTXT: yC,
7831
- DIMCEN: RC,
7833
+ DIMTXT: RC,
7834
+ DIMCEN: iC,
7832
7835
  DIMTSZ: hC,
7833
7836
  DIMALTF: hQ,
7834
7837
  DIMLFAC: JQ,
@@ -7840,15 +7843,15 @@ class jB {
7840
7843
  DIMLIM: w,
7841
7844
  DIMTIH: k,
7842
7845
  DIMTOH: U,
7843
- DIMSE1: i,
7846
+ DIMSE1: y,
7844
7847
  DIMSE2: F,
7845
7848
  DIMTAD: P,
7846
- DIMZIN: a,
7849
+ DIMZIN: s,
7847
7850
  DIMAZIN: MQ,
7848
7851
  DIMALT: h,
7849
- DIMALTD: s,
7852
+ DIMALTD: S,
7850
7853
  DIMTOFL: L,
7851
- DIMSAH: R,
7854
+ DIMSAH: i,
7852
7855
  DIMTIX: c,
7853
7856
  DIMSOXD: H,
7854
7857
  DIMCLRD: tC,
@@ -7856,13 +7859,13 @@ class jB {
7856
7859
  DIMCLRT: Kg,
7857
7860
  DIMADEC: BA,
7858
7861
  DIMUNIT: d,
7859
- DIMDEC: iA,
7862
+ DIMDEC: yA,
7860
7863
  DIMTDEC: MA,
7861
7864
  DIMALTU: zA,
7862
7865
  DIMALTTD: TA,
7863
7866
  DIMAUNIT: e,
7864
7867
  DIMFRAC: TC,
7865
- DIMLUNIT: SQ,
7868
+ DIMLUNIT: aQ,
7866
7869
  DIMDSEP: String.fromCharCode(Fg),
7867
7870
  DIMTMOVE: NQ,
7868
7871
  DIMJUST: z,
@@ -7883,12 +7886,12 @@ class jB {
7883
7886
  DIMJOGANG: kg,
7884
7887
  DIMTFILL: GQ,
7885
7888
  DIMTFILLCLR: wQ,
7886
- DIMARCSYM: iC,
7887
- DIMCLRD_N: sC,
7889
+ DIMARCSYM: yC,
7890
+ DIMCLRD_N: SC,
7888
7891
  DIMCLRE_N: cC,
7889
- DIMCLRT_N: aQ,
7892
+ DIMCLRT_N: sQ,
7890
7893
  DIMFXLON: YQ,
7891
- DIMTXTDIRECTION: sQ,
7894
+ DIMTXTDIRECTION: SQ,
7892
7895
  DIMALTMZF: xC,
7893
7896
  DIMALTMZS: Eg,
7894
7897
  DIMMZF: dC,
@@ -7896,9 +7899,9 @@ class jB {
7896
7899
  };
7897
7900
  }
7898
7901
  convertLayer(A, C) {
7899
- const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "frozen").data, k = Q.dwg_dynapi_entity_value(A, "off").data, U = Q.dwg_dynapi_entity_value(A, "frozen_in_new").data, i = Q.dwg_dynapi_entity_value(A, "plotflockedlag").data, F = Q.dwg_dynapi_entity_value(A, "plotflag").data, h = Q.dwg_dynapi_entity_value(A, "linewt").data, L = Q.dwg_dynapi_entity_value(A, "color").data, R = L.method;
7902
+ const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "frozen").data, k = Q.dwg_dynapi_entity_value(A, "off").data, U = Q.dwg_dynapi_entity_value(A, "frozen_in_new").data, y = Q.dwg_dynapi_entity_value(A, "plotflockedlag").data, F = Q.dwg_dynapi_entity_value(A, "plotflag").data, h = Q.dwg_dynapi_entity_value(A, "linewt").data, L = Q.dwg_dynapi_entity_value(A, "color").data, i = L.method;
7900
7903
  let c = 256, H = 16777215;
7901
- return R === 195 || (L.rgb >>> 24 & 255) === 195 ? c = L.rgb & 255 : R == 194 || (L.rgb >>> 24 & 255) === 194 ? H = L.rgb & 16777215 : L.index >= 1 && L.index <= 255 && (c = L.index), {
7904
+ return i === 195 || (L.rgb >>> 24 & 255) === 195 ? c = L.rgb & 255 : i == 194 || (L.rgb >>> 24 & 255) === 194 ? H = L.rgb & 16777215 : L.index >= 1 && L.index <= 255 && (c = L.index), {
7902
7905
  ...D,
7903
7906
  standardFlag: o,
7904
7907
  colorIndex: c,
@@ -7909,7 +7912,7 @@ class jB {
7909
7912
  frozen: w != 0,
7910
7913
  off: k != 0,
7911
7914
  frozenInNew: U != 0,
7912
- locked: i != 0,
7915
+ locked: y != 0,
7913
7916
  plotFlag: F,
7914
7917
  lineweight: h,
7915
7918
  plotStyleNameObjectId: "",
@@ -7917,7 +7920,7 @@ class jB {
7917
7920
  };
7918
7921
  }
7919
7922
  convertLineType(A, C) {
7920
- const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "description").data, k = Q.dwg_dynapi_entity_value(A, "numdashes").data, U = Q.dwg_dynapi_entity_value(A, "pattern_len").data, i = Q.dwg_dynapi_entity_value(A, "dashes").data, F = i ? Q.dwg_ptr_to_ltype_dash_array(i, k) : [];
7923
+ const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "description").data, k = Q.dwg_dynapi_entity_value(A, "numdashes").data, U = Q.dwg_dynapi_entity_value(A, "pattern_len").data, y = Q.dwg_dynapi_entity_value(A, "dashes").data, F = y ? Q.dwg_ptr_to_ltype_dash_array(y, k) : [];
7921
7924
  return {
7922
7925
  ...D,
7923
7926
  description: w,
@@ -7948,7 +7951,7 @@ class jB {
7948
7951
  const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "width_factor").data, k = Q.dwg_dynapi_entity_value(A, "oblique_angle").data, U = Q.dwg_dynapi_entity_value(
7949
7952
  A,
7950
7953
  "generation"
7951
- ).data, i = Q.dwg_dynapi_entity_value(A, "last_height").data, F = Q.dwg_dynapi_entity_value(A, "font_file").data, h = Q.dwg_dynapi_entity_value(A, "bigfont_file").data;
7954
+ ).data, y = Q.dwg_dynapi_entity_value(A, "last_height").data, F = Q.dwg_dynapi_entity_value(A, "font_file").data, h = Q.dwg_dynapi_entity_value(A, "bigfont_file").data;
7952
7955
  return {
7953
7956
  ...D,
7954
7957
  standardFlag: o,
@@ -7957,22 +7960,22 @@ class jB {
7957
7960
  widthFactor: w,
7958
7961
  obliqueAngle: k,
7959
7962
  textGenerationFlag: U,
7960
- lastHeight: i,
7963
+ lastHeight: y,
7961
7964
  font: F,
7962
7965
  bigFont: h
7963
7966
  };
7964
7967
  }
7965
7968
  convertViewport(A, C) {
7966
- const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "VIEWSIZE").data, k = Q.dwg_dynapi_entity_value(A, "VIEWCTR").data, U = Q.dwg_dynapi_entity_value(A, "view_target").data, i = Q.dwg_dynapi_entity_value(
7969
+ const Q = this.libredwg, D = this.getCommonTableEntryAttrs(A, C), o = Q.dwg_dynapi_entity_value(A, "flag").data, w = Q.dwg_dynapi_entity_value(A, "VIEWSIZE").data, k = Q.dwg_dynapi_entity_value(A, "VIEWCTR").data, U = Q.dwg_dynapi_entity_value(A, "view_target").data, y = Q.dwg_dynapi_entity_value(
7967
7970
  A,
7968
7971
  "VIEWDIR"
7969
7972
  ).data, F = Q.dwg_dynapi_entity_value(A, "view_twist").data, h = Q.dwg_dynapi_entity_value(A, "lens_length").data, L = Q.dwg_dynapi_entity_value(
7970
7973
  A,
7971
7974
  "front_clip_z"
7972
- ).data, R = Q.dwg_dynapi_entity_value(
7975
+ ).data, i = Q.dwg_dynapi_entity_value(
7973
7976
  A,
7974
7977
  "back_clip_z"
7975
- ).data, c = Q.dwg_dynapi_entity_value(A, "VIEWMODE").data, H = Q.dwg_dynapi_entity_value(A, "render_mode").data, s = Q.dwg_dynapi_entity_value(A, "use_default_lights").data != 0, a = Q.dwg_dynapi_entity_value(
7978
+ ).data, c = Q.dwg_dynapi_entity_value(A, "VIEWMODE").data, H = Q.dwg_dynapi_entity_value(A, "render_mode").data, S = Q.dwg_dynapi_entity_value(A, "use_default_lights").data != 0, s = Q.dwg_dynapi_entity_value(
7976
7979
  A,
7977
7980
  "default_lightning_type"
7978
7981
  ).data, v = Q.dwg_dynapi_entity_value(A, "brightness").data, V = Q.dwg_dynapi_entity_value(A, "contrast").data, O = Q.dwg_dynapi_entity_value(
@@ -7981,7 +7984,7 @@ class jB {
7981
7984
  ).data, z = Q.dwg_dynapi_entity_value(A, "lower_left").data, f = Q.dwg_dynapi_entity_value(
7982
7985
  A,
7983
7986
  "upper_right"
7984
- ).data, q = Q.dwg_dynapi_entity_value(A, "circle_zoom").data, W = Q.dwg_dynapi_entity_value(A, "UCSICON").data, AA = Q.dwg_dynapi_entity_value(A, "GRIDUNIT").data, EA = Q.dwg_dynapi_entity_value(A, "SNAPANG").data, P = Q.dwg_dynapi_entity_value(A, "SNAPBASE").data, d = Q.dwg_dynapi_entity_value(A, "SNAPUNIT").data, e = Q.dwg_dynapi_entity_value(A, "ucsorg").data, iA = Q.dwg_dynapi_entity_value(A, "ucsxdir").data, MA = Q.dwg_dynapi_entity_value(A, "ucsydir").data, zA = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, TA = Q.dwg_dynapi_entity_value(A, "grid_major").data, RA = Q.dwg_dynapi_entity_value(A, "background").data, VA = RA ? DA(Q.dwg_ref_get_absref(RA)) : void 0, vA = Q.dwg_dynapi_entity_value(A, "visualstyle").data, nA = vA ? DA(Q.dwg_ref_get_absref(vA)) : void 0;
7987
+ ).data, q = Q.dwg_dynapi_entity_value(A, "circle_zoom").data, W = Q.dwg_dynapi_entity_value(A, "UCSICON").data, AA = Q.dwg_dynapi_entity_value(A, "GRIDUNIT").data, EA = Q.dwg_dynapi_entity_value(A, "SNAPANG").data, P = Q.dwg_dynapi_entity_value(A, "SNAPBASE").data, d = Q.dwg_dynapi_entity_value(A, "SNAPUNIT").data, e = Q.dwg_dynapi_entity_value(A, "ucsorg").data, yA = Q.dwg_dynapi_entity_value(A, "ucsxdir").data, MA = Q.dwg_dynapi_entity_value(A, "ucsydir").data, zA = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, TA = Q.dwg_dynapi_entity_value(A, "grid_major").data, iA = Q.dwg_dynapi_entity_value(A, "background").data, VA = iA ? DA(Q.dwg_ref_get_absref(iA)) : void 0, vA = Q.dwg_dynapi_entity_value(A, "visualstyle").data, nA = vA ? DA(Q.dwg_ref_get_absref(vA)) : void 0;
7985
7988
  return {
7986
7989
  ...D,
7987
7990
  standardFlag: o,
@@ -7991,11 +7994,11 @@ class jB {
7991
7994
  snapBasePoint: P,
7992
7995
  snapSpacing: d,
7993
7996
  gridSpacing: AA,
7994
- viewDirectionFromTarget: i,
7997
+ viewDirectionFromTarget: y,
7995
7998
  viewTarget: U,
7996
7999
  lensLength: h,
7997
8000
  frontClippingPlane: L,
7998
- backClippingPlane: R,
8001
+ backClippingPlane: i,
7999
8002
  viewHeight: w,
8000
8003
  snapRotationAngle: EA,
8001
8004
  viewTwistAngle: F,
@@ -8008,7 +8011,7 @@ class jB {
8008
8011
  viewMode: c,
8009
8012
  ucsIconSetting: W,
8010
8013
  ucsOrigin: e,
8011
- ucsXAxis: iA,
8014
+ ucsXAxis: yA,
8012
8015
  ucsYAxis: MA,
8013
8016
  orthographicType: 0,
8014
8017
  // TODO: Set the correct value
@@ -8019,8 +8022,8 @@ class jB {
8019
8022
  backgroundObjectId: VA,
8020
8023
  // shadePlotObjectId: undefined,
8021
8024
  visualStyleObjectId: nA,
8022
- isDefaultLightingOn: s,
8023
- defaultLightingType: a,
8025
+ isDefaultLightingOn: S,
8026
+ defaultLightingType: s,
8024
8027
  brightness: v,
8025
8028
  contrast: V,
8026
8029
  // TODO: Not sure whether 'index' or 'rgb' should be used
@@ -8039,12 +8042,12 @@ class jB {
8039
8042
  const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "is_hardowner").data, w = Q.dwg_dynapi_entity_value(A, "cloning").data, k = Q.dwg_dynapi_entity_value(A, "numitems").data, U = Q.dwg_dynapi_entity_value(
8040
8043
  A,
8041
8044
  "itemhandles"
8042
- ).data, i = Q.dwg_ptr_to_object_ref_array(
8045
+ ).data, y = Q.dwg_ptr_to_object_ref_array(
8043
8046
  U,
8044
8047
  k
8045
8048
  ), F = Q.dwg_object_dictionary_get_texts(C), h = {};
8046
- return i.forEach(
8047
- (L, R) => h[F[R]] = DA(L.absolute_ref)
8049
+ return y.forEach(
8050
+ (L, i) => h[F[i]] = DA(L.absolute_ref)
8048
8051
  ), {
8049
8052
  ...D,
8050
8053
  isHardOwner: !!o,
@@ -8053,21 +8056,21 @@ class jB {
8053
8056
  };
8054
8057
  }
8055
8058
  convertImageDef(A, C) {
8056
- const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "image_size").data, w = Q.dwg_dynapi_entity_value(A, "file_path").data, k = Q.dwg_dynapi_entity_value(A, "is_loaded").data, U = Q.dwg_dynapi_entity_value(A, "pixel_size").data, i = Q.dwg_dynapi_entity_value(A, "resunits").data;
8059
+ const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "image_size").data, w = Q.dwg_dynapi_entity_value(A, "file_path").data, k = Q.dwg_dynapi_entity_value(A, "is_loaded").data, U = Q.dwg_dynapi_entity_value(A, "pixel_size").data, y = Q.dwg_dynapi_entity_value(A, "resunits").data;
8057
8060
  return {
8058
8061
  ...D,
8059
8062
  fileName: w,
8060
8063
  size: o,
8061
8064
  sizeOfOnePixel: U,
8062
8065
  isLoaded: k,
8063
- resolutionUnits: i
8066
+ resolutionUnits: y
8064
8067
  };
8065
8068
  }
8066
8069
  convertLayout(A, C) {
8067
- const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "layout_name").data, w = Q.dwg_dynapi_entity_value(A, "tab_order").data, k = Q.dwg_dynapi_entity_value(A, "layout_flags").data, U = Q.dwg_dynapi_entity_value(A, "INSBASE").data, i = Q.dwg_dynapi_entity_value(A, "LIMMIN").data, F = Q.dwg_dynapi_entity_value(A, "LIMMAX").data, h = Q.dwg_dynapi_entity_value(A, "UCSORG").data, L = Q.dwg_dynapi_entity_value(A, "UCSXDIR").data, R = Q.dwg_dynapi_entity_value(A, "UCSYDIR").data, c = Q.dwg_dynapi_entity_value(
8070
+ const Q = this.libredwg, D = this.getCommonObjectAttrs(C), o = Q.dwg_dynapi_entity_value(A, "layout_name").data, w = Q.dwg_dynapi_entity_value(A, "tab_order").data, k = Q.dwg_dynapi_entity_value(A, "layout_flags").data, U = Q.dwg_dynapi_entity_value(A, "INSBASE").data, y = Q.dwg_dynapi_entity_value(A, "LIMMIN").data, F = Q.dwg_dynapi_entity_value(A, "LIMMAX").data, h = Q.dwg_dynapi_entity_value(A, "UCSORG").data, L = Q.dwg_dynapi_entity_value(A, "UCSXDIR").data, i = Q.dwg_dynapi_entity_value(A, "UCSYDIR").data, c = Q.dwg_dynapi_entity_value(
8068
8071
  A,
8069
8072
  "UCSORTHOVIEW"
8070
- ).data, H = Q.dwg_dynapi_entity_value(A, "EXTMIN").data, s = Q.dwg_dynapi_entity_value(A, "EXTMAX").data, a = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, v = Q.dwg_dynapi_entity_value(
8073
+ ).data, H = Q.dwg_dynapi_entity_value(A, "EXTMIN").data, S = Q.dwg_dynapi_entity_value(A, "EXTMAX").data, s = Q.dwg_dynapi_entity_value(A, "ucs_elevation").data, v = Q.dwg_dynapi_entity_value(
8071
8074
  A,
8072
8075
  "block_header"
8073
8076
  ).data, V = DA(
@@ -8083,15 +8086,15 @@ class jB {
8083
8086
  layoutName: o,
8084
8087
  controlFlag: k,
8085
8088
  tabOrder: w,
8086
- minLimit: i,
8089
+ minLimit: y,
8087
8090
  maxLimit: F,
8088
8091
  insertionPoint: U,
8089
8092
  minExtent: H,
8090
- maxExtent: s,
8091
- elevation: a,
8093
+ maxExtent: S,
8094
+ elevation: s,
8092
8095
  ucsOrigin: h,
8093
8096
  ucsXAxis: L,
8094
- ucsYAxis: R,
8097
+ ucsYAxis: i,
8095
8098
  orthographicType: c,
8096
8099
  paperSpaceTableId: V,
8097
8100
  viewportId: z,
@@ -8108,7 +8111,7 @@ class jB {
8108
8111
  ).data, k = Q.dwg_dynapi_entity_value(A, "clip_verts").data, U = Q.dwg_ptr_to_point2d_array(
8109
8112
  k,
8110
8113
  w
8111
- ), i = Q.dwg_dynapi_entity_value(
8114
+ ), y = Q.dwg_dynapi_entity_value(
8112
8115
  A,
8113
8116
  "extrusion"
8114
8117
  ).data, F = Q.dwg_dynapi_entity_value(
@@ -8120,17 +8123,17 @@ class jB {
8120
8123
  ).data, L = Q.dwg_dynapi_entity_value(
8121
8124
  A,
8122
8125
  "front_clip_z"
8123
- ).data, R = Q.dwg_dynapi_entity_value(
8126
+ ).data, i = Q.dwg_dynapi_entity_value(
8124
8127
  A,
8125
8128
  "back_clip_on"
8126
8129
  ).data, c = Q.dwg_dynapi_entity_value(
8127
8130
  A,
8128
8131
  "back_clip_z"
8129
- ).data, H = Q.dwg_dynapi_entity_value(A, "transform").data, s = Q.dwg_ptr_to_double_array(H, 12), a = Q.dwg_dynapi_entity_value(
8132
+ ).data, H = Q.dwg_dynapi_entity_value(A, "transform").data, S = Q.dwg_ptr_to_double_array(H, 12), s = Q.dwg_dynapi_entity_value(
8130
8133
  A,
8131
8134
  "inverse_transform"
8132
8135
  ).data, v = Q.dwg_ptr_to_double_array(
8133
- a,
8136
+ s,
8134
8137
  12
8135
8138
  );
8136
8139
  return {
@@ -8138,13 +8141,13 @@ class jB {
8138
8141
  origin: o,
8139
8142
  numberOfPointsOnClipBoundary: w,
8140
8143
  vertices: U,
8141
- extrusionDirection: i,
8144
+ extrusionDirection: y,
8142
8145
  clipBoundaryVisible: !!F,
8143
8146
  frontClippingPlaneFlag: !!h,
8144
8147
  frontClippingPlaneDistance: L,
8145
- backClippingPlaneFlag: !!R,
8148
+ backClippingPlaneFlag: !!i,
8146
8149
  backClippingPlaneDistance: c,
8147
- matrix: s,
8150
+ matrix: S,
8148
8151
  invertBlockMatrix: v
8149
8152
  };
8150
8153
  }
@@ -8248,33 +8251,33 @@ function vM(g, A, C, Q, D) {
8248
8251
  throw new Error("degree must be less than or equal to point count - 1");
8249
8252
  const k = D ?? new Array(o).fill(1), U = Q ?? (() => {
8250
8253
  const H = [];
8251
- for (let s = 0; s < o + A + 1; s++)
8252
- H.push(s);
8254
+ for (let S = 0; S < o + A + 1; S++)
8255
+ H.push(S);
8253
8256
  return H;
8254
8257
  })();
8255
8258
  if (U.length !== o + A + 1)
8256
8259
  throw new Error("bad knot vector length");
8257
- const i = [A, U.length - 1 - A], F = U[i[0]], h = U[i[1]];
8260
+ const y = [A, U.length - 1 - A], F = U[y[0]], h = U[y[1]];
8258
8261
  g = g * (h - F) + F, g = Math.max(g, F), g = Math.min(g, h);
8259
- let L = i[0];
8260
- for (; L < i[1] && !(g >= U[L] && g <= U[L + 1]); L++)
8262
+ let L = y[0];
8263
+ for (; L < y[1] && !(g >= U[L] && g <= U[L + 1]); L++)
8261
8264
  ;
8262
- const R = new Array(o);
8265
+ const i = new Array(o);
8263
8266
  for (let H = 0; H < o; H++) {
8264
- R[H] = new Array(w + 1);
8265
- for (let s = 0; s < w; s++)
8266
- R[H][s] = C[H][s] * k[H];
8267
- R[H][w] = k[H];
8267
+ i[H] = new Array(w + 1);
8268
+ for (let S = 0; S < w; S++)
8269
+ i[H][S] = C[H][S] * k[H];
8270
+ i[H][w] = k[H];
8268
8271
  }
8269
8272
  for (let H = 1; H <= A + 1; H++)
8270
- for (let s = L; s > L - A - 1 + H; s--) {
8271
- const a = U[s + A + 1 - H] - U[s], v = a === 0 ? 0 : (g - U[s]) / a;
8273
+ for (let S = L; S > L - A - 1 + H; S--) {
8274
+ const s = U[S + A + 1 - H] - U[S], v = s === 0 ? 0 : (g - U[S]) / s;
8272
8275
  for (let V = 0; V < w + 1; V++)
8273
- R[s][V] = (1 - v) * R[s - 1][V] + v * R[s][V];
8276
+ i[S][V] = (1 - v) * i[S - 1][V] + v * i[S][V];
8274
8277
  }
8275
8278
  const c = new Array(w);
8276
8279
  for (let H = 0; H < w; H++)
8277
- c[H] = OM(R[L][H] / R[L][w], -9);
8280
+ c[H] = OM(i[L][H] / i[L][w], -9);
8278
8281
  return c;
8279
8282
  }
8280
8283
  function OM(g, A) {
@@ -8687,10 +8690,10 @@ const YC = {
8687
8690
  16777215,
8688
8691
  0
8689
8692
  ];
8690
- function iQ(g, A, C) {
8693
+ function yQ(g, A, C) {
8691
8694
  return Math.max(A, Math.min(C, g));
8692
8695
  }
8693
- const aE = class SE {
8696
+ const sE = class aE {
8694
8697
  constructor() {
8695
8698
  IA(this, "_colorIndex"), IA(this, "_color"), IA(this, "_colorName"), this._colorIndex = 256, this._color = null, this._colorName = null;
8696
8699
  }
@@ -8698,7 +8701,7 @@ const aE = class SE {
8698
8701
  return this._color;
8699
8702
  }
8700
8703
  set color(A) {
8701
- A == null ? this._color = null : (this._color = Math.round(iQ(A, 0, 256 * 256 * 256 - 1)), this._colorIndex = this.getColorIndexByValue(this._color), this._colorName = this.getColorNameByValue(this._color));
8704
+ A == null ? this._color = null : (this._color = Math.round(yQ(A, 0, 256 * 256 * 256 - 1)), this._colorIndex = this.getColorIndexByValue(this._color), this._colorName = this.getColorNameByValue(this._color));
8702
8705
  }
8703
8706
  get hexColor() {
8704
8707
  if (this._color && this._color > 0 && this._color <= 16777215) {
@@ -8733,7 +8736,7 @@ const aE = class SE {
8733
8736
  return this._colorIndex;
8734
8737
  }
8735
8738
  set colorIndex(A) {
8736
- A == null ? this._colorIndex = null : (this._colorIndex = iQ(A, 0, 256), this._color = IB[A], this._colorName = this.getColorNameByValue(this._color));
8739
+ A == null ? this._colorIndex = null : (this._colorIndex = yQ(A, 0, 256), this._color = IB[A], this._colorName = this.getColorNameByValue(this._color));
8737
8740
  }
8738
8741
  get colorName() {
8739
8742
  return this._colorName;
@@ -8767,7 +8770,7 @@ const aE = class SE {
8767
8770
  return this.setRGB(A, A, A), this;
8768
8771
  }
8769
8772
  setRGB(A, C, Q) {
8770
- const D = Math.round(iQ(A, 0, 255)), o = Math.round(iQ(C, 0, 255)), w = Math.round(iQ(Q, 0, 255));
8773
+ const D = Math.round(yQ(A, 0, 255)), o = Math.round(yQ(C, 0, 255)), w = Math.round(yQ(Q, 0, 255));
8771
8774
  return this.color = (D << 16) + (o << 8) + w, this;
8772
8775
  }
8773
8776
  setColorName(A) {
@@ -8775,7 +8778,7 @@ const aE = class SE {
8775
8778
  return C !== void 0 && (this.color = C), this;
8776
8779
  }
8777
8780
  clone() {
8778
- const A = new SE();
8781
+ const A = new aE();
8779
8782
  return A.colorIndex = this.colorIndex, A.color = this.color, A._colorName = this._colorName, this;
8780
8783
  }
8781
8784
  copy(A) {
@@ -8801,8 +8804,8 @@ const aE = class SE {
8801
8804
  return null;
8802
8805
  }
8803
8806
  };
8804
- IA(aE, "NAMES", YC);
8805
- let lM = aE;
8807
+ IA(sE, "NAMES", YC);
8808
+ let lM = sE;
8806
8809
  class PA {
8807
8810
  constructor(A, C) {
8808
8811
  IA(this, "x"), IA(this, "y"), this.x = A, this.y = C;
@@ -8827,16 +8830,16 @@ class PA {
8827
8830
  function bM(g, A, C, Q = 5) {
8828
8831
  let D, o, w;
8829
8832
  C < 0 ? (D = Math.atan(-C) * 4, o = new PA(g.x, g.y), w = new PA(A.x, A.y)) : (D = Math.atan(C) * 4, o = new PA(A.x, A.y), w = new PA(g.x, g.y));
8830
- const k = w.sub(o), U = k.length(), i = o.add(k.multiply(0.5)), F = Math.abs(U / 2 / Math.tan(D / 2)), h = k.norm(), L = new PA(
8833
+ const k = w.sub(o), U = k.length(), y = o.add(k.multiply(0.5)), F = Math.abs(U / 2 / Math.tan(D / 2)), h = k.norm(), L = new PA(
8831
8834
  h.x * Math.cos(Math.PI / 2) - h.y * Math.sin(Math.PI / 2),
8832
8835
  h.y * Math.cos(Math.PI / 2) + h.x * Math.sin(Math.PI / 2)
8833
- ), R = D < Math.PI ? i.add(L.multiply(-F)) : i.add(L.multiply(F)), c = Math.atan2(w.y - R.y, w.x - R.x) / Math.PI * 180;
8834
- let H = Math.atan2(o.y - R.y, o.x - R.x) / Math.PI * 180;
8836
+ ), i = D < Math.PI ? y.add(L.multiply(-F)) : y.add(L.multiply(F)), c = Math.atan2(w.y - i.y, w.x - i.x) / Math.PI * 180;
8837
+ let H = Math.atan2(o.y - i.y, o.x - i.x) / Math.PI * 180;
8835
8838
  H < c && (H += 360);
8836
- const s = w.sub(R).length(), a = Math.floor(c / Q) * Q + Q, v = Math.ceil(H / Q) * Q - Q, V = [];
8837
- for (let O = a; O <= v; O += Q) {
8838
- const z = O / 180 * Math.PI, f = R.add(
8839
- new PA(Math.cos(z) * s, Math.sin(z) * s)
8839
+ const S = w.sub(i).length(), s = Math.floor(c / Q) * Q + Q, v = Math.ceil(H / Q) * Q - Q, V = [];
8840
+ for (let O = s; O <= v; O += Q) {
8841
+ const z = O / 180 * Math.PI, f = i.add(
8842
+ new PA(Math.cos(z) * S, Math.sin(z) * S)
8840
8843
  );
8841
8844
  V.push(f);
8842
8845
  }
@@ -8882,7 +8885,7 @@ class ZM {
8882
8885
  interpolateBSpline(A, C, Q, D = 25, o) {
8883
8886
  const w = [], k = A.map(
8884
8887
  (F) => [F.x, F.y]
8885
- ), U = [Q[C]], i = [
8888
+ ), U = [Q[C]], y = [
8886
8889
  Q[C],
8887
8890
  Q[Q.length - 1 - C]
8888
8891
  ];
@@ -8890,17 +8893,17 @@ class ZM {
8890
8893
  U[U.length - 1] !== Q[F] && U.push(Q[F]);
8891
8894
  for (let F = 1; F < U.length; ++F) {
8892
8895
  const h = U[F - 1], L = U[F];
8893
- for (let R = 0; R <= D; ++R) {
8894
- let H = (R / D * (L - h) + h - i[0]) / (i[1] - i[0]);
8896
+ for (let i = 0; i <= D; ++i) {
8897
+ let H = (i / D * (L - h) + h - y[0]) / (y[1] - y[0]);
8895
8898
  H = Math.max(0, Math.min(1, H));
8896
- const s = vM(
8899
+ const S = vM(
8897
8900
  H,
8898
8901
  C,
8899
8902
  k,
8900
8903
  Q,
8901
8904
  o
8902
8905
  );
8903
- w.push({ x: s[0], y: s[1] });
8906
+ w.push({ x: S[0], y: S[1] });
8904
8907
  }
8905
8908
  }
8906
8909
  return w;
@@ -8947,8 +8950,8 @@ class ZM {
8947
8950
  }).expandByPoint({
8948
8951
  x: Q.x + D,
8949
8952
  y: Q.y - A.length * C * 1.5
8950
- }), k = A.map((U, i) => {
8951
- const F = Q.x, h = Q.y - i * C * 1.5, L = `translate(${F},${h}) scale(1,-1) translate(${-F},${-h})`;
8953
+ }), k = A.map((U, y) => {
8954
+ const F = Q.x, h = Q.y - y * C * 1.5, L = `translate(${F},${h}) scale(1,-1) translate(${-F},${-h})`;
8952
8955
  return `<text x="${F}" y="${h}" font-size="${C}" text-anchor="${o}" transform="${L}">${U}</text>`;
8953
8956
  });
8954
8957
  return { bbox: w, element: k.join(`
@@ -8973,33 +8976,33 @@ class ZM {
8973
8976
  columnWidthArr: o,
8974
8977
  startPoint: w,
8975
8978
  cells: k
8976
- } = A, U = w.x, i = w.y, F = [];
8977
- for (let s = 0, a = i; s < C; s++) {
8978
- const v = D[s];
8979
+ } = A, U = w.x, y = w.y, F = [];
8980
+ for (let S = 0, s = y; S < C; S++) {
8981
+ const v = D[S];
8979
8982
  let V = U;
8980
8983
  for (let O = 0; O < Q; O++) {
8981
- const z = s * Q + O, f = k[z], q = o[O];
8982
- F.push({ x: V, y: a, width: q, height: v, cell: f, row: s, col: O }), V += q;
8984
+ const z = S * Q + O, f = k[z], q = o[O];
8985
+ F.push({ x: V, y: s, width: q, height: v, cell: f, row: S, col: O }), V += q;
8983
8986
  }
8984
- a += v;
8987
+ s += v;
8985
8988
  }
8986
- const h = F.map(({ x: s, y: a, width: v, height: V, cell: O }) => {
8989
+ const h = F.map(({ x: S, y: s, width: v, height: V, cell: O }) => {
8987
8990
  const z = [];
8988
8991
  O.topBorderVisibility && z.push(
8989
- `<line x1="${s}" y1="${a}" x2="${s + v}" y2="${a}" stroke="black" />`
8992
+ `<line x1="${S}" y1="${s}" x2="${S + v}" y2="${s}" stroke="black" />`
8990
8993
  ), O.bottomBorderVisibility && z.push(
8991
- `<line x1="${s}" y1="${a + V}" x2="${s + v}" y2="${a + V}" stroke="black" />`
8994
+ `<line x1="${S}" y1="${s + V}" x2="${S + v}" y2="${s + V}" stroke="black" />`
8992
8995
  ), O.leftBorderVisibility && z.push(
8993
- `<line x1="${s}" y1="${a}" x2="${s}" y2="${a + V}" stroke="black" />`
8996
+ `<line x1="${S}" y1="${s}" x2="${S}" y2="${s + V}" stroke="black" />`
8994
8997
  ), O.rightBorderVisibility && z.push(
8995
- `<line x1="${s + v}" y1="${a}" x2="${s + v}" y2="${a + V}" stroke="black" />`
8998
+ `<line x1="${S + v}" y1="${s}" x2="${S + v}" y2="${s + V}" stroke="black" />`
8996
8999
  );
8997
- const f = s + v / 2, q = a + V / 2 + O.textHeight / 3, W = `<text x="${f}" y="${q}" font-size="${O.textHeight}" text-anchor="middle" dominant-baseline="middle">${O.text}</text>`;
9000
+ const f = S + v / 2, q = s + V / 2 + O.textHeight / 3, W = `<text x="${f}" y="${q}" font-size="${O.textHeight}" text-anchor="middle" dominant-baseline="middle">${O.text}</text>`;
8998
9001
  return [...z, W].join(`
8999
9002
  `);
9000
9003
  }).join(`
9001
- `), L = o.reduce((s, a) => s + a, 0), R = D.reduce((s, a) => s + a, 0), c = new rA().expandByPoint({ x: U, y: i }).expandByPoint({ x: U + L, y: i + R }), H = `
9002
- <svg xmlns="http://www.w3.org/2000/svg" width="${L}" height="${R}" viewBox="${U} ${i} ${L} ${R}">
9004
+ `), L = o.reduce((S, s) => S + s, 0), i = D.reduce((S, s) => S + s, 0), c = new rA().expandByPoint({ x: U, y }).expandByPoint({ x: U + L, y: y + i }), H = `
9005
+ <svg xmlns="http://www.w3.org/2000/svg" width="${L}" height="${i}" viewBox="${U} ${y} ${L} ${i}">
9003
9006
  ${h}
9004
9007
  </svg>
9005
9008
  `.trim();
@@ -9037,7 +9040,7 @@ class ZM {
9037
9040
  };
9038
9041
  }
9039
9042
  ellipseOrArc(A, C, Q, D, o, w, k) {
9040
- const U = Math.sqrt(Q * Q + D * D), i = o * U, F = -Math.atan2(-D, Q), h = this.bboxEllipseOrArc(
9043
+ const U = Math.sqrt(Q * Q + D * D), y = o * U, F = -Math.atan2(-D, Q), h = this.bboxEllipseOrArc(
9041
9044
  A,
9042
9045
  C,
9043
9046
  Q,
@@ -9047,16 +9050,16 @@ class ZM {
9047
9050
  k
9048
9051
  );
9049
9052
  if (Math.abs(w - k) < 1e-9 || Math.abs(w - k + Math.PI * 2) < 1e-9) {
9050
- const L = `<g transform="rotate(${F / Math.PI * 180} ${A}, ${C})"><ellipse cx="${A}" cy="${C}" rx="${U}" ry="${i}" /></g>`;
9053
+ const L = `<g transform="rotate(${F / Math.PI * 180} ${A}, ${C})"><ellipse cx="${A}" cy="${C}" rx="${U}" ry="${y}" /></g>`;
9051
9054
  return { bbox: h, element: L };
9052
9055
  } else {
9053
9056
  const L = this.rotate(
9054
- { x: Math.cos(w) * U, y: Math.sin(w) * i },
9057
+ { x: Math.cos(w) * U, y: Math.sin(w) * y },
9055
9058
  F
9056
- ), R = { x: A + L.x, y: C + L.y }, c = this.rotate(
9057
- { x: Math.cos(k) * U, y: Math.sin(k) * i },
9059
+ ), i = { x: A + L.x, y: C + L.y }, c = this.rotate(
9060
+ { x: Math.cos(k) * U, y: Math.sin(k) * y },
9058
9061
  F
9059
- ), H = { x: A + c.x, y: C + c.y }, a = (k < w ? k + Math.PI * 2 : k) - w < Math.PI ? 0 : 1, V = `<path d="${`M ${R.x} ${R.y} A ${U} ${i} ${F / Math.PI * 180} ${a} 1 ${H.x} ${H.y}`}" />`;
9062
+ ), H = { x: A + c.x, y: C + c.y }, s = (k < w ? k + Math.PI * 2 : k) - w < Math.PI ? 0 : 1, V = `<path d="${`M ${i.x} ${i.y} A ${U} ${y} ${F / Math.PI * 180} ${s} 1 ${H.x} ${H.y}`}" />`;
9060
9063
  return { bbox: h, element: V };
9061
9064
  }
9062
9065
  }
@@ -9065,24 +9068,24 @@ class ZM {
9065
9068
  for (; k <= w; ) k += Math.PI * 2;
9066
9069
  const U = [];
9067
9070
  if (Math.abs(Q) < 1e-12 || Math.abs(D) < 1e-12)
9068
- for (let R = 0; R < 4; R++)
9069
- U.push(R / 2 * Math.PI);
9071
+ for (let i = 0; i < 4; i++)
9072
+ U.push(i / 2 * Math.PI);
9070
9073
  else
9071
9074
  U[0] = Math.atan(-D * o / Q) - Math.PI, U[1] = Math.atan(Q * o / D) - Math.PI, U[2] = U[0] - Math.PI, U[3] = U[1] - Math.PI;
9072
- for (let R = 4; R >= 0; R--) {
9073
- for (; U[R] < w; ) U[R] += Math.PI * 2;
9074
- U[R] > k && U.splice(R, 1);
9075
+ for (let i = 4; i >= 0; i--) {
9076
+ for (; U[i] < w; ) U[i] += Math.PI * 2;
9077
+ U[i] > k && U.splice(i, 1);
9075
9078
  }
9076
9079
  U.push(w), U.push(k);
9077
- const i = U.map((R) => ({ x: Math.cos(R), y: Math.sin(R) })), F = [
9080
+ const y = U.map((i) => ({ x: Math.cos(i), y: Math.sin(i) })), F = [
9078
9081
  [Q, -D * o],
9079
9082
  [D, Q * o]
9080
9083
  ];
9081
- return i.map((R) => ({
9082
- x: R.x * F[0][0] + R.y * F[0][1] + A,
9083
- y: R.x * F[1][0] + R.y * F[1][1] + C
9084
+ return y.map((i) => ({
9085
+ x: i.x * F[0][0] + i.y * F[0][1] + A,
9086
+ y: i.x * F[1][0] + i.y * F[1][1] + C
9084
9087
  })).reduce(
9085
- (R, c) => (R.expandByPoint(c), R),
9088
+ (i, c) => (i.expandByPoint(c), i),
9086
9089
  new rA()
9087
9090
  );
9088
9091
  }
@@ -9142,8 +9145,8 @@ class ZM {
9142
9145
  (w, k) => {
9143
9146
  const U = this.entityToBoundsAndElement(k);
9144
9147
  if (U) {
9145
- const { bbox: i, element: F } = U;
9146
- i.valid && (w.bbox.expandByPoint(i.min), w.bbox.expandByPoint(i.max));
9148
+ const { bbox: y, element: F } = U;
9149
+ y.valid && (w.bbox.expandByPoint(y.min), w.bbox.expandByPoint(y.max));
9147
9150
  const h = this.getEntityColor(C.tables.LAYER.entries, k), L = k.type == "TEXT" || k.type == "MTEXT" ? h.cssColor : "none";
9148
9151
  h.isByBlock ? w.elements.push(`<g id="${k.handle}">${F}</g>`) : w.elements.push(
9149
9152
  `<g id="${k.handle}" stroke="${h.cssColor}" fill="${L}">${F}</g>`
@@ -9272,7 +9275,7 @@ class ZM {
9272
9275
  </svg>`;
9273
9276
  }
9274
9277
  }
9275
- const sE = class cE {
9278
+ const SE = class cE {
9276
9279
  constructor(A) {
9277
9280
  return IA(this, "wasmInstance"), IA(this, "decoder"), this.wasmInstance = A, new Proxy(this, {
9278
9281
  get: (C, Q, D) => Q in C ? Reflect.get(C, Q, D) : Reflect.get(C.wasmInstance, Q, D)
@@ -10228,8 +10231,8 @@ const sE = class cE {
10228
10231
  return this.createByWasmInstance(C);
10229
10232
  }
10230
10233
  };
10231
- IA(sE, "instance");
10232
- let fM = sE;
10234
+ IA(SE, "instance");
10235
+ let fM = SE;
10233
10236
  async function qM(g) {
10234
10237
  const A = await fM.create();
10235
10238
  if (A == null)
@@ -10240,7 +10243,7 @@ async function qM(g) {
10240
10243
  const Q = A.convertEx(C);
10241
10244
  return A.dwg_free(C), Q;
10242
10245
  }
10243
- class pM extends aM {
10246
+ class pM extends sM {
10244
10247
  async executeTask(A) {
10245
10248
  const C = await qM(A);
10246
10249
  return {