@mlightcad/common 1.3.6 → 1.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/common.js CHANGED
@@ -4,8 +4,8 @@ function W(r, e) {
4
4
  if (typeof s != "string" && !Array.isArray(s)) {
5
5
  for (const o in s)
6
6
  if (o !== "default" && !(o in r)) {
7
- const i = Object.getOwnPropertyDescriptor(s, o);
8
- i && Object.defineProperty(r, o, i.get ? i : {
7
+ const n = Object.getOwnPropertyDescriptor(s, o);
8
+ n && Object.defineProperty(r, o, n.get ? n : {
9
9
  enumerable: !0,
10
10
  get: () => s[o]
11
11
  });
@@ -14,7 +14,7 @@ function W(r, e) {
14
14
  }
15
15
  return Object.freeze(Object.defineProperty(r, Symbol.toStringTag, { value: "Module" }));
16
16
  }
17
- var n = /* @__PURE__ */ ((r) => (r[r.ByColor = 1] = "ByColor", r[r.ByACI = 2] = "ByACI", r[r.ByLayer = 3] = "ByLayer", r[r.ByBlock = 4] = "ByBlock", r[r.None = 0] = "None", r))(n || {});
17
+ var i = /* @__PURE__ */ ((r) => (r[r.ByColor = 1] = "ByColor", r[r.ByACI = 2] = "ByACI", r[r.ByLayer = 3] = "ByLayer", r[r.ByBlock = 4] = "ByBlock", r[r.None = 0] = "None", r))(i || {});
18
18
  const G = {
19
19
  aliceblue: 15792383,
20
20
  antiquewhite: 16444375,
@@ -160,7 +160,7 @@ const G = {
160
160
  whitesmoke: 16119285,
161
161
  yellow: 16776960,
162
162
  yellowgreen: 10145074
163
- }, N = [
163
+ }, R = [
164
164
  0,
165
165
  16711680,
166
166
  16776960,
@@ -419,7 +419,7 @@ const G = {
419
419
  16777215,
420
420
  0
421
421
  ];
422
- class b {
422
+ class w {
423
423
  /**
424
424
  * Returns the RGB color value for a given AutoCAD color index.
425
425
  *
@@ -440,7 +440,7 @@ class b {
440
440
  * ```
441
441
  */
442
442
  static getColorByIndex(e) {
443
- return N[e];
443
+ return R[e];
444
444
  }
445
445
  /**
446
446
  * Finds the AutoCAD color index associated with a given RGB value.
@@ -450,9 +450,9 @@ class b {
450
450
  * @returns {number | undefined} The color index if found, undefined otherwise.
451
451
  */
452
452
  static getIndexByColor(e) {
453
- const t = N.length - 1;
453
+ const t = R.length - 1;
454
454
  for (let s = 1; s < t; ++s)
455
- if (N[s] === e)
455
+ if (R[s] === e)
456
456
  return s;
457
457
  }
458
458
  /**
@@ -499,14 +499,14 @@ class b {
499
499
  return this.getNameByColor(t);
500
500
  }
501
501
  }
502
- class B {
502
+ class _ {
503
503
  /**
504
504
  * Constructs a new AcCmColor.
505
505
  * @param method Initial color method (defaults to `ByColor`)
506
506
  * @param value Internal packed value
507
507
  */
508
- constructor(e = n.ByLayer, t) {
509
- this._colorMethod = e, this._colorMethod == n.ByColor && t == null ? this._value = 16777215 : this._colorMethod == n.ByACI ? t == null ? this._value = 8 : t === 0 ? this._colorMethod = n.ByBlock : t === 256 ? this._colorMethod = n.ByLayer : this._value = Math.max(0, Math.min(t, 256)) : this._value = t;
508
+ constructor(e = i.ByLayer, t) {
509
+ this._colorMethod = e, this._colorMethod == i.ByColor && t == null ? this._value = 16777215 : this._colorMethod == i.ByACI ? t == null ? this._value = 8 : t === 0 ? this._colorMethod = i.ByBlock : t === 256 ? this._colorMethod = i.ByLayer : this._value = Math.max(0, Math.min(t, 256)) : this._value = t;
510
510
  }
511
511
  // ---------------------------------------------------------------------
512
512
  // Color method
@@ -550,12 +550,12 @@ class B {
550
550
  */
551
551
  get RGB() {
552
552
  switch (this._colorMethod) {
553
- case n.ByColor:
554
- case n.ByBlock:
555
- case n.ByLayer:
553
+ case i.ByColor:
554
+ case i.ByBlock:
555
+ case i.ByLayer:
556
556
  return this._value;
557
- case n.ByACI:
558
- return this._value ? b.getColorByIndex(this._value) : this._value;
557
+ case i.ByACI:
558
+ return this._value ? w.getColorByIndex(this._value) : this._value;
559
559
  default:
560
560
  return;
561
561
  }
@@ -569,8 +569,8 @@ class B {
569
569
  * @returns The current instance for chaining
570
570
  */
571
571
  setRGB(e, t, s) {
572
- const o = Math.max(0, Math.min(255, Math.round(e))), i = Math.max(0, Math.min(255, Math.round(t))), l = Math.max(0, Math.min(255, Math.round(s)));
573
- return this._value = o << 16 | i << 8 | l, this._colorMethod = n.ByColor, this;
572
+ const o = Math.max(0, Math.min(255, Math.round(e))), n = Math.max(0, Math.min(255, Math.round(t))), l = Math.max(0, Math.min(255, Math.round(s)));
573
+ return this._value = o << 16 | n << 8 | l, this._colorMethod = i.ByColor, this;
574
574
  }
575
575
  /**
576
576
  * Sets the RGB color by a single packed number (0xRRGGBB).
@@ -578,7 +578,7 @@ class B {
578
578
  * @param value Packed RGB number
579
579
  */
580
580
  setRGBValue(e) {
581
- return e == null || !Number.isFinite(e) ? (console.warn("Invalid RGB value:", e), this) : (this._value = e & 16777215, this._colorMethod = n.ByColor, this);
581
+ return e == null || !Number.isFinite(e) ? (console.warn("Invalid RGB value:", e), this) : (this._value = e & 16777215, this._colorMethod = i.ByColor, this);
582
582
  }
583
583
  /**
584
584
  * Sets the RGB color from a CSS color string.
@@ -597,21 +597,21 @@ class B {
597
597
  if (!e) return this;
598
598
  const t = e.trim().toLowerCase();
599
599
  if (t.startsWith("#")) {
600
- let i = 0, l = 0, c = 0;
600
+ let n = 0, l = 0, c = 0;
601
601
  if (t.length === 7)
602
- i = parseInt(t.substr(1, 2), 16), l = parseInt(t.substr(3, 2), 16), c = parseInt(t.substr(5, 2), 16);
602
+ n = parseInt(t.substr(1, 2), 16), l = parseInt(t.substr(3, 2), 16), c = parseInt(t.substr(5, 2), 16);
603
603
  else if (t.length === 4)
604
- i = parseInt(t[1] + t[1], 16), l = parseInt(t[2] + t[2], 16), c = parseInt(t[3] + t[3], 16);
604
+ n = parseInt(t[1] + t[1], 16), l = parseInt(t[2] + t[2], 16), c = parseInt(t[3] + t[3], 16);
605
605
  else
606
606
  return console.warn("Invalid hex color:", e), this;
607
- return this.setRGB(i, l, c);
607
+ return this.setRGB(n, l, c);
608
608
  }
609
609
  const s = t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);
610
610
  if (s) {
611
- const i = parseInt(s[1], 10), l = parseInt(s[2], 10), c = parseInt(s[3], 10);
612
- return this.setRGB(i, l, c);
611
+ const n = parseInt(s[1], 10), l = parseInt(s[2], 10), c = parseInt(s[3], 10);
612
+ return this.setRGB(n, l, c);
613
613
  }
614
- const o = b.getColorByName(e);
614
+ const o = w.getColorByName(e);
615
615
  return o !== void 0 ? this.setRGBValue(o) : (console.warn("Unknown CSS color string:", e), this);
616
616
  }
617
617
  /**
@@ -643,7 +643,7 @@ class B {
643
643
  // ---------------------------------------------------------------------
644
644
  /** Gets the AutoCAD Color Index (ACI), or undefined if not ByACI, ByBlock, or ByLayer. */
645
645
  get colorIndex() {
646
- return this._colorMethod === n.ByACI ? this._value : this._colorMethod === n.ByLayer ? 256 : this._colorMethod === n.ByBlock ? 0 : void 0;
646
+ return this._colorMethod === i.ByACI ? this._value : this._colorMethod === i.ByLayer ? 256 : this._colorMethod === i.ByBlock ? 0 : void 0;
647
647
  }
648
648
  /**
649
649
  * Sets the AutoCAD Color Index (0–256).
@@ -657,44 +657,44 @@ class B {
657
657
  set colorIndex(e) {
658
658
  if (e == null) return;
659
659
  const t = Math.max(0, Math.min(256, Math.round(e)));
660
- t === 0 ? (this._colorMethod = n.ByBlock, this._value = void 0) : t === 256 ? (this._colorMethod = n.ByLayer, this._value = void 0) : (this._colorMethod = n.ByACI, this._value = t);
660
+ t === 0 ? (this._colorMethod = i.ByBlock, this._value = void 0) : t === 256 ? (this._colorMethod = i.ByLayer, this._value = void 0) : (this._colorMethod = i.ByACI, this._value = t);
661
661
  }
662
662
  /**
663
663
  * Returns true if the color method is ByColor (explicit RGB).
664
664
  */
665
665
  get isByColor() {
666
- return this._colorMethod === n.ByColor;
666
+ return this._colorMethod === i.ByColor;
667
667
  }
668
668
  /**
669
669
  * Returns true if the color method is ByACI.
670
670
  */
671
671
  get isByACI() {
672
- return this._colorMethod === n.ByACI;
672
+ return this._colorMethod === i.ByACI;
673
673
  }
674
674
  // ---------------------------------------------------------------------
675
675
  // Layer / Block helpers
676
676
  // ---------------------------------------------------------------------
677
677
  /** Returns true if the color method is ByLayer. */
678
678
  get isByLayer() {
679
- return this._colorMethod === n.ByLayer;
679
+ return this._colorMethod === i.ByLayer;
680
680
  }
681
681
  /**
682
682
  * Sets the color to ByLayer.
683
683
  * @param value - Option layer color value
684
684
  */
685
685
  setByLayer(e) {
686
- return this._colorMethod = n.ByLayer, e == null ? this._value = 256 : this._value = e, this;
686
+ return this._colorMethod = i.ByLayer, e == null ? this._value = 256 : this._value = e, this;
687
687
  }
688
688
  /** Returns true if the color method is ByBlock. */
689
689
  get isByBlock() {
690
- return this._colorMethod === n.ByBlock;
690
+ return this._colorMethod === i.ByBlock;
691
691
  }
692
692
  /**
693
693
  * Sets the color to ByBlock.
694
694
  * @param value - Option layer color value
695
695
  */
696
696
  setByBlock(e) {
697
- return this._colorMethod = n.ByBlock, e == null ? this._value = 0 : this._value = e, this;
697
+ return this._colorMethod = i.ByBlock, e == null ? this._value = 0 : this._value = e, this;
698
698
  }
699
699
  // ---------------------------------------------------------------------
700
700
  // Color name (dynamic)
@@ -707,14 +707,14 @@ class B {
707
707
  */
708
708
  get colorName() {
709
709
  switch (this._colorMethod) {
710
- case n.ByLayer:
710
+ case i.ByLayer:
711
711
  return "ByLayer";
712
- case n.ByBlock:
712
+ case i.ByBlock:
713
713
  return "ByBlock";
714
- case n.ByColor:
715
- return this._value ? b.getNameByColor(this._value) : "";
716
- case n.ByACI:
717
- return this._value ? b.getNameByIndex(this._value) : "";
714
+ case i.ByColor:
715
+ return this._value ? w.getNameByColor(this._value) : "";
716
+ case i.ByACI:
717
+ return this._value ? w.getNameByIndex(this._value) : "";
718
718
  default:
719
719
  return;
720
720
  }
@@ -728,8 +728,8 @@ class B {
728
728
  */
729
729
  set colorName(e) {
730
730
  if (!e) return;
731
- const t = b.getColorByName(e);
732
- t !== void 0 ? (this._value = t, this._colorMethod = n.ByColor) : console.warn("Unknown color name:", e);
731
+ const t = w.getColorByName(e);
732
+ t !== void 0 ? (this._value = t, this._colorMethod = i.ByColor) : console.warn("Unknown color name:", e);
733
733
  }
734
734
  // ---------------------------------------------------------------------
735
735
  // Clone / Copy / Equals
@@ -740,7 +740,7 @@ class B {
740
740
  * @returns A new AcCmColor instance with the same method and value
741
741
  */
742
742
  clone() {
743
- const e = new B();
743
+ const e = new _();
744
744
  return e._colorMethod = this._colorMethod, e._value = this._value, e;
745
745
  }
746
746
  /**
@@ -774,13 +774,13 @@ class B {
774
774
  */
775
775
  toString() {
776
776
  switch (this._colorMethod) {
777
- case n.ByLayer:
777
+ case i.ByLayer:
778
778
  return "ByLayer";
779
- case n.ByBlock:
779
+ case i.ByBlock:
780
780
  return "ByBlock";
781
- case n.ByACI:
781
+ case i.ByACI:
782
782
  return this._value !== void 0 ? String(this._value) : "";
783
- case n.ByColor:
783
+ case i.ByColor:
784
784
  return this._value ? `${this.red},${this.green},${this.blue}` : "";
785
785
  default:
786
786
  return "";
@@ -793,20 +793,34 @@ class B {
793
793
  if (!e) return;
794
794
  const t = e.trim();
795
795
  if (/^bylayer$/i.test(t))
796
- return new B(n.ByLayer);
796
+ return new _(i.ByLayer);
797
797
  if (/^byblock$/i.test(t))
798
- return new B(n.ByBlock);
799
- if (/^\d{1,3},\d{1,3},\d{1,3}$/i.test(t)) {
800
- const [o, i, l] = t.split(",").map(Number), c = new B(n.ByColor);
801
- return c.setRGB(o, i, l), c;
798
+ return new _(i.ByBlock);
799
+ const s = t.match(
800
+ /^rgb\s*:\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})$/i
801
+ );
802
+ if (s) {
803
+ const n = Number(s[1]), l = Number(s[2]), c = Number(s[3]), v = new _(i.ByColor);
804
+ return v.setRGB(n, l, c), v;
805
+ }
806
+ if (/^\d{1,3},\d{1,3},\d{1,3}$/.test(t)) {
807
+ const [n, l, c] = t.split(",").map(Number), v = new _(i.ByColor);
808
+ return v.setRGB(n, l, c), v;
802
809
  }
803
810
  if (/^\d+$/.test(t)) {
804
- const o = parseInt(t, 10);
805
- return new B(n.ByACI, o);
811
+ const n = parseInt(t, 10);
812
+ return new _(i.ByACI, n);
806
813
  }
807
- const s = b.getColorByName(t);
808
- if (s != null)
809
- return new B(n.ByColor, s);
814
+ if (/^book\$/i.test(t)) {
815
+ const n = t.substring(t.indexOf("$") + 1), l = w.getColorByName(n);
816
+ if (l != null)
817
+ return new _(i.ByColor, l);
818
+ console.warn("Unknown color book entry:", e);
819
+ return;
820
+ }
821
+ const o = w.getColorByName(t);
822
+ if (o != null)
823
+ return new _(i.ByColor, o);
810
824
  console.warn("Unknown color name:", e);
811
825
  }
812
826
  }
@@ -817,7 +831,7 @@ class oe {
817
831
  * @param method Initial color method (defaults to `ByColor`)
818
832
  * @param value Internal packed value (defaults to `0`)
819
833
  */
820
- constructor(e = n.ByColor, t = 0) {
834
+ constructor(e = i.ByColor, t = 0) {
821
835
  this._colorMethod = e, this._value = t;
822
836
  }
823
837
  /**
@@ -839,7 +853,7 @@ class oe {
839
853
  * Sets the red component and updates the packed RGB value.
840
854
  */
841
855
  set red(e) {
842
- this._colorMethod = n.ByColor, this._value = this._value & 65535 | (e & 255) << 16;
856
+ this._colorMethod = i.ByColor, this._value = this._value & 65535 | (e & 255) << 16;
843
857
  }
844
858
  /**
845
859
  * Gets the green component (0–255). Only valid when colorMethod = ByColor.
@@ -851,7 +865,7 @@ class oe {
851
865
  * Sets the green component and updates the packed RGB value.
852
866
  */
853
867
  set green(e) {
854
- this._colorMethod = n.ByColor, this._value = this._value & 16711935 | (e & 255) << 8;
868
+ this._colorMethod = i.ByColor, this._value = this._value & 16711935 | (e & 255) << 8;
855
869
  }
856
870
  /**
857
871
  * Gets the blue component (0–255). Only valid when colorMethod = ByColor.
@@ -863,7 +877,7 @@ class oe {
863
877
  * Sets the blue component and updates the packed RGB value.
864
878
  */
865
879
  set blue(e) {
866
- this._colorMethod = n.ByColor, this._value = this._value & 16776960 | e & 255;
880
+ this._colorMethod = i.ByColor, this._value = this._value & 16776960 | e & 255;
867
881
  }
868
882
  /**
869
883
  * Sets all RGB components.
@@ -873,7 +887,7 @@ class oe {
873
887
  * @param b Blue (0–255)
874
888
  */
875
889
  setRGB(e, t, s) {
876
- this._colorMethod = n.ByColor, this._value = (e & 255) << 16 | (t & 255) << 8 | s & 255;
890
+ this._colorMethod = i.ByColor, this._value = (e & 255) << 16 | (t & 255) << 8 | s & 255;
877
891
  }
878
892
  // ---------------------------------------------------------------------
879
893
  // ACI accessors
@@ -888,7 +902,7 @@ class oe {
888
902
  * Sets the AutoCAD Color Index (ACI).
889
903
  */
890
904
  set colorIndex(e) {
891
- this._colorMethod = n.ByACI, this._value = e;
905
+ this._colorMethod = i.ByACI, this._value = e;
892
906
  }
893
907
  // ---------------------------------------------------------------------
894
908
  // Layer index accessors
@@ -903,7 +917,7 @@ class oe {
903
917
  * Sets the layer index for ByLayer color mode.
904
918
  */
905
919
  set layerIndex(e) {
906
- this._colorMethod = n.ByLayer, this._value = e;
920
+ this._colorMethod = i.ByLayer, this._value = e;
907
921
  }
908
922
  // ---------------------------------------------------------------------
909
923
  // Utility methods
@@ -912,31 +926,31 @@ class oe {
912
926
  * Returns true if the color method is ByColor (explicit RGB).
913
927
  */
914
928
  isByColor() {
915
- return this._colorMethod === n.ByColor;
929
+ return this._colorMethod === i.ByColor;
916
930
  }
917
931
  /**
918
932
  * Returns true if the color method is ByLayer.
919
933
  */
920
934
  isByLayer() {
921
- return this._colorMethod === n.ByLayer;
935
+ return this._colorMethod === i.ByLayer;
922
936
  }
923
937
  /**
924
938
  * Returns true if the color method is ByBlock.
925
939
  */
926
940
  isByBlock() {
927
- return this._colorMethod === n.ByBlock;
941
+ return this._colorMethod === i.ByBlock;
928
942
  }
929
943
  /**
930
944
  * Returns true if the color method is ByACI.
931
945
  */
932
946
  isByACI() {
933
- return this._colorMethod === n.ByACI;
947
+ return this._colorMethod === i.ByACI;
934
948
  }
935
949
  /**
936
950
  * Returns true if color is uninitialized or invalid.
937
951
  */
938
952
  isNone() {
939
- return this._colorMethod === n.None;
953
+ return this._colorMethod === i.None;
940
954
  }
941
955
  /**
942
956
  * Gets the packed internal value.
@@ -1012,8 +1026,8 @@ class ie {
1012
1026
  if (this._listeners === void 0) return;
1013
1027
  const o = this._listeners[e];
1014
1028
  if (o !== void 0) {
1015
- const i = o.indexOf(t);
1016
- i !== -1 && o.splice(i, 1);
1029
+ const n = o.indexOf(t);
1030
+ n !== -1 && o.splice(n, 1);
1017
1031
  }
1018
1032
  }
1019
1033
  /**
@@ -1026,12 +1040,12 @@ class ie {
1026
1040
  if (s !== void 0) {
1027
1041
  e.target = this;
1028
1042
  const o = s.slice(0);
1029
- for (let i = 0, l = o.length; i < l; i++)
1030
- o[i].call(this, e);
1043
+ for (let n = 0, l = o.length; n < l; n++)
1044
+ o[n].call(this, e);
1031
1045
  }
1032
1046
  }
1033
1047
  }
1034
- class D {
1048
+ class $ {
1035
1049
  constructor() {
1036
1050
  this.listeners = [];
1037
1051
  }
@@ -1065,10 +1079,10 @@ class D {
1065
1079
  s.call(null, e, ...t);
1066
1080
  }
1067
1081
  }
1068
- function C(r) {
1082
+ function A(r) {
1069
1083
  return r === null || typeof r != "object" ? r : Array.isArray(r) ? [...r] : { ...r };
1070
1084
  }
1071
- function F(r) {
1085
+ function D(r) {
1072
1086
  if (r === null || typeof r != "object")
1073
1087
  return r;
1074
1088
  if (r instanceof Date)
@@ -1076,10 +1090,10 @@ function F(r) {
1076
1090
  if (r instanceof RegExp)
1077
1091
  return new RegExp(r.source, r.flags);
1078
1092
  if (Array.isArray(r))
1079
- return r.map(F);
1093
+ return r.map(D);
1080
1094
  const e = {};
1081
1095
  for (const t in r)
1082
- Object.prototype.hasOwnProperty.call(r, t) && (e[t] = F(r[t]));
1096
+ Object.prototype.hasOwnProperty.call(r, t) && (e[t] = D(r[t]));
1083
1097
  return e;
1084
1098
  }
1085
1099
  function Y(r, ...e) {
@@ -1095,7 +1109,7 @@ function Z(r, e) {
1095
1109
  function J(r) {
1096
1110
  return r == null ? !0 : Array.isArray(r) || typeof r == "string" ? r.length === 0 : r instanceof Map || r instanceof Set ? r.size === 0 : typeof r == "object" ? Object.keys(r).length === 0 : !1;
1097
1111
  }
1098
- function k(r, e) {
1112
+ function I(r, e) {
1099
1113
  if (r === e)
1100
1114
  return !0;
1101
1115
  if (r == null || e == null)
@@ -1110,7 +1124,7 @@ function k(r, e) {
1110
1124
  if (r.length !== e.length)
1111
1125
  return !1;
1112
1126
  for (let o = 0; o < r.length; o++)
1113
- if (!k(r[o], e[o]))
1127
+ if (!I(r[o], e[o]))
1114
1128
  return !1;
1115
1129
  return !0;
1116
1130
  }
@@ -1121,7 +1135,7 @@ function k(r, e) {
1121
1135
  if (!Object.prototype.hasOwnProperty.call(
1122
1136
  e,
1123
1137
  o
1124
- ) || !k(
1138
+ ) || !I(
1125
1139
  r[o],
1126
1140
  e[o]
1127
1141
  ))
@@ -1132,7 +1146,7 @@ var X = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : ty
1132
1146
  function Q(r) {
1133
1147
  return r && r.__esModule && Object.prototype.hasOwnProperty.call(r, "default") ? r.default : r;
1134
1148
  }
1135
- var q = { exports: {} };
1149
+ var F = { exports: {} };
1136
1150
  (function(r) {
1137
1151
  (function(e, t) {
1138
1152
  r.exports ? r.exports = t() : e.log = t();
@@ -1144,7 +1158,7 @@ var q = { exports: {} };
1144
1158
  "info",
1145
1159
  "warn",
1146
1160
  "error"
1147
- ], i = {}, l = null;
1161
+ ], n = {}, l = null;
1148
1162
  function c(h, d) {
1149
1163
  var a = h[d];
1150
1164
  if (typeof a.bind == "function")
@@ -1157,13 +1171,13 @@ var q = { exports: {} };
1157
1171
  };
1158
1172
  }
1159
1173
  }
1160
- function I() {
1174
+ function v() {
1161
1175
  console.log && (console.log.apply ? console.log.apply(console, arguments) : Function.prototype.apply.apply(console.log, [console, arguments])), console.trace && console.trace();
1162
1176
  }
1163
- function m(h) {
1164
- return h === "debug" && (h = "log"), typeof console === t ? !1 : h === "trace" && s ? I : console[h] !== void 0 ? c(console, h) : console.log !== void 0 ? c(console, "log") : e;
1177
+ function b(h) {
1178
+ return h === "debug" && (h = "log"), typeof console === t ? !1 : h === "trace" && s ? v : console[h] !== void 0 ? c(console, h) : console.log !== void 0 ? c(console, "log") : e;
1165
1179
  }
1166
- function _() {
1180
+ function m() {
1167
1181
  for (var h = this.getLevel(), d = 0; d < o.length; d++) {
1168
1182
  var a = o[d];
1169
1183
  this[a] = d < h ? e : this.methodFactory(a, h, this.name);
@@ -1173,14 +1187,14 @@ var q = { exports: {} };
1173
1187
  }
1174
1188
  function x(h) {
1175
1189
  return function() {
1176
- typeof console !== t && (_.call(this), this[h].apply(this, arguments));
1190
+ typeof console !== t && (m.call(this), this[h].apply(this, arguments));
1177
1191
  };
1178
1192
  }
1179
1193
  function f(h, d, a) {
1180
- return m(h) || x.apply(this, arguments);
1194
+ return b(h) || x.apply(this, arguments);
1181
1195
  }
1182
1196
  function S(h, d) {
1183
- var a = this, E, R, w, p = "loglevel";
1197
+ var a = this, E, N, L, p = "loglevel";
1184
1198
  typeof h == "string" ? p += ":" + h : typeof h == "symbol" && (p = void 0);
1185
1199
  function z(u) {
1186
1200
  var g = (o[u] || "silent").toUpperCase();
@@ -1205,9 +1219,9 @@ var q = { exports: {} };
1205
1219
  }
1206
1220
  if (typeof u === t)
1207
1221
  try {
1208
- var g = window.document.cookie, A = encodeURIComponent(p), U = g.indexOf(A + "=");
1222
+ var g = window.document.cookie, O = encodeURIComponent(p), U = g.indexOf(O + "=");
1209
1223
  U !== -1 && (u = /^([^;]+)/.exec(
1210
- g.slice(U + A.length + 1)
1224
+ g.slice(U + O.length + 1)
1211
1225
  )[1]);
1212
1226
  } catch {
1213
1227
  }
@@ -1226,7 +1240,7 @@ var q = { exports: {} };
1226
1240
  }
1227
1241
  }
1228
1242
  }
1229
- function L(u) {
1243
+ function k(u) {
1230
1244
  var g = u;
1231
1245
  if (typeof g == "string" && a.levels[g.toUpperCase()] !== void 0 && (g = a.levels[g.toUpperCase()]), typeof g == "number" && g >= 0 && g <= a.levels.SILENT)
1232
1246
  return g;
@@ -1240,32 +1254,32 @@ var q = { exports: {} };
1240
1254
  ERROR: 4,
1241
1255
  SILENT: 5
1242
1256
  }, a.methodFactory = d || f, a.getLevel = function() {
1243
- return w ?? R ?? E;
1257
+ return L ?? N ?? E;
1244
1258
  }, a.setLevel = function(u, g) {
1245
- return w = L(u), g !== !1 && z(w), _.call(a);
1259
+ return L = k(u), g !== !1 && z(L), m.call(a);
1246
1260
  }, a.setDefaultLevel = function(u) {
1247
- R = L(u), P() || a.setLevel(u, !1);
1261
+ N = k(u), P() || a.setLevel(u, !1);
1248
1262
  }, a.resetLevel = function() {
1249
- w = null, H(), _.call(a);
1263
+ L = null, H(), m.call(a);
1250
1264
  }, a.enableAll = function(u) {
1251
1265
  a.setLevel(a.levels.TRACE, u);
1252
1266
  }, a.disableAll = function(u) {
1253
1267
  a.setLevel(a.levels.SILENT, u);
1254
1268
  }, a.rebuild = function() {
1255
- if (l !== a && (E = L(l.getLevel())), _.call(a), l === a)
1256
- for (var u in i)
1257
- i[u].rebuild();
1258
- }, E = L(
1269
+ if (l !== a && (E = k(l.getLevel())), m.call(a), l === a)
1270
+ for (var u in n)
1271
+ n[u].rebuild();
1272
+ }, E = k(
1259
1273
  l ? l.getLevel() : "WARN"
1260
1274
  );
1261
1275
  var T = P();
1262
- T != null && (w = L(T)), _.call(a);
1276
+ T != null && (L = k(T)), m.call(a);
1263
1277
  }
1264
1278
  l = new S(), l.getLogger = function(d) {
1265
1279
  if (typeof d != "symbol" && typeof d != "string" || d === "")
1266
1280
  throw new TypeError("You must supply a name when creating a logger.");
1267
- var a = i[d];
1268
- return a || (a = i[d] = new S(
1281
+ var a = n[d];
1282
+ return a || (a = n[d] = new S(
1269
1283
  d,
1270
1284
  l.methodFactory
1271
1285
  )), a;
@@ -1274,21 +1288,21 @@ var q = { exports: {} };
1274
1288
  return l.noConflict = function() {
1275
1289
  return typeof window !== t && window.log === l && (window.log = j), l;
1276
1290
  }, l.getLoggers = function() {
1277
- return i;
1291
+ return n;
1278
1292
  }, l.default = l, l;
1279
1293
  });
1280
- })(q);
1281
- var $ = q.exports;
1282
- const ee = /* @__PURE__ */ Q($), te = /* @__PURE__ */ W({
1294
+ })(F);
1295
+ var q = F.exports;
1296
+ const ee = /* @__PURE__ */ Q(q), te = /* @__PURE__ */ W({
1283
1297
  __proto__: null,
1284
1298
  default: ee
1285
- }, [$]), le = !0, O = te;
1286
- O.setLevel("debug");
1299
+ }, [q]), le = !0, C = te;
1300
+ C.setLevel("debug");
1287
1301
  const ae = (r) => {
1288
1302
  try {
1289
- O.setLevel(r);
1303
+ C.setLevel(r);
1290
1304
  } catch (e) {
1291
- O.setLevel("error"), O.error(e);
1305
+ C.setLevel("error"), C.error(e);
1292
1306
  }
1293
1307
  };
1294
1308
  class V {
@@ -1300,8 +1314,8 @@ class V {
1300
1314
  */
1301
1315
  constructor(e, t) {
1302
1316
  this.events = {
1303
- attrChanged: new D(),
1304
- modelChanged: new D()
1317
+ attrChanged: new $(),
1318
+ modelChanged: new $()
1305
1319
  }, this._changing = !1, this._previousAttributes = {}, this._pending = !1;
1306
1320
  const s = e || {};
1307
1321
  t && Y(s, t), this.attributes = s, this.changed = {};
@@ -1339,22 +1353,22 @@ class V {
1339
1353
  if (e == null) return this;
1340
1354
  let o;
1341
1355
  typeof e == "object" ? (o = e, s = t) : (o = {}, o[e] = t), s || (s = {});
1342
- const i = s.unset, l = s.silent, c = [], I = this._changing;
1343
- this._changing = !0, I || (this._previousAttributes = C(this.attributes), this.changed = {});
1344
- const m = this.attributes, _ = this.changed, x = this._previousAttributes;
1356
+ const n = s.unset, l = s.silent, c = [], v = this._changing;
1357
+ this._changing = !0, v || (this._previousAttributes = A(this.attributes), this.changed = {});
1358
+ const b = this.attributes, m = this.changed, x = this._previousAttributes;
1345
1359
  for (const f in o)
1346
- t = o[f], k(m[f], t) || c.push(f), k(x[f], t) ? delete _[f] : _[f] = t, i ? delete m[f] : m[f] = t;
1360
+ t = o[f], I(b[f], t) || c.push(f), I(x[f], t) ? delete m[f] : m[f] = t, n ? delete b[f] : b[f] = t;
1347
1361
  if (!l) {
1348
1362
  c.length && (this._pending = s);
1349
1363
  for (let f = 0; f < c.length; f++)
1350
1364
  this.events.attrChanged.dispatch({
1351
1365
  object: this,
1352
1366
  attrName: c[f],
1353
- attrValue: m[c[f]],
1367
+ attrValue: b[c[f]],
1354
1368
  options: s
1355
1369
  });
1356
1370
  }
1357
- if (I) return this;
1371
+ if (v) return this;
1358
1372
  if (!l)
1359
1373
  for (; this._pending; )
1360
1374
  s = this._pending, this._pending = !1, this.events.modelChanged.dispatch({
@@ -1381,11 +1395,11 @@ class V {
1381
1395
  * the model, determining if there *would be* a change.
1382
1396
  */
1383
1397
  changedAttributes(e) {
1384
- if (!e) return this.hasChanged() ? C(this.changed) : {};
1398
+ if (!e) return this.hasChanged() ? A(this.changed) : {};
1385
1399
  const t = this._changing ? this._previousAttributes : this.attributes, s = {};
1386
1400
  for (const o in e) {
1387
- const i = e[o];
1388
- k(t[o], i) || (s[o] = i);
1401
+ const n = e[o];
1402
+ I(t[o], n) || (s[o] = n);
1389
1403
  }
1390
1404
  return s;
1391
1405
  }
@@ -1399,13 +1413,13 @@ class V {
1399
1413
  * Get all of the attributes of the model at the time of the previous `"change"` event.
1400
1414
  */
1401
1415
  previousAttributes() {
1402
- return C(this._previousAttributes);
1416
+ return A(this._previousAttributes);
1403
1417
  }
1404
1418
  /**
1405
1419
  * Create a new model with identical attributes to this one.
1406
1420
  */
1407
1421
  clone() {
1408
- const e = C(this.attributes);
1422
+ const e = A(this.attributes);
1409
1423
  return new V(e);
1410
1424
  }
1411
1425
  }
@@ -1493,12 +1507,12 @@ class he {
1493
1507
  */
1494
1508
  static formatBytes(e, t = 2) {
1495
1509
  if (e === 0) return "0 B";
1496
- const s = 1024, o = Math.max(0, t), i = ["B", "KB", "MB", "GB", "TB"], l = Math.floor(Math.log(e) / Math.log(s)), c = e / Math.pow(s, l);
1497
- return `${parseFloat(c.toFixed(o))} ${i[l]}`;
1510
+ const s = 1024, o = Math.max(0, t), n = ["B", "KB", "MB", "GB", "TB"], l = Math.floor(Math.log(e) / Math.log(s)), c = e / Math.pow(s, l);
1511
+ return `${parseFloat(c.toFixed(o))} ${n[l]}`;
1498
1512
  }
1499
1513
  }
1500
1514
  var y = /* @__PURE__ */ ((r) => (r[r.ByLayer = 0] = "ByLayer", r[r.ByBlock = 1] = "ByBlock", r[r.ByAlpha = 2] = "ByAlpha", r[r.ErrorValue = 3] = "ErrorValue", r))(y || {});
1501
- class v {
1515
+ class B {
1502
1516
  /**
1503
1517
  * Creates a new transparency object.
1504
1518
  *
@@ -1507,7 +1521,7 @@ class v {
1507
1521
  * Must be between 0 and 255.
1508
1522
  */
1509
1523
  constructor(e) {
1510
- e !== void 0 ? (this._method = y.ByAlpha, this._alpha = v.clampAlpha(e)) : (this._method = y.ByLayer, this._alpha = 255);
1524
+ e !== void 0 ? (this._method = y.ByAlpha, this._alpha = B.clampAlpha(e)) : (this._method = y.ByLayer, this._alpha = 255);
1511
1525
  }
1512
1526
  /** Gets the current transparency method */
1513
1527
  get method() {
@@ -1535,7 +1549,7 @@ class v {
1535
1549
  * @param alpha 0–255 alpha, clamped internally if out of range
1536
1550
  */
1537
1551
  set alpha(e) {
1538
- this._alpha = v.clampAlpha(e), this._method = y.ByAlpha;
1552
+ this._alpha = B.clampAlpha(e), this._method = y.ByAlpha;
1539
1553
  }
1540
1554
  /**
1541
1555
  * Gets the AutoCAD-style transparency percentage.
@@ -1650,7 +1664,7 @@ class v {
1650
1664
  * @returns A new `AcCmTransparency` instance with identical state.
1651
1665
  */
1652
1666
  clone() {
1653
- const e = new v();
1667
+ const e = new B();
1654
1668
  return e._method = this._method, e._alpha = this._alpha, e;
1655
1669
  }
1656
1670
  /**
@@ -1716,17 +1730,17 @@ class v {
1716
1730
  static fromString(e) {
1717
1731
  const t = e.trim();
1718
1732
  if (/^bylayer$/i.test(t)) {
1719
- const i = new v();
1720
- return i._method = y.ByLayer, i;
1733
+ const n = new B();
1734
+ return n._method = y.ByLayer, n;
1721
1735
  }
1722
1736
  if (/^byblock$/i.test(t)) {
1723
- const i = new v();
1724
- return i._method = y.ByBlock, i;
1737
+ const n = new B();
1738
+ return n._method = y.ByBlock, n;
1725
1739
  }
1726
1740
  const s = Number(t);
1727
1741
  if (Number.isInteger(s) && s >= 0 && s <= 255)
1728
- return new v(s);
1729
- const o = new v();
1742
+ return new B(s);
1743
+ const o = new B();
1730
1744
  return o._method = y.ErrorValue, o;
1731
1745
  }
1732
1746
  /**
@@ -1735,8 +1749,8 @@ class v {
1735
1749
  * @param value 32-bit stored transparency representation
1736
1750
  */
1737
1751
  static deserialize(e) {
1738
- const t = e >>> 24 & 255, s = e & 255, o = Object.values(y)[t] ?? y.ErrorValue, i = new v();
1739
- return i._method = o, i._alpha = v.clampAlpha(s), i;
1752
+ const t = e >>> 24 & 255, s = e & 255, o = Object.values(y)[t] ?? y.ErrorValue, n = new B();
1753
+ return n._method = o, n._alpha = B.clampAlpha(s), n;
1740
1754
  }
1741
1755
  }
1742
1756
  class ue {
@@ -1818,14 +1832,14 @@ class ce {
1818
1832
  const t = this.tasks.length;
1819
1833
  let s = e;
1820
1834
  for (let o = 0; o < t; o++) {
1821
- const i = this.tasks[o];
1835
+ const n = this.tasks[o];
1822
1836
  try {
1823
1837
  s = await this.scheduleTask(async () => {
1824
- const l = await i.run(s);
1825
- return this.onProgress((o + 1) / t, i), l;
1838
+ const l = await n.run(s);
1839
+ return this.onProgress((o + 1) / t, n), l;
1826
1840
  });
1827
1841
  } catch (l) {
1828
- if (this.onError({ error: l, taskIndex: o, task: i }))
1842
+ if (this.onError({ error: l, taskIndex: o, task: n }))
1829
1843
  return Promise.reject(l);
1830
1844
  }
1831
1845
  }
@@ -1909,9 +1923,9 @@ class re {
1909
1923
  */
1910
1924
  getHandler(e) {
1911
1925
  for (let t = 0, s = this.handlers.length; t < s; t += 2) {
1912
- const o = this.handlers[t], i = this.handlers[t + 1];
1926
+ const o = this.handlers[t], n = this.handlers[t + 1];
1913
1927
  if (o.global && (o.lastIndex = 0), o.test(e))
1914
- return i;
1928
+ return n;
1915
1929
  }
1916
1930
  return null;
1917
1931
  }
@@ -1989,30 +2003,30 @@ class de {
1989
2003
  }
1990
2004
  }
1991
2005
  export {
1992
- B as AcCmColor,
1993
- n as AcCmColorMethod,
1994
- b as AcCmColorUtil,
2006
+ _ as AcCmColor,
2007
+ i as AcCmColorMethod,
2008
+ w as AcCmColorUtil,
1995
2009
  oe as AcCmEntityColor,
1996
2010
  ne as AcCmErrors,
1997
2011
  ie as AcCmEventDispatcher,
1998
- D as AcCmEventManager,
2012
+ $ as AcCmEventManager,
1999
2013
  de as AcCmLoader,
2000
2014
  re as AcCmLoadingManager,
2001
2015
  V as AcCmObject,
2002
2016
  M as AcCmPerformanceCollector,
2003
2017
  ue as AcCmTask,
2004
2018
  ce as AcCmTaskScheduler,
2005
- v as AcCmTransparency,
2019
+ B as AcCmTransparency,
2006
2020
  y as AcCmTransparencyMethod,
2007
2021
  he as AcTrStringUtil,
2008
2022
  le as DEBUG_MODE,
2009
2023
  se as DefaultLoadingManager,
2010
- C as clone,
2011
- F as deepClone,
2024
+ A as clone,
2025
+ D as deepClone,
2012
2026
  Y as defaults,
2013
2027
  Z as has,
2014
2028
  J as isEmpty,
2015
- k as isEqual,
2016
- O as log,
2029
+ I as isEqual,
2030
+ C as log,
2017
2031
  ae as setLogLevel
2018
2032
  };
@@ -1 +1 @@
1
- (function(h,E){typeof exports=="object"&&typeof module<"u"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(h=typeof globalThis<"u"?globalThis:h||self,E(h.common={}))})(this,function(h){"use strict";function E(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const s in n)if(s!=="default"&&!(s in r)){const i=Object.getOwnPropertyDescriptor(n,s);i&&Object.defineProperty(r,s,i.get?i:{enumerable:!0,get:()=>n[s]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var o=(r=>(r[r.ByColor=1]="ByColor",r[r.ByACI=2]="ByACI",r[r.ByLayer=3]="ByLayer",r[r.ByBlock=4]="ByBlock",r[r.None=0]="None",r))(o||{});const G={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},S=[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,0];class w{static getColorByIndex(e){return S[e]}static getIndexByColor(e){const t=S.length-1;for(let n=1;n<t;++n)if(S[n]===e)return n}static getColorByName(e){return G[e.toLowerCase()]}static getNameByColor(e){for(const[t,n]of Object.entries(G))if(n===e)return t}static getNameByIndex(e){const t=this.getColorByIndex(e);return this.getNameByColor(t)}}class _{constructor(e=o.ByLayer,t){this._colorMethod=e,this._colorMethod==o.ByColor&&t==null?this._value=16777215:this._colorMethod==o.ByACI?t==null?this._value=8:t===0?this._colorMethod=o.ByBlock:t===256?this._colorMethod=o.ByLayer:this._value=Math.max(0,Math.min(t,256)):this._value=t}get colorMethod(){return this._colorMethod}set colorMethod(e){this._colorMethod=e}get red(){const e=this.RGB;return e!=null?e>>16&255:void 0}get green(){const e=this.RGB;return e!=null?e>>8&255:void 0}get blue(){const e=this.RGB;return e!=null?e&255:void 0}get RGB(){switch(this._colorMethod){case o.ByColor:case o.ByBlock:case o.ByLayer:return this._value;case o.ByACI:return this._value?w.getColorByIndex(this._value):this._value;default:return}}setRGB(e,t,n){const s=Math.max(0,Math.min(255,Math.round(e))),i=Math.max(0,Math.min(255,Math.round(t))),l=Math.max(0,Math.min(255,Math.round(n)));return this._value=s<<16|i<<8|l,this._colorMethod=o.ByColor,this}setRGBValue(e){return e==null||!Number.isFinite(e)?(console.warn("Invalid RGB value:",e),this):(this._value=e&16777215,this._colorMethod=o.ByColor,this)}setRGBFromCss(e){if(!e)return this;const t=e.trim().toLowerCase();if(t.startsWith("#")){let i=0,l=0,d=0;if(t.length===7)i=parseInt(t.substr(1,2),16),l=parseInt(t.substr(3,2),16),d=parseInt(t.substr(5,2),16);else if(t.length===4)i=parseInt(t[1]+t[1],16),l=parseInt(t[2]+t[2],16),d=parseInt(t[3]+t[3],16);else return console.warn("Invalid hex color:",e),this;return this.setRGB(i,l,d)}const n=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(n){const i=parseInt(n[1],10),l=parseInt(n[2],10),d=parseInt(n[3],10);return this.setRGB(i,l,d)}const s=w.getColorByName(e);return s!==void 0?this.setRGBValue(s):(console.warn("Unknown CSS color string:",e),this)}setScalar(e){return this.setRGB(e,e,e)}get hexColor(){const e=this.RGB;return e==null?void 0:"0x"+e.toString(16).padStart(6,"0").toUpperCase()}get cssColor(){const e=this.RGB;if(e!=null)return`rgb(${e>>16&255},${e>>8&255},${e&255})`}get colorIndex(){return this._colorMethod===o.ByACI?this._value:this._colorMethod===o.ByLayer?256:this._colorMethod===o.ByBlock?0:void 0}set colorIndex(e){if(e==null)return;const t=Math.max(0,Math.min(256,Math.round(e)));t===0?(this._colorMethod=o.ByBlock,this._value=void 0):t===256?(this._colorMethod=o.ByLayer,this._value=void 0):(this._colorMethod=o.ByACI,this._value=t)}get isByColor(){return this._colorMethod===o.ByColor}get isByACI(){return this._colorMethod===o.ByACI}get isByLayer(){return this._colorMethod===o.ByLayer}setByLayer(e){return this._colorMethod=o.ByLayer,e==null?this._value=256:this._value=e,this}get isByBlock(){return this._colorMethod===o.ByBlock}setByBlock(e){return this._colorMethod=o.ByBlock,e==null?this._value=0:this._value=e,this}get colorName(){switch(this._colorMethod){case o.ByLayer:return"ByLayer";case o.ByBlock:return"ByBlock";case o.ByColor:return this._value?w.getNameByColor(this._value):"";case o.ByACI:return this._value?w.getNameByIndex(this._value):"";default:return}}set colorName(e){if(!e)return;const t=w.getColorByName(e);t!==void 0?(this._value=t,this._colorMethod=o.ByColor):console.warn("Unknown color name:",e)}clone(){const e=new _;return e._colorMethod=this._colorMethod,e._value=this._value,e}copy(e){return this._colorMethod=e._colorMethod,this._value=e._value,this}equals(e){return this._colorMethod===e._colorMethod&&this._value===e._value}toString(){switch(this._colorMethod){case o.ByLayer:return"ByLayer";case o.ByBlock:return"ByBlock";case o.ByACI:return this._value!==void 0?String(this._value):"";case o.ByColor:return this._value?`${this.red},${this.green},${this.blue}`:"";default:return""}}static fromString(e){if(!e)return;const t=e.trim();if(/^bylayer$/i.test(t))return new _(o.ByLayer);if(/^byblock$/i.test(t))return new _(o.ByBlock);if(/^\d{1,3},\d{1,3},\d{1,3}$/i.test(t)){const[s,i,l]=t.split(",").map(Number),d=new _(o.ByColor);return d.setRGB(s,i,l),d}if(/^\d+$/.test(t)){const s=parseInt(t,10);return new _(o.ByACI,s)}const n=w.getColorByName(t);if(n!=null)return new _(o.ByColor,n);console.warn("Unknown color name:",e)}}class J{constructor(e=o.ByColor,t=0){this._colorMethod=e,this._value=t}get colorMethd(){return this._colorMethod}get red(){return this._value>>16&255}set red(e){this._colorMethod=o.ByColor,this._value=this._value&65535|(e&255)<<16}get green(){return this._value>>8&255}set green(e){this._colorMethod=o.ByColor,this._value=this._value&16711935|(e&255)<<8}get blue(){return this._value&255}set blue(e){this._colorMethod=o.ByColor,this._value=this._value&16776960|e&255}setRGB(e,t,n){this._colorMethod=o.ByColor,this._value=(e&255)<<16|(t&255)<<8|n&255}get colorIndex(){return this._value}set colorIndex(e){this._colorMethod=o.ByACI,this._value=e}get layerIndex(){return this._value}set layerIndex(e){this._colorMethod=o.ByLayer,this._value=e}isByColor(){return this._colorMethod===o.ByColor}isByLayer(){return this._colorMethod===o.ByLayer}isByBlock(){return this._colorMethod===o.ByBlock}isByACI(){return this._colorMethod===o.ByACI}isNone(){return this._colorMethod===o.None}get rawValue(){return this._value}set rawValue(e){this._value=e}}const X={get ILLEGAL_PARAMETERS(){return new ReferenceError("Illegal Parameters")},get ZERO_DIVISION(){return new Error("Zero division")},get UNRESOLVED_BOUNDARY_CONFLICT(){return new Error("Unresolved boundary conflict in boolean operation")},get INFINITE_LOOP(){return new Error("Infinite loop")},get CANNOT_INVOKE_ABSTRACT_METHOD(){return new Error("Abstract method cannot be invoked")},get OPERATION_IS_NOT_SUPPORTED(){return new Error("Operation is not supported")},get NOT_IMPLEMENTED(){return new Error("Not implemented yet")}};class Q{constructor(){this._listeners={}}addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const n=this._listeners;return n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const s=this._listeners[e];if(s!==void 0){const i=s.indexOf(t);i!==-1&&s.splice(i,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const n=this._listeners[e.type];if(n!==void 0){e.target=this;const s=n.slice(0);for(let i=0,l=s.length;i<l;i++)s[i].call(this,e)}}}class T{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}removeEventListener(e){this.listeners=this.listeners.filter(t=>t!==e)}replaceEventListener(e){this.removeEventListener(e),this.addEventListener(e)}dispatch(e,...t){for(const n of this.listeners)n.call(null,e,...t)}}function C(r){return r===null||typeof r!="object"?r:Array.isArray(r)?[...r]:{...r}}function P(r){if(r===null||typeof r!="object")return r;if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp)return new RegExp(r.source,r.flags);if(Array.isArray(r))return r.map(P);const e={};for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=P(r[t]));return e}function j(r,...e){for(const t of e)if(t)for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&r[n]===void 0&&(r[n]=t[n]);return r}function q(r,e){return r!=null&&Object.prototype.hasOwnProperty.call(r,e)}function F(r){return r==null?!0:Array.isArray(r)||typeof r=="string"?r.length===0:r instanceof Map||r instanceof Set?r.size===0:typeof r=="object"?Object.keys(r).length===0:!1}function b(r,e){if(r===e)return!0;if(r==null||e==null)return r===e;if(typeof r!=typeof e)return!1;if(typeof r!="object")return r===e;if(Array.isArray(r)!==Array.isArray(e))return!1;if(Array.isArray(r)){if(r.length!==e.length)return!1;for(let s=0;s<r.length;s++)if(!b(r[s],e[s]))return!1;return!0}const t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(const s of t)if(!Object.prototype.hasOwnProperty.call(e,s)||!b(r[s],e[s]))return!1;return!0}var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function te(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var $={exports:{}};(function(r){(function(e,t){r.exports?r.exports=t():e.log=t()})(ee,function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),s=["trace","debug","info","warn","error"],i={},l=null;function d(u,g){var a=u[g];if(typeof a.bind=="function")return a.bind(u);try{return Function.prototype.bind.call(a,u)}catch{return function(){return Function.prototype.apply.apply(a,[u,arguments])}}}function O(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function M(u){return u==="debug"&&(u="log"),typeof console===t?!1:u==="trace"&&n?O:console[u]!==void 0?d(console,u):console.log!==void 0?d(console,"log"):e}function B(){for(var u=this.getLevel(),g=0;g<s.length;g++){var a=s[g];this[a]=g<u?e:this.methodFactory(a,u,this.name)}if(this.log=this.debug,typeof console===t&&u<this.levels.SILENT)return"No console available for logging"}function x(u){return function(){typeof console!==t&&(B.call(this),this[u].apply(this,arguments))}}function p(u,g,a){return M(u)||x.apply(this,arguments)}function K(u,g){var a=this,R,D,k,m="loglevel";typeof u=="string"?m+=":"+u:typeof u=="symbol"&&(m=void 0);function ue(c){var f=(s[c]||"silent").toUpperCase();if(!(typeof window===t||!m)){try{window.localStorage[m]=f;return}catch{}try{window.document.cookie=encodeURIComponent(m)+"="+f+";"}catch{}}}function W(){var c;if(!(typeof window===t||!m)){try{c=window.localStorage[m]}catch{}if(typeof c===t)try{var f=window.document.cookie,N=encodeURIComponent(m),Z=f.indexOf(N+"=");Z!==-1&&(c=/^([^;]+)/.exec(f.slice(Z+N.length+1))[1])}catch{}return a.levels[c]===void 0&&(c=void 0),c}}function ce(){if(!(typeof window===t||!m)){try{window.localStorage.removeItem(m)}catch{}try{window.document.cookie=encodeURIComponent(m)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function A(c){var f=c;if(typeof f=="string"&&a.levels[f.toUpperCase()]!==void 0&&(f=a.levels[f.toUpperCase()]),typeof f=="number"&&f>=0&&f<=a.levels.SILENT)return f;throw new TypeError("log.setLevel() called with invalid level: "+c)}a.name=u,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=g||p,a.getLevel=function(){return k??D??R},a.setLevel=function(c,f){return k=A(c),f!==!1&&ue(k),B.call(a)},a.setDefaultLevel=function(c){D=A(c),W()||a.setLevel(c,!1)},a.resetLevel=function(){k=null,ce(),B.call(a)},a.enableAll=function(c){a.setLevel(a.levels.TRACE,c)},a.disableAll=function(c){a.setLevel(a.levels.SILENT,c)},a.rebuild=function(){if(l!==a&&(R=A(l.getLevel())),B.call(a),l===a)for(var c in i)i[c].rebuild()},R=A(l?l.getLevel():"WARN");var Y=W();Y!=null&&(k=A(Y)),B.call(a)}l=new K,l.getLogger=function(g){if(typeof g!="symbol"&&typeof g!="string"||g==="")throw new TypeError("You must supply a name when creating a logger.");var a=i[g];return a||(a=i[g]=new K(g,l.methodFactory)),a};var he=typeof window!==t?window.log:void 0;return l.noConflict=function(){return typeof window!==t&&window.log===l&&(window.log=he),l},l.getLoggers=function(){return i},l.default=l,l})})($);var V=$.exports;const re=E({__proto__:null,default:te(V)},[V]),ne=!0,I=re;I.setLevel("debug");const se=r=>{try{I.setLevel(r)}catch(e){I.setLevel("error"),I.error(e)}};class U{constructor(e,t){this.events={attrChanged:new T,modelChanged:new T},this._changing=!1,this._previousAttributes={},this._pending=!1;const n=e||{};t&&j(n,t),this.attributes=n,this.changed={}}get(e){return this.attributes[e]}set(e,t,n){if(e==null)return this;let s;typeof e=="object"?(s=e,n=t):(s={},s[e]=t),n||(n={});const i=n.unset,l=n.silent,d=[],O=this._changing;this._changing=!0,O||(this._previousAttributes=C(this.attributes),this.changed={});const M=this.attributes,B=this.changed,x=this._previousAttributes;for(const p in s)t=s[p],b(M[p],t)||d.push(p),b(x[p],t)?delete B[p]:B[p]=t,i?delete M[p]:M[p]=t;if(!l){d.length&&(this._pending=n);for(let p=0;p<d.length;p++)this.events.attrChanged.dispatch({object:this,attrName:d[p],attrValue:M[d[p]],options:n})}if(O)return this;if(!l)for(;this._pending;)n=this._pending,this._pending=!1,this.events.modelChanged.dispatch({object:this,options:n});return this._pending=!1,this._changing=!1,this}has(e){return this.get(e)!=null}hasChanged(e){return e==null?!F(this.changed):q(this.changed,e)}changedAttributes(e){if(!e)return this.hasChanged()?C(this.changed):{};const t=this._changing?this._previousAttributes:this.attributes,n={};for(const s in e){const i=e[s];b(t[s],i)||(n[s]=i)}return n}previous(e){return e==null||!this._previousAttributes?null:this._previousAttributes[e]}previousAttributes(){return C(this._previousAttributes)}clone(){const e=C(this.attributes);return new U(e)}}class L{constructor(){this.entries=new Map}static getInstance(){return L.instance||(L.instance=new L),L.instance}collect(e){this.entries.set(e.name,e)}printAll(){for(const[e,t]of this.entries)console.log(`${e}:`),console.log(t.format())}clear(){this.entries.clear()}getAll(){return Array.from(this.entries.values())}getEntry(e){return this.entries.get(e)}remove(e){return this.entries.delete(e)}}class oe{static formatBytes(e,t=2){if(e===0)return"0 B";const n=1024,s=Math.max(0,t),i=["B","KB","MB","GB","TB"],l=Math.floor(Math.log(e)/Math.log(n)),d=e/Math.pow(n,l);return`${parseFloat(d.toFixed(s))} ${i[l]}`}}var y=(r=>(r[r.ByLayer=0]="ByLayer",r[r.ByBlock=1]="ByBlock",r[r.ByAlpha=2]="ByAlpha",r[r.ErrorValue=3]="ErrorValue",r))(y||{});class v{constructor(e){e!==void 0?(this._method=y.ByAlpha,this._alpha=v.clampAlpha(e)):(this._method=y.ByLayer,this._alpha=255)}get method(){return this._method}set method(e){this._method=e}get alpha(){return this._alpha}set alpha(e){this._alpha=v.clampAlpha(e),this._method=y.ByAlpha}get percentage(){if(this._method===y.ByAlpha)return Math.round((1-this._alpha/255)*100)}set percentage(e){const t=Math.max(0,Math.min(100,e)),n=Math.round(255*(1-t/100));this.alpha=n}static clampAlpha(e){return Math.max(0,Math.min(255,Math.floor(e)))}get isByAlpha(){return this._method===y.ByAlpha}get isByBlock(){return this._method===y.ByBlock}get isByLayer(){return this._method===y.ByLayer}get isClear(){return this.isByAlpha&&this._alpha===0}get isSolid(){return this.isByAlpha&&this._alpha===255}get isInvalid(){return this._method===y.ErrorValue}serialize(){return this._method<<24|this._alpha}clone(){const e=new v;return e._method=this._method,e._alpha=this._alpha,e}equals(e){return this._method===e._method&&this._alpha===e._alpha}toString(){return this.isByLayer?"ByLayer":this.isByBlock?"ByBlock":this._alpha.toString()}static fromString(e){const t=e.trim();if(/^bylayer$/i.test(t)){const i=new v;return i._method=y.ByLayer,i}if(/^byblock$/i.test(t)){const i=new v;return i._method=y.ByBlock,i}const n=Number(t);if(Number.isInteger(n)&&n>=0&&n<=255)return new v(n);const s=new v;return s._method=y.ErrorValue,s}static deserialize(e){const t=e>>>24&255,n=e&255,s=Object.values(y)[t]??y.ErrorValue,i=new v;return i._method=s,i._alpha=v.clampAlpha(n),i}}class ie{constructor(e){this.name=e}run(e){throw new Error("run() must be implemented by subclass")}}class le{constructor(){this.tasks=[],this.onProgress=()=>{},this.onComplete=()=>{},this.onError=()=>!1}scheduleTask(e){return new Promise((t,n)=>{const s=()=>{Promise.resolve(e()).then(t).catch(n)};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(s):setTimeout(s,0)})}addTask(e){this.tasks.push(e)}setProgressCallback(e){this.onProgress=e}setCompleteCallback(e){this.onComplete=e}setErrorCallback(e){this.onError=e}async run(e){const t=this.tasks.length;let n=e;for(let s=0;s<t;s++){const i=this.tasks[s];try{n=await this.scheduleTask(async()=>{const l=await i.run(n);return this.onProgress((s+1)/t,i),l})}catch(l){if(this.onError({error:l,taskIndex:s,task:i}))return Promise.reject(l)}}this.onComplete(n)}}class z{constructor(e,t,n){this.isLoading=!1,this.itemsLoaded=0,this.itemsTotal=0,this.urlModifier=void 0,this.handlers=[],this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n}itemStart(e){this.itemsTotal++,this.isLoading===!1&&this.onStart!==void 0&&this.onStart(e,this.itemsLoaded,this.itemsTotal),this.isLoading=!0}itemEnd(e){this.itemsLoaded++,this.onProgress!==void 0&&this.onProgress(e,this.itemsLoaded,this.itemsTotal),this.itemsLoaded===this.itemsTotal&&(this.isLoading=!1,this.onLoad!==void 0&&this.onLoad())}itemError(e){this.onError!==void 0&&this.onError(e)}resolveURL(e){return this.urlModifier?this.urlModifier(e):e}setURLModifier(e){return this.urlModifier=e,this}addHandler(e,t){return this.handlers.push(e,t),this}removeHandler(e){const t=this.handlers.indexOf(e);return t!==-1&&this.handlers.splice(t,2),this}getHandler(e){for(let t=0,n=this.handlers.length;t<n;t+=2){const s=this.handlers[t],i=this.handlers[t+1];if(s.global&&(s.lastIndex=0),s.test(e))return i}return null}}const H=new z;class ae{constructor(e){this.manager=e!==void 0?e:H,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}loadAsync(e,t){return new Promise((n,s)=>{this.load(e,n,t,s)})}parse(e){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}h.AcCmColor=_,h.AcCmColorMethod=o,h.AcCmColorUtil=w,h.AcCmEntityColor=J,h.AcCmErrors=X,h.AcCmEventDispatcher=Q,h.AcCmEventManager=T,h.AcCmLoader=ae,h.AcCmLoadingManager=z,h.AcCmObject=U,h.AcCmPerformanceCollector=L,h.AcCmTask=ie,h.AcCmTaskScheduler=le,h.AcCmTransparency=v,h.AcCmTransparencyMethod=y,h.AcTrStringUtil=oe,h.DEBUG_MODE=ne,h.DefaultLoadingManager=H,h.clone=C,h.deepClone=P,h.defaults=j,h.has=q,h.isEmpty=F,h.isEqual=b,h.log=I,h.setLogLevel=se,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
1
+ (function(h,C){typeof exports=="object"&&typeof module<"u"?C(exports):typeof define=="function"&&define.amd?define(["exports"],C):(h=typeof globalThis<"u"?globalThis:h||self,C(h.common={}))})(this,function(h){"use strict";function C(r,e){for(var t=0;t<e.length;t++){const n=e[t];if(typeof n!="string"&&!Array.isArray(n)){for(const o in n)if(o!=="default"&&!(o in r)){const s=Object.getOwnPropertyDescriptor(n,o);s&&Object.defineProperty(r,o,s.get?s:{enumerable:!0,get:()=>n[o]})}}}return Object.freeze(Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}))}var i=(r=>(r[r.ByColor=1]="ByColor",r[r.ByACI=2]="ByACI",r[r.ByLayer=3]="ByLayer",r[r.ByBlock=4]="ByBlock",r[r.None=0]="None",r))(i||{});const D={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074},S=[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,0];class b{static getColorByIndex(e){return S[e]}static getIndexByColor(e){const t=S.length-1;for(let n=1;n<t;++n)if(S[n]===e)return n}static getColorByName(e){return D[e.toLowerCase()]}static getNameByColor(e){for(const[t,n]of Object.entries(D))if(n===e)return t}static getNameByIndex(e){const t=this.getColorByIndex(e);return this.getNameByColor(t)}}class B{constructor(e=i.ByLayer,t){this._colorMethod=e,this._colorMethod==i.ByColor&&t==null?this._value=16777215:this._colorMethod==i.ByACI?t==null?this._value=8:t===0?this._colorMethod=i.ByBlock:t===256?this._colorMethod=i.ByLayer:this._value=Math.max(0,Math.min(t,256)):this._value=t}get colorMethod(){return this._colorMethod}set colorMethod(e){this._colorMethod=e}get red(){const e=this.RGB;return e!=null?e>>16&255:void 0}get green(){const e=this.RGB;return e!=null?e>>8&255:void 0}get blue(){const e=this.RGB;return e!=null?e&255:void 0}get RGB(){switch(this._colorMethod){case i.ByColor:case i.ByBlock:case i.ByLayer:return this._value;case i.ByACI:return this._value?b.getColorByIndex(this._value):this._value;default:return}}setRGB(e,t,n){const o=Math.max(0,Math.min(255,Math.round(e))),s=Math.max(0,Math.min(255,Math.round(t))),l=Math.max(0,Math.min(255,Math.round(n)));return this._value=o<<16|s<<8|l,this._colorMethod=i.ByColor,this}setRGBValue(e){return e==null||!Number.isFinite(e)?(console.warn("Invalid RGB value:",e),this):(this._value=e&16777215,this._colorMethod=i.ByColor,this)}setRGBFromCss(e){if(!e)return this;const t=e.trim().toLowerCase();if(t.startsWith("#")){let s=0,l=0,d=0;if(t.length===7)s=parseInt(t.substr(1,2),16),l=parseInt(t.substr(3,2),16),d=parseInt(t.substr(5,2),16);else if(t.length===4)s=parseInt(t[1]+t[1],16),l=parseInt(t[2]+t[2],16),d=parseInt(t[3]+t[3],16);else return console.warn("Invalid hex color:",e),this;return this.setRGB(s,l,d)}const n=t.match(/^rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)/);if(n){const s=parseInt(n[1],10),l=parseInt(n[2],10),d=parseInt(n[3],10);return this.setRGB(s,l,d)}const o=b.getColorByName(e);return o!==void 0?this.setRGBValue(o):(console.warn("Unknown CSS color string:",e),this)}setScalar(e){return this.setRGB(e,e,e)}get hexColor(){const e=this.RGB;return e==null?void 0:"0x"+e.toString(16).padStart(6,"0").toUpperCase()}get cssColor(){const e=this.RGB;if(e!=null)return`rgb(${e>>16&255},${e>>8&255},${e&255})`}get colorIndex(){return this._colorMethod===i.ByACI?this._value:this._colorMethod===i.ByLayer?256:this._colorMethod===i.ByBlock?0:void 0}set colorIndex(e){if(e==null)return;const t=Math.max(0,Math.min(256,Math.round(e)));t===0?(this._colorMethod=i.ByBlock,this._value=void 0):t===256?(this._colorMethod=i.ByLayer,this._value=void 0):(this._colorMethod=i.ByACI,this._value=t)}get isByColor(){return this._colorMethod===i.ByColor}get isByACI(){return this._colorMethod===i.ByACI}get isByLayer(){return this._colorMethod===i.ByLayer}setByLayer(e){return this._colorMethod=i.ByLayer,e==null?this._value=256:this._value=e,this}get isByBlock(){return this._colorMethod===i.ByBlock}setByBlock(e){return this._colorMethod=i.ByBlock,e==null?this._value=0:this._value=e,this}get colorName(){switch(this._colorMethod){case i.ByLayer:return"ByLayer";case i.ByBlock:return"ByBlock";case i.ByColor:return this._value?b.getNameByColor(this._value):"";case i.ByACI:return this._value?b.getNameByIndex(this._value):"";default:return}}set colorName(e){if(!e)return;const t=b.getColorByName(e);t!==void 0?(this._value=t,this._colorMethod=i.ByColor):console.warn("Unknown color name:",e)}clone(){const e=new B;return e._colorMethod=this._colorMethod,e._value=this._value,e}copy(e){return this._colorMethod=e._colorMethod,this._value=e._value,this}equals(e){return this._colorMethod===e._colorMethod&&this._value===e._value}toString(){switch(this._colorMethod){case i.ByLayer:return"ByLayer";case i.ByBlock:return"ByBlock";case i.ByACI:return this._value!==void 0?String(this._value):"";case i.ByColor:return this._value?`${this.red},${this.green},${this.blue}`:"";default:return""}}static fromString(e){if(!e)return;const t=e.trim();if(/^bylayer$/i.test(t))return new B(i.ByLayer);if(/^byblock$/i.test(t))return new B(i.ByBlock);const n=t.match(/^rgb\s*:\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})$/i);if(n){const s=Number(n[1]),l=Number(n[2]),d=Number(n[3]),_=new B(i.ByColor);return _.setRGB(s,l,d),_}if(/^\d{1,3},\d{1,3},\d{1,3}$/.test(t)){const[s,l,d]=t.split(",").map(Number),_=new B(i.ByColor);return _.setRGB(s,l,d),_}if(/^\d+$/.test(t)){const s=parseInt(t,10);return new B(i.ByACI,s)}if(/^book\$/i.test(t)){const s=t.substring(t.indexOf("$")+1),l=b.getColorByName(s);if(l!=null)return new B(i.ByColor,l);console.warn("Unknown color book entry:",e);return}const o=b.getColorByName(t);if(o!=null)return new B(i.ByColor,o);console.warn("Unknown color name:",e)}}class J{constructor(e=i.ByColor,t=0){this._colorMethod=e,this._value=t}get colorMethd(){return this._colorMethod}get red(){return this._value>>16&255}set red(e){this._colorMethod=i.ByColor,this._value=this._value&65535|(e&255)<<16}get green(){return this._value>>8&255}set green(e){this._colorMethod=i.ByColor,this._value=this._value&16711935|(e&255)<<8}get blue(){return this._value&255}set blue(e){this._colorMethod=i.ByColor,this._value=this._value&16776960|e&255}setRGB(e,t,n){this._colorMethod=i.ByColor,this._value=(e&255)<<16|(t&255)<<8|n&255}get colorIndex(){return this._value}set colorIndex(e){this._colorMethod=i.ByACI,this._value=e}get layerIndex(){return this._value}set layerIndex(e){this._colorMethod=i.ByLayer,this._value=e}isByColor(){return this._colorMethod===i.ByColor}isByLayer(){return this._colorMethod===i.ByLayer}isByBlock(){return this._colorMethod===i.ByBlock}isByACI(){return this._colorMethod===i.ByACI}isNone(){return this._colorMethod===i.None}get rawValue(){return this._value}set rawValue(e){this._value=e}}const X={get ILLEGAL_PARAMETERS(){return new ReferenceError("Illegal Parameters")},get ZERO_DIVISION(){return new Error("Zero division")},get UNRESOLVED_BOUNDARY_CONFLICT(){return new Error("Unresolved boundary conflict in boolean operation")},get INFINITE_LOOP(){return new Error("Infinite loop")},get CANNOT_INVOKE_ABSTRACT_METHOD(){return new Error("Abstract method cannot be invoked")},get OPERATION_IS_NOT_SUPPORTED(){return new Error("Operation is not supported")},get NOT_IMPLEMENTED(){return new Error("Not implemented yet")}};class Q{constructor(){this._listeners={}}addEventListener(e,t){this._listeners===void 0&&(this._listeners={});const n=this._listeners;n[e]===void 0&&(n[e]=[]),n[e].indexOf(t)===-1&&n[e].push(t)}hasEventListener(e,t){if(this._listeners===void 0)return!1;const n=this._listeners;return n[e]!==void 0&&n[e].indexOf(t)!==-1}removeEventListener(e,t){if(this._listeners===void 0)return;const o=this._listeners[e];if(o!==void 0){const s=o.indexOf(t);s!==-1&&o.splice(s,1)}}dispatchEvent(e){if(this._listeners===void 0)return;const n=this._listeners[e.type];if(n!==void 0){e.target=this;const o=n.slice(0);for(let s=0,l=o.length;s<l;s++)o[s].call(this,e)}}}class T{constructor(){this.listeners=[]}addEventListener(e){this.listeners.push(e)}removeEventListener(e){this.listeners=this.listeners.filter(t=>t!==e)}replaceEventListener(e){this.removeEventListener(e),this.addEventListener(e)}dispatch(e,...t){for(const n of this.listeners)n.call(null,e,...t)}}function I(r){return r===null||typeof r!="object"?r:Array.isArray(r)?[...r]:{...r}}function P(r){if(r===null||typeof r!="object")return r;if(r instanceof Date)return new Date(r.getTime());if(r instanceof RegExp)return new RegExp(r.source,r.flags);if(Array.isArray(r))return r.map(P);const e={};for(const t in r)Object.prototype.hasOwnProperty.call(r,t)&&(e[t]=P(r[t]));return e}function $(r,...e){for(const t of e)if(t)for(const n in t)Object.prototype.hasOwnProperty.call(t,n)&&r[n]===void 0&&(r[n]=t[n]);return r}function j(r,e){return r!=null&&Object.prototype.hasOwnProperty.call(r,e)}function q(r){return r==null?!0:Array.isArray(r)||typeof r=="string"?r.length===0:r instanceof Map||r instanceof Set?r.size===0:typeof r=="object"?Object.keys(r).length===0:!1}function L(r,e){if(r===e)return!0;if(r==null||e==null)return r===e;if(typeof r!=typeof e)return!1;if(typeof r!="object")return r===e;if(Array.isArray(r)!==Array.isArray(e))return!1;if(Array.isArray(r)){if(r.length!==e.length)return!1;for(let o=0;o<r.length;o++)if(!L(r[o],e[o]))return!1;return!0}const t=Object.keys(r),n=Object.keys(e);if(t.length!==n.length)return!1;for(const o of t)if(!Object.prototype.hasOwnProperty.call(e,o)||!L(r[o],e[o]))return!1;return!0}var ee=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function te(r){return r&&r.__esModule&&Object.prototype.hasOwnProperty.call(r,"default")?r.default:r}var F={exports:{}};(function(r){(function(e,t){r.exports?r.exports=t():e.log=t()})(ee,function(){var e=function(){},t="undefined",n=typeof window!==t&&typeof window.navigator!==t&&/Trident\/|MSIE /.test(window.navigator.userAgent),o=["trace","debug","info","warn","error"],s={},l=null;function d(u,g){var a=u[g];if(typeof a.bind=="function")return a.bind(u);try{return Function.prototype.bind.call(a,u)}catch{return function(){return Function.prototype.apply.apply(a,[u,arguments])}}}function _(){console.log&&(console.log.apply?console.log.apply(console,arguments):Function.prototype.apply.apply(console.log,[console,arguments])),console.trace&&console.trace()}function k(u){return u==="debug"&&(u="log"),typeof console===t?!1:u==="trace"&&n?_:console[u]!==void 0?d(console,u):console.log!==void 0?d(console,"log"):e}function w(){for(var u=this.getLevel(),g=0;g<o.length;g++){var a=o[g];this[a]=g<u?e:this.methodFactory(a,u,this.name)}if(this.log=this.debug,typeof console===t&&u<this.levels.SILENT)return"No console available for logging"}function x(u){return function(){typeof console!==t&&(w.call(this),this[u].apply(this,arguments))}}function p(u,g,a){return k(u)||x.apply(this,arguments)}function K(u,g){var a=this,N,G,E,m="loglevel";typeof u=="string"?m+=":"+u:typeof u=="symbol"&&(m=void 0);function ue(c){var f=(o[c]||"silent").toUpperCase();if(!(typeof window===t||!m)){try{window.localStorage[m]=f;return}catch{}try{window.document.cookie=encodeURIComponent(m)+"="+f+";"}catch{}}}function W(){var c;if(!(typeof window===t||!m)){try{c=window.localStorage[m]}catch{}if(typeof c===t)try{var f=window.document.cookie,R=encodeURIComponent(m),Z=f.indexOf(R+"=");Z!==-1&&(c=/^([^;]+)/.exec(f.slice(Z+R.length+1))[1])}catch{}return a.levels[c]===void 0&&(c=void 0),c}}function ce(){if(!(typeof window===t||!m)){try{window.localStorage.removeItem(m)}catch{}try{window.document.cookie=encodeURIComponent(m)+"=; expires=Thu, 01 Jan 1970 00:00:00 UTC"}catch{}}}function O(c){var f=c;if(typeof f=="string"&&a.levels[f.toUpperCase()]!==void 0&&(f=a.levels[f.toUpperCase()]),typeof f=="number"&&f>=0&&f<=a.levels.SILENT)return f;throw new TypeError("log.setLevel() called with invalid level: "+c)}a.name=u,a.levels={TRACE:0,DEBUG:1,INFO:2,WARN:3,ERROR:4,SILENT:5},a.methodFactory=g||p,a.getLevel=function(){return E??G??N},a.setLevel=function(c,f){return E=O(c),f!==!1&&ue(E),w.call(a)},a.setDefaultLevel=function(c){G=O(c),W()||a.setLevel(c,!1)},a.resetLevel=function(){E=null,ce(),w.call(a)},a.enableAll=function(c){a.setLevel(a.levels.TRACE,c)},a.disableAll=function(c){a.setLevel(a.levels.SILENT,c)},a.rebuild=function(){if(l!==a&&(N=O(l.getLevel())),w.call(a),l===a)for(var c in s)s[c].rebuild()},N=O(l?l.getLevel():"WARN");var Y=W();Y!=null&&(E=O(Y)),w.call(a)}l=new K,l.getLogger=function(g){if(typeof g!="symbol"&&typeof g!="string"||g==="")throw new TypeError("You must supply a name when creating a logger.");var a=s[g];return a||(a=s[g]=new K(g,l.methodFactory)),a};var he=typeof window!==t?window.log:void 0;return l.noConflict=function(){return typeof window!==t&&window.log===l&&(window.log=he),l},l.getLoggers=function(){return s},l.default=l,l})})(F);var V=F.exports;const re=C({__proto__:null,default:te(V)},[V]),ne=!0,A=re;A.setLevel("debug");const oe=r=>{try{A.setLevel(r)}catch(e){A.setLevel("error"),A.error(e)}};class U{constructor(e,t){this.events={attrChanged:new T,modelChanged:new T},this._changing=!1,this._previousAttributes={},this._pending=!1;const n=e||{};t&&$(n,t),this.attributes=n,this.changed={}}get(e){return this.attributes[e]}set(e,t,n){if(e==null)return this;let o;typeof e=="object"?(o=e,n=t):(o={},o[e]=t),n||(n={});const s=n.unset,l=n.silent,d=[],_=this._changing;this._changing=!0,_||(this._previousAttributes=I(this.attributes),this.changed={});const k=this.attributes,w=this.changed,x=this._previousAttributes;for(const p in o)t=o[p],L(k[p],t)||d.push(p),L(x[p],t)?delete w[p]:w[p]=t,s?delete k[p]:k[p]=t;if(!l){d.length&&(this._pending=n);for(let p=0;p<d.length;p++)this.events.attrChanged.dispatch({object:this,attrName:d[p],attrValue:k[d[p]],options:n})}if(_)return this;if(!l)for(;this._pending;)n=this._pending,this._pending=!1,this.events.modelChanged.dispatch({object:this,options:n});return this._pending=!1,this._changing=!1,this}has(e){return this.get(e)!=null}hasChanged(e){return e==null?!q(this.changed):j(this.changed,e)}changedAttributes(e){if(!e)return this.hasChanged()?I(this.changed):{};const t=this._changing?this._previousAttributes:this.attributes,n={};for(const o in e){const s=e[o];L(t[o],s)||(n[o]=s)}return n}previous(e){return e==null||!this._previousAttributes?null:this._previousAttributes[e]}previousAttributes(){return I(this._previousAttributes)}clone(){const e=I(this.attributes);return new U(e)}}class M{constructor(){this.entries=new Map}static getInstance(){return M.instance||(M.instance=new M),M.instance}collect(e){this.entries.set(e.name,e)}printAll(){for(const[e,t]of this.entries)console.log(`${e}:`),console.log(t.format())}clear(){this.entries.clear()}getAll(){return Array.from(this.entries.values())}getEntry(e){return this.entries.get(e)}remove(e){return this.entries.delete(e)}}class se{static formatBytes(e,t=2){if(e===0)return"0 B";const n=1024,o=Math.max(0,t),s=["B","KB","MB","GB","TB"],l=Math.floor(Math.log(e)/Math.log(n)),d=e/Math.pow(n,l);return`${parseFloat(d.toFixed(o))} ${s[l]}`}}var y=(r=>(r[r.ByLayer=0]="ByLayer",r[r.ByBlock=1]="ByBlock",r[r.ByAlpha=2]="ByAlpha",r[r.ErrorValue=3]="ErrorValue",r))(y||{});class v{constructor(e){e!==void 0?(this._method=y.ByAlpha,this._alpha=v.clampAlpha(e)):(this._method=y.ByLayer,this._alpha=255)}get method(){return this._method}set method(e){this._method=e}get alpha(){return this._alpha}set alpha(e){this._alpha=v.clampAlpha(e),this._method=y.ByAlpha}get percentage(){if(this._method===y.ByAlpha)return Math.round((1-this._alpha/255)*100)}set percentage(e){const t=Math.max(0,Math.min(100,e)),n=Math.round(255*(1-t/100));this.alpha=n}static clampAlpha(e){return Math.max(0,Math.min(255,Math.floor(e)))}get isByAlpha(){return this._method===y.ByAlpha}get isByBlock(){return this._method===y.ByBlock}get isByLayer(){return this._method===y.ByLayer}get isClear(){return this.isByAlpha&&this._alpha===0}get isSolid(){return this.isByAlpha&&this._alpha===255}get isInvalid(){return this._method===y.ErrorValue}serialize(){return this._method<<24|this._alpha}clone(){const e=new v;return e._method=this._method,e._alpha=this._alpha,e}equals(e){return this._method===e._method&&this._alpha===e._alpha}toString(){return this.isByLayer?"ByLayer":this.isByBlock?"ByBlock":this._alpha.toString()}static fromString(e){const t=e.trim();if(/^bylayer$/i.test(t)){const s=new v;return s._method=y.ByLayer,s}if(/^byblock$/i.test(t)){const s=new v;return s._method=y.ByBlock,s}const n=Number(t);if(Number.isInteger(n)&&n>=0&&n<=255)return new v(n);const o=new v;return o._method=y.ErrorValue,o}static deserialize(e){const t=e>>>24&255,n=e&255,o=Object.values(y)[t]??y.ErrorValue,s=new v;return s._method=o,s._alpha=v.clampAlpha(n),s}}class ie{constructor(e){this.name=e}run(e){throw new Error("run() must be implemented by subclass")}}class le{constructor(){this.tasks=[],this.onProgress=()=>{},this.onComplete=()=>{},this.onError=()=>!1}scheduleTask(e){return new Promise((t,n)=>{const o=()=>{Promise.resolve(e()).then(t).catch(n)};typeof window<"u"&&typeof window.requestAnimationFrame=="function"?window.requestAnimationFrame(o):setTimeout(o,0)})}addTask(e){this.tasks.push(e)}setProgressCallback(e){this.onProgress=e}setCompleteCallback(e){this.onComplete=e}setErrorCallback(e){this.onError=e}async run(e){const t=this.tasks.length;let n=e;for(let o=0;o<t;o++){const s=this.tasks[o];try{n=await this.scheduleTask(async()=>{const l=await s.run(n);return this.onProgress((o+1)/t,s),l})}catch(l){if(this.onError({error:l,taskIndex:o,task:s}))return Promise.reject(l)}}this.onComplete(n)}}class z{constructor(e,t,n){this.isLoading=!1,this.itemsLoaded=0,this.itemsTotal=0,this.urlModifier=void 0,this.handlers=[],this.onStart=void 0,this.onLoad=e,this.onProgress=t,this.onError=n}itemStart(e){this.itemsTotal++,this.isLoading===!1&&this.onStart!==void 0&&this.onStart(e,this.itemsLoaded,this.itemsTotal),this.isLoading=!0}itemEnd(e){this.itemsLoaded++,this.onProgress!==void 0&&this.onProgress(e,this.itemsLoaded,this.itemsTotal),this.itemsLoaded===this.itemsTotal&&(this.isLoading=!1,this.onLoad!==void 0&&this.onLoad())}itemError(e){this.onError!==void 0&&this.onError(e)}resolveURL(e){return this.urlModifier?this.urlModifier(e):e}setURLModifier(e){return this.urlModifier=e,this}addHandler(e,t){return this.handlers.push(e,t),this}removeHandler(e){const t=this.handlers.indexOf(e);return t!==-1&&this.handlers.splice(t,2),this}getHandler(e){for(let t=0,n=this.handlers.length;t<n;t+=2){const o=this.handlers[t],s=this.handlers[t+1];if(o.global&&(o.lastIndex=0),o.test(e))return s}return null}}const H=new z;class ae{constructor(e){this.manager=e!==void 0?e:H,this.crossOrigin="anonymous",this.withCredentials=!1,this.path="",this.resourcePath="",this.requestHeader={}}loadAsync(e,t){return new Promise((n,o)=>{this.load(e,n,t,o)})}parse(e){}setCrossOrigin(e){return this.crossOrigin=e,this}setWithCredentials(e){return this.withCredentials=e,this}setPath(e){return this.path=e,this}setResourcePath(e){return this.resourcePath=e,this}setRequestHeader(e){return this.requestHeader=e,this}}h.AcCmColor=B,h.AcCmColorMethod=i,h.AcCmColorUtil=b,h.AcCmEntityColor=J,h.AcCmErrors=X,h.AcCmEventDispatcher=Q,h.AcCmEventManager=T,h.AcCmLoader=ae,h.AcCmLoadingManager=z,h.AcCmObject=U,h.AcCmPerformanceCollector=M,h.AcCmTask=ie,h.AcCmTaskScheduler=le,h.AcCmTransparency=v,h.AcCmTransparencyMethod=y,h.AcTrStringUtil=se,h.DEBUG_MODE=ne,h.DefaultLoadingManager=H,h.clone=I,h.deepClone=P,h.defaults=$,h.has=j,h.isEmpty=q,h.isEqual=L,h.log=A,h.setLogLevel=oe,Object.defineProperty(h,Symbol.toStringTag,{value:"Module"})});
@@ -1 +1 @@
1
- {"version":3,"file":"AcCmColor.d.ts","sourceRoot":"","sources":["../src/AcCmColor.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AAGnD;;;;;;GAMG;AACH,qBAAa,SAAS;IACpB,sDAAsD;IACtD,OAAO,CAAC,YAAY,CAAiB;IAErC;;;;;;OAMG;IACH,OAAO,CAAC,MAAM,CAAC,CAAQ;IAEvB;;;;OAIG;gBAED,MAAM,GAAE,eAAyC,EACjD,KAAK,CAAC,EAAE,MAAM;IAwBhB,qCAAqC;IACrC,IAAI,WAAW,IAAI,eAAe,CAEjC;IAED;;;;OAIG;IACH,IAAI,WAAW,CAAC,MAAM,EAAE,eAAe,EAEtC;IAMD,sCAAsC;IACtC,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAG5B;IAED,wCAAwC;IACxC,IAAI,KAAK,IAAI,MAAM,GAAG,SAAS,CAG9B;IAED,uCAAuC;IACvC,IAAI,IAAI,IAAI,MAAM,GAAG,SAAS,CAG7B;IAED;;;;;;OAMG;IACH,IAAI,GAAG,IAAI,MAAM,GAAG,SAAS,CAa5B;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,CAAC,EA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IAAI,UAAU,CAAC,KAAK,EAAE,MAAM,GAAG,SAAS,EAcvC;IAED;;OAEG;IACH,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;OAEG;IACH,IAAI,OAAO,IAAI,OAAO,CAErB;IAMD,mDAAmD;IACnD,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;OAGG;IACH,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM;IAUzB,mDAAmD;IACnD,IAAI,SAAS,IAAI,OAAO,CAEvB;IAED;;;OAGG;IACH,UAAU,CAAC,KAAK,CAAC,EAAE,MAAM;IAczB;;;;;OAKG;IACH,IAAI,SAAS,IAAI,MAAM,GAAG,SAAS,CAalC;IAED;;;;;;OAMG;IACH,IAAI,SAAS,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,EASrC;IAMD;;;;OAIG;IACH,KAAK,IAAI,SAAS;IAOlB;;;;;OAKG;IACH,IAAI,CAAC,KAAK,EAAE,SAAS;IAMrB;;;;;OAKG;IACH,MAAM,CAAC,KAAK,EAAE,SAAS;IAUvB;;;;;;;OAOG;IACH,QAAQ,IAAI,MAAM;IAiBlB;;OAEG;IACH,MAAM,CAAC,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS;CA8EvD"}
package/lib/AcCmColor.js CHANGED
@@ -472,31 +472,66 @@ var AcCmColor = /** @class */ (function () {
472
472
  if (!name)
473
473
  return undefined;
474
474
  var n = name.trim();
475
+ // -------------------------------------------------
475
476
  // 1. ByLayer / ByBlock
477
+ // -------------------------------------------------
476
478
  if (/^bylayer$/i.test(n)) {
477
479
  return new AcCmColor(AcCmColorMethod.ByLayer);
478
480
  }
479
481
  if (/^byblock$/i.test(n)) {
480
482
  return new AcCmColor(AcCmColorMethod.ByBlock);
481
483
  }
482
- // 2. RGB: "r,g,b"
483
- if (/^\d{1,3},\d{1,3},\d{1,3}$/i.test(n)) {
484
+ // -------------------------------------------------
485
+ // 2. RGB with prefix: "RGB:255,0,0" (case-insensitive)
486
+ // -------------------------------------------------
487
+ var rgbPrefixedMatch = n.match(/^rgb\s*:\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})$/i);
488
+ if (rgbPrefixedMatch) {
489
+ var r = Number(rgbPrefixedMatch[1]);
490
+ var g = Number(rgbPrefixedMatch[2]);
491
+ var b = Number(rgbPrefixedMatch[3]);
492
+ var color = new AcCmColor(AcCmColorMethod.ByColor);
493
+ color.setRGB(r, g, b);
494
+ return color;
495
+ }
496
+ // -------------------------------------------------
497
+ // 3. RGB without prefix: "255,0,0"
498
+ // -------------------------------------------------
499
+ if (/^\d{1,3},\d{1,3},\d{1,3}$/.test(n)) {
484
500
  var _a = __read(n.split(',').map(Number), 3), r = _a[0], g = _a[1], b = _a[2];
485
501
  var color = new AcCmColor(AcCmColorMethod.ByColor);
486
502
  color.setRGB(r, g, b);
487
503
  return color;
488
504
  }
489
- // 3. ACI index (must be integer)
505
+ // -------------------------------------------------
506
+ // 4. ACI index: "1" – "255"
507
+ // -------------------------------------------------
490
508
  if (/^\d+$/.test(n)) {
491
509
  var index = parseInt(n, 10);
492
510
  return new AcCmColor(AcCmColorMethod.ByACI, index);
493
511
  }
494
- // 4. Named colors or color book entries
512
+ // -------------------------------------------------
513
+ // 5. Color book entry: "Book$Name" (case-insensitive prefix)
514
+ // -------------------------------------------------
515
+ if (/^book\$/i.test(n)) {
516
+ // Preserve original name after "Book$"
517
+ var bookName = n.substring(n.indexOf('$') + 1);
518
+ // Let util decide how to resolve book colors
519
+ var colorVal_1 = AcCmColorUtil.getColorByName(bookName);
520
+ if (colorVal_1 != null) {
521
+ return new AcCmColor(AcCmColorMethod.ByColor, colorVal_1);
522
+ }
523
+ console.warn('Unknown color book entry:', name);
524
+ return undefined;
525
+ }
526
+ // -------------------------------------------------
527
+ // 6. Named colors
528
+ // -------------------------------------------------
495
529
  var colorVal = AcCmColorUtil.getColorByName(n);
496
530
  if (colorVal != null) {
497
531
  return new AcCmColor(AcCmColorMethod.ByColor, colorVal);
498
532
  }
499
533
  console.warn('Unknown color name:', name);
534
+ return undefined;
500
535
  };
501
536
  return AcCmColor;
502
537
  }());
@@ -1 +1 @@
1
- {"version":3,"file":"AcCmColor.js","sourceRoot":"","sources":["../src/AcCmColor.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAA;AACnD,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAE/C;;;;;;GAMG;AACH;IAaE;;;;OAIG;IACH,mBACE,MAAiD,EACjD,KAAc;QADd,uBAAA,EAAA,SAA0B,eAAe,CAAC,OAAO;QAGjD,IAAI,CAAC,YAAY,GAAG,MAAM,CAAA;QAC1B,IAAI,IAAI,CAAC,YAAY,IAAI,eAAe,CAAC,OAAO,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;YAClE,IAAI,CAAC,MAAM,GAAG,QAAQ,CAAA;QACxB,CAAC;aAAM,IAAI,IAAI,CAAC,YAAY,IAAI,eAAe,CAAC,KAAK,EAAE,CAAC;YACtD,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;gBAClB,IAAI,CAAC,MAAM,GAAG,CAAC,CAAA;YACjB,CAAC;iBAAM,IAAI,KAAK,KAAK,CAAC,EAAE,CAAC;gBACvB,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC,OAAO,CAAA;YAC7C,CAAC;iBAAM,IAAI,KAAK,KAAK,GAAG,EAAE,CAAC;gBACzB,IAAI,CAAC,YAAY,GAAG,eAAe,CAAC,OAAO,CAAA;YAC7C,CAAC;iBAAM,CAAC;gBACN,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,KAAK,EAAE,GAAG,CAAC,CAAC,CAAA;YACjD,CAAC;QACH,CAAC;aAAM,CAAC;YACN,IAAI,CAAC,MAAM,GAAG,KAAK,CAAA;QACrB,CAAC;IACH,CAAC;IA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