@mlightcad/data-model 1.7.19 → 1.7.20

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.
@@ -2193,7 +2193,7 @@ function xh(i, t = 1e-7) {
2193
2193
  const e = Yr(i);
2194
2194
  return Math.max(Math.pow(10, e) * t, t);
2195
2195
  }
2196
- const N = {
2196
+ const v = {
2197
2197
  DEG2RAD: Dr,
2198
2198
  RAD2DEG: Hr,
2199
2199
  generateUUID: eh,
@@ -2428,8 +2428,8 @@ const N = {
2428
2428
  }
2429
2429
  relativeEps(t = 1e-7) {
2430
2430
  return Math.min(
2431
- N.relativeEps(this.x, t),
2432
- N.relativeEps(this.y, t)
2431
+ v.relativeEps(this.x, t),
2432
+ v.relativeEps(this.y, t)
2433
2433
  );
2434
2434
  }
2435
2435
  *[Symbol.iterator]() {
@@ -3768,7 +3768,7 @@ class mi {
3768
3768
  return new mi().copy(this);
3769
3769
  }
3770
3770
  }
3771
- let k = class na extends X {
3771
+ let L = class na extends X {
3772
3772
  clone() {
3773
3773
  return new na(this.x, this.y);
3774
3774
  }
@@ -3947,7 +3947,7 @@ let Js = class la extends ha {
3947
3947
  for (; g < a; g++) {
3948
3948
  const p = n[g], m = e[p];
3949
3949
  if (s[p].containsBox(u) && bh.isPointInPolygon(
3950
- d[N.randInt(0, d.length - 1)],
3950
+ d[v.randInt(0, d.length - 1)],
3951
3951
  m
3952
3952
  )) {
3953
3953
  (t = r.get(p)) == null || t.children.push(r.get(c));
@@ -4065,7 +4065,7 @@ let Js = class la extends ha {
4065
4065
  getTangent(t) {
4066
4066
  let e = t - 1e-4, s = t + 1e-4;
4067
4067
  e < 0 && (e = 0), s > 1 && (s = 1);
4068
- const n = this.getPoint(e), r = this.getPoint(s), a = new k();
4068
+ const n = this.getPoint(e), r = this.getPoint(s), a = new L();
4069
4069
  return a.copy(r).sub(n).normalize(), a;
4070
4070
  }
4071
4071
  getTangentAt(t) {
@@ -4088,7 +4088,7 @@ let Js = class la extends ha {
4088
4088
  );
4089
4089
  else if (a == 5) {
4090
4090
  const o = t;
4091
- this.center = new k(o.x, o.y), this.radius = e, this._clockwise = r, this._startAngle = this._clockwise ? this._mirrorAngle(N.normalizeAngle(s)) : N.normalizeAngle(s), this._endAngle = this._clockwise ? this._mirrorAngle(N.normalizeAngle(n)) : N.normalizeAngle(n);
4091
+ this.center = new L(o.x, o.y), this.radius = e, this._clockwise = r, this._startAngle = this._clockwise ? this._mirrorAngle(v.normalizeAngle(s)) : v.normalizeAngle(s), this._endAngle = this._clockwise ? this._mirrorAngle(v.normalizeAngle(n)) : v.normalizeAngle(n);
4092
4092
  } else
4093
4093
  throw St.ILLEGAL_PARAMETERS;
4094
4094
  }
@@ -4118,7 +4118,7 @@ let Js = class la extends ha {
4118
4118
  return this._center;
4119
4119
  }
4120
4120
  set center(t) {
4121
- this._center = new k(t.x, t.y), this._boundingBoxNeedsUpdate = !0;
4121
+ this._center = new L(t.x, t.y), this._boundingBoxNeedsUpdate = !0;
4122
4122
  }
4123
4123
  get radius() {
4124
4124
  return this._radius;
@@ -4130,13 +4130,13 @@ let Js = class la extends ha {
4130
4130
  return this._clockwise ? this._mirrorAngle(this._startAngle) : this._startAngle;
4131
4131
  }
4132
4132
  set startAngle(t) {
4133
- this._startAngle = this._clockwise ? this._mirrorAngle(N.normalizeAngle(t)) : N.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4133
+ this._startAngle = this._clockwise ? this._mirrorAngle(v.normalizeAngle(t)) : v.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4134
4134
  }
4135
4135
  get endAngle() {
4136
4136
  return this._clockwise ? this._mirrorAngle(this._endAngle) : this._endAngle;
4137
4137
  }
4138
4138
  set endAngle(t) {
4139
- const e = this.startAngle == 0 && t == W ? t : N.normalizeAngle(t);
4139
+ const e = this.startAngle == 0 && t == W ? t : v.normalizeAngle(t);
4140
4140
  this._endAngle = this._clockwise ? this._mirrorAngle(e) : e, this._boundingBoxNeedsUpdate = !0;
4141
4141
  }
4142
4142
  _mirrorAngle(t) {
@@ -4147,7 +4147,7 @@ let Js = class la extends ha {
4147
4147
  }
4148
4148
  get deltaAngle() {
4149
4149
  const t = this._getInternalAngle(this.startAngle), e = this._getInternalAngle(this.endAngle);
4150
- return this.clockwise ? N.normalizeAngle(t - e) : N.normalizeAngle(e - t);
4150
+ return this.clockwise ? v.normalizeAngle(t - e) : v.normalizeAngle(e - t);
4151
4151
  }
4152
4152
  get clockwise() {
4153
4153
  return this._clockwise;
@@ -4162,7 +4162,7 @@ let Js = class la extends ha {
4162
4162
  return this.getPointAtAngle(this.endAngle);
4163
4163
  }
4164
4164
  get midPoint() {
4165
- const t = this._getInternalAngle(this.startAngle), e = this._clockwise ? N.normalizeAngle(t - this.deltaAngle / 2) : N.normalizeAngle(t + this.deltaAngle / 2), s = this._clockwise ? this._mirrorAngle(e) : e;
4165
+ const t = this._getInternalAngle(this.startAngle), e = this._clockwise ? v.normalizeAngle(t - this.deltaAngle / 2) : v.normalizeAngle(t + this.deltaAngle / 2), s = this._clockwise ? this._mirrorAngle(e) : e;
4166
4166
  return this.getPointAtAngle(s);
4167
4167
  }
4168
4168
  get closed() {
@@ -4173,7 +4173,7 @@ let Js = class la extends ha {
4173
4173
  const t = [this.startPoint, this.endPoint], e = [0, Math.PI / 2, Math.PI, 3 * Math.PI / 2];
4174
4174
  for (const r of e) {
4175
4175
  const a = this._getInternalAngle(r);
4176
- N.isBetweenAngle(
4176
+ v.isBetweenAngle(
4177
4177
  a,
4178
4178
  this._getInternalAngle(this.startAngle),
4179
4179
  this._getInternalAngle(this.endAngle),
@@ -4182,8 +4182,8 @@ let Js = class la extends ha {
4182
4182
  }
4183
4183
  const s = t.map((r) => r.x), n = t.map((r) => r.y);
4184
4184
  return new gt(
4185
- new k(Math.min(...s), Math.min(...n)),
4186
- new k(Math.max(...s), Math.max(...n))
4185
+ new L(Math.min(...s), Math.min(...n)),
4186
+ new L(Math.max(...s), Math.max(...n))
4187
4187
  );
4188
4188
  }
4189
4189
  get length() {
@@ -4201,7 +4201,7 @@ let Js = class la extends ha {
4201
4201
  r,
4202
4202
  a
4203
4203
  ), l = e.determinant() < 0 ? !this.clockwise : this.clockwise, c = (d) => {
4204
- const u = N.normalizeAngle(d);
4204
+ const u = v.normalizeAngle(d);
4205
4205
  return l ? this._mirrorAngle(u) : u;
4206
4206
  };
4207
4207
  return this.center = o.center, this.radius = o.radius, this.clockwise = l, this.startAngle = c(
@@ -4227,7 +4227,7 @@ let Js = class la extends ha {
4227
4227
  }
4228
4228
  getPointAtAngle(t) {
4229
4229
  const e = this._getInternalAngle(t), s = this.center.x + this.radius * Math.cos(e), n = this.center.y + this.radius * Math.sin(e);
4230
- return new k(s, n);
4230
+ return new L(s, n);
4231
4231
  }
4232
4232
  getPoints(t = 100) {
4233
4233
  const e = [];
@@ -4235,12 +4235,12 @@ let Js = class la extends ha {
4235
4235
  if (this.closed && (s = W, n = 0), this.clockwise)
4236
4236
  for (let r = 0; r <= t; r++) {
4237
4237
  const a = n - s * (r / t), o = this._clockwise ? this._mirrorAngle(a) : a, l = this.getPointAtAngle(o);
4238
- e.push(new k(l.x, l.y));
4238
+ e.push(new L(l.x, l.y));
4239
4239
  }
4240
4240
  else
4241
4241
  for (let r = 0; r <= t; r++) {
4242
4242
  const a = n + s * (r / t), o = this._clockwise ? this._mirrorAngle(a) : a, l = this.getPointAtAngle(o);
4243
- e.push(new k(l.x, l.y));
4243
+ e.push(new L(l.x, l.y));
4244
4244
  }
4245
4245
  return e;
4246
4246
  }
@@ -4319,7 +4319,7 @@ class Be extends bs {
4319
4319
  yr.subVectors(t, this._start), Os.subVectors(this.endPoint, this.startPoint);
4320
4320
  const s = Os.dot(Os);
4321
4321
  let n = Os.dot(yr) / s;
4322
- return e && (n = N.clamp(n, 0, 1)), n;
4322
+ return e && (n = v.clamp(n, 0, 1)), n;
4323
4323
  }
4324
4324
  closestPointToPoint(t, e, s) {
4325
4325
  const n = this.closestPointToPointParameter(t, e);
@@ -4413,16 +4413,16 @@ class je extends bs {
4413
4413
  return this._startAngle;
4414
4414
  }
4415
4415
  set startAngle(t) {
4416
- this._startAngle = N.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4416
+ this._startAngle = v.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4417
4417
  }
4418
4418
  get endAngle() {
4419
4419
  return this._endAngle;
4420
4420
  }
4421
4421
  set endAngle(t) {
4422
- this._endAngle = this.startAngle == 0 && t == W ? t : N.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4422
+ this._endAngle = this.startAngle == 0 && t == W ? t : v.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4423
4423
  }
4424
4424
  get deltaAngle() {
4425
- return N.normalizeAngle(this.endAngle - this.startAngle);
4425
+ return v.normalizeAngle(this.endAngle - this.startAngle);
4426
4426
  }
4427
4427
  get isLargeArc() {
4428
4428
  return Math.abs(this.deltaAngle) > Math.PI ? 1 : 0;
@@ -4466,7 +4466,7 @@ class je extends bs {
4466
4466
  return this.startPoint.clone();
4467
4467
  a.normalize().multiplyScalar(this.radius);
4468
4468
  const o = s.clone().add(a), l = this.getAngle(o.clone()), c = this.startAngle, d = this.deltaAngle;
4469
- let u = N.normalizeAngle(l - c);
4469
+ let u = v.normalizeAngle(l - c);
4470
4470
  u < 0 && (u = 0), u > d && (u = d);
4471
4471
  const g = this.getPointAtAngle(c + u), p = g.distanceTo(e), m = this.startPoint.distanceTo(e), y = this.endPoint.distanceTo(e);
4472
4472
  return m < p && m <= y ? this.startPoint.clone() : y < p && y < m ? this.endPoint.clone() : g;
@@ -4476,7 +4476,7 @@ class je extends bs {
4476
4476
  if (d < a) return e;
4477
4477
  const u = Math.acos(a / d), g = this.getAngle(l.clone()), p = [g + u, g - u];
4478
4478
  for (const m of p) {
4479
- const y = N.normalizeAngle(m - this.startAngle);
4479
+ const y = v.normalizeAngle(m - this.startAngle);
4480
4480
  y >= 0 && y <= this.deltaAngle && e.push(this.getPointAtAngle(this.startAngle + y));
4481
4481
  }
4482
4482
  return e;
@@ -4490,7 +4490,7 @@ class je extends bs {
4490
4490
  calculateBoundingBox() {
4491
4491
  const t = [this.startAngle, this.endAngle];
4492
4492
  for (let l = 0; l < 2 * Math.PI; l += Math.PI / 2)
4493
- N.isBetweenAngle(l, this.startAngle, this.endAngle) && t.push(l);
4493
+ v.isBetweenAngle(l, this.startAngle, this.endAngle) && t.push(l);
4494
4494
  let e = 1 / 0, s = 1 / 0, n = 1 / 0, r = -1 / 0, a = -1 / 0, o = -1 / 0;
4495
4495
  for (const l of t) {
4496
4496
  const c = this.getPointAtAngle(l);
@@ -4597,13 +4597,13 @@ let ti = class Ws extends fs {
4597
4597
  return this._startAngle;
4598
4598
  }
4599
4599
  set startAngle(t) {
4600
- this._startAngle = N.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4600
+ this._startAngle = v.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4601
4601
  }
4602
4602
  get endAngle() {
4603
4603
  return this._endAngle;
4604
4604
  }
4605
4605
  set endAngle(t) {
4606
- this._endAngle = this.startAngle == 0 && t == W ? t : N.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4606
+ this._endAngle = this.startAngle == 0 && t == W ? t : v.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4607
4607
  }
4608
4608
  get clockwise() {
4609
4609
  return this._clockwise;
@@ -4618,7 +4618,7 @@ let ti = class Ws extends fs {
4618
4618
  this._rotation = t, this._boundingBoxNeedsUpdate = !0;
4619
4619
  }
4620
4620
  get deltaAngle() {
4621
- return N.normalizeAngle(this.endAngle - this.startAngle);
4621
+ return v.normalizeAngle(this.endAngle - this.startAngle);
4622
4622
  }
4623
4623
  get isLargeArc() {
4624
4624
  return Math.abs(this.deltaAngle) > Math.PI ? 1 : 0;
@@ -4647,22 +4647,22 @@ let ti = class Ws extends fs {
4647
4647
  const l = Math.cos(this.rotation), c = Math.sin(this.rotation), d = a - this.center.x, u = o - this.center.y;
4648
4648
  a = d * l - u * c + this.center.x, o = d * c + u * l + this.center.y;
4649
4649
  }
4650
- return new k(a, o);
4650
+ return new L(a, o);
4651
4651
  }
4652
4652
  transform(t) {
4653
- const e = t, s = new k(this.center).applyMatrix2d(
4653
+ const e = t, s = new L(this.center).applyMatrix2d(
4654
4654
  e
4655
4655
  ), n = new f(
4656
4656
  s.x,
4657
4657
  s.y,
4658
4658
  this.center.z
4659
- ), r = this.getPointAtAngle(0).clone().applyMatrix2d(e), a = this.getPointAtAngle(Math.PI / 2).clone().applyMatrix2d(e), o = new k(r).sub(
4659
+ ), r = this.getPointAtAngle(0).clone().applyMatrix2d(e), a = this.getPointAtAngle(Math.PI / 2).clone().applyMatrix2d(e), o = new L(r).sub(
4660
4660
  s
4661
- ), l = new k(a).sub(
4661
+ ), l = new L(a).sub(
4662
4662
  s
4663
4663
  ), c = o.length(), d = l.length(), u = Math.atan2(o.y, o.x), g = o.clone().normalize(), p = l.clone().normalize(), m = (x) => {
4664
- const E = new k(x).sub(s), I = E.dot(g), T = E.dot(p);
4665
- return N.normalizeAngle(
4664
+ const E = new L(x).sub(s), I = E.dot(g), T = E.dot(p);
4665
+ return v.normalizeAngle(
4666
4666
  Math.atan2(T / d, I / c)
4667
4667
  );
4668
4668
  }, y = e.determinant() < 0 ? !this.clockwise : this.clockwise, w = this.closed ? new Ws(
@@ -4686,7 +4686,7 @@ let ti = class Ws extends fs {
4686
4686
  }
4687
4687
  getPointAtAngle(t) {
4688
4688
  return this.getPoint(
4689
- this.closed ? t / W : N.normalizeAngle(t - this.startAngle) / this.deltaAngle
4689
+ this.closed ? t / W : v.normalizeAngle(t - this.startAngle) / this.deltaAngle
4690
4690
  );
4691
4691
  }
4692
4692
  copy(t) {
@@ -4734,17 +4734,17 @@ class ms extends bs {
4734
4734
  return this._startAngle;
4735
4735
  }
4736
4736
  set startAngle(t) {
4737
- this._startAngle = N.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4737
+ this._startAngle = v.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4738
4738
  }
4739
4739
  get endAngle() {
4740
4740
  return this._endAngle;
4741
4741
  }
4742
4742
  set endAngle(t) {
4743
- this._endAngle = this.startAngle == 0 && t == W ? t : N.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4743
+ this._endAngle = this.startAngle == 0 && t == W ? t : v.normalizeAngle(t), this._boundingBoxNeedsUpdate = !0;
4744
4744
  }
4745
4745
  get deltaAngle() {
4746
4746
  const t = this.endAngle - this.startAngle;
4747
- return Math.abs(t - W) < 1e-10 ? W : N.normalizeAngle(t);
4747
+ return Math.abs(t - W) < 1e-10 ? W : v.normalizeAngle(t);
4748
4748
  }
4749
4749
  get isLargeArc() {
4750
4750
  return Math.abs(this.deltaAngle) > Math.PI ? 1 : 0;
@@ -4804,7 +4804,7 @@ class ms extends bs {
4804
4804
  if (this.majorAxis.equals(b.X_AXIS) || this.majorAxis.equals(b.Y_AXIS) || this.majorAxis.isParallelTo(b.X_AXIS) || this.majorAxis.isParallelTo(b.Y_AXIS)) {
4805
4805
  const t = [this.startAngle, this.endAngle];
4806
4806
  for (let l = 0; l < 2 * Math.PI; l += Math.PI / 2)
4807
- N.isBetweenAngle(l, this.startAngle, this.endAngle) && t.push(l);
4807
+ v.isBetweenAngle(l, this.startAngle, this.endAngle) && t.push(l);
4808
4808
  let e = 1 / 0, s = 1 / 0, n = 1 / 0, r = -1 / 0, a = -1 / 0, o = -1 / 0;
4809
4809
  for (const l of t) {
4810
4810
  const c = this.getPointAtAngle(l);
@@ -4861,7 +4861,7 @@ class ms extends bs {
4861
4861
  g.dot(o) < 0 && (u.negate(), g = new b().crossVectors(u, d).normalize());
4862
4862
  const p = (y) => {
4863
4863
  const w = new b(y).sub(s), x = w.dot(d), E = w.dot(g);
4864
- return N.normalizeAngle(
4864
+ return v.normalizeAngle(
4865
4865
  Math.atan2(E / c, x / l)
4866
4866
  );
4867
4867
  }, m = this.closed ? new ms(
@@ -4918,7 +4918,7 @@ class se extends fs {
4918
4918
  get startPoint() {
4919
4919
  if (this.numberOfVertices > 0) {
4920
4920
  const t = this._vertices[0];
4921
- return new k(t.x, t.y);
4921
+ return new L(t.x, t.y);
4922
4922
  }
4923
4923
  throw new Error("Start point does not exist in an empty polyline.");
4924
4924
  }
@@ -4927,10 +4927,10 @@ class se extends fs {
4927
4927
  if (t > 0)
4928
4928
  if (this.closed) {
4929
4929
  const e = this._vertices[0];
4930
- return new k(e.x, e.y);
4930
+ return new L(e.x, e.y);
4931
4931
  } else {
4932
4932
  const e = this._vertices[t - 1];
4933
- return new k(e.x, e.y);
4933
+ return new L(e.x, e.y);
4934
4934
  }
4935
4935
  throw new Error("End point does not exist in an empty polyline.");
4936
4936
  }
@@ -4945,7 +4945,7 @@ class se extends fs {
4945
4945
  const a = new We(n, r, n.bulge);
4946
4946
  t += a.length;
4947
4947
  } else
4948
- t += new k(n.x, n.y).distanceTo(r);
4948
+ t += new L(n.x, n.y).distanceTo(r);
4949
4949
  }
4950
4950
  return t;
4951
4951
  }
@@ -4967,7 +4967,7 @@ class se extends fs {
4967
4967
  }
4968
4968
  getPointAt(t) {
4969
4969
  const e = this._vertices[t];
4970
- return new k(e.x, e.y);
4970
+ return new L(e.x, e.y);
4971
4971
  }
4972
4972
  calculateBoundingBox() {
4973
4973
  const t = this.getPoints(100);
@@ -4976,7 +4976,7 @@ class se extends fs {
4976
4976
  transform(t) {
4977
4977
  const e = t.determinant() < 0;
4978
4978
  return this._vertices.forEach((s) => {
4979
- const n = new k(s).applyMatrix2d(t);
4979
+ const n = new L(s).applyMatrix2d(t);
4980
4980
  s.x = n.x, s.y = n.y, e && s.bulge != null && (s.bulge = -s.bulge);
4981
4981
  }), this._boundingBoxNeedsUpdate = !0, this;
4982
4982
  }
@@ -5002,18 +5002,18 @@ class se extends fs {
5002
5002
  const o = new We(r, a, r.bulge).getPoints(t), l = o.length;
5003
5003
  for (let c = 0; c < l; ++c) {
5004
5004
  const d = o[c];
5005
- e.push(new k(d.x, d.y));
5005
+ e.push(new L(d.x, d.y));
5006
5006
  }
5007
5007
  }
5008
5008
  } else
5009
- e.push(new k(r.x, r.y)), n == s - 1 && this.closed && e.push(e[0]);
5009
+ e.push(new L(r.x, r.y)), n == s - 1 && this.closed && e.push(e[0]);
5010
5010
  }
5011
5011
  return e;
5012
5012
  }
5013
5013
  }
5014
5014
  class te extends fs {
5015
5015
  constructor(t, e) {
5016
- super(), this._start = new k(t), this._end = new k(e);
5016
+ super(), this._start = new L(t), this._end = new L(e);
5017
5017
  }
5018
5018
  get startPoint() {
5019
5019
  return this._start;
@@ -5034,10 +5034,10 @@ class te extends fs {
5034
5034
  return this.startPoint.distanceTo(this.endPoint);
5035
5035
  }
5036
5036
  calculateBoundingBox() {
5037
- const t = new k(
5037
+ const t = new L(
5038
5038
  Math.min(this._start.x, this._end.x),
5039
5039
  Math.min(this._start.y, this._end.y)
5040
- ), e = new k(
5040
+ ), e = new L(
5041
5041
  Math.max(this._start.x, this._end.x),
5042
5042
  Math.max(this._start.y, this._end.y)
5043
5043
  );
@@ -5098,7 +5098,7 @@ let ei = class kt extends fs {
5098
5098
  get startPoint() {
5099
5099
  if (this._curves.length > 0) {
5100
5100
  const t = this._curves[0].startPoint;
5101
- return new k(t.x, t.y);
5101
+ return new L(t.x, t.y);
5102
5102
  }
5103
5103
  throw new Error("Start point does not exist in an empty loop.");
5104
5104
  }
@@ -5148,7 +5148,7 @@ let ei = class kt extends fs {
5148
5148
  const e = [];
5149
5149
  return this.curves.forEach((s) => {
5150
5150
  s.getPoints(t).forEach((n) => {
5151
- e.push(new k(n.x, n.y));
5151
+ e.push(new L(n.x, n.y));
5152
5152
  });
5153
5153
  }), e;
5154
5154
  }
@@ -5164,11 +5164,11 @@ let ei = class kt extends fs {
5164
5164
  }
5165
5165
  static getEdgeStartPoint(t) {
5166
5166
  const e = t.startPoint;
5167
- return new k(e.x, e.y);
5167
+ return new L(e.x, e.y);
5168
5168
  }
5169
5169
  static getEdgeEndPoint(t) {
5170
5170
  const e = t.endPoint;
5171
- return new k(e.x, e.y);
5171
+ return new L(e.x, e.y);
5172
5172
  }
5173
5173
  static reverseEdge(t) {
5174
5174
  return t instanceof te ? new te(t.endPoint, t.startPoint) : t instanceof We ? new We(
@@ -6557,7 +6557,7 @@ const Mn = class Mn extends at {
6557
6557
  type: "float",
6558
6558
  editable: !1,
6559
6559
  accessor: {
6560
- get: () => N.radToDeg(Math.abs(this._geo.deltaAngle))
6560
+ get: () => v.radToDeg(Math.abs(this._geo.deltaAngle))
6561
6561
  }
6562
6562
  },
6563
6563
  {
@@ -8021,7 +8021,7 @@ const Cn = class Cn extends mt {
8021
8021
  }
8022
8022
  if (o instanceof ti) {
8023
8023
  t.writeInt16(72, 3), t.writePoint2d(10, o.center);
8024
- const l = new k(
8024
+ const l = new L(
8025
8025
  o.majorAxisRadius * Math.cos(o.rotation),
8026
8026
  o.majorAxisRadius * Math.sin(o.rotation)
8027
8027
  );
@@ -9389,7 +9389,7 @@ const Dn = class Dn extends mt {
9389
9389
  return "IMAGE";
9390
9390
  }
9391
9391
  constructor() {
9392
- super(), this._brightness = 50, this._contrast = 50, this._fade = 0, this._width = 0, this._height = 0, this._position = new f(), this._scale = new X(1, 1), this._rotation = 0, this._imageSize = new k(), this._clipBoundaryType = 1, this._clipBoundary = [], this._isClipped = !1, this._isShownClipped = !1, this._isImageShown = !0, this._isImageTransparent = !1, this._imageDefId = "";
9392
+ super(), this._brightness = 50, this._contrast = 50, this._fade = 0, this._width = 0, this._height = 0, this._position = new f(), this._scale = new X(1, 1), this._rotation = 0, this._imageSize = new L(), this._clipBoundaryType = 1, this._clipBoundary = [], this._isClipped = !1, this._isShownClipped = !1, this._isImageShown = !0, this._isImageTransparent = !1, this._imageDefId = "";
9393
9393
  }
9394
9394
  get brightness() {
9395
9395
  return this._brightness;
@@ -9540,7 +9540,7 @@ const Dn = class Dn extends mt {
9540
9540
  if (this.isClipped && this._clipBoundary.length > 3) {
9541
9541
  const e = this._width, s = this._height, n = new gt();
9542
9542
  n.setFromPoints(this._clipBoundary);
9543
- const r = new k();
9543
+ const r = new L();
9544
9544
  r.setX(this._position.x - n.min.x * e), r.setY(this._position.y - n.min.y * s), this._clipBoundary.forEach((a) => {
9545
9545
  const o = a.x * e + r.x, l = a.y * s + r.y;
9546
9546
  t.push(new f(o, l, this._position.z));
@@ -9580,7 +9580,7 @@ const Dn = class Dn extends mt {
9580
9580
  };
9581
9581
  Dn.typeName = "RasterImage";
9582
9582
  let ai = Dn;
9583
- const br = new k(), Cs = new k(), Hn = class Hn extends at {
9583
+ const br = new L(), Cs = new L(), Hn = class Hn extends at {
9584
9584
  get dxfTypeName() {
9585
9585
  return "RAY";
9586
9586
  }
@@ -10933,7 +10933,7 @@ const $h = {
10933
10933
  };
10934
10934
  class qh extends ce {
10935
10935
  constructor(t = !1) {
10936
- super(), this._plotSettingsName = "", this._plotCfgName = "", this._canonicalMediaName = "", this._currentStyleSheet = "", this._plotOrigin = new k(), this._customPrintScale = { numerator: 1, denominator: 1 }, this._plotPaperSize = new k(), this._plotPaperMargins = { left: 0, right: 0, top: 0, bottom: 0 }, this._plotViewName = "", this._plotWindowArea = new gt(), this._modelType = t, this._plotCentered = !1, this._plotHidden = !1, this._plotPaperUnits = 1, this._plotPlotStyles = !0, this._plotRotation = 0, this._plotType = 5, this._plotViewportBorders = !1, this._printLineweights = !0, this._scaleLineweights = !1, this._drawViewportsFirst = !1, this._showPlotStyles = !0, this._shadePlotType = 0, this._shadePlotResLevel = 2, this._shadePlotCustomDpi = 300, this._shadePlotId = void 0, this._stdScaleType = 0, this._useStandardScale = !0;
10936
+ super(), this._plotSettingsName = "", this._plotCfgName = "", this._canonicalMediaName = "", this._currentStyleSheet = "", this._plotOrigin = new L(), this._customPrintScale = { numerator: 1, denominator: 1 }, this._plotPaperSize = new L(), this._plotPaperMargins = { left: 0, right: 0, top: 0, bottom: 0 }, this._plotViewName = "", this._plotWindowArea = new gt(), this._modelType = t, this._plotCentered = !1, this._plotHidden = !1, this._plotPaperUnits = 1, this._plotPlotStyles = !0, this._plotRotation = 0, this._plotType = 5, this._plotViewportBorders = !1, this._printLineweights = !0, this._scaleLineweights = !1, this._drawViewportsFirst = !1, this._showPlotStyles = !0, this._shadePlotType = 0, this._shadePlotResLevel = 2, this._shadePlotCustomDpi = 300, this._shadePlotId = void 0, this._stdScaleType = 0, this._useStandardScale = !0;
10937
10937
  }
10938
10938
  get plotSettingsName() {
10939
10939
  return this._plotSettingsName;
@@ -12478,7 +12478,7 @@ class gl extends de {
12478
12478
  }
12479
12479
  }
12480
12480
  const ml = () => ({
12481
- center: new k(),
12481
+ center: new L(),
12482
12482
  viewDirectionFromTarget: new f(0, 0, 1),
12483
12483
  viewTarget: new f(0, 0, 0),
12484
12484
  lensLength: 500,
@@ -12652,7 +12652,7 @@ class ya extends Fe {
12652
12652
  }
12653
12653
  class _a extends ya {
12654
12654
  constructor() {
12655
- super(), this._circleSides = 100, this._lowerLeftCorner = new k(0, 0), this._upperRightCorner = new k(1, 1), this._snapBase = new k(0, 0), this._snapAngle = 0, this._snapSpacing = new k(0, 0), this._standardFlag = 0, this._gridSpacing = new k(), this._gridMajor = 10;
12655
+ super(), this._circleSides = 100, this._lowerLeftCorner = new L(0, 0), this._upperRightCorner = new L(1, 1), this._snapBase = new L(0, 0), this._snapAngle = 0, this._snapSpacing = new L(0, 0), this._standardFlag = 0, this._gridSpacing = new L(), this._gridMajor = 10;
12656
12656
  }
12657
12657
  get circleSides() {
12658
12658
  return this._circleSides;
@@ -13840,7 +13840,7 @@ class gu extends ya {
13840
13840
  return super.dxfOutFields(t), t.writeSubclassMarker("AcDbViewTableRecord"), t.writeString(2, this.name), t.writeInt16(70, this.standardFlags), t.writeDouble(40, this.gsView.viewHeight), t.writePoint2d(10, this.centerPoint), t.writeDouble(41, this.viewWidth), t.writePoint3d(11, this.gsView.viewDirectionFromTarget), t.writePoint3d(12, this.gsView.viewTarget), t.writeDouble(42, this.gsView.lensLength), t.writeDouble(43, this.gsView.frontClippingPlane), t.writeDouble(44, this.gsView.backClippingPlane), t.writeAngle(50, this.gsView.viewTwistAngle), t.writeInt16(71, this.gsView.viewMode), t.writeInt16(281, this.gsView.renderMode), t.writeInt16(72, this.ucsAssociated ? 1 : 0), t.writeInt16(73, this.cameraPlottable ? 1 : 0), t.writeObjectId(332, this.backgroundObjectId), t.writeObjectId(334, this.liveSectionObjectId), t.writeObjectId(348, this.gsView.visualStyleObjectId), this.ucsAssociated && (t.writePoint3d(110, this.gsView.ucsOrigin), t.writePoint3d(111, this.gsView.ucsXAxis), t.writePoint3d(112, this.gsView.ucsYAxis), t.writeInt16(79, this.gsView.orthographicType), t.writeDouble(146, this.ucsElevation), t.writeObjectId(345, this.ucsObjectId), t.writeObjectId(346, this.ucsBaseObjectId)), this;
13841
13841
  }
13842
13842
  }
13843
- var Q, Ue, U, $, Xe, At, ye, Ft, ot, Rt, Tt, _e, we, xe, _t, zt, Ye, $e, fe, be, qe, Ke, Ze, wt, Vt, D, Ie, Qe, v, ht, Je, lt, ts, jt, j, es, Wt, Pe, Mi, Ai, vt, ss, Ee, xt, Gt, Dt, Ht, is, ns, Ut, Se, Me, Ti, rs, Ae, Xt, Te, J, Yt, ft, vi, tt, ki, $t, bt, ve, as, ke, It, qt, Pt, Kt, Li, Le, Et;
13843
+ var Q, Ue, U, $, Xe, At, ye, Ft, ot, Rt, Tt, _e, we, xe, _t, zt, Ye, $e, fe, be, qe, Ke, Ze, wt, Vt, D, Ie, Qe, k, ht, Je, lt, ts, jt, j, es, Wt, Pe, Mi, Ai, vt, ss, Ee, xt, Gt, Dt, Ht, is, ns, Ut, Se, Me, Ti, rs, Ae, Xt, Te, J, Yt, ft, vi, tt, ki, $t, bt, ve, as, ke, It, qt, Pt, Kt, Li, Le, Et;
13844
13844
  (Q = {})[Q.None = 0] = "None", Q[Q.Anonymous = 1] = "Anonymous", Q[Q.NonConstant = 2] = "NonConstant", Q[Q.Xref = 4] = "Xref", Q[Q.XrefOverlay = 8] = "XrefOverlay", Q[Q.ExternallyDependent = 16] = "ExternallyDependent", Q[Q.ResolvedOrDependent = 32] = "ResolvedOrDependent", Q[Q.ReferencedXref = 64] = "ReferencedXref";
13845
13845
  (Ue = {})[Ue.BYBLOCK = 0] = "BYBLOCK", Ue[Ue.BYLAYER = 256] = "BYLAYER";
13846
13846
  (U = {})[U.Rotated = 0] = "Rotated", U[U.Aligned = 1] = "Aligned", U[U.Angular = 2] = "Angular", U[U.Diameter = 3] = "Diameter", U[U.Radius = 4] = "Radius", U[U.Angular3Point = 5] = "Angular3Point", U[U.Ordinate = 6] = "Ordinate", U[U.ReferenceIsExclusive = 32] = "ReferenceIsExclusive", U[U.IsOrdinateXTypeFlag = 64] = "IsOrdinateXTypeFlag", U[U.IsCustomTextPositionFlag = 128] = "IsCustomTextPositionFlag";
@@ -13865,7 +13865,7 @@ var Pl = ((wt = {})[wt.Default = 0] = "Default", wt[wt.External = 1] = "External
13865
13865
  El.Off;
13866
13866
  (Ie = {})[Ie.Standard = -3] = "Standard", Ie[Ie.ByLayer = -2] = "ByLayer", Ie[Ie.ByBlock = -1] = "ByBlock";
13867
13867
  (Qe = {})[Qe.English = 0] = "English", Qe[Qe.Metric = 1] = "Metric";
13868
- (v = {})[v.PERSPECTIVE_MODE = 1] = "PERSPECTIVE_MODE", v[v.FRONT_CLIPPING = 2] = "FRONT_CLIPPING", v[v.BACK_CLIPPING = 4] = "BACK_CLIPPING", v[v.UCS_FOLLOW = 8] = "UCS_FOLLOW", v[v.FRONT_CLIP_NOT_AT_EYE = 16] = "FRONT_CLIP_NOT_AT_EYE", v[v.UCS_ICON_VISIBILITY = 32] = "UCS_ICON_VISIBILITY", v[v.UCS_ICON_AT_ORIGIN = 64] = "UCS_ICON_AT_ORIGIN", v[v.FAST_ZOOM = 128] = "FAST_ZOOM", v[v.SNAP_MODE = 256] = "SNAP_MODE", v[v.GRID_MODE = 512] = "GRID_MODE", v[v.ISOMETRIC_SNAP_STYLE = 1024] = "ISOMETRIC_SNAP_STYLE", v[v.HIDE_PLOT_MODE = 2048] = "HIDE_PLOT_MODE", v[v.K_ISO_PAIR_TOP = 4096] = "K_ISO_PAIR_TOP", v[v.K_ISO_PAIR_RIGHT = 8192] = "K_ISO_PAIR_RIGHT", v[v.VIEWPORT_ZOOM_LOCKING = 16384] = "VIEWPORT_ZOOM_LOCKING", v[v.UNUSED = 32768] = "UNUSED", v[v.NON_RECTANGULAR_CLIPPING = 65536] = "NON_RECTANGULAR_CLIPPING", v[v.VIEWPORT_OFF = 131072] = "VIEWPORT_OFF", v[v.GRID_BEYOND_DRAWING_LIMITS = 262144] = "GRID_BEYOND_DRAWING_LIMITS", v[v.ADAPTIVE_GRID_DISPLAY = 524288] = "ADAPTIVE_GRID_DISPLAY", v[v.SUBDIVISION_BELOW_SPACING = 1048576] = "SUBDIVISION_BELOW_SPACING", v[v.GRID_FOLLOWS_WORKPLANE = 2097152] = "GRID_FOLLOWS_WORKPLANE";
13868
+ (k = {})[k.PERSPECTIVE_MODE = 1] = "PERSPECTIVE_MODE", k[k.FRONT_CLIPPING = 2] = "FRONT_CLIPPING", k[k.BACK_CLIPPING = 4] = "BACK_CLIPPING", k[k.UCS_FOLLOW = 8] = "UCS_FOLLOW", k[k.FRONT_CLIP_NOT_AT_EYE = 16] = "FRONT_CLIP_NOT_AT_EYE", k[k.UCS_ICON_VISIBILITY = 32] = "UCS_ICON_VISIBILITY", k[k.UCS_ICON_AT_ORIGIN = 64] = "UCS_ICON_AT_ORIGIN", k[k.FAST_ZOOM = 128] = "FAST_ZOOM", k[k.SNAP_MODE = 256] = "SNAP_MODE", k[k.GRID_MODE = 512] = "GRID_MODE", k[k.ISOMETRIC_SNAP_STYLE = 1024] = "ISOMETRIC_SNAP_STYLE", k[k.HIDE_PLOT_MODE = 2048] = "HIDE_PLOT_MODE", k[k.K_ISO_PAIR_TOP = 4096] = "K_ISO_PAIR_TOP", k[k.K_ISO_PAIR_RIGHT = 8192] = "K_ISO_PAIR_RIGHT", k[k.VIEWPORT_ZOOM_LOCKING = 16384] = "VIEWPORT_ZOOM_LOCKING", k[k.UNUSED = 32768] = "UNUSED", k[k.NON_RECTANGULAR_CLIPPING = 65536] = "NON_RECTANGULAR_CLIPPING", k[k.VIEWPORT_OFF = 131072] = "VIEWPORT_OFF", k[k.GRID_BEYOND_DRAWING_LIMITS = 262144] = "GRID_BEYOND_DRAWING_LIMITS", k[k.ADAPTIVE_GRID_DISPLAY = 524288] = "ADAPTIVE_GRID_DISPLAY", k[k.SUBDIVISION_BELOW_SPACING = 1048576] = "SUBDIVISION_BELOW_SPACING", k[k.GRID_FOLLOWS_WORKPLANE = 2097152] = "GRID_FOLLOWS_WORKPLANE";
13869
13869
  (ht = {})[ht.OPTIMIZED_2D = 0] = "OPTIMIZED_2D", ht[ht.WIREFRAME = 1] = "WIREFRAME", ht[ht.HIDDEN_LINE = 2] = "HIDDEN_LINE", ht[ht.FLAT_SHADED = 3] = "FLAT_SHADED", ht[ht.GOURAUD_SHADED = 4] = "GOURAUD_SHADED", ht[ht.FLAT_SHADED_WITH_WIREFRAME = 5] = "FLAT_SHADED_WITH_WIREFRAME", ht[ht.GOURAUD_SHADED_WITH_WIREFRAME = 6] = "GOURAUD_SHADED_WITH_WIREFRAME";
13870
13870
  (Je = {})[Je.UCS_UNCHANGED = 0] = "UCS_UNCHANGED", Je[Je.HAS_OWN_UCS = 1] = "HAS_OWN_UCS";
13871
13871
  (lt = {})[lt.NON_ORTHOGRAPHIC = 0] = "NON_ORTHOGRAPHIC", lt[lt.TOP = 1] = "TOP", lt[lt.BOTTOM = 2] = "BOTTOM", lt[lt.FRONT = 3] = "FRONT", lt[lt.BACK = 4] = "BACK", lt[lt.LEFT = 5] = "LEFT", lt[lt.RIGHT = 6] = "RIGHT";
@@ -13942,13 +13942,13 @@ function h({ value: i }) {
13942
13942
  function _(i, t) {
13943
13943
  return le(t);
13944
13944
  }
13945
- function L({ value: i }) {
13945
+ function N({ value: i }) {
13946
13946
  return !!i;
13947
13947
  }
13948
13948
  function Ml({ value: i }) {
13949
13949
  return i.trim();
13950
13950
  }
13951
- let Al = [{ code: 281, name: "isEntity", parser: L }, { code: 280, name: "wasProxy", parser: L }, { code: 91, name: "instanceCount", parser: h }, { code: 90, name: "proxyFlag", parser: h }, { code: 3, name: "appName", parser: h }, { code: 2, name: "cppClassName", parser: h }, { code: 1, name: "name", parser: h }], Tl = P(Al), vl = [{ code: 0, name: "classes", isMultiple: !0, parser(i, t) {
13951
+ let Al = [{ code: 281, name: "isEntity", parser: N }, { code: 280, name: "wasProxy", parser: N }, { code: 91, name: "instanceCount", parser: h }, { code: 90, name: "proxyFlag", parser: h }, { code: 3, name: "appName", parser: h }, { code: 2, name: "cppClassName", parser: h }, { code: 1, name: "name", parser: h }], Tl = P(Al), vl = [{ code: 0, name: "classes", isMultiple: !0, parser(i, t) {
13952
13952
  if (i.value !== "CLASS") return Is;
13953
13953
  i = t.next();
13954
13954
  let e = {};
@@ -13990,7 +13990,7 @@ function fa(i, t) {
13990
13990
  return t.rewind(), e;
13991
13991
  }
13992
13992
  (Wt = {})[Wt.CAST_AND_RECEIVE = 0] = "CAST_AND_RECEIVE", Wt[Wt.CAST = 1] = "CAST", Wt[Wt.RECEIVE = 2] = "RECEIVE", Wt[Wt.IGNORE = 3] = "IGNORE";
13993
- let R = [...Ll, { code: 284, name: "shadowMode", parser: h }, { code: 390, name: "plotStyleHardId", parser: h }, { code: 380, name: "plotStyleType", parser: h }, { code: 440, name: "transparency", parser: h }, { code: 430, name: "colorName", parser: h }, { code: 420, name: "color", parser: h }, { code: 310, name: "proxyEntity", isMultiple: !0, isReducible: !0, parser: (i, t, e) => (e.proxyEntity ?? "") + i.value }, { code: [92, 160], name: "proxyByte", parser: h }, { code: 60, name: "isVisible", parser: L }, { code: 48, name: "lineTypeScale", parser: h }, { code: 370, name: "lineweight", parser: h }, { code: 62, name: "colorIndex", parser: h }, { code: 347, name: "materialObjectHardId", parser: h }, { code: 6, name: "lineType", parser: h }, { code: 8, name: "layer", parser: h }, { code: 410, name: "layoutTabName", parser: h }, { code: 67, name: "isInPaperSpace", parser: L }, { code: 100 }, { code: 330, name: "ownerBlockRecordSoftId", parser: h }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 5, name: "handle", parser: h }];
13993
+ let R = [...Ll, { code: 284, name: "shadowMode", parser: h }, { code: 390, name: "plotStyleHardId", parser: h }, { code: 380, name: "plotStyleType", parser: h }, { code: 440, name: "transparency", parser: h }, { code: 430, name: "colorName", parser: h }, { code: 420, name: "color", parser: h }, { code: 310, name: "proxyEntity", isMultiple: !0, isReducible: !0, parser: (i, t, e) => (e.proxyEntity ?? "") + i.value }, { code: [92, 160], name: "proxyByte", parser: h }, { code: 60, name: "isVisible", parser: N }, { code: 48, name: "lineTypeScale", parser: h }, { code: 370, name: "lineweight", parser: h }, { code: 62, name: "colorIndex", parser: h }, { code: 347, name: "materialObjectHardId", parser: h }, { code: 6, name: "lineType", parser: h }, { code: 8, name: "layer", parser: h }, { code: 410, name: "layoutTabName", parser: h }, { code: 67, name: "isInPaperSpace", parser: N }, { code: 100 }, { code: 330, name: "ownerBlockRecordSoftId", parser: h }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 5, name: "handle", parser: h }];
13994
13994
  function wi(i) {
13995
13995
  return [{ code: 3, name: i, parser: (t, e, s) => (s._code3text = (s._code3text ?? "") + t.value, s._code3text + (s._code1text ?? "")), isMultiple: !0, isReducible: !0 }, { code: 1, name: i, parser: (t, e, s) => (s._code1text = t.value, (s._code3text ?? "") + s._code1text) }];
13996
13996
  }
@@ -14035,7 +14035,7 @@ class Xs {
14035
14035
  }
14036
14036
  }
14037
14037
  (Mi = "ForEntityName") in Xs ? Object.defineProperty(Xs, Mi, { value: "DIMENSION", enumerable: !0, configurable: !0, writable: !0 }) : Xs[Mi] = "DIMENSION";
14038
- let jl = [{ code: 73 }, { code: 17, name: "leaderEnd", parser: _ }, { code: 16, name: "leaderStart", parser: _ }, { code: 71, name: "hasLeader", parser: L }, { code: 41, name: "endAngle", parser: h }, { code: 40, name: "startAngle", parser: h }, { code: 70, name: "isPartial", parser: L }, { code: 15, name: "centerPoint", parser: _ }, { code: 14, name: "xline2Point", parser: _ }, { code: 13, name: "xline1Point", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ..._n.map((i) => ({ ...i, parser: h })), ...Pa, ...R];
14038
+ let jl = [{ code: 73 }, { code: 17, name: "leaderEnd", parser: _ }, { code: 16, name: "leaderStart", parser: _ }, { code: 71, name: "hasLeader", parser: N }, { code: 41, name: "endAngle", parser: h }, { code: 40, name: "startAngle", parser: h }, { code: 70, name: "isPartial", parser: N }, { code: 15, name: "centerPoint", parser: _ }, { code: 14, name: "xline2Point", parser: _ }, { code: 13, name: "xline1Point", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ..._n.map((i) => ({ ...i, parser: h })), ...Pa, ...R];
14039
14039
  class Ys {
14040
14040
  parseEntity(t, e) {
14041
14041
  let s = {};
@@ -14064,7 +14064,7 @@ function Ta(i, t, e) {
14064
14064
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14065
14065
  }
14066
14066
  Ea(Aa, "ForEntityName", "TEXT");
14067
- let Dl = { ...Sa }, Hl = [{ code: 2 }, { code: 40, name: "annotationScale", parser: h }, { code: 10, name: "alignmentPoint", parser: _ }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: h }, { code: 70, name: "numberOfSecondaryAttributes", parser: h }, { code: 70, name: "isReallyLocked", parser: L }, { code: 70, name: "mtextFlag", parser: h }, { code: 280, name: "isDuplicatedRecord", parser: L }, { code: 100 }, { code: 280, name: "isLocked", parser: L }, { code: 74, name: "valign", parser: h }, { code: 73 }, { code: 70, name: "attributeFlag", parser: h }, { code: 2, name: "tag", parser: h }, { code: 3, name: "prompt", parser: h }, { code: 280 }, { code: 100, name: "subclassMarker", parser: h }, ...Ma.slice(2)];
14067
+ let Dl = { ...Sa }, Hl = [{ code: 2 }, { code: 40, name: "annotationScale", parser: h }, { code: 10, name: "alignmentPoint", parser: _ }, { code: 340, name: "secondaryAttributesHardIds", isMultiple: !0, parser: h }, { code: 70, name: "numberOfSecondaryAttributes", parser: h }, { code: 70, name: "isReallyLocked", parser: N }, { code: 70, name: "mtextFlag", parser: h }, { code: 280, name: "isDuplicatedRecord", parser: N }, { code: 100 }, { code: 280, name: "isLocked", parser: N }, { code: 74, name: "valign", parser: h }, { code: 73 }, { code: 70, name: "attributeFlag", parser: h }, { code: 2, name: "tag", parser: h }, { code: 3, name: "prompt", parser: h }, { code: 280 }, { code: 100, name: "subclassMarker", parser: h }, ...Ma.slice(2)];
14068
14068
  class va {
14069
14069
  parseEntity(t, e) {
14070
14070
  let s = {};
@@ -14187,7 +14187,7 @@ function Na(i, t, e) {
14187
14187
  ka(La, "ForEntityName", "MTEXT");
14188
14188
  let Zl = { thickness: 0, rotation: 0, scale: 1, obliqueAngle: 0, textStyle: "STANDARD", textGenerationFlag: 0, horizontalJustification: 0, verticalJustification: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, Ql = [...$s.slice($s.findIndex(({ name: i }) => i === "columnType"), $s.findIndex(({ name: i }) => i === "subclassMarker") + 1), { code: 100 }, { code: 0, parser(i) {
14189
14189
  if (!O(i, 0, "MTEXT")) return Is;
14190
- } }, { code: 2, name: "definitionTag", parser: h }, { code: 40, name: "annotationScale", parser: h }, { code: 10, name: "alignmentPoint", parser: _ }, { code: 340, name: "secondaryAttributesHardId", parser: h }, { code: 70, name: "numberOfSecondaryAttributes", parser: h }, { code: 70, name: "isReallyLocked", parser: L }, { code: 70, name: "mtextFlag", parser: h }, { code: 280, name: "isDuplicatedEntriesKeep", parser: L }, { code: 100 }, { code: 280, name: "lockPositionFlag", parser: L }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 11, name: "alignmentPoint", parser: _ }, { code: 74, name: "verticalJustification", parser: h }, { code: 72, name: "horizontalJustification", parser: h }, { code: 71, name: "textGenerationFlag", parser: h }, { code: 7, name: "textStyle", parser: h }, { code: 51, name: "obliqueAngle", parser: h }, { code: 41, name: "scale", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 73 }, { code: 70, name: "attributeFlag", parser: h }, { code: 2, name: "tag", parser: h }, { code: 280 }, { code: 100, name: "subclassMarker", parser: h }, { code: 1, name: "text", parser: h }, { code: 40, name: "textHeight", parser: h }, { code: 10, name: "startPoint", parser: _ }, { code: 39, name: "thickness", parser: h }, { code: 100 }, ...R];
14190
+ } }, { code: 2, name: "definitionTag", parser: h }, { code: 40, name: "annotationScale", parser: h }, { code: 10, name: "alignmentPoint", parser: _ }, { code: 340, name: "secondaryAttributesHardId", parser: h }, { code: 70, name: "numberOfSecondaryAttributes", parser: h }, { code: 70, name: "isReallyLocked", parser: N }, { code: 70, name: "mtextFlag", parser: h }, { code: 280, name: "isDuplicatedEntriesKeep", parser: N }, { code: 100 }, { code: 280, name: "lockPositionFlag", parser: N }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 11, name: "alignmentPoint", parser: _ }, { code: 74, name: "verticalJustification", parser: h }, { code: 72, name: "horizontalJustification", parser: h }, { code: 71, name: "textGenerationFlag", parser: h }, { code: 7, name: "textStyle", parser: h }, { code: 51, name: "obliqueAngle", parser: h }, { code: 41, name: "scale", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 73 }, { code: 70, name: "attributeFlag", parser: h }, { code: 2, name: "tag", parser: h }, { code: 280 }, { code: 100, name: "subclassMarker", parser: h }, { code: 1, name: "text", parser: h }, { code: 40, name: "textHeight", parser: h }, { code: 10, name: "startPoint", parser: _ }, { code: 39, name: "thickness", parser: h }, { code: 100 }, ...R];
14191
14191
  class Oa {
14192
14192
  parseEntity(t, e) {
14193
14193
  let s = {};
@@ -14255,17 +14255,17 @@ class Wa {
14255
14255
  }
14256
14256
  ja(Wa, "ForEntityName", "3DFACE");
14257
14257
  (Dt = {})[Dt.First = 1] = "First", Dt[Dt.Second = 2] = "Second", Dt[Dt.Third = 4] = "Third", Dt[Dt.Fourth = 8] = "Fourth";
14258
- let Ga = [{ code: 330, name: "sourceBoundaryObjects", parser: h, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: h }], rc = [{ code: 11, name: "end", parser: _ }, { code: 10, name: "start", parser: _ }], ac = [{ code: 73, name: "isCCW", parser: L }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "radius", parser: h }, { code: 10, name: "center", parser: _ }], oc = [{ code: 73, name: "isCCW", parser: L }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "lengthOfMinorAxis", parser: h }, { code: 11, name: "end", parser: _ }, { code: 10, name: "center", parser: _ }], hc = [{ code: 13, name: "endTangent", parser: _ }, { code: 12, name: "startTangent", parser: _ }, { code: 11, name: "fitDatum", isMultiple: !0, parser: _ }, { code: 97, name: "numberOfFitData", parser: h }, { code: 10, name: "controlPoints", isMultiple: !0, parser(i, t) {
14258
+ let Ga = [{ code: 330, name: "sourceBoundaryObjects", parser: h, isMultiple: !0 }, { code: 97, name: "numberOfSourceBoundaryObjects", parser: h }], rc = [{ code: 11, name: "end", parser: _ }, { code: 10, name: "start", parser: _ }], ac = [{ code: 73, name: "isCCW", parser: N }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "radius", parser: h }, { code: 10, name: "center", parser: _ }], oc = [{ code: 73, name: "isCCW", parser: N }, { code: 51, name: "endAngle", parser: h }, { code: 50, name: "startAngle", parser: h }, { code: 40, name: "lengthOfMinorAxis", parser: h }, { code: 11, name: "end", parser: _ }, { code: 10, name: "center", parser: _ }], hc = [{ code: 13, name: "endTangent", parser: _ }, { code: 12, name: "startTangent", parser: _ }, { code: 11, name: "fitDatum", isMultiple: !0, parser: _ }, { code: 97, name: "numberOfFitData", parser: h }, { code: 10, name: "controlPoints", isMultiple: !0, parser(i, t) {
14259
14259
  let e = { ...le(t), weight: 1 };
14260
14260
  return (i = t.next()).code === 42 ? e.weight = i.value : t.rewind(), e;
14261
- } }, { code: 40, name: "knots", isMultiple: !0, parser: h }, { code: 96, name: "numberOfControlPoints", parser: h }, { code: 95, name: "numberOfKnots", parser: h }, { code: 74, name: "isPeriodic", parser: L }, { code: 73, name: "splineFlag", parser: h }, { code: 94, name: "degree", parser: h }], lc = { [Bs.Line]: rc, [Bs.Circular]: ac, [Bs.Elliptic]: oc, [Bs.Spline]: hc }, cc = [...Ga, { code: 72, name: "edges", parser(i, t) {
14261
+ } }, { code: 40, name: "knots", isMultiple: !0, parser: h }, { code: 96, name: "numberOfControlPoints", parser: h }, { code: 95, name: "numberOfKnots", parser: h }, { code: 74, name: "isPeriodic", parser: N }, { code: 73, name: "splineFlag", parser: h }, { code: 94, name: "degree", parser: h }], lc = { [Bs.Line]: rc, [Bs.Circular]: ac, [Bs.Elliptic]: oc, [Bs.Spline]: hc }, cc = [...Ga, { code: 72, name: "edges", parser(i, t) {
14262
14262
  let e = { type: i.value }, s = P(lc[e.type]);
14263
14263
  if (!s) throw Error(`Invalid edge type ${e.type}`);
14264
14264
  return s(i = t.next(), t, e), e;
14265
14265
  }, isMultiple: !0 }, { code: 93, name: "numberOfEdges", parser: h }], dc = [...Ga, { code: 10, name: "vertices", parser(i, t) {
14266
14266
  let e = { ...le(t), bulge: 0 };
14267
14267
  return (i = t.next()).code === 42 ? e.bulge = i.value : t.rewind(), e;
14268
- }, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: h }, { code: 73, name: "isClosed", parser: L }, { code: 72, name: "hasBulge", parser: L }];
14268
+ }, isMultiple: !0 }, { code: 93, name: "numberOfVertices", parser: h }, { code: 73, name: "isClosed", parser: N }, { code: 72, name: "hasBulge", parser: N }];
14269
14269
  function uc(i, t) {
14270
14270
  let e = { boundaryPathTypeFlag: i.value }, s = e.boundaryPathTypeFlag & Pl.Polyline;
14271
14271
  return i = t.next(), s ? P(dc)(i, t, e) : P(cc)(i, t, e), e;
@@ -14282,7 +14282,7 @@ function gc(i, t) {
14282
14282
  function Da(i, t, e) {
14283
14283
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14284
14284
  }
14285
- let mc = { extrusionDirection: { x: 0, y: 0, z: 1 }, gradientRotation: 0, colorTint: 0 }, yc = [{ code: 470 }, { code: 463 }, { code: 462, name: "colorTint", parser: h }, { code: 461, name: "gradientDefinition", parser: h }, { code: 460, name: "gradientRotation", parser: h }, { code: 453, name: "numberOfColors", parser: h }, { code: 452, name: "gradientColorFlag", parser: h }, { code: 451 }, { code: 450, name: "gradientFlag", parser: h }, { code: 10, name: "seedPoints", parser: _, isMultiple: !0 }, { code: 99 }, { code: 11, name: "offsetVector", parser: _ }, { code: 98, name: "numberOfSeedPoints", parser: h }, { code: 47, name: "pixelSize", parser: h }, { code: 53, name: "definitionLines", parser: gc, isMultiple: !0 }, { code: 78, name: "numberOfDefinitionLines", parser: h }, { code: 77, name: "isDouble", parser: L }, { code: 73, name: "isAnnotated", parser: L }, { code: 41, name: "patternScale", parser: h }, { code: 52, name: "patternAngle", parser: h }, { code: 76, name: "patternType", parser: h }, { code: 75, name: "hatchStyle", parser: h }, { code: 92, name: "boundaryPaths", parser: uc, isMultiple: !0 }, { code: 91, name: "numberOfBoundaryPaths", parser: h }, { code: 71, name: "associativity", parser: h }, { code: 63, name: "patternFillColor", parser: h }, { code: 70, name: "solidFill", parser: h }, { code: 2, name: "patternName", parser: h }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 10, name: "elevationPoint", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...R];
14285
+ let mc = { extrusionDirection: { x: 0, y: 0, z: 1 }, gradientRotation: 0, colorTint: 0 }, yc = [{ code: 470 }, { code: 463 }, { code: 462, name: "colorTint", parser: h }, { code: 461, name: "gradientDefinition", parser: h }, { code: 460, name: "gradientRotation", parser: h }, { code: 453, name: "numberOfColors", parser: h }, { code: 452, name: "gradientColorFlag", parser: h }, { code: 451 }, { code: 450, name: "gradientFlag", parser: h }, { code: 10, name: "seedPoints", parser: _, isMultiple: !0 }, { code: 99 }, { code: 11, name: "offsetVector", parser: _ }, { code: 98, name: "numberOfSeedPoints", parser: h }, { code: 47, name: "pixelSize", parser: h }, { code: 53, name: "definitionLines", parser: gc, isMultiple: !0 }, { code: 78, name: "numberOfDefinitionLines", parser: h }, { code: 77, name: "isDouble", parser: N }, { code: 73, name: "isAnnotated", parser: N }, { code: 41, name: "patternScale", parser: h }, { code: 52, name: "patternAngle", parser: h }, { code: 76, name: "patternType", parser: h }, { code: 75, name: "hatchStyle", parser: h }, { code: 92, name: "boundaryPaths", parser: uc, isMultiple: !0 }, { code: 91, name: "numberOfBoundaryPaths", parser: h }, { code: 71, name: "associativity", parser: h }, { code: 63, name: "patternFillColor", parser: h }, { code: 70, name: "solidFill", parser: h }, { code: 2, name: "patternName", parser: h }, { code: 210, name: "extrusionDirection", parser: _ }, { code: 10, name: "elevationPoint", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...R];
14286
14286
  class Ha {
14287
14287
  parseEntity(t, e) {
14288
14288
  let s = {};
@@ -14296,7 +14296,7 @@ function Ua(i, t, e) {
14296
14296
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14297
14297
  }
14298
14298
  Da(Ha, "ForEntityName", "HATCH");
14299
- let _c = { brightness: 50, contrast: 50, fade: 0, clippingBoundaryPath: [] }, wc = [{ code: 290, name: "clipMode", parser: h }, { code: 14, name: "clippingBoundaryPath", isMultiple: !0, parser: _ }, { code: 91, name: "countBoundaryPoints", parser: h }, { code: 71, name: "clippingBoundaryType", parser: h }, { code: 360, name: "imageDefReactorHandle", parser: h }, { code: 283, name: "fade", parser: h }, { code: 282, name: "contrast", parser: h }, { code: 281, name: "brightness", parser: h }, { code: 280, name: "isClipped", parser: L }, { code: 70, name: "flags", parser: h }, { code: 340, name: "imageDefHandle", parser: h }, { code: 13, name: "imageSize", parser: _ }, { code: 12, name: "vPixel", parser: _ }, { code: 11, name: "uPixel", parser: _ }, { code: 10, name: "position", parser: _ }, { code: 90, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14299
+ let _c = { brightness: 50, contrast: 50, fade: 0, clippingBoundaryPath: [] }, wc = [{ code: 290, name: "clipMode", parser: h }, { code: 14, name: "clippingBoundaryPath", isMultiple: !0, parser: _ }, { code: 91, name: "countBoundaryPoints", parser: h }, { code: 71, name: "clippingBoundaryType", parser: h }, { code: 360, name: "imageDefReactorHandle", parser: h }, { code: 283, name: "fade", parser: h }, { code: 282, name: "contrast", parser: h }, { code: 281, name: "brightness", parser: h }, { code: 280, name: "isClipped", parser: N }, { code: 70, name: "flags", parser: h }, { code: 340, name: "imageDefHandle", parser: h }, { code: 13, name: "imageSize", parser: _ }, { code: 12, name: "vPixel", parser: _ }, { code: 11, name: "uPixel", parser: _ }, { code: 10, name: "position", parser: _ }, { code: 90, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14300
14300
  class Xa {
14301
14301
  parseEntity(t, e) {
14302
14302
  let s = {};
@@ -14313,7 +14313,7 @@ Ua(Xa, "ForEntityName", "IMAGE");
14313
14313
  function Ya(i, t, e) {
14314
14314
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14315
14315
  }
14316
- let xc = { xScale: 1, yScale: 1, zScale: 1, rotation: 0, columnCount: 0, rowCount: 0, columnSpacing: 0, rowSpacing: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, fc = [{ code: 210, name: "extrusionDirection", parser: _ }, { code: 45, name: "rowSpacing", parser: h }, { code: 44, name: "columnSpacing", parser: h }, { code: 71, name: "rowCount", parser: h }, { code: 70, name: "columnCount", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 43, name: "zScale", parser: h }, { code: 42, name: "yScale", parser: h }, { code: 41, name: "xScale", parser: h }, { code: 10, name: "insertionPoint", parser: _ }, { code: 2, name: "name", parser: h }, { code: 66, name: "isVariableAttributes", parser: L }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14316
+ let xc = { xScale: 1, yScale: 1, zScale: 1, rotation: 0, columnCount: 0, rowCount: 0, columnSpacing: 0, rowSpacing: 0, extrusionDirection: { x: 0, y: 0, z: 1 } }, fc = [{ code: 210, name: "extrusionDirection", parser: _ }, { code: 45, name: "rowSpacing", parser: h }, { code: 44, name: "columnSpacing", parser: h }, { code: 71, name: "rowCount", parser: h }, { code: 70, name: "columnCount", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 43, name: "zScale", parser: h }, { code: 42, name: "yScale", parser: h }, { code: 41, name: "xScale", parser: h }, { code: 10, name: "insertionPoint", parser: _ }, { code: 2, name: "name", parser: h }, { code: 66, name: "isVariableAttributes", parser: N }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14317
14317
  class $a {
14318
14318
  parseEntity(t, e) {
14319
14319
  let s = {};
@@ -14327,7 +14327,7 @@ function qa(i, t, e) {
14327
14327
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14328
14328
  }
14329
14329
  Ya($a, "ForEntityName", "INSERT");
14330
- let bc = { isArrowheadEnabled: !0 }, Ic = [{ code: 213, name: "offsetFromAnnotation", parser: _ }, { code: 212, name: "offsetFromBlock", parser: _ }, { code: 211, name: "horizontalDirection", parser: _ }, { code: 210, name: "normal", parser: _ }, { code: 340, name: "associatedAnnotation", parser: h }, { code: 77, name: "byBlockColor", parser: h }, { code: 10, name: "vertices", parser: _, isMultiple: !0 }, { code: 76, name: "numberOfVertices", parser: h }, { code: 41, name: "textWidth", parser: h }, { code: 40, name: "textHeight", parser: h }, { code: 75, name: "isHooklineExists", parser: L }, { code: 74, name: "isHooklineSameDirection", parser: L }, { code: 73, name: "leaderCreationFlag", parser: h }, { code: 72, name: "isSpline", parser: L }, { code: 71, name: "isArrowheadEnabled", parser: L }, { code: 3, name: "styleName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14330
+ let bc = { isArrowheadEnabled: !0 }, Ic = [{ code: 213, name: "offsetFromAnnotation", parser: _ }, { code: 212, name: "offsetFromBlock", parser: _ }, { code: 211, name: "horizontalDirection", parser: _ }, { code: 210, name: "normal", parser: _ }, { code: 340, name: "associatedAnnotation", parser: h }, { code: 77, name: "byBlockColor", parser: h }, { code: 10, name: "vertices", parser: _, isMultiple: !0 }, { code: 76, name: "numberOfVertices", parser: h }, { code: 41, name: "textWidth", parser: h }, { code: 40, name: "textHeight", parser: h }, { code: 75, name: "isHooklineExists", parser: N }, { code: 74, name: "isHooklineSameDirection", parser: N }, { code: 73, name: "leaderCreationFlag", parser: h }, { code: 72, name: "isSpline", parser: N }, { code: 71, name: "isArrowheadEnabled", parser: N }, { code: 3, name: "styleName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14331
14331
  class Ka {
14332
14332
  parseEntity(t, e) {
14333
14333
  let s = {};
@@ -14356,7 +14356,7 @@ function Ja(i, t, e) {
14356
14356
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14357
14357
  }
14358
14358
  Za(Qa, "ForEntityName", "LINE");
14359
- let Sc = [{ code: 280, name: "shadowMapSoftness", parser: h }, { code: 91, name: "shadowMapSize", parser: h }, { code: 73, name: "shadowType", parser: h }, { code: 293, name: "isShadowCast", parser: L }, { code: 51, name: "falloffAngle", parser: h }, { code: 50, name: "hotspotAngle", parser: h }, { code: 42, name: "limitEnd", parser: h }, { code: 41, name: "limitStart", parser: h }, { code: 292, name: "isAttenuationLimited", parser: L }, { code: 72, name: "attenuationType", parser: h }, { code: 11, name: "target", parser: _ }, { code: 10, name: "position", parser: _ }, { code: 40, name: "intensity", parser: h }, { code: 291, name: "isPlotGlyph", parser: L }, { code: 290, name: "isOn", parser: L }, { code: 421, name: "lightColorInstance", parser: h }, { code: 63, name: "lightColorIndex", parser: h }, { code: 70, name: "lightType", parser: h }, { code: 1, name: "name", parser: h }, { code: 90, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14359
+ let Sc = [{ code: 280, name: "shadowMapSoftness", parser: h }, { code: 91, name: "shadowMapSize", parser: h }, { code: 73, name: "shadowType", parser: h }, { code: 293, name: "isShadowCast", parser: N }, { code: 51, name: "falloffAngle", parser: h }, { code: 50, name: "hotspotAngle", parser: h }, { code: 42, name: "limitEnd", parser: h }, { code: 41, name: "limitStart", parser: h }, { code: 292, name: "isAttenuationLimited", parser: N }, { code: 72, name: "attenuationType", parser: h }, { code: 11, name: "target", parser: _ }, { code: 10, name: "position", parser: _ }, { code: 40, name: "intensity", parser: h }, { code: 291, name: "isPlotGlyph", parser: N }, { code: 290, name: "isOn", parser: N }, { code: 421, name: "lightColorInstance", parser: h }, { code: 63, name: "lightColorIndex", parser: h }, { code: 70, name: "lightType", parser: h }, { code: 1, name: "name", parser: h }, { code: 90, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14360
14360
  class to {
14361
14361
  parseEntity(t, e) {
14362
14362
  let s = {};
@@ -14400,7 +14400,7 @@ let kc = [{ code: 90, name: "overridenSubEntityCount", parser: h }, { code: 140,
14400
14400
  for (let o = 0; o < r; ++o) a.push(s[n++]);
14401
14401
  e.faceIndices.push(a);
14402
14402
  }
14403
- } }, { code: 10, name: "vertices", parser: _, isMultiple: !0 }, { code: 92, name: "verticesCount", parser: h }, { code: 91, name: "subdivisionLevel", parser: h }, { code: 40, name: "blendCrease", parser: h }, { code: 72, name: "isBlendCreased", parser: L }, { code: 71, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: Ml, pushContext: !0 }, ...R];
14403
+ } }, { code: 10, name: "vertices", parser: _, isMultiple: !0 }, { code: 92, name: "verticesCount", parser: h }, { code: 91, name: "subdivisionLevel", parser: h }, { code: 40, name: "blendCrease", parser: h }, { code: 72, name: "isBlendCreased", parser: N }, { code: 71, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: Ml, pushContext: !0 }, ...R];
14404
14404
  class so {
14405
14405
  parseEntity(t, e) {
14406
14406
  let s = {};
@@ -14437,7 +14437,7 @@ io(no, "ForEntityName", "MLINE");
14437
14437
  function ro(i, t, e) {
14438
14438
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14439
14439
  }
14440
- let Cc = {}, Bc = [{ code: 170, name: "multileaderType", parser: h }, { code: 291, name: "doglegEnabled", parser: L }, { code: 40, name: "doglegLength", parser: h }, { code: 172, name: "contentType", parser: h }, { code: 3, name: "textContent", parser: h }, { code: 12, name: "textAnchor", parser: _ }, { code: 344, name: "blockHandle", parser: h }, { code: 15, name: "blockPosition", parser: _ }, { code: 302, name: "leaderSections", parser: function(i, t, e) {
14440
+ let Cc = {}, Bc = [{ code: 170, name: "multileaderType", parser: h }, { code: 291, name: "doglegEnabled", parser: N }, { code: 40, name: "doglegLength", parser: h }, { code: 172, name: "contentType", parser: h }, { code: 3, name: "textContent", parser: h }, { code: 12, name: "textAnchor", parser: _ }, { code: 344, name: "blockHandle", parser: h }, { code: 15, name: "blockPosition", parser: _ }, { code: 302, name: "leaderSections", parser: function(i, t, e) {
14441
14441
  let s, n = { leaderLines: [] };
14442
14442
  for (; t.hasNext() && (s = t.next()).code !== 303; ) switch (s.code) {
14443
14443
  case 10:
@@ -14600,7 +14600,7 @@ Po(Eo, "ForEntityName", "SPLINE");
14600
14600
  function So(i, t, e) {
14601
14601
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14602
14602
  }
14603
- let Zc = [{ code: 280, name: "shadowMapSoftness", parser: h }, { code: 71, name: "shadowMapSize", parser: h }, { code: 70, name: "shadowType", parser: h }, { code: 292, name: "isSummerTime", parser: L }, { code: 92, name: "time", parser: h }, { code: 91, name: "julianDay", parser: h }, { code: 291, name: "hasShadow", parser: L }, { code: 40, name: "intensity", parser: h }, { code: 421, name: "lightColorInstance", parser: h }, { code: 63, name: "lightColorIndex", parser: h }, { code: 290, name: "isOn", parser: L }, { code: 90, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...R.filter((i) => i.code !== 100)];
14603
+ let Zc = [{ code: 280, name: "shadowMapSoftness", parser: h }, { code: 71, name: "shadowMapSize", parser: h }, { code: 70, name: "shadowType", parser: h }, { code: 292, name: "isSummerTime", parser: N }, { code: 92, name: "time", parser: h }, { code: 91, name: "julianDay", parser: h }, { code: 291, name: "hasShadow", parser: N }, { code: 40, name: "intensity", parser: h }, { code: 421, name: "lightColorInstance", parser: h }, { code: 63, name: "lightColorIndex", parser: h }, { code: 290, name: "isOn", parser: N }, { code: 90, name: "version", parser: h }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...R.filter((i) => i.code !== 100)];
14604
14604
  class Mo {
14605
14605
  parseEntity(t, e) {
14606
14606
  let s = { layer: "" };
@@ -14803,7 +14803,7 @@ class To {
14803
14803
  }
14804
14804
  Ao(To, "ForEntityName", "TOLERANCE");
14805
14805
  var Jc = ((tt = {})[tt.CREATED_BY_CURVE_FIT = 1] = "CREATED_BY_CURVE_FIT", tt[tt.TANGENT_DEFINED = 2] = "TANGENT_DEFINED", tt[tt.NOT_USED = 4] = "NOT_USED", tt[tt.CREATED_BY_SPLINE_FIT = 8] = "CREATED_BY_SPLINE_FIT", tt[tt.SPLINE_CONTROL_POINT = 16] = "SPLINE_CONTROL_POINT", tt[tt.FOR_POLYLINE = 32] = "FOR_POLYLINE", tt[tt.FOR_POLYGON = 64] = "FOR_POLYGON", tt[tt.POLYFACE = 128] = "POLYFACE", tt);
14806
- let td = [{ code: [335, 343, 344, 91], name: "softPointers", isMultiple: !0, parser: h }, { code: 361, name: "sunId", parser: h }, { code: 431, name: "ambientLightColorName", parser: h }, { code: 421, name: "ambientLightColorInstance", parser: h }, { code: 63, name: "ambientLightColorIndex", parser: h }, { code: 142, name: "contrast", parser: h }, { code: 141, name: "brightness", parser: h }, { code: 282, name: "defaultLightingType", parser: h }, { code: 292, name: "isDefaultLighting", parser: L }, { code: 348, name: "visualStyleId", parser: h }, { code: 333, name: "shadePlotId", parser: h }, { code: 332, name: "backgroundId", parser: h }, { code: 61, name: "majorGridFrequency", parser: h }, { code: 170, name: "shadePlotMode", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 346, name: "ucsBaseId", parser: h }, { code: 345, name: "ucsId", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 74, name: "iconFlag", parser: h }, { code: 71, name: "ucsPerViewport", parser: h }, { code: 281, name: "renderMode", parser: h }, { code: 1, name: "sheetName", parser: h }, { code: 340, name: "clippingBoundaryId", parser: h }, { code: 90, name: "statusBitFlags", parser: h }, { code: 331, name: "frozenLayerIds", isMultiple: !0, parser: h }, { code: 72, name: "circleZoomPercent", parser: h }, { code: 51, name: "viewTwistAngle", parser: h }, { code: 50, name: "snapAngle", parser: h }, { code: 45, name: "viewHeight", parser: h }, { code: 44, name: "backClipZ", parser: h }, { code: 43, name: "frontClipZ", parser: h }, { code: 42, name: "perspectiveLensLength", parser: h }, { code: 17, name: "targetPoint", parser: _ }, { code: 16, name: "viewDirection", parser: _ }, { code: 15, name: "gridSpacing", parser: _ }, { code: 14, name: "snapSpacing", parser: _ }, { code: 13, name: "snapBase", parser: _ }, { code: 12, name: "displayCenter", parser: _ }, { code: 69, name: "viewportId", parser: h }, { code: 68, name: "status", parser: h }, { code: 41, name: "height", parser: h }, { code: 40, name: "width", parser: h }, { code: 10, name: "viewportCenter", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...R];
14806
+ let td = [{ code: [335, 343, 344, 91], name: "softPointers", isMultiple: !0, parser: h }, { code: 361, name: "sunId", parser: h }, { code: 431, name: "ambientLightColorName", parser: h }, { code: 421, name: "ambientLightColorInstance", parser: h }, { code: 63, name: "ambientLightColorIndex", parser: h }, { code: 142, name: "contrast", parser: h }, { code: 141, name: "brightness", parser: h }, { code: 282, name: "defaultLightingType", parser: h }, { code: 292, name: "isDefaultLighting", parser: N }, { code: 348, name: "visualStyleId", parser: h }, { code: 333, name: "shadePlotId", parser: h }, { code: 332, name: "backgroundId", parser: h }, { code: 61, name: "majorGridFrequency", parser: h }, { code: 170, name: "shadePlotMode", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 346, name: "ucsBaseId", parser: h }, { code: 345, name: "ucsId", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 74, name: "iconFlag", parser: h }, { code: 71, name: "ucsPerViewport", parser: h }, { code: 281, name: "renderMode", parser: h }, { code: 1, name: "sheetName", parser: h }, { code: 340, name: "clippingBoundaryId", parser: h }, { code: 90, name: "statusBitFlags", parser: h }, { code: 331, name: "frozenLayerIds", isMultiple: !0, parser: h }, { code: 72, name: "circleZoomPercent", parser: h }, { code: 51, name: "viewTwistAngle", parser: h }, { code: 50, name: "snapAngle", parser: h }, { code: 45, name: "viewHeight", parser: h }, { code: 44, name: "backClipZ", parser: h }, { code: 43, name: "frontClipZ", parser: h }, { code: 42, name: "perspectiveLensLength", parser: h }, { code: 17, name: "targetPoint", parser: _ }, { code: 16, name: "viewDirection", parser: _ }, { code: 15, name: "gridSpacing", parser: _ }, { code: 14, name: "snapSpacing", parser: _ }, { code: 13, name: "snapBase", parser: _ }, { code: 12, name: "displayCenter", parser: _ }, { code: 69, name: "viewportId", parser: h }, { code: 68, name: "status", parser: h }, { code: 41, name: "height", parser: h }, { code: 40, name: "width", parser: h }, { code: 10, name: "viewportCenter", parser: _ }, { code: 100, name: "subclassMarker", parser: h, pushContext: !0 }, ...R];
14807
14807
  class Zs {
14808
14808
  parseEntity(t, e) {
14809
14809
  let s = {};
@@ -14814,7 +14814,7 @@ function vo(i, t, e) {
14814
14814
  return t in i ? Object.defineProperty(i, t, { value: e, enumerable: !0, configurable: !0, writable: !0 }) : i[t] = e, i;
14815
14815
  }
14816
14816
  (ki = "ForEntityName") in Zs ? Object.defineProperty(Zs, ki, { value: "VIEWPORT", enumerable: !0, configurable: !0, writable: !0 }) : Zs[ki] = "VIEWPORT";
14817
- let ed = { brightness: 50, constrast: 50, fade: 0 }, sd = [{ code: 14, name: "boundary", isMultiple: !0, parser: _ }, { code: 91, name: "numberOfVertices", parser: h }, { code: 71, name: "boundaryType", parser: h }, { code: 360, name: "imageDefReactorHardId", parser: h }, { code: 283, name: "fade", parser: h }, { code: 282, name: "contrast", parser: h }, { code: 281, name: "brightness", parser: h }, { code: 280, name: "isClipping", parser: L }, { code: 70, name: "displayFlag", parser: h }, { code: 340, name: "imageDefHardId", parser: h }, { code: 13, name: "imageSize", parser: _ }, { code: 12, name: "vDirection", parser: _ }, { code: 11, name: "uDirection", parser: _ }, { code: 10, name: "position", parser: _ }, { code: 90, name: "classVersion", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14817
+ let ed = { brightness: 50, constrast: 50, fade: 0 }, sd = [{ code: 14, name: "boundary", isMultiple: !0, parser: _ }, { code: 91, name: "numberOfVertices", parser: h }, { code: 71, name: "boundaryType", parser: h }, { code: 360, name: "imageDefReactorHardId", parser: h }, { code: 283, name: "fade", parser: h }, { code: 282, name: "contrast", parser: h }, { code: 281, name: "brightness", parser: h }, { code: 280, name: "isClipping", parser: N }, { code: 70, name: "displayFlag", parser: h }, { code: 340, name: "imageDefHardId", parser: h }, { code: 13, name: "imageSize", parser: _ }, { code: 12, name: "vDirection", parser: _ }, { code: 11, name: "uDirection", parser: _ }, { code: 10, name: "position", parser: _ }, { code: 90, name: "classVersion", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...R];
14818
14818
  class ko {
14819
14819
  parseEntity(t, e) {
14820
14820
  let s = {};
@@ -14907,10 +14907,10 @@ function ad(i, t) {
14907
14907
  }
14908
14908
  let ie = [{ code: 100, name: "subclassMarker", parser: h }, { code: 330, name: "ownerObjectId", parser: h }, { code: 102, isMultiple: !0, parser(i, t) {
14909
14909
  for (; !O(i, 0, "EOF") && !O(i, 102, "}"); ) i = t.next();
14910
- } }, { code: 5, name: "handle", parser: h }], od = [{ code: 70, name: "flag", parser: h }, { code: 2, name: "appName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie], hd = P(od), ld = P([{ code: 310, name: "bmpPreview", parser: h }, { code: 281, name: "scalability", parser: h }, { code: 280, name: "explodability", parser: h }, { code: 70, name: "insertionUnits", parser: h }, { code: 340, name: "layoutObjects", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), cd = P([..._n.map((i) => ({ ...i, parser: h })), { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 105, name: "handle", parser: h }, ...ie.filter((i) => i.code !== 5)]), dd = P([{ code: 347, name: "materialObjectId", parser: h }, { code: 390, name: "plotStyleNameObjectId", parser: h }, { code: 370, name: "lineweight", parser: h }, { code: 290, name: "isPlotting", parser: L }, { code: 6, name: "lineType", parser: h }, { code: 62, name: "colorIndex", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), ud = P([{ code: 9, name: "text", parser: h }, { code: 45, name: "offsetY", parser: h }, { code: 44, name: "offsetX", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 46, name: "scale", parser: h }, { code: 340, name: "styleObjectId", parser: h }, { code: 75, name: "shapeNumber", parser: h }, { code: 74, name: "elementTypeFlag", parser: h }, { code: 49, name: "elementLength", parser: h }], { elementTypeFlag: 0, elementLength: 0 }), pd = P([{ code: 49, name: "pattern", parser(i, t) {
14910
+ } }, { code: 5, name: "handle", parser: h }], od = [{ code: 70, name: "flag", parser: h }, { code: 2, name: "appName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie], hd = P(od), ld = P([{ code: 310, name: "bmpPreview", parser: h }, { code: 281, name: "scalability", parser: h }, { code: 280, name: "explodability", parser: h }, { code: 70, name: "insertionUnits", parser: h }, { code: 340, name: "layoutObjects", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), cd = P([..._n.map((i) => ({ ...i, parser: h })), { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 105, name: "handle", parser: h }, ...ie.filter((i) => i.code !== 5)]), dd = P([{ code: 347, name: "materialObjectId", parser: h }, { code: 390, name: "plotStyleNameObjectId", parser: h }, { code: 370, name: "lineweight", parser: h }, { code: 290, name: "isPlotting", parser: N }, { code: 6, name: "lineType", parser: h }, { code: 62, name: "colorIndex", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), ud = P([{ code: 9, name: "text", parser: h }, { code: 45, name: "offsetY", parser: h }, { code: 44, name: "offsetX", parser: h }, { code: 50, name: "rotation", parser: h }, { code: 46, name: "scale", parser: h }, { code: 340, name: "styleObjectId", parser: h }, { code: 75, name: "shapeNumber", parser: h }, { code: 74, name: "elementTypeFlag", parser: h }, { code: 49, name: "elementLength", parser: h }], { elementTypeFlag: 0, elementLength: 0 }), pd = P([{ code: 49, name: "pattern", parser(i, t) {
14911
14911
  let e = {};
14912
14912
  return ud(i, t, e), e;
14913
- }, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: h }, { code: 73, name: "numberOfLineTypes", parser: h }, { code: 72, parser: h }, { code: 3, name: "description", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), gd = P([{ code: 1e3, name: "extendedFont", parser: h }, { code: 1001 }, { code: 4, name: "bigFont", parser: h }, { code: 3, name: "font", parser: h }, { code: 42, name: "lastHeight", parser: h }, { code: 71, name: "textGenerationFlag", parser: h }, { code: 50, name: "obliqueAngle", parser: h }, { code: 41, name: "widthFactor", parser: h }, { code: 40, name: "fixedTextHeight", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), md = [{ code: 13, name: "orthographicOrigin", parser: _ }, { code: 71, name: "orthographicType", parser: h }, { code: 346, name: "baseUcsHandle", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "isOrthographic", parser: L }, { code: 12, name: "yAxis", parser: _ }, { code: 11, name: "xAxis", parser: _ }, { code: 10, name: "origin", parser: _ }, { code: 70, name: "flag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie], yd = P(md), _d = [{ code: 346, name: "baseUcsId", parser: h }, { code: 345, name: "ucsId", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 361, name: "sunHardId", parser: h }, { code: 348, name: "styleHardId", parser: h }, { code: 334, name: "liveSectionSoftId", parser: h }, { code: 332, name: "backgroundSoftId", parser: h }, { code: 73, name: "isPlottable", parser: L }, { code: 72, name: "isUcsAssociated", parser: L }, { code: 281, name: "renderMode", parser: h }, { code: 71, name: "viewMode", parser: h }, { code: 50, name: "twistAngle", parser: h }, { code: 44, name: "backClippingPlane", parser: h }, { code: 43, name: "frontClippingPlane", parser: h }, { code: 42, name: "lensLength", parser: h }, { code: 12, name: "target", parser: _ }, { code: 11, name: "direction", parser: _ }, { code: 10, name: "center", parser: _ }, { code: 41, name: "width", parser: h }, { code: 40, name: "height", parser: h }, { code: 70, name: "flag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie], wd = P(_d), xd = P([{ code: [63, 421, 431], name: "ambientColor", parser: h }, { code: 142, name: "contrast", parser: h }, { code: 141, name: "brightness", parser: h }, { code: 282, name: "defaultLightingType", parser: h }, { code: 292, name: "isDefaultLightingOn", parser: L }, { code: 348, name: "visualStyleObjectId", parser: h }, { code: 333, name: "shadePlotObjectId", parser: h }, { code: 332, name: "backgroundObjectId", parser: h }, { code: 61, name: "majorGridLines", parser: h }, { code: 170, name: "shadePlotSetting", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 74, name: "ucsIconSetting", parser: h }, { code: 71, name: "viewMode", parser: h }, { code: 281, name: "renderMode", parser: h }, { code: 1, name: "styleSheet", parser: h }, { code: [331, 441], name: "frozenLayers", parser: h, isMultiple: !0 }, { code: 72, name: "circleSides", parser: h }, { code: 51, name: "viewTwistAngle", parser: h }, { code: 50, name: "snapRotationAngle", parser: h }, { code: 45, name: "viewHeight", parser: h }, { code: 44, name: "backClippingPlane", parser: h }, { code: 43, name: "frontClippingPlane", parser: h }, { code: 42, name: "lensLength", parser: h }, { code: 17, name: "viewTarget", parser: _ }, { code: 16, name: "viewDirectionFromTarget", parser: _ }, { code: 15, name: "gridSpacing", parser: _ }, { code: 14, name: "snapSpacing", parser: _ }, { code: 13, name: "snapBasePoint", parser: _ }, { code: 12, name: "center", parser: _ }, { code: 11, name: "upperRightCorner", parser: _ }, { code: 10, name: "lowerLeftCorner", parser: _ }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), fd = { APPID: hd, BLOCK_RECORD: ld, DIMSTYLE: cd, LAYER: dd, LTYPE: pd, STYLE: gd, UCS: yd, VIEW: wd, VPORT: xd }, bd = P([{ code: 70, name: "maxNumberOfEntries", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 330, name: "ownerObjectId", parser: h }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 360, isMultiple: !0 }, { code: 5, name: "handle", parser: h }, { code: 2, name: "name", parser: h }]);
14913
+ }, isMultiple: !0 }, { code: 40, name: "totalPatternLength", parser: h }, { code: 73, name: "numberOfLineTypes", parser: h }, { code: 72, parser: h }, { code: 3, name: "description", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), gd = P([{ code: 1e3, name: "extendedFont", parser: h }, { code: 1001 }, { code: 4, name: "bigFont", parser: h }, { code: 3, name: "font", parser: h }, { code: 42, name: "lastHeight", parser: h }, { code: 71, name: "textGenerationFlag", parser: h }, { code: 50, name: "obliqueAngle", parser: h }, { code: 41, name: "widthFactor", parser: h }, { code: 40, name: "fixedTextHeight", parser: h }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), md = [{ code: 13, name: "orthographicOrigin", parser: _ }, { code: 71, name: "orthographicType", parser: h }, { code: 346, name: "baseUcsHandle", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "isOrthographic", parser: N }, { code: 12, name: "yAxis", parser: _ }, { code: 11, name: "xAxis", parser: _ }, { code: 10, name: "origin", parser: _ }, { code: 70, name: "flag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie], yd = P(md), _d = [{ code: 346, name: "baseUcsId", parser: h }, { code: 345, name: "ucsId", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 361, name: "sunHardId", parser: h }, { code: 348, name: "styleHardId", parser: h }, { code: 334, name: "liveSectionSoftId", parser: h }, { code: 332, name: "backgroundSoftId", parser: h }, { code: 73, name: "isPlottable", parser: N }, { code: 72, name: "isUcsAssociated", parser: N }, { code: 281, name: "renderMode", parser: h }, { code: 71, name: "viewMode", parser: h }, { code: 50, name: "twistAngle", parser: h }, { code: 44, name: "backClippingPlane", parser: h }, { code: 43, name: "frontClippingPlane", parser: h }, { code: 42, name: "lensLength", parser: h }, { code: 12, name: "target", parser: _ }, { code: 11, name: "direction", parser: _ }, { code: 10, name: "center", parser: _ }, { code: 41, name: "width", parser: h }, { code: 40, name: "height", parser: h }, { code: 70, name: "flag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie], wd = P(_d), xd = P([{ code: [63, 421, 431], name: "ambientColor", parser: h }, { code: 142, name: "contrast", parser: h }, { code: 141, name: "brightness", parser: h }, { code: 282, name: "defaultLightingType", parser: h }, { code: 292, name: "isDefaultLightingOn", parser: N }, { code: 348, name: "visualStyleObjectId", parser: h }, { code: 333, name: "shadePlotObjectId", parser: h }, { code: 332, name: "backgroundObjectId", parser: h }, { code: 61, name: "majorGridLines", parser: h }, { code: 170, name: "shadePlotSetting", parser: h }, { code: 146, name: "elevation", parser: h }, { code: 79, name: "orthographicType", parser: h }, { code: 112, name: "ucsYAxis", parser: _ }, { code: 111, name: "ucsXAxis", parser: _ }, { code: 110, name: "ucsOrigin", parser: _ }, { code: 74, name: "ucsIconSetting", parser: h }, { code: 71, name: "viewMode", parser: h }, { code: 281, name: "renderMode", parser: h }, { code: 1, name: "styleSheet", parser: h }, { code: [331, 441], name: "frozenLayers", parser: h, isMultiple: !0 }, { code: 72, name: "circleSides", parser: h }, { code: 51, name: "viewTwistAngle", parser: h }, { code: 50, name: "snapRotationAngle", parser: h }, { code: 45, name: "viewHeight", parser: h }, { code: 44, name: "backClippingPlane", parser: h }, { code: 43, name: "frontClippingPlane", parser: h }, { code: 42, name: "lensLength", parser: h }, { code: 17, name: "viewTarget", parser: _ }, { code: 16, name: "viewDirectionFromTarget", parser: _ }, { code: 15, name: "gridSpacing", parser: _ }, { code: 14, name: "snapSpacing", parser: _ }, { code: 13, name: "snapBasePoint", parser: _ }, { code: 12, name: "center", parser: _ }, { code: 11, name: "upperRightCorner", parser: _ }, { code: 10, name: "lowerLeftCorner", parser: _ }, { code: 70, name: "standardFlag", parser: h }, { code: 2, name: "name", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...ie]), fd = { APPID: hd, BLOCK_RECORD: ld, DIMSTYLE: cd, LAYER: dd, LTYPE: pd, STYLE: gd, UCS: yd, VIEW: wd, VPORT: xd }, bd = P([{ code: 70, name: "maxNumberOfEntries", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 330, name: "ownerObjectId", parser: h }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 360, isMultiple: !0 }, { code: 5, name: "handle", parser: h }, { code: 2, name: "name", parser: h }]);
14914
14914
  function Id(i, t) {
14915
14915
  var s;
14916
14916
  let e = {};
@@ -14996,7 +14996,7 @@ function Ed(i, t) {
14996
14996
  let xn = [{ code: 330, name: "ownerObjectId", parser: h }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 102, parser: Ct }, { code: 5, name: "handle", parser: h }], Bo = [{ code: 333, name: "shadePlotId", parser: h }, { code: 149, name: "imageOriginY", parser: h }, { code: 148, name: "imageOriginX", parser: h }, { code: 147, name: "scaleFactor", parser: h }, { code: 78, name: "shadePlotCustomDPI", parser: h }, { code: 77, name: "shadePlotResolution", parser: h }, { code: 76, name: "shadePlotMode", parser: h }, { code: 75, name: "standardScaleType", parser: h }, { code: 7, name: "currentStyleSheet", parser: h }, { code: 74, name: "plotType", parser: h }, { code: 73, name: "plotRotation", parser: h }, { code: 72, name: "plotPaperUnit", parser: h }, { code: 70, name: "layoutFlag", parser: h }, { code: 143, name: "printScaleDenominator", parser: h }, { code: 142, name: "printScaleNumerator", parser: h }, { code: 141, name: "windowAreaYMax", parser: h }, { code: 140, name: "windowAreaXMax", parser: h }, { code: 49, name: "windowAreaYMin", parser: h }, { code: 48, name: "windowAreaXMin", parser: h }, { code: 47, name: "plotOriginY", parser: h }, { code: 46, name: "plotOriginX", parser: h }, { code: 45, name: "paperHeight", parser: h }, { code: 44, name: "paperWidth", parser: h }, { code: 43, name: "marginTop", parser: h }, { code: 42, name: "marginRight", parser: h }, { code: 41, name: "marginBottom", parser: h }, { code: 40, name: "marginLeft", parser: h }, { code: 6, name: "plotViewName", parser: h }, { code: 4, name: "paperSize", parser: h }, { code: 2, name: "configName", parser: h }, { code: 1, name: "pageSetupName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...xn], Sd = [{ code: 346, name: "orthographicUcsId", parser: h }, { code: 345, name: "namedUcsId", parser: h }, { code: 331, name: "viewportId", parser: h }, { code: 330, name: "paperSpaceTableId", parser: h }, { code: 76, name: "orthographicType", parser: h }, { code: 17, name: "ucsYAxis", parser: _ }, { code: 16, name: "ucsXAxis", parser: _ }, { code: 13, name: "ucsOrigin", parser: _ }, { code: 146, name: "elevation", parser: h }, { code: 15, name: "maxExtent", parser: _ }, { code: 14, name: "minExtent", parser: _ }, { code: 12, name: "insertionPoint", parser: _ }, { code: 11, name: "maxLimit", parser: _ }, { code: 10, name: "minLimit", parser: _ }, { code: 71, name: "tabOrder", parser: h }, { code: 70, name: "controlFlag", parser: h }, { code: 1, name: "layoutName", parser: h }, { code: 100, name: "subclassMarker", parser: h }, ...Bo], Md = [{ code: 3, name: "entries", parser: (i, t) => {
14997
14997
  let e = { name: i.value };
14998
14998
  return (i = t.next()).code === 350 ? e.objectSoftId = i.value : i.code === 360 ? e.objectHardId = i.value : t.rewind(), e;
14999
- }, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: h }, { code: 280, name: "isHardOwned", parser: L }, { code: 100, name: "subclassMarker", parser: h }, ...xn], Ad = [{ code: 40, name: "wcsToOCSTransform", parser: kr }, { code: 40, name: "ocsToWCSTransform", parser: kr }, { code: 41, name: "backClippingDistance", parser: h }, { code: 73, name: "isBackClipping", parser: L, pushContext: !0 }, { code: 40, name: "frontClippingDistance", parser: h }, { code: 72, name: "isFrontClipping", parser: L, pushContext: !0 }, { code: 71, name: "isClipBoundaryDisplayed", parser: L }, { code: 11, name: "position", parser: _ }, { code: 210, name: "normal", parser: _ }, { code: 10, name: "boundaryVertices", parser: _, isMultiple: !0 }, { code: 70, name: "boundaryCount", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 100 }, ...xn];
14999
+ }, isMultiple: !0 }, { code: 281, name: "recordCloneFlag", parser: h }, { code: 280, name: "isHardOwned", parser: N }, { code: 100, name: "subclassMarker", parser: h }, ...xn], Ad = [{ code: 40, name: "wcsToOCSTransform", parser: kr }, { code: 40, name: "ocsToWCSTransform", parser: kr }, { code: 41, name: "backClippingDistance", parser: h }, { code: 73, name: "isBackClipping", parser: N, pushContext: !0 }, { code: 40, name: "frontClippingDistance", parser: h }, { code: 72, name: "isFrontClipping", parser: N, pushContext: !0 }, { code: 71, name: "isClipBoundaryDisplayed", parser: N }, { code: 11, name: "position", parser: _ }, { code: 210, name: "normal", parser: _ }, { code: 10, name: "boundaryVertices", parser: _, isMultiple: !0 }, { code: 70, name: "boundaryCount", parser: h }, { code: 100, name: "subclassMarker", parser: h }, { code: 100 }, ...xn];
15000
15000
  function kr(i, t) {
15001
15001
  let e = [];
15002
15002
  for (let s = 0; s < 3 && O(i, 40); ++s) {
@@ -15159,8 +15159,8 @@ class Lr {
15159
15159
  return new Hi(
15160
15160
  t.center,
15161
15161
  t.radius,
15162
- N.degToRad(t.startAngle),
15163
- N.degToRad(t.endAngle),
15162
+ v.degToRad(t.startAngle),
15163
+ v.degToRad(t.endAngle),
15164
15164
  t.extrusionDirection ?? b.Z_AXIS
15165
15165
  );
15166
15166
  }
@@ -15270,7 +15270,7 @@ class Lr {
15270
15270
  return e.closed = !!(t.flag & 1), t.vertices.forEach((s, n) => {
15271
15271
  e.addVertexAt(
15272
15272
  n,
15273
- new k(s.x, s.y),
15273
+ new L(s.x, s.y),
15274
15274
  s.bulge,
15275
15275
  s.startWidth,
15276
15276
  s.endWidth
@@ -15282,12 +15282,12 @@ class Lr {
15282
15282
  const e = new si();
15283
15283
  return (n = t.definitionLines) == null || n.forEach((r) => {
15284
15284
  e.definitionLines.push({
15285
- angle: r.angle,
15285
+ angle: v.degToRad(r.angle || 0),
15286
15286
  base: r.base,
15287
15287
  offset: r.offset,
15288
15288
  dashLengths: r.numberOfDashLengths > 0 ? r.dashLengths : []
15289
15289
  });
15290
- }), e.isSolidFill = t.solidFill == Il.SolidFill, e.hatchStyle = t.hatchStyle, e.patternName = t.patternName, e.patternType = t.patternType, e.patternAngle = t.patternAngle == null ? 0 : t.patternAngle, e.patternScale = t.patternScale == null ? 0 : t.patternScale, t.boundaryPaths.forEach((r) => {
15290
+ }), e.isSolidFill = t.solidFill == Il.SolidFill, e.hatchStyle = t.hatchStyle, e.patternName = t.patternName, e.patternType = t.patternType, e.patternAngle = t.patternAngle == null ? 0 : v.degToRad(t.patternAngle), e.patternScale = t.patternScale == null ? 0 : t.patternScale, t.boundaryPaths.forEach((r) => {
15291
15291
  if (r.boundaryPathTypeFlag & 2) {
15292
15292
  const o = r, l = new se();
15293
15293
  l.closed = o.isClosed, o.vertices.forEach((c, d) => {
@@ -15309,8 +15309,8 @@ class Lr {
15309
15309
  new We(
15310
15310
  u.center,
15311
15311
  u.radius,
15312
- N.degToRad(u.startAngle || 0),
15313
- N.degToRad(u.endAngle || 0),
15312
+ v.degToRad(u.startAngle || 0),
15313
+ v.degToRad(u.endAngle || 0),
15314
15314
  !u.isCCW
15315
15315
  )
15316
15316
  );
@@ -15320,7 +15320,7 @@ class Lr {
15320
15320
  const p = Math.sqrt(
15321
15321
  Math.pow(u.end.x, 2) + Math.pow(u.end.y, 2)
15322
15322
  ), m = p * u.lengthOfMinorAxis;
15323
- let y = N.degToRad(u.startAngle || 0), w = N.degToRad(u.endAngle || 0);
15323
+ let y = v.degToRad(u.startAngle || 0), w = v.degToRad(u.endAngle || 0);
15324
15324
  const x = Math.atan2(u.end.y, u.end.x);
15325
15325
  u.isCCW || (y = Math.PI * 2 - y, w = Math.PI * 2 - w), l.push(
15326
15326
  new ti(
@@ -15383,11 +15383,11 @@ class Lr {
15383
15383
  }
15384
15384
  convertText(t) {
15385
15385
  const e = new _s();
15386
- return e.textString = t.text, e.styleName = t.styleName, e.height = t.textHeight, e.position.copy(t.startPoint), e.rotation = N.degToRad(t.rotation || 0), e.oblique = t.obliqueAngle ?? 0, e.thickness = t.thickness, e.horizontalMode = t.halign, e.verticalMode = t.valign, e.widthFactor = t.xScale ?? 1, e;
15386
+ return e.textString = t.text, e.styleName = t.styleName, e.height = t.textHeight, e.position.copy(t.startPoint), e.rotation = v.degToRad(t.rotation || 0), e.oblique = t.obliqueAngle ?? 0, e.thickness = t.thickness, e.horizontalMode = t.halign, e.verticalMode = t.valign, e.widthFactor = t.xScale ?? 1, e;
15387
15387
  }
15388
15388
  convertMText(t) {
15389
15389
  const e = new ni();
15390
- return e.contents = t.text, t.styleName != null && (e.styleName = t.styleName), e.height = t.height, e.width = t.width, e.rotation = N.degToRad(t.rotation || 0), e.location = t.insertionPoint, e.attachmentPoint = t.attachmentPoint, t.direction && (e.direction = new b(t.direction)), e.drawingDirection = t.drawingDirection, e;
15390
+ return e.contents = t.text, t.styleName != null && (e.styleName = t.styleName), e.height = t.height, e.width = t.width, e.rotation = v.degToRad(t.rotation || 0), e.location = t.insertionPoint, e.attachmentPoint = t.attachmentPoint, t.direction && (e.direction = new b(t.direction)), e.drawingDirection = t.drawingDirection, e;
15391
15391
  }
15392
15392
  convertLeader(t) {
15393
15393
  const e = new Ki();
@@ -15402,7 +15402,7 @@ class Lr {
15402
15402
  e.subDefinitionPoint2,
15403
15403
  e.definitionPoint
15404
15404
  );
15405
- return e.insertionPoint && (s.dimBlockPosition = { ...e.insertionPoint, z: 0 }), s.rotation = N.degToRad(e.rotationAngle || 0), this.processDimensionCommonAttrs(t, s), s;
15405
+ return e.insertionPoint && (s.dimBlockPosition = { ...e.insertionPoint, z: 0 }), s.rotation = v.degToRad(e.rotationAngle || 0), this.processDimensionCommonAttrs(t, s), s;
15406
15406
  } else if (t.subclassMarker == "AcDb3PointAngularDimension") {
15407
15407
  const e = t, s = new hn(
15408
15408
  e.centerPoint,
@@ -15436,7 +15436,7 @@ class Lr {
15436
15436
  }
15437
15437
  processImage(t, e) {
15438
15438
  e.position.copy(t.position), e.brightness = t.brightness, e.contrast = t.contrast, e.fade = t.fade, e.imageSize.copy(t.imageSize), e.isShownClipped = (t.flags | 4) > 0, e.isImageShown = (t.flags | 3) > 0, e.isImageTransparent = (t.flags | 8) > 0, e.imageDefId = t.imageDefHandle, e.isClipped = t.isClipped, t.clippingBoundaryPath.forEach((s) => {
15439
- e.clipBoundary.push(new k(s));
15439
+ e.clipBoundary.push(new L(s));
15440
15440
  }), e.width = Math.sqrt(
15441
15441
  t.uPixel.x ** 2 + t.uPixel.y ** 2 + t.uPixel.z ** 2
15442
15442
  ) * t.imageSize.x, e.height = Math.sqrt(
@@ -15449,7 +15449,7 @@ class Lr {
15449
15449
  }
15450
15450
  processWipeout(t, e) {
15451
15451
  e.position.copy(t.position), e.brightness = t.brightness, e.contrast = t.contrast, e.fade = t.fade, e.imageSize.copy(t.imageSize), e.isShownClipped = (t.displayFlag | 4) > 0, e.isImageShown = (t.displayFlag | 3) > 0, e.isImageTransparent = (t.displayFlag | 8) > 0, e.imageDefId = t.imageDefHardId, e.isClipped = t.isClipping, t.boundary.forEach((s) => {
15452
- e.clipBoundary.push(new k(s));
15452
+ e.clipBoundary.push(new L(s));
15453
15453
  }), e.clipBoundaryType = t.boundaryType, e.width = Math.sqrt(
15454
15454
  t.uDirection.x ** 2 + t.uDirection.y ** 2 + t.uDirection.z ** 2
15455
15455
  ) * t.imageSize.x, e.height = Math.sqrt(
@@ -15474,7 +15474,7 @@ class Lr {
15474
15474
  }
15475
15475
  convertBlockReference(t) {
15476
15476
  const e = new ws(t.name);
15477
- return t.insertionPoint && e.position.copy(t.insertionPoint), e.scaleFactors.x = t.xScale || 1, e.scaleFactors.y = t.yScale || 1, e.scaleFactors.z = t.zScale || 1, e.rotation = t.rotation != null ? N.degToRad(t.rotation) : 0, e.normal.copy(
15477
+ return t.insertionPoint && e.position.copy(t.insertionPoint), e.scaleFactors.x = t.xScale || 1, e.scaleFactors.y = t.yScale || 1, e.scaleFactors.z = t.zScale || 1, e.rotation = t.rotation != null ? v.degToRad(t.rotation) : 0, e.normal.copy(
15478
15478
  t.extrusionDirection ?? { x: 0, y: 0, z: 1 }
15479
15479
  ), e;
15480
15480
  }
@@ -16290,12 +16290,12 @@ export {
16290
16290
  te as AcGeLine2d,
16291
16291
  Be as AcGeLine3d,
16292
16292
  ei as AcGeLoop2d,
16293
- N as AcGeMathUtil,
16293
+ v as AcGeMathUtil,
16294
16294
  pi as AcGeMatrix2d,
16295
16295
  st as AcGeMatrix3d,
16296
16296
  Nt as AcGeNurbsCurve,
16297
16297
  mi as AcGePlane,
16298
- k as AcGePoint2d,
16298
+ L as AcGePoint2d,
16299
16299
  f as AcGePoint3d,
16300
16300
  se as AcGePolyline2d,
16301
16301
  He as AcGeQuaternion,