zyf-model-engine 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.mjs CHANGED
@@ -1,9 +1,9 @@
1
1
  var Rl = Object.defineProperty;
2
2
  var Ol = (o, e, i) => e in o ? Rl(o, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : o[e] = i;
3
3
  var S = (o, e, i) => (Ol(o, typeof e != "symbol" ? e + "" : e, i), i);
4
- import { ref as ce, render as Lo, h as Ei, defineComponent as He, openBlock as ie, createBlock as Re, unref as K, withCtx as Oe, createElementVNode as oe, normalizeStyle as pt, toDisplayString as Ms, watchEffect as Dl, createElementBlock as be, toRefs as Ft, onBeforeMount as Bl, normalizeClass as Rs, onMounted as bt, onUnmounted as Vi, createVNode as Te, createCommentVNode as ut, useSlots as Pl, renderSlot as ii, resolveDynamicComponent as Nl, computed as Wr, nextTick as oi, mergeProps as os, Fragment as nt, renderList as vt, onBeforeUnmount as an, withDirectives as Hi, vShow as Xr, createTextVNode as Zr, isRef as Si, watch as Yr, resolveDirective as Fl } from "vue";
4
+ import { ref as ue, render as Lo, h as Ei, defineComponent as ze, openBlock as ie, createBlock as Re, unref as K, withCtx as Oe, createElementVNode as oe, normalizeStyle as pt, toDisplayString as Ms, watchEffect as Dl, createElementBlock as xe, toRefs as Ft, onBeforeMount as Bl, normalizeClass as Rs, onMounted as bt, onUnmounted as Vi, createVNode as Te, createCommentVNode as ut, useSlots as Pl, renderSlot as ii, resolveDynamicComponent as Nl, computed as Wr, nextTick as oi, mergeProps as os, Fragment as nt, renderList as vt, onBeforeUnmount as an, withDirectives as zi, vShow as Xr, createTextVNode as Zr, isRef as Si, watch as Yr, resolveDirective as Fl } from "vue";
5
5
  import * as _e from "three";
6
- import { Quaternion as yt, Vector3 as U, EventDispatcher as zi, Vector2 as Le, Spherical as Ul, Raycaster as cs, MathUtils as ks, Loader as ko, LoaderUtils as zs, FileLoader as Mo, MeshBasicMaterial as Ve, Color as At, MeshStandardMaterial as Vt, TangentSpaceNormalMap as Gl, Interpolant as Io, ImageBitmapLoader as Vl, TextureLoader as Hl, InterleavedBuffer as zl, InterleavedBufferAttribute as jl, BufferAttribute as $t, RGBFormat as Wl, LinearFilter as Ao, LinearMipmapLinearFilter as _o, RepeatWrapping as ri, PointsMaterial as Xl, Material as Ro, LineBasicMaterial as Pt, DoubleSide as Kr, sRGBEncoding as Ot, PropertyBinding as Zl, BufferGeometry as Fe, SkinnedMesh as Yl, Mesh as Y, LineSegments as rs, Line as as, LineLoop as Kl, Points as ql, Group as ns, PerspectiveCamera as Ti, OrthographicCamera as Is, InterpolateLinear as Oo, AnimationClip as Ql, Bone as Jl, Object3D as sn, Matrix4 as nn, SpotLight as qr, PointLight as Qr, DirectionalLight as ji, MeshPhysicalMaterial as Do, NearestFilter as $l, NearestMipmapNearestFilter as e1, LinearMipmapNearestFilter as t1, NearestMipmapLinearFilter as s1, ClampToEdgeWrapping as n1, MirroredRepeatWrapping as i1, InterpolateDiscrete as o1, FrontSide as r1, CanvasTexture as Et, TriangleFanDrawMode as Bo, TriangleStripDrawMode as a1, VectorKeyframeTrack as l1, QuaternionKeyframeTrack as c1, NumberKeyframeTrack as h1, Skeleton as u1, Box3 as $e, Sphere as p1, PlaneBufferGeometry as d1, Float32BufferAttribute as Jr, RingBufferGeometry as f1, AmbientLight as m1, EdgesGeometry as Fs, SpriteMaterial as Wi, Sprite as Os, Shape as g1, ExtrudeGeometry as y1, Plane as Xe, Euler as v1, CylinderGeometry as tt, BoxGeometry as Ke, OctahedronGeometry as bn, SphereGeometry as b1, TorusGeometry as js, PlaneGeometry as x1, Scene as Po, Clock as C1, WebGLRenderer as w1, MOUSE as No, Cache as E1, Matrix3 as vs } from "three";
6
+ import { Quaternion as yt, Vector3 as U, EventDispatcher as Hi, Vector2 as Le, Spherical as Ul, Raycaster as cs, MathUtils as ks, Loader as ko, LoaderUtils as Hs, FileLoader as Mo, MeshBasicMaterial as Ve, Color as At, MeshStandardMaterial as Vt, TangentSpaceNormalMap as Gl, Interpolant as Io, ImageBitmapLoader as Vl, TextureLoader as zl, InterleavedBuffer as Hl, InterleavedBufferAttribute as jl, BufferAttribute as $t, RGBFormat as Wl, LinearFilter as Ao, LinearMipmapLinearFilter as _o, RepeatWrapping as ri, PointsMaterial as Xl, Material as Ro, LineBasicMaterial as Pt, DoubleSide as Kr, sRGBEncoding as Ot, PropertyBinding as Zl, BufferGeometry as Fe, SkinnedMesh as Yl, Mesh as Y, LineSegments as rs, Line as as, LineLoop as Kl, Points as ql, Group as ns, PerspectiveCamera as Ti, OrthographicCamera as Is, InterpolateLinear as Oo, AnimationClip as Ql, Bone as Jl, Object3D as sn, Matrix4 as nn, SpotLight as qr, PointLight as Qr, DirectionalLight as ji, MeshPhysicalMaterial as Do, NearestFilter as $l, NearestMipmapNearestFilter as e1, LinearMipmapNearestFilter as t1, NearestMipmapLinearFilter as s1, ClampToEdgeWrapping as n1, MirroredRepeatWrapping as i1, InterpolateDiscrete as o1, FrontSide as r1, CanvasTexture as Et, TriangleFanDrawMode as Bo, TriangleStripDrawMode as a1, VectorKeyframeTrack as l1, QuaternionKeyframeTrack as c1, NumberKeyframeTrack as h1, Skeleton as u1, Box3 as $e, Sphere as p1, PlaneBufferGeometry as d1, Float32BufferAttribute as Jr, RingBufferGeometry as f1, AmbientLight as m1, EdgesGeometry as Fs, SpriteMaterial as Wi, Sprite as Os, Shape as g1, ExtrudeGeometry as y1, Plane as Xe, Euler as v1, CylinderGeometry as tt, BoxGeometry as Ke, OctahedronGeometry as bn, SphereGeometry as b1, TorusGeometry as js, PlaneGeometry as x1, Scene as Po, Clock as C1, WebGLRenderer as w1, MOUSE as No, Cache as E1, Matrix3 as vs } from "three";
7
7
  import { OrbitControls as S1 } from "three/examples/jsm/controls/OrbitControls.js";
8
8
  import We from "@tweenjs/tween.js";
9
9
  import { CSS2DObject as $r } from "three/examples/jsm/renderers/CSS2DRenderer.js";
@@ -202,7 +202,7 @@ let Nn = function(o, e) {
202
202
  let p = c(this, this.mousemove), u = c(this, this.mousedown), d = c(this, this.mouseup), f = c(this, this.mouseout), g = c(this, this.keydown), m = c(this, this.keyup), v = c(this, this.dolly);
203
203
  this.domElement.addEventListener("contextmenu", h, !1), this.domElement.addEventListener("mousemove", p, !1), this.domElement.addEventListener("mousedown", u, !1), this.domElement.addEventListener("mouseup", d, !1), this.domElement.addEventListener("mouseout", f, !1), this.domElement.addEventListener("wheel", v, !1), window.addEventListener("keydown", g, !1), window.addEventListener("keyup", m, !1), this.updateMovementVector(), this.updateRotationVector();
204
204
  };
205
- Nn.prototype = Object.create(zi.prototype);
205
+ Nn.prototype = Object.create(Hi.prototype);
206
206
  Nn.prototype.constructor = Nn;
207
207
  let Fn = function(o, e, i) {
208
208
  i === void 0 && (console.warn('THREE.FirstPersonControls: The second parameter "domElement" is now mandatory.'), i = document), this.object = o, this.domElement = i, this.camera = e, this.enabled = !0, this.target = new U(), this.movementSpeed = 1, this.lookSpeed = 1, this.lookVertical = !0, this.activeLook = !0, this.enableZoom = !0, this.autoForward = !1, this.heightSpeed = !1, this.heightCoef = 1, this.heightMin = 0, this.heightMax = 1, this.constrainVertical = !1, this.verticalMin = 0, this.verticalMax = Math.PI, this.mouseDragOn = !1, this.autoSpeedFactor = 0, this.mouseX = 0, this.mouseY = 0, this.moveForward = !1, this.moveBackward = !1, this.moveLeft = !1, this.moveRight = !1, this.viewHalfX = 0, this.viewHalfY = 0, this.rotate = !1, this.start = new Le(), this.end = new Le(), this.delta = new Le(), this.radius = 1, this.lat = 90, this.lon = 0, this.zoomMax = 50, this.zoomMin = 10, this.zoomspeed = 1, this.meshs = [];
@@ -283,24 +283,24 @@ let Fn = function(o, e, i) {
283
283
  }
284
284
  c = !0;
285
285
  }
286
- }, this.lookAt = function(k, G, j) {
287
- return k.isVector3 ? l.copy(k) : l.set(k, G, j), this.object.lookAt(l), _(this), this;
286
+ }, this.lookAt = function(k, G, W) {
287
+ return k.isVector3 ? l.copy(k) : l.set(k, G, W), this.object.lookAt(l), _(this), this;
288
288
  }, this.update = function() {
289
289
  let k = new U(), G = new U();
290
- return function(z) {
290
+ return function(H) {
291
291
  if (this.enabled === !1)
292
292
  return;
293
- let H = z * this.movementSpeed;
293
+ let V = H * this.movementSpeed;
294
294
  const $ = this.object.position.y;
295
- this.moveForward && this.object.translateZ(H), this.moveBackward && this.object.translateZ(-H), this.moveLeft && this.object.translateX(H), this.moveRight && this.object.translateX(-H), this.object.position.y = $, this.moveUp && this.object.translateY(H), this.moveDown && this.object.translateY(-H), c && f();
295
+ this.moveForward && this.object.translateZ(V), this.moveBackward && this.object.translateZ(-V), this.moveLeft && this.object.translateX(V), this.moveRight && this.object.translateX(-V), this.object.position.y = $, this.moveUp && this.object.translateY(V), this.moveDown && this.object.translateY(-V), c && f();
296
296
  let J = 1;
297
297
  this.constrainVertical && (J = Math.PI / (this.verticalMax - this.verticalMin)), this.lon += this.delta.x * this.lookSpeed, this.lookVertical && (this.lat += J * this.delta.y * this.lookSpeed), this.lat = Math.max(-85, Math.min(85, this.lat));
298
- let ge = ks.degToRad(90 - this.lat), ue = ks.degToRad(this.lon);
299
- this.constrainVertical && (ge = ks.mapLinear(ge, 0, Math.PI, this.verticalMin, this.verticalMax));
300
- let Ce = this.object.position;
301
- k.setFromSphericalCoords(this.radius, ge, ue).add(Ce), G.setFromSphericalCoords(this.radius, 1.5707963267948966, ue).add(Ce), this.target.copy(k), this.object.lookAt(G);
302
- const W = new U().subVectors(Ce, k);
303
- W.setLength(1.5), W.add(Ce), this.camera.position.copy(W), this.camera.lookAt(Ce), this.camera.updateProjectionMatrix(), this.delta.set(0, 0), this.dispatchEvent({ type: "change" });
298
+ let ye = ks.degToRad(90 - this.lat), ae = ks.degToRad(this.lon);
299
+ this.constrainVertical && (ye = ks.mapLinear(ye, 0, Math.PI, this.verticalMin, this.verticalMax));
300
+ let be = this.object.position;
301
+ k.setFromSphericalCoords(this.radius, ye, ae).add(be), G.setFromSphericalCoords(this.radius, 1.5707963267948966, ae).add(be), this.target.copy(k), this.object.lookAt(G);
302
+ const j = new U().subVectors(be, k);
303
+ j.setLength(1.5), j.add(be), this.camera.position.copy(j), this.camera.lookAt(be), this.camera.updateProjectionMatrix(), this.delta.set(0, 0), this.dispatchEvent({ type: "change" });
304
304
  };
305
305
  }();
306
306
  function g(k) {
@@ -313,9 +313,9 @@ let Fn = function(o, e, i) {
313
313
  this.dispose = function() {
314
314
  this.domElement.removeEventListener("contextmenu", g, !1), this.domElement.removeEventListener("mousedown", y, !1), this.domElement.removeEventListener("mousemove", v, !1), this.domElement.removeEventListener("mouseup", b, !1), window.removeEventListener("keydown", E, !1), window.removeEventListener("keyup", M, !1);
315
315
  };
316
- let v = B(this, this.onMouseMove), y = B(this, this.onMouseDown), b = B(this, this.onMouseUp), E = B(this, this.onKeyDown), M = B(this, this.onKeyUp), R = B(this, this.onmouseOut), P = B(this, this.onMouseWheel);
317
- this.domElement.addEventListener("contextmenu", g, !1), this.domElement.addEventListener("mousemove", v, !1), this.domElement.addEventListener("mousedown", y, !1), this.domElement.addEventListener("mouseup", b, !1), this.domElement.addEventListener("mouseout", R, !1), this.domElement.addEventListener("wheel", P, !1), window.addEventListener("keydown", E, !1), window.addEventListener("keyup", M, !1);
318
- function B(k, G) {
316
+ let v = P(this, this.onMouseMove), y = P(this, this.onMouseDown), b = P(this, this.onMouseUp), E = P(this, this.onKeyDown), M = P(this, this.onKeyUp), R = P(this, this.onmouseOut), B = P(this, this.onMouseWheel);
317
+ this.domElement.addEventListener("contextmenu", g, !1), this.domElement.addEventListener("mousemove", v, !1), this.domElement.addEventListener("mousedown", y, !1), this.domElement.addEventListener("mouseup", b, !1), this.domElement.addEventListener("mouseout", R, !1), this.domElement.addEventListener("wheel", B, !1), window.addEventListener("keydown", E, !1), window.addEventListener("keyup", M, !1);
318
+ function P(k, G) {
319
319
  return function() {
320
320
  G.apply(k, arguments);
321
321
  };
@@ -326,7 +326,7 @@ let Fn = function(o, e, i) {
326
326
  }
327
327
  this.handleResize(), _(this);
328
328
  };
329
- Fn.prototype = Object.create(zi.prototype);
329
+ Fn.prototype = Object.create(Hi.prototype);
330
330
  Fn.prototype.constructor = Fn;
331
331
  let U1 = function() {
332
332
  function o(x) {
@@ -348,7 +348,7 @@ let U1 = function() {
348
348
  constructor: o,
349
349
  load: function(x, C, L, w) {
350
350
  let T = this, O;
351
- this.resourcePath !== "" ? O = this.resourcePath : this.path !== "" ? O = this.path : O = zs.extractUrlBase(x), this.manager.itemStart(x);
351
+ this.resourcePath !== "" ? O = this.resourcePath : this.path !== "" ? O = this.path : O = Hs.extractUrlBase(x), this.manager.itemStart(x);
352
352
  let A = function(N) {
353
353
  w ? w(N) : console.error(N), T.manager.itemError(x), T.manager.itemEnd(x);
354
354
  }, I = new Mo(this.manager);
@@ -359,13 +359,13 @@ let U1 = function() {
359
359
  T.parse(
360
360
  N,
361
361
  O,
362
- function(V) {
363
- C(V), T.manager.itemEnd(x);
362
+ function(z) {
363
+ C(z), T.manager.itemEnd(x);
364
364
  },
365
365
  A
366
366
  );
367
- } catch (V) {
368
- A(V);
367
+ } catch (z) {
368
+ A(z);
369
369
  }
370
370
  },
371
371
  L,
@@ -397,7 +397,7 @@ let U1 = function() {
397
397
  let T, O = {}, A = {};
398
398
  if (typeof x == "string")
399
399
  T = x;
400
- else if (zs.decodeText(new Uint8Array(x, 0, 4)) === f) {
400
+ else if (Hs.decodeText(new Uint8Array(x, 0, 4)) === f) {
401
401
  try {
402
402
  O[i.KHR_BINARY_GLTF] = new v(x);
403
403
  } catch (F) {
@@ -406,7 +406,7 @@ let U1 = function() {
406
406
  }
407
407
  T = O[i.KHR_BINARY_GLTF].content;
408
408
  } else
409
- T = zs.decodeText(new Uint8Array(x));
409
+ T = Hs.decodeText(new Uint8Array(x));
410
410
  let I = JSON.parse(T);
411
411
  if (I.asset === void 0 || I.asset.version[0] < 2) {
412
412
  w && w(new Error("THREE.GLTFLoader: Unsupported asset. glTF versions >=2.0 are supported."));
@@ -424,13 +424,13 @@ let U1 = function() {
424
424
  this.imageJson
425
425
  );
426
426
  N.fileLoader.setRequestHeader(this.requestHeader);
427
- for (let V = 0; V < this.pluginCallbacks.length; V++) {
428
- let F = this.pluginCallbacks[V](N);
427
+ for (let z = 0; z < this.pluginCallbacks.length; z++) {
428
+ let F = this.pluginCallbacks[z](N);
429
429
  A[F.name] = F, O[F.name] = !0;
430
430
  }
431
431
  if (I.extensionsUsed)
432
- for (let V = 0; V < I.extensionsUsed.length; ++V) {
433
- let F = I.extensionsUsed[V], Z = I.extensionsRequired || [];
432
+ for (let z = 0; z < I.extensionsUsed.length; ++z) {
433
+ let F = I.extensionsUsed[z], Z = I.extensionsRequired || [];
434
434
  switch (F) {
435
435
  case i.KHR_MATERIALS_UNLIT:
436
436
  O[F] = new l();
@@ -507,18 +507,18 @@ let U1 = function() {
507
507
  let C = this.parser, L = "light:" + x, w = C.cache.get(L);
508
508
  if (w)
509
509
  return w;
510
- let T = C.json, I = ((T.extensions && T.extensions[this.name] || {}).lights || [])[x], N, V = new At(16777215);
511
- I.color !== void 0 && V.fromArray(I.color);
510
+ let T = C.json, I = ((T.extensions && T.extensions[this.name] || {}).lights || [])[x], N, z = new At(16777215);
511
+ I.color !== void 0 && z.fromArray(I.color);
512
512
  let F = I.range !== void 0 ? I.range : 0;
513
513
  switch (I.type) {
514
514
  case "directional":
515
- N = new ji(V), N.target.position.set(0, 0, -1), N.add(N.target);
515
+ N = new ji(z), N.target.position.set(0, 0, -1), N.add(N.target);
516
516
  break;
517
517
  case "point":
518
- N = new Qr(V), N.distance = F;
518
+ N = new Qr(z), N.distance = F;
519
519
  break;
520
520
  case "spot":
521
- N = new qr(V), N.distance = F, I.spot = I.spot || {}, I.spot.innerConeAngle = I.spot.innerConeAngle !== void 0 ? I.spot.innerConeAngle : 0, I.spot.outerConeAngle = I.spot.outerConeAngle !== void 0 ? I.spot.outerConeAngle : Math.PI / 4, N.angle = I.spot.outerConeAngle, N.penumbra = 1 - I.spot.innerConeAngle / I.spot.outerConeAngle, N.target.position.set(0, 0, -1), N.add(N.target);
521
+ N = new qr(z), N.distance = F, I.spot = I.spot || {}, I.spot.innerConeAngle = I.spot.innerConeAngle !== void 0 ? I.spot.innerConeAngle : 0, I.spot.outerConeAngle = I.spot.outerConeAngle !== void 0 ? I.spot.outerConeAngle : Math.PI / 4, N.angle = I.spot.outerConeAngle, N.penumbra = 1 - I.spot.innerConeAngle / I.spot.outerConeAngle, N.target.position.set(0, 0, -1), N.add(N.target);
522
522
  break;
523
523
  default:
524
524
  throw new Error("THREE.GLTFLoader: Unexpected light type: " + I.type);
@@ -629,8 +629,8 @@ let U1 = function() {
629
629
  return null;
630
630
  }
631
631
  return Promise.all([T, O.ready]).then(function(A) {
632
- let I = w.byteOffset || 0, N = w.byteLength || 0, V = w.count, F = w.byteStride, Z = new ArrayBuffer(V * F), ae = new Uint8Array(A[0], I, N);
633
- return O.decodeGltfBuffer(new Uint8Array(Z), V, F, ae, w.mode, w.filter), Z;
632
+ let I = w.byteOffset || 0, N = w.byteLength || 0, z = w.count, F = w.byteStride, Z = new ArrayBuffer(z * F), le = new Uint8Array(A[0], I, N);
633
+ return O.decodeGltfBuffer(new Uint8Array(Z), z, F, le, w.mode, w.filter), Z;
634
634
  });
635
635
  } else
636
636
  return null;
@@ -640,7 +640,7 @@ let U1 = function() {
640
640
  this.name = i.KHR_BINARY_GLTF, this.content = null, this.body = null;
641
641
  let C = new DataView(x, 0, g);
642
642
  if (this.header = {
643
- magic: zs.decodeText(new Uint8Array(x.slice(0, 4))),
643
+ magic: Hs.decodeText(new Uint8Array(x.slice(0, 4))),
644
644
  version: C.getUint32(4, !0),
645
645
  length: C.getUint32(8, !0)
646
646
  }, this.header.magic !== f)
@@ -654,7 +654,7 @@ let U1 = function() {
654
654
  let O = L.getUint32(w, !0);
655
655
  if (w += 4, O === m.JSON) {
656
656
  let A = new Uint8Array(x, g + w, T);
657
- this.content = zs.decodeText(A);
657
+ this.content = Hs.decodeText(A);
658
658
  } else if (O === m.BIN) {
659
659
  let A = g + w;
660
660
  this.body = x.slice(A, A + T);
@@ -671,25 +671,25 @@ let U1 = function() {
671
671
  }
672
672
  y.prototype.decodePrimitive = function(x, C) {
673
673
  let L = this.json, w = this.dracoLoader, T = x.extensions[this.name].bufferView, O = x.extensions[this.name].attributes, A = {}, I = {}, N = {};
674
- for (let V in O) {
675
- let F = z[V] || V.toLowerCase();
676
- A[F] = O[V];
674
+ for (let z in O) {
675
+ let F = H[z] || z.toLowerCase();
676
+ A[F] = O[z];
677
677
  }
678
678
  for (attributeName in x.attributes) {
679
- let V = z[attributeName] || attributeName.toLowerCase();
679
+ let z = H[attributeName] || attributeName.toLowerCase();
680
680
  if (O[attributeName] !== void 0) {
681
681
  let F = L.accessors[x.attributes[attributeName]], Z = _[F.componentType];
682
- N[V] = Z, I[V] = F.normalized === !0;
682
+ N[z] = Z, I[z] = F.normalized === !0;
683
683
  }
684
684
  }
685
- return C.getDependency("bufferView", T).then(function(V) {
685
+ return C.getDependency("bufferView", T).then(function(z) {
686
686
  return new Promise(function(F) {
687
687
  w.decodeDracoFile(
688
- V,
688
+ z,
689
689
  function(Z) {
690
- for (let ae in Z.attributes) {
691
- let fe = Z.attributes[ae], le = I[ae];
692
- le !== void 0 && (fe.normalized = le);
690
+ for (let le in Z.attributes) {
691
+ let fe = Z.attributes[le], ce = I[le];
692
+ ce !== void 0 && (fe.normalized = ce);
693
693
  }
694
694
  F(Z);
695
695
  },
@@ -839,23 +839,23 @@ let U1 = function() {
839
839
  function R() {
840
840
  this.name = i.KHR_MESH_QUANTIZATION;
841
841
  }
842
- function P(x, C, L, w) {
842
+ function B(x, C, L, w) {
843
843
  Io.call(this, x, C, L, w);
844
844
  }
845
- P.prototype = Object.create(Io.prototype), P.prototype.constructor = P, P.prototype.copySampleValue_ = function(x) {
845
+ B.prototype = Object.create(Io.prototype), B.prototype.constructor = B, B.prototype.copySampleValue_ = function(x) {
846
846
  let C = this.resultBuffer, L = this.sampleValues, w = this.valueSize, T = x * w * 3 + w;
847
847
  for (let O = 0; O !== w; O++)
848
848
  C[O] = L[T + O];
849
849
  return C;
850
- }, P.prototype.beforeStart_ = P.prototype.copySampleValue_, P.prototype.afterEnd_ = P.prototype.copySampleValue_, P.prototype.interpolate_ = function(x, C, L, w) {
851
- let T = this.resultBuffer, O = this.sampleValues, A = this.valueSize, I = A * 2, N = A * 3, V = w - C, F = (L - C) / V, Z = F * F, ae = Z * F, fe = x * N, le = fe - N, we = -2 * ae + 3 * Z, Ee = ae - Z, Ze = 1 - we, je = Ee - Z + F;
850
+ }, B.prototype.beforeStart_ = B.prototype.copySampleValue_, B.prototype.afterEnd_ = B.prototype.copySampleValue_, B.prototype.interpolate_ = function(x, C, L, w) {
851
+ let T = this.resultBuffer, O = this.sampleValues, A = this.valueSize, I = A * 2, N = A * 3, z = w - C, F = (L - C) / z, Z = F * F, le = Z * F, fe = x * N, ce = fe - N, we = -2 * le + 3 * Z, Ee = le - Z, Ze = 1 - we, je = Ee - Z + F;
852
852
  for (let Ct = 0; Ct !== A; Ct++) {
853
- let hs = O[le + Ct + A], kt = O[le + Ct + I] * V, rt = O[fe + Ct + A], Xt = O[fe + Ct] * V;
853
+ let hs = O[ce + Ct + A], kt = O[ce + Ct + I] * z, rt = O[fe + Ct + A], Xt = O[fe + Ct] * z;
854
854
  T[Ct] = Ze * hs + je * kt + we * rt + Ee * Xt;
855
855
  }
856
856
  return T;
857
857
  };
858
- let B = {
858
+ let P = {
859
859
  FLOAT: 5126,
860
860
  //FLOAT_MAT2: 35674,
861
861
  FLOAT_MAT3: 35675,
@@ -893,7 +893,7 @@ let U1 = function() {
893
893
  33071: n1,
894
894
  33648: i1,
895
895
  10497: ri
896
- }, j = {
896
+ }, W = {
897
897
  SCALAR: 1,
898
898
  VEC2: 2,
899
899
  VEC3: 3,
@@ -901,7 +901,7 @@ let U1 = function() {
901
901
  MAT2: 4,
902
902
  MAT3: 9,
903
903
  MAT4: 16
904
- }, z = {
904
+ }, H = {
905
905
  POSITION: "position",
906
906
  NORMAL: "normal",
907
907
  TANGENT: "tangent",
@@ -910,7 +910,7 @@ let U1 = function() {
910
910
  COLOR_0: "color",
911
911
  WEIGHTS_0: "skinWeight",
912
912
  JOINTS_0: "skinIndex"
913
- }, H = {
913
+ }, V = {
914
914
  scale: "scale",
915
915
  translation: "position",
916
916
  rotation: "quaternion",
@@ -926,10 +926,10 @@ let U1 = function() {
926
926
  MASK: "MASK",
927
927
  BLEND: "BLEND"
928
928
  };
929
- function ge(x, C) {
929
+ function ye(x, C) {
930
930
  return typeof x != "string" || x === "" ? "" : (/^https?:\/\//i.test(C) && /^\//.test(x) && (C = C.replace(/(^https?:\/\/[^]+).*/i, "$1")), /^(https?:)?\/\//i.test(x) || /^data:.*,.*$/i.test(x) || /^blob:.*$/i.test(x) ? x : C + x);
931
931
  }
932
- function ue(x) {
932
+ function ae(x) {
933
933
  return x.DefaultMaterial === void 0 && (x.DefaultMaterial = new Vt({
934
934
  color: 16777215,
935
935
  emissive: 0,
@@ -940,37 +940,37 @@ let U1 = function() {
940
940
  side: r1
941
941
  })), x.DefaultMaterial;
942
942
  }
943
- function Ce(x, C, L) {
943
+ function be(x, C, L) {
944
944
  for (let w in L.extensions)
945
945
  x[w] === void 0 && (C.userData.gltfExtensions = C.userData.gltfExtensions || {}, C.userData.gltfExtensions[w] = L.extensions[w]);
946
946
  }
947
- function W(x, C) {
947
+ function j(x, C) {
948
948
  C.extras !== void 0 && (typeof C.extras == "object" ? Object.assign(x.userData, C.extras) : console.warn("THREE.GLTFLoader: Ignoring primitive type .extras, " + C.extras));
949
949
  }
950
- function te(x, C, L) {
950
+ function ee(x, C, L) {
951
951
  let w = !1, T = !1;
952
952
  for (let I = 0, N = C.length; I < N; I++) {
953
- let V = C[I];
954
- if (V.POSITION !== void 0 && (w = !0), V.NORMAL !== void 0 && (T = !0), w && T)
953
+ let z = C[I];
954
+ if (z.POSITION !== void 0 && (w = !0), z.NORMAL !== void 0 && (T = !0), w && T)
955
955
  break;
956
956
  }
957
957
  if (!w && !T)
958
958
  return Promise.resolve(x);
959
959
  let O = [], A = [];
960
960
  for (let I = 0, N = C.length; I < N; I++) {
961
- let V = C[I];
961
+ let z = C[I];
962
962
  if (w) {
963
- let F = V.POSITION !== void 0 ? L.getDependency("accessor", V.POSITION) : x.attributes.position;
963
+ let F = z.POSITION !== void 0 ? L.getDependency("accessor", z.POSITION) : x.attributes.position;
964
964
  O.push(F);
965
965
  }
966
966
  if (T) {
967
- let F = V.NORMAL !== void 0 ? L.getDependency("accessor", V.NORMAL) : x.attributes.normal;
967
+ let F = z.NORMAL !== void 0 ? L.getDependency("accessor", z.NORMAL) : x.attributes.normal;
968
968
  A.push(F);
969
969
  }
970
970
  }
971
971
  return Promise.all([Promise.all(O), Promise.all(A)]).then(function(I) {
972
- let N = I[0], V = I[1];
973
- return w && (x.morphAttributes.position = N), T && (x.morphAttributes.normal = V), x.morphTargetsRelative = !0, x;
972
+ let N = I[0], z = I[1];
973
+ return w && (x.morphAttributes.position = N), T && (x.morphAttributes.normal = z), x.morphTargetsRelative = !0, x;
974
974
  });
975
975
  }
976
976
  function Q(x, C) {
@@ -998,7 +998,7 @@ let U1 = function() {
998
998
  return C;
999
999
  }
1000
1000
  function se(x, C, L) {
1001
- this.json = x || {}, this.extensions = {}, this.plugins = {}, this.options = C || {}, this.imageJson = L, this.cache = new e(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.nodeNamesUsed = {}, typeof createImageBitmap < "u" && /Firefox/.test(navigator.userAgent) === !1 ? this.textureLoader = new Vl(this.options.manager) : this.textureLoader = new Hl(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.fileLoader = new Mo(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
1001
+ this.json = x || {}, this.extensions = {}, this.plugins = {}, this.options = C || {}, this.imageJson = L, this.cache = new e(), this.associations = /* @__PURE__ */ new Map(), this.primitiveCache = {}, this.meshCache = { refs: {}, uses: {} }, this.cameraCache = { refs: {}, uses: {} }, this.lightCache = { refs: {}, uses: {} }, this.nodeNamesUsed = {}, typeof createImageBitmap < "u" && /Firefox/.test(navigator.userAgent) === !1 ? this.textureLoader = new Vl(this.options.manager) : this.textureLoader = new zl(this.options.manager), this.textureLoader.setCrossOrigin(this.options.crossOrigin), this.fileLoader = new Mo(this.options.manager), this.fileLoader.setResponseType("arraybuffer"), this.options.crossOrigin === "use-credentials" && this.fileLoader.setWithCredentials(!0);
1002
1002
  }
1003
1003
  se.prototype.setExtensions = function(x) {
1004
1004
  this.extensions = x;
@@ -1018,7 +1018,7 @@ let U1 = function() {
1018
1018
  parser: L,
1019
1019
  userData: {}
1020
1020
  };
1021
- Ce(T, A, w), W(A, w), x(A);
1021
+ be(T, A, w), j(A, w), x(A);
1022
1022
  }).catch(C);
1023
1023
  }, se.prototype._markDefs = function() {
1024
1024
  let x = this.json.nodes || [], C = this.json.skins || [], L = this.json.meshes || [];
@@ -1125,7 +1125,7 @@ let U1 = function() {
1125
1125
  return Promise.resolve(this.extensions[i.KHR_BINARY_GLTF].body);
1126
1126
  let w = this.options;
1127
1127
  return new Promise(function(T, O) {
1128
- L.load(ge(C.uri, w.path), T, void 0, function() {
1128
+ L.load(ye(C.uri, w.path), T, void 0, function() {
1129
1129
  O(new Error('THREE.GLTFLoader: Failed to load buffer "' + C.uri + '".'));
1130
1130
  });
1131
1131
  });
@@ -1141,14 +1141,14 @@ let U1 = function() {
1141
1141
  return Promise.resolve(null);
1142
1142
  let T = [];
1143
1143
  return w.bufferView !== void 0 ? T.push(this.getDependency("bufferView", w.bufferView)) : T.push(null), w.sparse !== void 0 && (T.push(this.getDependency("bufferView", w.sparse.indices.bufferView)), T.push(this.getDependency("bufferView", w.sparse.values.bufferView))), Promise.all(T).then(function(O) {
1144
- let A = O[0], I = j[w.type], N = _[w.componentType], V = N.BYTES_PER_ELEMENT, F = V * I, Z = w.byteOffset || 0, ae = w.bufferView !== void 0 ? L.bufferViews[w.bufferView].byteStride : void 0, fe = w.normalized === !0, le, we;
1145
- if (ae && ae !== F) {
1146
- let Ee = Math.floor(Z / ae), Ze = "InterleavedBuffer:" + w.bufferView + ":" + w.componentType + ":" + Ee + ":" + w.count, je = C.cache.get(Ze);
1147
- je || (le = new N(A, Ee * ae, w.count * ae / V), je = new zl(le, ae / V), C.cache.add(Ze, je)), we = new jl(je, I, Z % ae / V, fe);
1144
+ let A = O[0], I = W[w.type], N = _[w.componentType], z = N.BYTES_PER_ELEMENT, F = z * I, Z = w.byteOffset || 0, le = w.bufferView !== void 0 ? L.bufferViews[w.bufferView].byteStride : void 0, fe = w.normalized === !0, ce, we;
1145
+ if (le && le !== F) {
1146
+ let Ee = Math.floor(Z / le), Ze = "InterleavedBuffer:" + w.bufferView + ":" + w.componentType + ":" + Ee + ":" + w.count, je = C.cache.get(Ze);
1147
+ je || (ce = new N(A, Ee * le, w.count * le / z), je = new Hl(ce, le / z), C.cache.add(Ze, je)), we = new jl(je, I, Z % le / z, fe);
1148
1148
  } else
1149
- A === null ? le = new N(w.count * I) : le = new N(A, Z, w.count * I), we = new $t(le, I, fe);
1149
+ A === null ? ce = new N(w.count * I) : ce = new N(A, Z, w.count * I), we = new $t(ce, I, fe);
1150
1150
  if (w.sparse !== void 0) {
1151
- let Ee = j.SCALAR, Ze = _[w.sparse.indices.componentType], je = w.sparse.indices.byteOffset || 0, Ct = w.sparse.values.byteOffset || 0, hs = new Ze(O[1], je, w.sparse.count * Ee), kt = new N(O[2], Ct, w.sparse.count * I);
1151
+ let Ee = W.SCALAR, Ze = _[w.sparse.indices.componentType], je = w.sparse.indices.byteOffset || 0, Ct = w.sparse.values.byteOffset || 0, hs = new Ze(O[1], je, w.sparse.count * Ee), kt = new N(O[2], Ct, w.sparse.count * I);
1152
1152
  A !== null && (we = new $t(
1153
1153
  we.array.slice(),
1154
1154
  we.itemSize,
@@ -1170,24 +1170,24 @@ let U1 = function() {
1170
1170
  }, se.prototype.loadTextureImage = function(x, C, L) {
1171
1171
  let w = this, T = this.json, O = this.options, A = T.textures[x], I = self.URL || self.webkitURL;
1172
1172
  this.imageJson && (C.uri = this.imageJson[C.uri]);
1173
- let N = C.uri, V = !1, F = !0;
1173
+ let N = C.uri, z = !1, F = !0;
1174
1174
  return C.mimeType === "image/jpeg" && (F = !1), C.bufferView !== void 0 && (N = w.getDependency("bufferView", C.bufferView).then(function(Z) {
1175
1175
  if (C.mimeType === "image/png") {
1176
1176
  let fe = new DataView(Z, 25, 1).getUint8(0, !1);
1177
1177
  F = fe === 6 || fe === 4 || fe === 3;
1178
1178
  }
1179
- V = !0;
1180
- let ae = new Blob([Z], { type: C.mimeType });
1181
- return N = I.createObjectURL(ae), N;
1179
+ z = !0;
1180
+ let le = new Blob([Z], { type: C.mimeType });
1181
+ return N = I.createObjectURL(le), N;
1182
1182
  })), Promise.resolve(N).then(function(Z) {
1183
- return new Promise(function(ae, fe) {
1184
- let le = ae;
1185
- L.isImageBitmapLoader === !0 && (le = function(we) {
1186
- ae(new Et(we));
1187
- }), L.load(ge(Z, O.path), le, void 0, fe);
1183
+ return new Promise(function(le, fe) {
1184
+ let ce = le;
1185
+ L.isImageBitmapLoader === !0 && (ce = function(we) {
1186
+ le(new Et(we));
1187
+ }), L.load(ye(Z, O.path), ce, void 0, fe);
1188
1188
  });
1189
1189
  }).then(function(Z) {
1190
- V === !0 && I.revokeObjectURL(N), Z.flipY = !1, A.name && (Z.name = A.name), F || (Z.format = Wl);
1190
+ z === !0 && I.revokeObjectURL(N), Z.flipY = !1, A.name && (Z.name = A.name), F || (Z.format = Wl);
1191
1191
  let fe = (T.samplers || {})[A.sampler] || {};
1192
1192
  return Z.magFilter = k[fe.magFilter] || Ao, Z.minFilter = k[fe.minFilter] || _o, Z.wrapS = G[fe.wrapS] || ri, Z.wrapT = G[fe.wrapT] || ri, w.associations.set(Z, {
1193
1193
  type: "textures",
@@ -1209,17 +1209,17 @@ let U1 = function() {
1209
1209
  }, se.prototype.assignFinalMaterial = function(x) {
1210
1210
  let C = x.geometry, L = x.material, w = C.attributes.tangent !== void 0, T = C.attributes.color !== void 0, O = C.attributes.normal === void 0, A = x.isSkinnedMesh === !0, I = Object.keys(C.morphAttributes).length > 0, N = I && C.morphAttributes.normal !== void 0;
1211
1211
  if (x.isPoints) {
1212
- let V = "PointsMaterial:" + L.uuid, F = this.cache.get(V);
1213
- F || (F = new Xl(), Ro.prototype.copy.call(F, L), F.color.copy(L.color), F.map = L.map, F.sizeAttenuation = !1, this.cache.add(V, F)), L = F;
1212
+ let z = "PointsMaterial:" + L.uuid, F = this.cache.get(z);
1213
+ F || (F = new Xl(), Ro.prototype.copy.call(F, L), F.color.copy(L.color), F.map = L.map, F.sizeAttenuation = !1, this.cache.add(z, F)), L = F;
1214
1214
  } else if (x.isLine) {
1215
- let V = "LineBasicMaterial:" + L.uuid, F = this.cache.get(V);
1216
- F || (F = new Pt(), Ro.prototype.copy.call(F, L), F.color.copy(L.color), this.cache.add(V, F)), L = F;
1215
+ let z = "LineBasicMaterial:" + L.uuid, F = this.cache.get(z);
1216
+ F || (F = new Pt(), Ro.prototype.copy.call(F, L), F.color.copy(L.color), this.cache.add(z, F)), L = F;
1217
1217
  }
1218
1218
  if (w || T || O || A || I) {
1219
- let V = "ClonedMaterial:" + L.uuid + ":";
1220
- L.isGLTFSpecularGlossinessMaterial && (V += "specular-glossiness:"), A && (V += "skinning:"), w && (V += "vertex-tangents:"), T && (V += "vertex-colors:"), O && (V += "flat-shading:"), I && (V += "morph-targets:"), N && (V += "morph-normals:");
1221
- let F = this.cache.get(V);
1222
- F || (F = L.clone(), A && (F.skinning = !0), w && (F.vertexTangents = !0), T && (F.vertexColors = !0), O && (F.flatShading = !0), I && (F.morphTargets = !0), N && (F.morphNormals = !0), this.cache.add(V, F), this.associations.set(F, this.associations.get(L))), L = F;
1219
+ let z = "ClonedMaterial:" + L.uuid + ":";
1220
+ L.isGLTFSpecularGlossinessMaterial && (z += "specular-glossiness:"), A && (z += "skinning:"), w && (z += "vertex-tangents:"), T && (z += "vertex-colors:"), O && (z += "flat-shading:"), I && (z += "morph-targets:"), N && (z += "morph-normals:");
1221
+ let F = this.cache.get(z);
1222
+ F || (F = L.clone(), A && (F.skinning = !0), w && (F.vertexTangents = !0), T && (F.vertexColors = !0), O && (F.flatShading = !0), I && (F.morphTargets = !0), N && (F.morphNormals = !0), this.cache.add(z, F), this.associations.set(F, this.associations.get(L))), L = F;
1223
1223
  }
1224
1224
  L.aoMap && C.attributes.uv2 === void 0 && C.attributes.uv !== void 0 && C.setAttribute("uv2", C.attributes.uv), L.normalScale && !w && (L.normalScale.y = -L.normalScale.y), L.clearcoatNormalScale && !w && (L.clearcoatNormalScale.y = -L.clearcoatNormalScale.y), x.material = L;
1225
1225
  }, se.prototype.getMaterialType = function() {
@@ -1249,10 +1249,10 @@ let U1 = function() {
1249
1249
  );
1250
1250
  }
1251
1251
  T.doubleSided === !0 && (A.side = Kr);
1252
- let V = T.alphaMode || J.OPAQUE;
1253
- return V === J.BLEND ? (A.transparent = !0, A.depthWrite = !1) : (A.transparent = !1, V === J.MASK && (A.alphaTest = T.alphaCutoff !== void 0 ? T.alphaCutoff : 0.5)), T.normalTexture !== void 0 && O !== Ve && (N.push(C.assignTexture(A, "normalMap", T.normalTexture)), A.normalScale = new Le(1, 1), T.normalTexture.scale !== void 0 && A.normalScale.set(T.normalTexture.scale, T.normalTexture.scale)), T.occlusionTexture !== void 0 && O !== Ve && (N.push(C.assignTexture(A, "aoMap", T.occlusionTexture)), T.occlusionTexture.strength !== void 0 && (A.aoMapIntensity = T.occlusionTexture.strength)), T.emissiveFactor !== void 0 && O !== Ve && (A.emissive = new At().fromArray(T.emissiveFactor)), T.emissiveTexture !== void 0 && O !== Ve && N.push(C.assignTexture(A, "emissiveMap", T.emissiveTexture)), Promise.all(N).then(function() {
1252
+ let z = T.alphaMode || J.OPAQUE;
1253
+ return z === J.BLEND ? (A.transparent = !0, A.depthWrite = !1) : (A.transparent = !1, z === J.MASK && (A.alphaTest = T.alphaCutoff !== void 0 ? T.alphaCutoff : 0.5)), T.normalTexture !== void 0 && O !== Ve && (N.push(C.assignTexture(A, "normalMap", T.normalTexture)), A.normalScale = new Le(1, 1), T.normalTexture.scale !== void 0 && A.normalScale.set(T.normalTexture.scale, T.normalTexture.scale)), T.occlusionTexture !== void 0 && O !== Ve && (N.push(C.assignTexture(A, "aoMap", T.occlusionTexture)), T.occlusionTexture.strength !== void 0 && (A.aoMapIntensity = T.occlusionTexture.strength)), T.emissiveFactor !== void 0 && O !== Ve && (A.emissive = new At().fromArray(T.emissiveFactor)), T.emissiveTexture !== void 0 && O !== Ve && N.push(C.assignTexture(A, "emissiveMap", T.emissiveTexture)), Promise.all(N).then(function() {
1254
1254
  let F;
1255
- return O === E ? F = w[i.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(A) : F = new O(A), T.name && (F.name = T.name), F.map && (F.map.encoding = Ot), F.emissiveMap && (F.emissiveMap.encoding = Ot), W(F, T), C.associations.set(F, { type: "materials", index: x }), T.extensions && Ce(w, F, T), F;
1255
+ return O === E ? F = w[i.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(A) : F = new O(A), T.name && (F.name = T.name), F.map && (F.map.encoding = Ot), F.emissiveMap && (F.emissiveMap.encoding = Ot), j(F, T), C.associations.set(F, { type: "materials", index: x }), T.extensions && be(w, F, T), F;
1256
1256
  });
1257
1257
  }, se.prototype.createUniqueName = function(x) {
1258
1258
  let C = Zl.sanitizeNodeName(x || ""), L = C;
@@ -1263,9 +1263,9 @@ let U1 = function() {
1263
1263
  function me(x, C, L) {
1264
1264
  let w = C.attributes, T = new $e();
1265
1265
  if (w.POSITION !== void 0) {
1266
- let I = L.json.accessors[w.POSITION], N = I.min, V = I.max;
1267
- if (N !== void 0 && V !== void 0)
1268
- T.set(new U(N[0], N[1], N[2]), new U(V[0], V[1], V[2]));
1266
+ let I = L.json.accessors[w.POSITION], N = I.min, z = I.max;
1267
+ if (N !== void 0 && z !== void 0)
1268
+ T.set(new U(N[0], N[1], N[2]), new U(z[0], z[1], z[2]));
1269
1269
  else {
1270
1270
  console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");
1271
1271
  return;
@@ -1275,11 +1275,11 @@ let U1 = function() {
1275
1275
  let O = C.targets;
1276
1276
  if (O !== void 0) {
1277
1277
  let I = new U(), N = new U();
1278
- for (let V = 0, F = O.length; V < F; V++) {
1279
- let Z = O[V];
1278
+ for (let z = 0, F = O.length; z < F; z++) {
1279
+ let Z = O[z];
1280
1280
  if (Z.POSITION !== void 0) {
1281
- let ae = L.json.accessors[Z.POSITION], fe = ae.min, le = ae.max;
1282
- fe !== void 0 && le !== void 0 ? (N.setX(Math.max(Math.abs(fe[0]), Math.abs(le[0]))), N.setY(Math.max(Math.abs(fe[1]), Math.abs(le[1]))), N.setZ(Math.max(Math.abs(fe[2]), Math.abs(le[2]))), I.max(N)) : console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");
1281
+ let le = L.json.accessors[Z.POSITION], fe = le.min, ce = le.max;
1282
+ fe !== void 0 && ce !== void 0 ? (N.setX(Math.max(Math.abs(fe[0]), Math.abs(ce[0]))), N.setY(Math.max(Math.abs(fe[1]), Math.abs(ce[1]))), N.setZ(Math.max(Math.abs(fe[2]), Math.abs(ce[2]))), I.max(N)) : console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");
1283
1283
  }
1284
1284
  }
1285
1285
  T.expandByVector(I);
@@ -1294,17 +1294,17 @@ let U1 = function() {
1294
1294
  return L.getDependency("accessor", A).then(function(N) {
1295
1295
  if (N.isInterleavedBufferAttribute) {
1296
1296
  if (I == "position") {
1297
- const V = N.data.stride, F = N.data.count, Z = new Float32Array(F * 3), ae = new Float32Array(F * 3), fe = new Float32Array(F * 2);
1298
- for (let le = 0; le < F; le++)
1299
- Z[le * 3] = N.data.array[le * V], Z[le * 3 + 1] = N.data.array[le * V + 1], Z[le * 3 + 2] = N.data.array[le * V + 2], ae[le * 3] = N.data.array[le * V + 3], ae[le * 3 + 1] = N.data.array[le * V + 4], ae[le * 3 + 2] = N.data.array[le * V + 5], V == 8 && (fe[le * 2] = N.data.array[le * V + 6], fe[le * 2 + 1] = N.data.array[le * V + 7]);
1300
- x.setAttribute("position", new $t(Z, 3)), x.setAttribute("normal", new $t(ae, 3)), V == 8 && x.setAttribute("uv", new $t(fe, 2));
1297
+ const z = N.data.stride, F = N.data.count, Z = new Float32Array(F * 3), le = new Float32Array(F * 3), fe = new Float32Array(F * 2);
1298
+ for (let ce = 0; ce < F; ce++)
1299
+ Z[ce * 3] = N.data.array[ce * z], Z[ce * 3 + 1] = N.data.array[ce * z + 1], Z[ce * 3 + 2] = N.data.array[ce * z + 2], le[ce * 3] = N.data.array[ce * z + 3], le[ce * 3 + 1] = N.data.array[ce * z + 4], le[ce * 3 + 2] = N.data.array[ce * z + 5], z == 8 && (fe[ce * 2] = N.data.array[ce * z + 6], fe[ce * 2 + 1] = N.data.array[ce * z + 7]);
1300
+ x.setAttribute("position", new $t(Z, 3)), x.setAttribute("normal", new $t(le, 3)), z == 8 && x.setAttribute("uv", new $t(fe, 2));
1301
1301
  }
1302
1302
  } else
1303
1303
  x.setAttribute(I, N);
1304
1304
  });
1305
1305
  }
1306
1306
  for (let A in w) {
1307
- let I = z[A] || A.toLowerCase();
1307
+ let I = H[A] || A.toLowerCase();
1308
1308
  I in x.attributes || T.push(O(w[A], I));
1309
1309
  }
1310
1310
  if (C.indices !== void 0 && !x.index) {
@@ -1313,8 +1313,8 @@ let U1 = function() {
1313
1313
  });
1314
1314
  T.push(A);
1315
1315
  }
1316
- return W(x, C), me(x, C, L), Promise.all(T).then(function() {
1317
- return C.targets !== void 0 ? te(x, C.targets, L) : x;
1316
+ return j(x, C), me(x, C, L), Promise.all(T).then(function() {
1317
+ return C.targets !== void 0 ? ee(x, C.targets, L) : x;
1318
1318
  });
1319
1319
  }
1320
1320
  function Ge(x, C) {
@@ -1348,44 +1348,44 @@ let U1 = function() {
1348
1348
  }
1349
1349
  let O = [];
1350
1350
  for (let A = 0, I = x.length; A < I; A++) {
1351
- let N = x[A], V = he(N), F = w[V];
1351
+ let N = x[A], z = he(N), F = w[z];
1352
1352
  if (F)
1353
1353
  O.push(F.promise);
1354
1354
  else {
1355
1355
  let Z;
1356
- N.extensions && N.extensions[i.KHR_DRACO_MESH_COMPRESSION] ? Z = T(N) : Z = ve(new Fe(), N, C), w[V] = { primitive: N, promise: Z }, O.push(Z);
1356
+ N.extensions && N.extensions[i.KHR_DRACO_MESH_COMPRESSION] ? Z = T(N) : Z = ve(new Fe(), N, C), w[z] = { primitive: N, promise: Z }, O.push(Z);
1357
1357
  }
1358
1358
  }
1359
1359
  return Promise.all(O);
1360
1360
  }, se.prototype.loadMesh = function(x) {
1361
1361
  let C = this, L = this.json, w = this.extensions, T = L.meshes[x], O = T.primitives, A = [];
1362
1362
  for (let I = 0, N = O.length; I < N; I++) {
1363
- let V = O[I].material === void 0 ? ue(this.cache) : this.getDependency("material", O[I].material);
1364
- A.push(V);
1363
+ let z = O[I].material === void 0 ? ae(this.cache) : this.getDependency("material", O[I].material);
1364
+ A.push(z);
1365
1365
  }
1366
1366
  return A.push(C.loadGeometries(O)), Promise.all(A).then(function(I) {
1367
- let N = I.slice(0, I.length - 1), V = I[I.length - 1], F = [];
1368
- for (let ae = 0, fe = V.length; ae < fe; ae++) {
1369
- let le = V[ae], we = O[ae], Ee, Ze = N[ae];
1370
- if (we.mode === B.TRIANGLES || we.mode === B.TRIANGLE_STRIP || we.mode === B.TRIANGLE_FAN || we.mode === void 0)
1371
- Ee = T.isSkinnedMesh === !0 ? new Yl(le, Ze) : new Y(le, Ze), Ee.isSkinnedMesh === !0 && !Ee.geometry.attributes.skinWeight.normalized && Ee.normalizeSkinWeights(), we.mode === B.TRIANGLE_STRIP ? Ee.geometry = Ge(Ee.geometry, a1) : we.mode === B.TRIANGLE_FAN && (Ee.geometry = Ge(Ee.geometry, Bo));
1372
- else if (we.mode === B.LINES)
1373
- Ee = new rs(le, Ze);
1374
- else if (we.mode === B.LINE_STRIP)
1375
- Ee = new as(le, Ze);
1376
- else if (we.mode === B.LINE_LOOP)
1377
- Ee = new Kl(le, Ze);
1378
- else if (we.mode === B.POINTS)
1379
- Ee = new ql(le, Ze);
1367
+ let N = I.slice(0, I.length - 1), z = I[I.length - 1], F = [];
1368
+ for (let le = 0, fe = z.length; le < fe; le++) {
1369
+ let ce = z[le], we = O[le], Ee, Ze = N[le];
1370
+ if (we.mode === P.TRIANGLES || we.mode === P.TRIANGLE_STRIP || we.mode === P.TRIANGLE_FAN || we.mode === void 0)
1371
+ Ee = T.isSkinnedMesh === !0 ? new Yl(ce, Ze) : new Y(ce, Ze), Ee.isSkinnedMesh === !0 && !Ee.geometry.attributes.skinWeight.normalized && Ee.normalizeSkinWeights(), we.mode === P.TRIANGLE_STRIP ? Ee.geometry = Ge(Ee.geometry, a1) : we.mode === P.TRIANGLE_FAN && (Ee.geometry = Ge(Ee.geometry, Bo));
1372
+ else if (we.mode === P.LINES)
1373
+ Ee = new rs(ce, Ze);
1374
+ else if (we.mode === P.LINE_STRIP)
1375
+ Ee = new as(ce, Ze);
1376
+ else if (we.mode === P.LINE_LOOP)
1377
+ Ee = new Kl(ce, Ze);
1378
+ else if (we.mode === P.POINTS)
1379
+ Ee = new ql(ce, Ze);
1380
1380
  else
1381
1381
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + we.mode);
1382
- Object.keys(Ee.geometry.morphAttributes).length > 0 && Q(Ee, T), Ee.name = C.createUniqueName(T.name || "mesh_" + x), W(Ee, T), we.extensions && Ce(w, Ee, we), C.assignFinalMaterial(Ee), F.push(Ee);
1382
+ Object.keys(Ee.geometry.morphAttributes).length > 0 && Q(Ee, T), Ee.name = C.createUniqueName(T.name || "mesh_" + x), j(Ee, T), we.extensions && be(w, Ee, we), C.assignFinalMaterial(Ee), F.push(Ee);
1383
1383
  }
1384
1384
  if (F.length === 1)
1385
1385
  return F[0];
1386
1386
  let Z = new ns();
1387
- for (let ae = 0, fe = F.length; ae < fe; ae++)
1388
- Z.add(F[ae]);
1387
+ for (let le = 0, fe = F.length; le < fe; le++)
1388
+ Z.add(F[le]);
1389
1389
  return Z;
1390
1390
  });
1391
1391
  }, se.prototype.loadCamera = function(x) {
@@ -1399,7 +1399,7 @@ let U1 = function() {
1399
1399
  w.aspectRatio || 1,
1400
1400
  w.znear || 1,
1401
1401
  w.zfar || 2e6
1402
- ) : L.type === "orthographic" && (C = new Is(-w.xmag, w.xmag, w.ymag, -w.ymag, w.znear, w.zfar)), L.name && (C.name = this.createUniqueName(L.name)), W(C, L), Promise.resolve(C);
1402
+ ) : L.type === "orthographic" && (C = new Is(-w.xmag, w.xmag, w.ymag, -w.ymag, w.znear, w.zfar)), L.name && (C.name = this.createUniqueName(L.name)), j(C, L), Promise.resolve(C);
1403
1403
  }, se.prototype.loadSkin = function(x) {
1404
1404
  let C = this.json.skins[x], L = { joints: C.joints };
1405
1405
  return C.inverseBindMatrices === void 0 ? Promise.resolve(L) : this.getDependency("accessor", C.inverseBindMatrices).then(function(w) {
@@ -1407,9 +1407,9 @@ let U1 = function() {
1407
1407
  });
1408
1408
  }, se.prototype.loadAnimation = function(x) {
1409
1409
  let L = this.json.animations[x], w = [], T = [], O = [], A = [], I = [];
1410
- for (let N = 0, V = L.channels.length; N < V; N++) {
1411
- let F = L.channels[N], Z = L.samplers[F.sampler], ae = F.target, fe = ae.node !== void 0 ? ae.node : ae.id, le = L.parameters !== void 0 ? L.parameters[Z.input] : Z.input, we = L.parameters !== void 0 ? L.parameters[Z.output] : Z.output;
1412
- w.push(this.getDependency("node", fe)), T.push(this.getDependency("accessor", le)), O.push(this.getDependency("accessor", we)), A.push(Z), I.push(ae);
1410
+ for (let N = 0, z = L.channels.length; N < z; N++) {
1411
+ let F = L.channels[N], Z = L.samplers[F.sampler], le = F.target, fe = le.node !== void 0 ? le.node : le.id, ce = L.parameters !== void 0 ? L.parameters[Z.input] : Z.input, we = L.parameters !== void 0 ? L.parameters[Z.output] : Z.output;
1412
+ w.push(this.getDependency("node", fe)), T.push(this.getDependency("accessor", ce)), O.push(this.getDependency("accessor", we)), A.push(Z), I.push(le);
1413
1413
  }
1414
1414
  return Promise.all([
1415
1415
  Promise.all(w),
@@ -1418,28 +1418,28 @@ let U1 = function() {
1418
1418
  Promise.all(A),
1419
1419
  Promise.all(I)
1420
1420
  ]).then(function(N) {
1421
- let V = N[0], F = N[1], Z = N[2], ae = N[3], fe = N[4], le = [];
1422
- for (let Ee = 0, Ze = V.length; Ee < Ze; Ee++) {
1423
- let je = V[Ee], Ct = F[Ee], hs = Z[Ee], kt = ae[Ee], rt = fe[Ee];
1421
+ let z = N[0], F = N[1], Z = N[2], le = N[3], fe = N[4], ce = [];
1422
+ for (let Ee = 0, Ze = z.length; Ee < Ze; Ee++) {
1423
+ let je = z[Ee], Ct = F[Ee], hs = Z[Ee], kt = le[Ee], rt = fe[Ee];
1424
1424
  if (je === void 0)
1425
1425
  continue;
1426
1426
  je.updateMatrix(), je.matrixAutoUpdate = !0;
1427
1427
  let Xt;
1428
- switch (H[rt.path]) {
1429
- case H.weights:
1428
+ switch (V[rt.path]) {
1429
+ case V.weights:
1430
1430
  Xt = h1;
1431
1431
  break;
1432
- case H.rotation:
1432
+ case V.rotation:
1433
1433
  Xt = c1;
1434
1434
  break;
1435
- case H.position:
1436
- case H.scale:
1435
+ case V.position:
1436
+ case V.scale:
1437
1437
  default:
1438
1438
  Xt = l1;
1439
1439
  break;
1440
1440
  }
1441
1441
  let Ss = je.name ? je.name : je.uuid, Al = kt.interpolation !== void 0 ? $[kt.interpolation] : Oo, yn = [];
1442
- H[rt.path] === H.weights ? je.traverse(function(Ye) {
1442
+ V[rt.path] === V.weights ? je.traverse(function(Ye) {
1443
1443
  Ye.isMesh === !0 && Ye.morphTargetInfluences && yn.push(Ye.name ? Ye.name : Ye.uuid);
1444
1444
  }) : yn.push(Ss);
1445
1445
  let Ut = hs.array;
@@ -1462,18 +1462,18 @@ let U1 = function() {
1462
1462
  }
1463
1463
  for (let Ye = 0, vn = yn.length; Ye < vn; Ye++) {
1464
1464
  let Zt = new Xt(
1465
- yn[Ye] + "." + H[rt.path],
1465
+ yn[Ye] + "." + V[rt.path],
1466
1466
  Ct.array,
1467
1467
  Ut,
1468
1468
  Al
1469
1469
  );
1470
1470
  kt.interpolation === "CUBICSPLINE" && (Zt.createInterpolant = function(_l) {
1471
- return new P(this.times, this.values, this.getValueSize() / 3, _l);
1472
- }, Zt.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0), le.push(Zt);
1471
+ return new B(this.times, this.values, this.getValueSize() / 3, _l);
1472
+ }, Zt.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0), ce.push(Zt);
1473
1473
  }
1474
1474
  }
1475
1475
  let we = L.name ? L.name : "animation_" + x;
1476
- return new Ql(we, void 0, le);
1476
+ return new Ql(we, void 0, ce);
1477
1477
  });
1478
1478
  }, se.prototype.loadNode = function(x) {
1479
1479
  let C = this.json, L = this.extensions, w = this, T = C.nodes[x], O = T.name ? w.createUniqueName(T.name) : "";
@@ -1482,10 +1482,10 @@ let U1 = function() {
1482
1482
  return T.mesh !== void 0 && A.push(
1483
1483
  w.getDependency("mesh", T.mesh).then(function(I) {
1484
1484
  let N = w._getNodeRef(w.meshCache, T.mesh, I);
1485
- return T.weights !== void 0 && N.traverse(function(V) {
1486
- if (V.isMesh)
1485
+ return T.weights !== void 0 && N.traverse(function(z) {
1486
+ if (z.isMesh)
1487
1487
  for (let F = 0, Z = T.weights.length; F < Z; F++)
1488
- V.morphTargetInfluences[F] = T.weights[F];
1488
+ z.morphTargetInfluences[F] = T.weights[F];
1489
1489
  }), N;
1490
1490
  })
1491
1491
  ), T.camera !== void 0 && A.push(
@@ -1500,9 +1500,9 @@ let U1 = function() {
1500
1500
  }().then(function(A) {
1501
1501
  let I;
1502
1502
  if (T.isBone === !0 ? I = new Jl() : A.length > 1 ? I = new ns() : A.length === 1 ? I = A[0] : I = new sn(), I !== A[0])
1503
- for (let N = 0, V = A.length; N < V; N++)
1503
+ for (let N = 0, z = A.length; N < z; N++)
1504
1504
  I.add(A[N]);
1505
- if (T.name && (I.userData.name = T.name, I.name = O), W(I, T), T.extensions && Ce(L, I, T), T.matrix !== void 0) {
1505
+ if (T.name && (I.userData.name = T.name, I.name = O), j(I, T), T.extensions && be(L, I, T), T.matrix !== void 0) {
1506
1506
  let N = new nn();
1507
1507
  N.fromArray(T.matrix), I.applyMatrix4(N);
1508
1508
  } else
@@ -1518,25 +1518,25 @@ let U1 = function() {
1518
1518
  let I;
1519
1519
  return T.getDependency("skin", O.skin).then(function(N) {
1520
1520
  I = N;
1521
- let V = [];
1521
+ let z = [];
1522
1522
  for (let F = 0, Z = I.joints.length; F < Z; F++)
1523
- V.push(T.getDependency("node", I.joints[F]));
1524
- return Promise.all(V);
1523
+ z.push(T.getDependency("node", I.joints[F]));
1524
+ return Promise.all(z);
1525
1525
  }).then(function(N) {
1526
- return A.traverse(function(V) {
1527
- if (!V.isMesh)
1526
+ return A.traverse(function(z) {
1527
+ if (!z.isMesh)
1528
1528
  return;
1529
1529
  let F = [], Z = [];
1530
- for (let ae = 0, fe = N.length; ae < fe; ae++) {
1531
- let le = N[ae];
1532
- if (le) {
1533
- F.push(le);
1530
+ for (let le = 0, fe = N.length; le < fe; le++) {
1531
+ let ce = N[le];
1532
+ if (ce) {
1533
+ F.push(ce);
1534
1534
  let we = new nn();
1535
- I.inverseBindMatrices !== void 0 && we.fromArray(I.inverseBindMatrices.array, ae * 16), Z.push(we);
1535
+ I.inverseBindMatrices !== void 0 && we.fromArray(I.inverseBindMatrices.array, le * 16), Z.push(we);
1536
1536
  } else
1537
- console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', I.joints[ae]);
1537
+ console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', I.joints[le]);
1538
1538
  }
1539
- V.bind(new u1(F, Z), V.matrixWorld);
1539
+ z.bind(new u1(F, Z), z.matrixWorld);
1540
1540
  }), A;
1541
1541
  });
1542
1542
  }).then(function(A) {
@@ -1544,8 +1544,8 @@ let U1 = function() {
1544
1544
  let I = [];
1545
1545
  if (O.children) {
1546
1546
  let N = O.children;
1547
- for (let V = 0, F = N.length; V < F; V++) {
1548
- let Z = N[V];
1547
+ for (let z = 0, F = N.length; z < F; z++) {
1548
+ let Z = N[z];
1549
1549
  I.push(x(Z, A, w, T));
1550
1550
  }
1551
1551
  }
@@ -1554,11 +1554,11 @@ let U1 = function() {
1554
1554
  }
1555
1555
  return function(L) {
1556
1556
  let w = this.json, T = this.extensions, O = this.json.scenes[L], A = this, I = new ns();
1557
- O.name && (I.name = A.createUniqueName(O.name)), W(I, O), O.extensions && Ce(T, I, O);
1558
- let N = O.nodes || [], V = [];
1557
+ O.name && (I.name = A.createUniqueName(O.name)), j(I, O), O.extensions && be(T, I, O);
1558
+ let N = O.nodes || [], z = [];
1559
1559
  for (let F = 0, Z = N.length; F < Z; F++)
1560
- V.push(x(N[F], I, w, A));
1561
- return Promise.all(V).then(function() {
1560
+ z.push(x(N[F], I, w, A));
1561
+ return Promise.all(z).then(function() {
1562
1562
  return I;
1563
1563
  });
1564
1564
  };
@@ -1689,7 +1689,7 @@ class G1 {
1689
1689
  const d = V1(u);
1690
1690
  this.group.add(d), this.meshs.push(d);
1691
1691
  }), p.forEach((u) => {
1692
- const d = H1(u.vertex, u.color, u.name);
1692
+ const d = z1(u.vertex, u.color, u.name);
1693
1693
  this.group.add(d), this.meshs.push(d);
1694
1694
  }), this.group.add(j1()), this.size = l, this.element.addEventListener("mousemove", this.mouseEvent.bind(this)), this.element.addEventListener("click", this.clickEvent.bind(this));
1695
1695
  }
@@ -1837,7 +1837,7 @@ function V1(o) {
1837
1837
  }
1838
1838
  return r;
1839
1839
  }
1840
- function H1(o, e = 16711680, i) {
1840
+ function z1(o, e = 16711680, i) {
1841
1841
  const r = new Fe();
1842
1842
  r.setAttribute("position", new Jr(o, 3)), r.computeVertexNormals();
1843
1843
  const a = new Vt({ color: e }), l = new Y(r, a);
@@ -1853,7 +1853,7 @@ function Ts(o) {
1853
1853
  const a = r.getContext("2d");
1854
1854
  return a.fillStyle = "rgba(241, 241, 240, 1)", a.fillRect(0, 0, 512, 512), a.font = "220px blod", a.fillStyle = "#6D8994", a.textAlign = "center", a.textBaseline = "middle", a.fillText(o, 512 / 2, 512 / 2), r;
1855
1855
  }
1856
- function z1() {
1856
+ function H1() {
1857
1857
  const o = document.createElement("canvas"), e = o.getContext("2d"), i = 512, r = 512;
1858
1858
  o.width = i, o.height = r;
1859
1859
  const a = e.createLinearGradient(0, 0, 512, 512);
@@ -1862,7 +1862,7 @@ function z1() {
1862
1862
  return l.encoding = Ot, new Vt({ map: l, transparent: !0, side: 2 });
1863
1863
  }
1864
1864
  function j1() {
1865
- const o = new f1(0.6, 1, 100), e = z1(), i = new Y(o, e);
1865
+ const o = new f1(0.6, 1, 100), e = H1(), i = new Y(o, e);
1866
1866
  return i.scale.set(20, 20, 1), i.rotateX(-Math.PI / 2), i.position.y = -15, i;
1867
1867
  }
1868
1868
  class W1 {
@@ -1986,10 +1986,10 @@ class X1 {
1986
1986
  for (const b in this.viewer.objs) {
1987
1987
  let E = !1;
1988
1988
  if (this.viewer.objs[b].children.forEach((R) => {
1989
- const P = R.geometry.userData[y];
1990
- P && P.forEach((B) => {
1989
+ const B = R.geometry.userData[y];
1990
+ B && B.forEach((P) => {
1991
1991
  var k;
1992
- const _ = B.uuid;
1992
+ const _ = P.uuid;
1993
1993
  if (this.viewer.allMesh[_]) {
1994
1994
  h && ["Mesh", "LineSegments"].includes((k = this.viewer.allMesh[y]) == null ? void 0 : k.type) && c.push(this.viewer.allMesh[y]);
1995
1995
  const G = new Fe().copy(this.viewer.allMesh[_].geometry);
@@ -2025,8 +2025,6 @@ class X1 {
2025
2025
  new Fs(this.highLightMesh.geometry, Math.PI * 6.137)
2026
2026
  );
2027
2027
  }
2028
- setKeyDisplay(e) {
2029
- }
2030
2028
  // 清除高亮和树组件高亮
2031
2029
  clearHeightMeshAndTreeHeightLight() {
2032
2030
  var e, i, r, a, l, c, h, p, u, d, f, g, m, v, y;
@@ -2165,7 +2163,7 @@ class K1 {
2165
2163
  }
2166
2164
  // 获取射线检测的结果
2167
2165
  getRaycasterResult(e, i) {
2168
- var c, h, p, u, d, f, g, m, v, y, b, E, M, R, P;
2166
+ var c, h, p, u, d, f, g, m, v, y, b, E, M;
2169
2167
  const { intersectObjectsParams: r } = i;
2170
2168
  let a = Y1(this.viewer.renderer.domElement, e);
2171
2169
  this.raycaster.setFromCamera(a, this.viewer.camera);
@@ -2176,32 +2174,29 @@ class K1 {
2176
2174
  );
2177
2175
  if (i.useDefault)
2178
2176
  return l;
2179
- if (l.length > 0 && l[0].object.type == "Mesh" && l[0].faceIndex) {
2180
- const B = {}, _ = l[0].faceIndex * 3, k = l[0].object, G = k.geometry;
2181
- B.point = l[0].point, B.default = l;
2182
- const j = G.userData;
2177
+ if (l.length > 0 && l[0].object.type == "Mesh" && l[0].faceIndex !== void 0) {
2178
+ const R = {}, B = l[0].faceIndex * 3, P = l[0].object, _ = P.geometry;
2179
+ R.point = l[0].point, R.default = l;
2180
+ const k = _.userData;
2183
2181
  e:
2184
- for (const z in j) {
2185
- const H = j[z];
2186
- for (let $ = 0; $ < H.length; $++) {
2187
- const J = H[$];
2188
- if (_ < J.face_end && _ > J.face_start) {
2189
- const ge = J.uuid;
2190
- if (B.uuid = ge, B.guid = (h = (c = this.viewer.allMesh[ge]) == null ? void 0 : c.userData) == null ? void 0 : h.ExId, B.object = this.viewer.allMesh[ge], B.userData = (p = k.parent) == null ? void 0 : p.userData, i.highLightMesh)
2191
- if (this.raycasterResultGuid = "", ((u = this.viewer.options.utilsMenu.options.tree) == null ? void 0 : u.show) !== !1 && ((d = this.viewer.utilsMenuRef.treeRef) != null && d.show) && ((g = (f = this.viewer.utilsMenuRef) == null ? void 0 : f.treeRef) != null && g.onTreeNodePointerClick) && ((v = (m = this.viewer.utilsMenuRef) == null ? void 0 : m.treeRef) == null ? void 0 : v.activeName) !== "model" && ((b = (y = this.viewer.utilsMenuRef.treeRef) == null ? void 0 : y.currentTreeData) != null && b.length)) {
2192
- const ue = Jn(
2193
- (E = this.viewer.utilsMenuRef.treeRef) == null ? void 0 : E.currentTreeData[0],
2194
- this.viewer.allMesh[ge].userData.ExId,
2195
- "guid"
2196
- );
2197
- ue && ((M = this.viewer.utilsMenuRef.treeRef) == null || M.onTreeNodePointerClick(ue, !0));
2198
- } else
2199
- ((R = this.viewer.options.utilsMenu.options.tree) == null ? void 0 : R.show) !== !1 && (this.raycasterResultGuid = (P = this.viewer.allMesh[ge]) == null ? void 0 : P.userData.ExId), this.viewer.highLightMeshManager.setHighLightById([ge]);
2182
+ for (const G in k) {
2183
+ const W = k[G];
2184
+ for (let H = 0; H < W.length; H++) {
2185
+ const V = W[H];
2186
+ if (B < V.face_end && B >= V.face_start) {
2187
+ const $ = V.uuid, J = this.viewer.allMesh[$], ye = (c = J == null ? void 0 : J.userData) == null ? void 0 : c.ExId;
2188
+ if (R.uuid = $, R.guid = ye, R.object = J, R.userData = (h = P.parent) == null ? void 0 : h.userData, i.highLightMesh) {
2189
+ const ae = (p = this.viewer.utilsMenuRef) == null ? void 0 : p.treeRef, be = !!(ae != null && ae.show), j = !!((u = this.viewer.utilsMenuRef) != null && u.comInfoRef), ee = be || j || !!((f = (d = this.viewer.options) == null ? void 0 : d.baseConfig) != null && f.clickHighlight);
2190
+ if (this.raycasterResultGuid = "", ee) {
2191
+ const he = ((v = (m = (g = this.viewer.options.utilsMenu) == null ? void 0 : g.options) == null ? void 0 : m.tree) == null ? void 0 : v.show) !== !1 && be && !!(ae != null && ae.onTreeNodePointerClick) && (ae == null ? void 0 : ae.activeName) !== "model" && !!((y = ae == null ? void 0 : ae.currentTreeData) != null && y.length) ? Jn(ae.currentTreeData[0], ye, "guid") : void 0;
2192
+ he ? ae.onTreeNodePointerClick(he, !0) : (((M = (E = (b = this.viewer.options.utilsMenu) == null ? void 0 : b.options) == null ? void 0 : E.tree) == null ? void 0 : M.show) !== !1 && (this.raycasterResultGuid = ye), this.viewer.highLightMeshManager.setHighLightById([$]));
2193
+ }
2194
+ }
2200
2195
  break e;
2201
2196
  }
2202
2197
  }
2203
2198
  }
2204
- return B;
2199
+ return R;
2205
2200
  } else
2206
2201
  return null;
2207
2202
  }
@@ -2216,8 +2211,8 @@ class K1 {
2216
2211
  }
2217
2212
  }
2218
2213
  const Qt = (o, e, i) => {
2219
- const r = ce(null), a = document.createElement("div");
2220
- return i.appendChild(a), Lo(Ei(/* @__PURE__ */ He({
2214
+ const r = ue(null), a = document.createElement("div");
2215
+ return i.appendChild(a), Lo(Ei(/* @__PURE__ */ ze({
2221
2216
  setup() {
2222
2217
  return () => Ei(o, {
2223
2218
  ref: r,
@@ -2227,7 +2222,7 @@ const Qt = (o, e, i) => {
2227
2222
  })), a), r.value && (r.value.destroy = function() {
2228
2223
  Lo(null, a), i.removeChild(a), r.value = null;
2229
2224
  }), r.value;
2230
- }, q1 = /* @__PURE__ */ He({
2225
+ }, q1 = /* @__PURE__ */ ze({
2231
2226
  __name: "index",
2232
2227
  props: {
2233
2228
  text: { default: () => "-" },
@@ -2235,7 +2230,7 @@ const Qt = (o, e, i) => {
2235
2230
  enterable: { type: Boolean, default: () => !0 }
2236
2231
  },
2237
2232
  setup(o) {
2238
- const e = ce(!1), i = (l) => {
2233
+ const e = ue(!1), i = (l) => {
2239
2234
  e.value = a(l.target);
2240
2235
  }, r = () => {
2241
2236
  e.value = !1;
@@ -2269,7 +2264,7 @@ const et = (o, e) => {
2269
2264
  for (const [r, a] of e)
2270
2265
  i[r] = a;
2271
2266
  return i;
2272
- }, Wt = /* @__PURE__ */ et(q1, [["__scopeId", "data-v-c466b0fc"]]), Q1 = "data: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KqzndJvR21QxXFmW/WIsa+gYG2uZVhSuLIKSSoyMT/4Qx/rBqheWky00DTTJ4UA6gVZY3vv2dzTwfPDDYG2kXetkEeeihh2r2dff/B0Lo+irDW4u7hRBAAHceGOyVfsk2CIayCUIKJyTp6Bm4DQD+BgDq9R74LdTyMquqPWogOI0Bf3x4oE/4KoGa4IkQhFb1zDOj7YUG4yYEcDVC0GVeq8xu8qUJnd/ozjjywpp3kA8smnv6ZDvbzPzujjNORXHHJPdvrnyr9JL1EUfzcTbSynbe+ezos3YEW9eF2Dv5zLMGpFxxM5P9b1K6pYFdN7ch1hZCsknWvEHGvu/EEpjBScCYVG7fxM7gKPlyHauzWSTdSWkDYu/AJjuxrVtlbMGcnZTuLmlbPvPTNLQcKsdm2R9jfNww0CPnny994/LL+59Xo4M31f8D7yiCh0k/HrcAAAAASUVORK5CYII=", J1 = { class: "title" }, $1 = /* @__PURE__ */ He({
2267
+ }, Wt = /* @__PURE__ */ et(q1, [["__scopeId", "data-v-c466b0fc"]]), Q1 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMgAAADCCAYAAAAMw434AAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQmMJUd5/qvf3DM7e3l3Zuc+dnaAxcQ2xiHExoAVYoIsAg4KIUEON1gxAouIBHNsOJyExME2QgYZxBGCyIJsRIKJIYqRMSDHNsYGO+s95r53Z9az1+zMvHkVVXdXd1V1dXd1v+43/XqqJXt3X9fx/99fXx3/X1WNYJMejHE7ANwEADcAwBUA0LhJouhqqwOBMwDwJAAcBoDvIoROVkJsVIlKxDowxu8GgLs0KTYD/VzUOQ8ANyOE7ktbm4oTBGN8CAA+KSpWKpVgYwMDxhhw2lrr8qsWAdJgEUJQKBhgGOhDCKE701SmogTBGL8VAP6NVai4UYLV1XWTHPrRCERBoKbGWEdgvKqpqfYXUfJFSVsxgmCM6wHgBAB0UgFXV4uwulaMIq9OqxHgEMAAv93R2nhpWrBUkiBvthdYpi6EGIQg+tEIlItAaaN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props: {
2275
2270
  width: { default: () => "100%" },
@@ -2278,14 +2273,14 @@ const et = (o, e) => {
2278
2273
  title: { default: () => "暂无数据" }
2279
2274
  },
2280
2275
  setup(o) {
2281
- const e = ce(), i = ce({
2276
+ const e = ue(), i = ue({
2282
2277
  height: "30%"
2283
2278
  });
2284
2279
  return Dl(() => {
2285
2280
  e.value && (i.value = e.value.offsetHeight > e.value.offsetWidth ? { width: "30%" } : {
2286
2281
  height: "30%"
2287
2282
  });
2288
- }), (r, a) => (ie(), be("div", {
2283
+ }), (r, a) => (ie(), xe("div", {
2289
2284
  ref_key: "emptyRef",
2290
2285
  ref: e,
2291
2286
  class: "empty-box flx-center",
@@ -2300,7 +2295,7 @@ const et = (o, e) => {
2300
2295
  ], 4));
2301
2296
  }
2302
2297
  });
2303
- const Xi = /* @__PURE__ */ et($1, [["__scopeId", "data-v-7f559bc0"]]), ec = ["innerHTML"], tc = /* @__PURE__ */ He({
2298
+ const Xi = /* @__PURE__ */ et($1, [["__scopeId", "data-v-7f559bc0"]]), ec = ["innerHTML"], tc = /* @__PURE__ */ ze({
2304
2299
  __name: "SvgPathIcon",
2305
2300
  props: {
2306
2301
  svgContent: {},
@@ -2308,7 +2303,7 @@ const Xi = /* @__PURE__ */ et($1, [["__scopeId", "data-v-7f559bc0"]]), ec = ["in
2308
2303
  className: { default: "" }
2309
2304
  },
2310
2305
  setup(o) {
2311
- const e = o, { svgContent: i, iconStyle: r } = Ft(e), a = ce("");
2306
+ const e = o, { svgContent: i, iconStyle: r } = Ft(e), a = ue("");
2312
2307
  function l() {
2313
2308
  var p, u, d, f;
2314
2309
  const c = parseInt((p = r.value) == null ? void 0 : p.width), h = parseInt((u = r.value) == null ? void 0 : u.height);
@@ -2316,7 +2311,7 @@ const Xi = /* @__PURE__ */ et($1, [["__scopeId", "data-v-7f559bc0"]]), ec = ["in
2316
2311
  }
2317
2312
  return Bl(() => {
2318
2313
  l();
2319
- }), (c, h) => (ie(), be("span", {
2314
+ }), (c, h) => (ie(), xe("span", {
2320
2315
  innerHTML: K(a) || K(i),
2321
2316
  style: pt(K(r)),
2322
2317
  class: Rs(["svg-container", c.className])
@@ -2348,7 +2343,7 @@ const sc = /* @__PURE__ */ et(tc, [["__scopeId", "data-v-e4df4dc8"]]), nc = '<sv
2348
2343
  screenshot: Ec,
2349
2344
  tree: Sc,
2350
2345
  upload: Tc
2351
- }, Symbol.toStringTag, { value: "Module" })), Lc = /* @__PURE__ */ He({
2346
+ }, Symbol.toStringTag, { value: "Module" })), Lc = /* @__PURE__ */ ze({
2352
2347
  __name: "index",
2353
2348
  props: {
2354
2349
  svgContent: {},
@@ -2366,7 +2361,7 @@ const sc = /* @__PURE__ */ et(tc, [["__scopeId", "data-v-e4df4dc8"]]), nc = '<sv
2366
2361
  useParentTrigger: { type: Boolean }
2367
2362
  },
2368
2363
  setup(o) {
2369
- const e = o, i = ce(!1), r = ce(null), a = (l) => {
2364
+ const e = o, i = ue(!1), r = ue(null), a = (l) => {
2370
2365
  e.toolTipContent && (i.value = l);
2371
2366
  };
2372
2367
  return bt(() => {
@@ -2391,7 +2386,7 @@ const sc = /* @__PURE__ */ et(tc, [["__scopeId", "data-v-e4df4dc8"]]), nc = '<sv
2391
2386
  onMouseleave: c[1] || (c[1] = (h) => a(!1)),
2392
2387
  style: pt({ cursor: l.cur })
2393
2388
  }, [
2394
- l.leftText ? (ie(), be("div", {
2389
+ l.leftText ? (ie(), xe("div", {
2395
2390
  key: 0,
2396
2391
  class: "left-text text",
2397
2392
  style: pt({ color: l.textColor || l.color, ...l.titleStyle })
@@ -2403,7 +2398,7 @@ const sc = /* @__PURE__ */ et(tc, [["__scopeId", "data-v-e4df4dc8"]]), nc = '<sv
2403
2398
  "icon-style": { width: l.size, height: l.size, color: l.color, ...l.iconStyle },
2404
2399
  "svg-content": Uo[l.name] || l.svgContent
2405
2400
  }, null, 8, ["icon-style", "svg-content"]),
2406
- l.rightText ? (ie(), be("div", {
2401
+ l.rightText ? (ie(), xe("div", {
2407
2402
  key: 1,
2408
2403
  class: "right-text text",
2409
2404
  style: pt({ color: l.textColor || l.color, ...l.titleStyle })
@@ -2419,7 +2414,7 @@ const sc = /* @__PURE__ */ et(tc, [["__scopeId", "data-v-e4df4dc8"]]), nc = '<sv
2419
2414
  const Dt = /* @__PURE__ */ et(Lc, [["__scopeId", "data-v-621d0d75"]]), kc = {
2420
2415
  key: 2,
2421
2416
  class: "base-panel__header-title"
2422
- }, Mc = { class: "base-panel__body" }, Ic = { class: "base-panel__footer" }, Ac = /* @__PURE__ */ He({
2417
+ }, Mc = { class: "base-panel__body" }, Ic = { class: "base-panel__footer" }, Ac = /* @__PURE__ */ ze({
2423
2418
  __name: "index",
2424
2419
  props: {
2425
2420
  title: {},
@@ -2435,7 +2430,7 @@ const Dt = /* @__PURE__ */ et(Lc, [["__scopeId", "data-v-621d0d75"]]), kc = {
2435
2430
  closeCallback: {}
2436
2431
  },
2437
2432
  setup(o, { expose: e }) {
2438
- const i = o, r = !!Pl().header, a = ce(), l = (g) => {
2433
+ const i = o, r = !!Pl().header, a = ue(), l = (g) => {
2439
2434
  if (!i.drag)
2440
2435
  return;
2441
2436
  const m = a.value;
@@ -2449,9 +2444,9 @@ const Dt = /* @__PURE__ */ et(Lc, [["__scopeId", "data-v-621d0d75"]]), kc = {
2449
2444
  m.classList.add("dragging");
2450
2445
  const E = (R) => {
2451
2446
  R.preventDefault();
2452
- let P = R.clientX - y, B = R.clientY - b;
2453
- const _ = v.offsetWidth, k = v.offsetHeight, G = m.offsetWidth, j = m.offsetHeight;
2454
- P = Math.min(Math.max(P, 0), _ - G), B = Math.min(Math.max(B, 0), k - j), m.style.left = `${P}px`, m.style.top = `${B}px`;
2447
+ let B = R.clientX - y, P = R.clientY - b;
2448
+ const _ = v.offsetWidth, k = v.offsetHeight, G = m.offsetWidth, W = m.offsetHeight;
2449
+ B = Math.min(Math.max(B, 0), _ - G), P = Math.min(Math.max(P, 0), k - W), m.style.left = `${B}px`, m.style.top = `${P}px`;
2455
2450
  }, M = () => {
2456
2451
  document.removeEventListener("mousemove", E), document.removeEventListener("mouseup", M), m.classList.remove("dragging");
2457
2452
  };
@@ -2461,8 +2456,8 @@ const Dt = /* @__PURE__ */ et(Lc, [["__scopeId", "data-v-621d0d75"]]), kc = {
2461
2456
  return;
2462
2457
  const m = d(), v = m.width, y = m.height, b = g.clientX, E = g.clientY;
2463
2458
  a.value.classList.add("unselectable"), document.onpointermove = function(M) {
2464
- const R = M.clientX - b, P = M.clientY - E, B = Math.max(v + R, 50), _ = Math.max(y + P, 50);
2465
- a.value.style.width = `${B}px`, a.value.style.height = `${_}px`;
2459
+ const R = M.clientX - b, B = M.clientY - E, P = Math.max(v + R, 50), _ = Math.max(y + B, 50);
2460
+ a.value.style.width = `${P}px`, a.value.style.height = `${_}px`;
2466
2461
  }, document.onpointerup = function() {
2467
2462
  a.value.classList.remove("unselectable"), document.onpointermove = null, document.onpointerup = null, i != null && i.resizeCallback && i.resizeCallback(d());
2468
2463
  };
@@ -2518,20 +2513,20 @@ const Dt = /* @__PURE__ */ et(Lc, [["__scopeId", "data-v-621d0d75"]]), kc = {
2518
2513
  window.removeEventListener("resize", f);
2519
2514
  }), e({
2520
2515
  getBoundingClientRect: d
2521
- }), (g, m) => (ie(), be("div", {
2516
+ }), (g, m) => (ie(), xe("div", {
2522
2517
  class: "base-panel",
2523
2518
  ref_key: "basePanel",
2524
2519
  ref: a
2525
2520
  }, [
2526
- r || g.title || g.render ? (ie(), be("div", {
2521
+ r || g.title || g.render ? (ie(), xe("div", {
2527
2522
  key: 0,
2528
2523
  class: "base-panel__header",
2529
2524
  style: pt({ cursor: g.drag ? "move" : "auto" }),
2530
2525
  onMousedown: l
2531
2526
  }, [
2532
- r ? ii(g.$slots, "header", { key: 0 }, void 0, !0) : g.render ? (ie(), Re(Nl(g.render), { key: 1 })) : (ie(), be("span", kc, Ms(g.title), 1))
2527
+ r ? ii(g.$slots, "header", { key: 0 }, void 0, !0) : g.render ? (ie(), Re(Nl(g.render), { key: 1 })) : (ie(), xe("span", kc, Ms(g.title), 1))
2533
2528
  ], 36)) : ut("", !0),
2534
- g.close ? (ie(), be("span", {
2529
+ g.close ? (ie(), xe("span", {
2535
2530
  key: 1,
2536
2531
  class: "close-btn",
2537
2532
  onClick: u
@@ -2544,7 +2539,7 @@ const Dt = /* @__PURE__ */ et(Lc, [["__scopeId", "data-v-621d0d75"]]), kc = {
2544
2539
  oe("div", Ic, [
2545
2540
  r ? ii(g.$slots, "footer", { key: 0 }, void 0, !0) : ut("", !0)
2546
2541
  ]),
2547
- g.resize ? (ie(), be("div", {
2542
+ g.resize ? (ie(), xe("div", {
2548
2543
  key: 2,
2549
2544
  class: "base-panel__resize",
2550
2545
  onPointerdown: c,
@@ -2599,7 +2594,7 @@ function _c(o, e, i = [], r = !1) {
2599
2594
  return { category: d, floor: a[0], model: f, secondUuids: l, hiddenSecondIds: c };
2600
2595
  });
2601
2596
  }
2602
- const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClick", "onContextmenu"], Dc = /* @__PURE__ */ He({
2597
+ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClick", "onContextmenu"], Dc = /* @__PURE__ */ ze({
2603
2598
  __name: "index",
2604
2599
  props: {
2605
2600
  viewer: {},
@@ -2607,26 +2602,26 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2607
2602
  cardConfig: {}
2608
2603
  },
2609
2604
  setup(o, { expose: e }) {
2610
- const i = o, { config: r, viewer: a, cardConfig: l } = Ft(i), { model: c } = Ft(r.value), h = ce(!1);
2611
- function p(W) {
2612
- h.value = W;
2605
+ const i = o, { config: r, viewer: a, cardConfig: l } = Ft(i), { model: c } = Ft(r.value), h = ue(!1);
2606
+ function p(j) {
2607
+ h.value = j, j || k(null, !1, !1);
2613
2608
  }
2614
- const u = ce(""), d = Wr(() => {
2615
- const W = {
2609
+ const u = ue(""), d = Wr(() => {
2610
+ const j = {
2616
2611
  model: "模型",
2617
2612
  floor: "楼层",
2618
2613
  category: "构件"
2619
2614
  };
2620
- return r.value.tabs.map((te) => ({
2621
- label: W[te],
2622
- name: te
2615
+ return r.value.tabs.map((ee) => ({
2616
+ label: j[ee],
2617
+ name: ee
2623
2618
  }));
2624
- }), f = (W, te) => {
2619
+ }), f = (j, ee) => {
2625
2620
  var Q;
2626
- return te && (z(P.value[0], !0), te === "model" && (c.value.visible = !0, ((Q = a.value.highLightMeshManager.highLightMesh) == null ? void 0 : Q.visible) === !1 && (a.value.highLightMeshManager.highLightMesh.visible = !0, a.value.highLightMeshManager.highLightMeshLine.visible = !0)), H()), !0;
2627
- }, g = async (W, te = !1) => {
2621
+ return ee && (H(B.value[0], !0), ee === "model" && (c.value.visible = !0, ((Q = a.value.highLightMeshManager.highLightMesh) == null ? void 0 : Q.visible) === !1 && (a.value.highLightMeshManager.highLightMesh.visible = !0, a.value.highLightMeshManager.highLightMeshLine.visible = !0)), V()), !0;
2622
+ }, g = async (j, ee = !1) => {
2628
2623
  var Q;
2629
- if (u.value = W, P.value = R.value[u.value], v.value && v.value.setData(P.value), (Q = r.value) != null && Q.changeTabSaveHiddenMesh || te) {
2624
+ if (u.value = j, B.value = R.value[u.value], v.value && v.value.setData(B.value), (Q = r.value) != null && Q.changeTabSaveHiddenMesh || ee) {
2630
2625
  if (!J.value)
2631
2626
  return;
2632
2627
  let he = setTimeout(() => {
@@ -2636,29 +2631,29 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2636
2631
  } catch (me) {
2637
2632
  console.log(me);
2638
2633
  }
2639
- }), !te && a.value.hiddenObjectPartsByHiddenMeshGuids(), clearTimeout(he), he = null;
2634
+ }), !ee && a.value.hiddenObjectPartsByHiddenMeshGuids(), clearTimeout(he), he = null;
2640
2635
  }, 1e3);
2641
2636
  }
2642
- }, m = ce(""), v = ce(), y = (W) => {
2643
- v.value.filter(W);
2644
- }, b = (W, te) => {
2637
+ }, m = ue(""), v = ue(), y = (j) => {
2638
+ v.value.filter(j);
2639
+ }, b = (j, ee) => {
2645
2640
  var Q, he, de;
2646
- return te[((de = (he = (Q = r.value) == null ? void 0 : Q.treeConfig) == null ? void 0 : he.props) == null ? void 0 : de.label) || "name"].includes(W);
2647
- }, E = ce(400);
2641
+ return ee[((de = (he = (Q = r.value) == null ? void 0 : Q.treeConfig) == null ? void 0 : he.props) == null ? void 0 : de.label) || "name"].includes(j);
2642
+ }, E = ue(400);
2648
2643
  function M() {
2649
- var W, te;
2650
- E.value = ((te = (W = v.value) == null ? void 0 : W.$el) == null ? void 0 : te.clientHeight) || 400;
2644
+ var j, ee;
2645
+ E.value = ((ee = (j = v.value) == null ? void 0 : j.$el) == null ? void 0 : ee.clientHeight) || 400;
2651
2646
  }
2652
- const R = ce({
2647
+ const R = ue({
2653
2648
  model: [],
2654
2649
  floor: [],
2655
2650
  category: []
2656
- }), P = ce([]);
2657
- let B = [];
2658
- const _ = ce([]), k = (W, te = !1, Q = !0) => {
2651
+ }), B = ue([]);
2652
+ let P = [];
2653
+ const _ = ue([]), k = (j, ee = !1, Q = !0) => {
2659
2654
  var he, de;
2660
2655
  if (a.value) {
2661
- if (B = [], _.value = [], console.log(W), (W == null ? void 0 : W.parent) == null || !W.visible)
2656
+ if (P = [], _.value = [], console.log(j), (j == null ? void 0 : j.parent) == null || !j.visible)
2662
2657
  a.value.highLightMeshManager.clearHighLightMesh(Q);
2663
2658
  else {
2664
2659
  const se = function(me) {
@@ -2674,22 +2669,22 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2674
2669
  for (const ve in a.value.objects) {
2675
2670
  const x = a.value.objects[ve].geometry;
2676
2671
  x.userData[me.guid] && x.userData[me.guid].forEach((C) => {
2677
- B.push(C == null ? void 0 : C.uuid);
2672
+ P.push(C == null ? void 0 : C.uuid);
2678
2673
  });
2679
2674
  }
2680
2675
  };
2681
- se(W), B.length ? a.value.highLightMeshManager.setHighLightById(B, "uuid", Q) : (a.value.highLightMeshManager.clearHighLightMesh(), _.value = [], ea("未查询到对应构件."));
2676
+ se(j), P.length ? a.value.highLightMeshManager.setHighLightById(P, "uuid", Q) : (a.value.highLightMeshManager.clearHighLightMesh(), _.value = [], ea("未查询到对应构件."));
2682
2677
  }
2683
- v.value && te && (W != null && W.secondId) && u.value !== "model" && (v.value.setCurrentKey(W.secondId), oi(() => {
2678
+ v.value && ee && (j != null && j.secondId) && u.value !== "model" && (v.value.setCurrentKey(j.secondId), oi(() => {
2684
2679
  var me, ve, Ge;
2685
2680
  const se = (me = v.value) == null ? void 0 : me.getCurrentNode();
2686
2681
  se && ((ve = v.value) == null || ve.setExpandedKeys([se.secondId]), (Ge = v.value) == null || Ge.scrollToNode(se.secondId, "center"));
2687
- })), (he = r.value) != null && he.nodeClickCallback && ((de = r.value) == null || de.nodeClickCallback(W));
2682
+ })), (he = r.value) != null && he.nodeClickCallback && ((de = r.value) == null || de.nodeClickCallback(j));
2688
2683
  }
2689
- }, G = (W, te) => {
2690
- if (W.preventDefault(), te) {
2691
- if (te.secondId === _.value[0]) {
2692
- H();
2684
+ }, G = (j, ee) => {
2685
+ if (j.preventDefault(), ee) {
2686
+ if (ee.secondId === _.value[0]) {
2687
+ V();
2693
2688
  return;
2694
2689
  }
2695
2690
  const Q = function(he) {
@@ -2702,73 +2697,73 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2702
2697
  for (const se in a.value.objects) {
2703
2698
  const ve = a.value.objects[se].geometry;
2704
2699
  ve.userData[he.guid] && ve.userData[he.guid].forEach((Ge) => {
2705
- const x = B.indexOf(Ge.uuid);
2706
- x > -1 && B.splice(x, 1);
2700
+ const x = P.indexOf(Ge.uuid);
2701
+ x > -1 && P.splice(x, 1);
2707
2702
  });
2708
2703
  }
2709
2704
  };
2710
- Q(te), B.length ? a.value.highLightMeshManager.setHighLightById(B, "uuid", !1) : (a.value.highLightMeshManager.clearHighLightMesh(), _.value = []);
2705
+ Q(ee), P.length ? a.value.highLightMeshManager.setHighLightById(P, "uuid", !1) : (a.value.highLightMeshManager.clearHighLightMesh(), _.value = []);
2711
2706
  }
2712
- }, j = (W, te) => {
2707
+ }, W = (j, ee) => {
2713
2708
  var Q, he;
2714
- !((Q = r.value) != null && Q.model) || W.parent || (he = r.value) == null || he.model.children.forEach((de) => {
2715
- de instanceof Y && (de.material.depthTest = te, de.material.depthWrite = te);
2709
+ !((Q = r.value) != null && Q.model) || j.parent || (he = r.value) == null || he.model.children.forEach((de) => {
2710
+ de instanceof Y && (de.material.depthTest = ee, de.material.depthWrite = ee);
2716
2711
  });
2717
- }, z = (W, te) => {
2712
+ }, H = (j, ee) => {
2718
2713
  var Q, he, de, se, me, ve, Ge, x, C, L, w, T;
2719
2714
  try {
2720
2715
  if (a.value && c.value) {
2721
2716
  if (u.value === "model")
2722
- W.visible = te, c.value.visible = te, (me = (se = (de = (he = (Q = a.value.highLightMeshManager.highLightMesh) == null ? void 0 : Q.geometry) == null ? void 0 : he.attributes) == null ? void 0 : de.position) == null ? void 0 : se.array) != null && me.length && (a.value.highLightMeshManager.highLightMesh.visible = te, a.value.highLightMeshManager.highLightMeshLine.visible = te);
2717
+ j.visible = ee, c.value.visible = ee, (me = (se = (de = (he = (Q = a.value.highLightMeshManager.highLightMesh) == null ? void 0 : Q.geometry) == null ? void 0 : he.attributes) == null ? void 0 : de.position) == null ? void 0 : se.array) != null && me.length && (a.value.highLightMeshManager.highLightMesh.visible = ee, a.value.highLightMeshManager.highLightMeshLine.visible = ee);
2723
2718
  else {
2724
- let O = function(Z, ae) {
2719
+ let O = function(Z, le) {
2725
2720
  var fe;
2726
- Z.visible = ae, (fe = Z == null ? void 0 : Z.children) != null && fe.length && (Z == null || Z.children.forEach((le) => {
2727
- O(le, ae);
2721
+ Z.visible = le, (fe = Z == null ? void 0 : Z.children) != null && fe.length && (Z == null || Z.children.forEach((ce) => {
2722
+ O(ce, le);
2728
2723
  }));
2729
2724
  };
2730
- const A = !(W != null && W.parent);
2731
- O(W, te);
2725
+ const A = !(j != null && j.parent);
2726
+ O(j, ee);
2732
2727
  const I = {};
2733
2728
  let N = null;
2734
2729
  (L = (C = (x = (Ge = (ve = a.value.highLightMeshManager.highLightMesh) == null ? void 0 : ve.geometry) == null ? void 0 : Ge.attributes) == null ? void 0 : x.position) == null ? void 0 : C.array) != null && L.length && (N = a.value.highLightMeshManager.highLightMesh.geometry);
2735
- let V = !1;
2736
- const F = function(Z, ae) {
2730
+ let z = !1;
2731
+ const F = function(Z, le) {
2737
2732
  if (Z.children && Z.children.length > 0)
2738
2733
  Z.children.forEach((fe) => {
2739
- F(fe, ae);
2734
+ F(fe, le);
2740
2735
  });
2741
2736
  else {
2742
2737
  for (const fe in a.value.objects) {
2743
- const le = a.value.objects[fe];
2738
+ const ce = a.value.objects[fe];
2744
2739
  a.value.setObjectPartsToBeVisibleAndHiddenByGuid(
2745
- le.geometry,
2740
+ ce.geometry,
2746
2741
  Z.guid,
2747
- ae
2748
- ) && (I[fe] = le);
2742
+ le
2743
+ ) && (I[fe] = ce);
2749
2744
  }
2750
- N && (a.value.setObjectPartsToBeVisibleAndHiddenByGuid(N, Z.guid, ae), V = !0);
2745
+ N && (a.value.setObjectPartsToBeVisibleAndHiddenByGuid(N, Z.guid, le), z = !0);
2751
2746
  }
2752
2747
  };
2753
- F(W, A ? te : W.visible), V && a.value.highLightMeshManager.updateHighLightMeshLine();
2748
+ F(j, A ? ee : j.visible), z && a.value.highLightMeshManager.updateHighLightMeshLine();
2754
2749
  for (const Z in I) {
2755
- const ae = I[Z].geometry, fe = I[Z].children[0];
2756
- fe instanceof rs && (fe.geometry.dispose(), fe.geometry = new Fs(ae));
2750
+ const le = I[Z].geometry, fe = I[Z].children[0];
2751
+ fe instanceof rs && (fe.geometry.dispose(), fe.geometry = new Fs(le));
2757
2752
  }
2758
2753
  }
2759
- (w = r.value) != null && w.nodeCheckCallback && ((T = r.value) == null || T.nodeCheckCallback(W, te));
2754
+ (w = r.value) != null && w.nodeCheckCallback && ((T = r.value) == null || T.nodeCheckCallback(j, ee));
2760
2755
  }
2761
2756
  } catch (O) {
2762
2757
  console.log(O);
2763
2758
  }
2764
2759
  };
2765
- function H(W = !0) {
2766
- B = [], _.value = [], a.value.highLightMeshManager.clearHighLightMesh(W), v.value && v.value.setCurrentKey("");
2760
+ function V(j = !0) {
2761
+ P = [], _.value = [], a.value.highLightMeshManager.clearHighLightMesh(j), v.value && v.value.setCurrentKey("");
2767
2762
  }
2768
- const $ = ce([]), J = ce({});
2769
- async function ge() {
2770
- var W, te, Q, he, de, se, me, ve, Ge, x;
2771
- if ((te = (W = r.value) == null ? void 0 : W.tabs) != null && te.length && ((Q = a.value) != null && Q.objects)) {
2763
+ const $ = ue([]), J = ue({});
2764
+ async function ye() {
2765
+ var j, ee, Q, he, de, se, me, ve, Ge, x;
2766
+ if ((ee = (j = r.value) == null ? void 0 : j.tabs) != null && ee.length && ((Q = a.value) != null && Q.objects)) {
2772
2767
  u.value = (he = r.value) == null ? void 0 : he.tabs[0];
2773
2768
  const C = await _c(
2774
2769
  (de = r.value) == null ? void 0 : de.jsonFileUrl,
@@ -2781,38 +2776,38 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2781
2776
  }), $.value = C == null ? void 0 : C.secondUuids, J.value = C == null ? void 0 : C.hiddenSecondIds, g((x = r.value) == null ? void 0 : x.tabs[0], !0);
2782
2777
  }
2783
2778
  }
2784
- function ue() {
2779
+ function ae() {
2785
2780
  p(!0), oi(() => {
2786
2781
  if (a.value.rayCasterManager.raycasterResultGuid) {
2787
- const W = Jn(P.value[0], a.value.rayCasterManager.raycasterResultGuid, "guid");
2788
- W && k(W, !0, !1);
2782
+ const j = Jn(B.value[0], a.value.rayCasterManager.raycasterResultGuid, "guid");
2783
+ j && k(j, !0, !1);
2789
2784
  }
2790
2785
  });
2791
2786
  }
2792
- function Ce(W) {
2793
- var te;
2794
- p(!1), (te = l.value) != null && te.closeCallback && l.value.closeCallback(W);
2787
+ function be(j) {
2788
+ var ee;
2789
+ p(!1), (ee = l.value) != null && ee.closeCallback && l.value.closeCallback(j);
2795
2790
  }
2796
2791
  return bt(async () => {
2797
- await ge(), M(), ue(), oi(() => {
2798
- var W, te;
2799
- (W = r.value) != null && W.loadCallback && ((te = r.value) == null || te.loadCallback());
2792
+ await ye(), M(), ae(), oi(() => {
2793
+ var j, ee;
2794
+ (j = r.value) != null && j.loadCallback && ((ee = r.value) == null || ee.loadCallback());
2800
2795
  });
2801
2796
  }), e({
2802
2797
  show: h,
2803
2798
  setShow: p,
2804
- open: ue,
2799
+ open: ae,
2805
2800
  activeName: u,
2806
2801
  treeRef: v,
2807
2802
  onTreeNodePointerClick: k,
2808
- currentTreeData: P,
2803
+ currentTreeData: B,
2809
2804
  heightLightSecondIds: _,
2810
2805
  secondUuids: $,
2811
2806
  treeData: R
2812
- }), (W, te) => (ie(), Re(Cs, os({
2807
+ }), (j, ee) => (ie(), Re(Cs, os({
2813
2808
  style: { visibility: h.value ? "visible" : "hidden" },
2814
2809
  "resize-callback": M,
2815
- "close-callback": Ce
2810
+ "close-callback": be
2816
2811
  }, {
2817
2812
  resize: !0,
2818
2813
  drag: !0,
@@ -2827,13 +2822,13 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2827
2822
  u.value ? (ie(), Re(K(L1), {
2828
2823
  key: 0,
2829
2824
  modelValue: u.value,
2830
- "onUpdate:modelValue": te[0] || (te[0] = (Q) => u.value = Q),
2825
+ "onUpdate:modelValue": ee[0] || (ee[0] = (Q) => u.value = Q),
2831
2826
  class: "tree-tabs",
2832
2827
  "before-leave": f,
2833
- onTabChange: te[1] || (te[1] = (Q) => g(Q))
2828
+ onTabChange: ee[1] || (ee[1] = (Q) => g(Q))
2834
2829
  }, {
2835
2830
  default: Oe(() => [
2836
- (ie(!0), be(nt, null, vt(d.value, (Q) => (ie(), Re(K(k1), {
2831
+ (ie(!0), xe(nt, null, vt(d.value, (Q) => (ie(), Re(K(k1), {
2837
2832
  key: Q.name,
2838
2833
  label: Q.label,
2839
2834
  name: Q.name
@@ -2844,7 +2839,7 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2844
2839
  oe("div", Rc, [
2845
2840
  Te(K(M1), {
2846
2841
  modelValue: m.value,
2847
- "onUpdate:modelValue": te[2] || (te[2] = (Q) => m.value = Q),
2842
+ "onUpdate:modelValue": ee[2] || (ee[2] = (Q) => m.value = Q),
2848
2843
  style: { width: "100%" },
2849
2844
  placeholder: "过滤关键字",
2850
2845
  onChange: y,
@@ -2861,7 +2856,7 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2861
2856
  "expand-on-click-node": !1,
2862
2857
  "show-checkbox": "",
2863
2858
  height: E.value,
2864
- onCheckChange: z,
2859
+ onCheckChange: H,
2865
2860
  "default-checked-keys": $.value,
2866
2861
  "check-on-click-node": !1,
2867
2862
  "check-on-click-leaf": !1,
@@ -2878,8 +2873,8 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2878
2873
  "row-hover": Q.visible,
2879
2874
  "height-light": _.value.includes(Q.secondId) && Q.visible
2880
2875
  }),
2881
- onPointerover: (he) => j(Q, !1),
2882
- onPointerout: (he) => j(Q, !0),
2876
+ onPointerover: (he) => W(Q, !1),
2877
+ onPointerout: (he) => W(Q, !0),
2883
2878
  onClick: (he) => k(Q, !1),
2884
2879
  onContextmenu: (he) => G(he, _.value.includes(Q.secondId) && Q.visible ? Q : void 0)
2885
2880
  }, [
@@ -2900,7 +2895,7 @@ const Rc = { class: "tree-box" }, Oc = ["onPointerover", "onPointerout", "onClic
2900
2895
  }, 16, ["style"]));
2901
2896
  }
2902
2897
  });
2903
- const Bc = /* @__PURE__ */ et(Dc, [["__scopeId", "data-v-e582614f"]]), bs = function(o) {
2898
+ const Bc = /* @__PURE__ */ et(Dc, [["__scopeId", "data-v-54e25803"]]), bs = function(o) {
2904
2899
  const e = o.text, i = o.hPxText ? o.hPxText : 50, r = o.fgColor ? o.fgColor : "#ffffff", a = o.fontFamily ? o.fontFamily : "sans-serif", l = o.bold ? "bold " : "", c = o.italic ? "italic" : "", h = o.bgColor ? o.bgColor : ts("--el-color-primary"), p = document.createElement("canvas"), u = p.getContext("2d");
2905
2900
  if (u == null)
2906
2901
  return;
@@ -3385,25 +3380,25 @@ let la = class {
3385
3380
  });
3386
3381
  }
3387
3382
  };
3388
- const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = { class: "measure-types" }, Gc = ["onMouseup"], Vc = { class: "label" }, Hc = { class: "measure-result" }, zc = {
3383
+ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = { class: "measure-types" }, Gc = ["onMouseup"], Vc = { class: "label" }, zc = { class: "measure-result" }, Hc = {
3389
3384
  key: 0,
3390
3385
  class: "measure-result-box"
3391
- }, jc = { class: "label" }, Wc = { class: "clear-btn" }, Xc = /* @__PURE__ */ He({
3386
+ }, jc = { class: "label" }, Wc = { class: "clear-btn" }, Xc = /* @__PURE__ */ ze({
3392
3387
  __name: "index",
3393
3388
  props: {
3394
3389
  viewer: {},
3395
3390
  cardConfig: {}
3396
3391
  },
3397
3392
  setup(o, { expose: e }) {
3398
- const i = o, { viewer: r, cardConfig: a } = Ft(i), l = ce(), c = () => {
3399
- var P;
3400
- return (P = l.value) == null ? void 0 : P.getBoundingClientRect();
3401
- }, h = ce(!1), p = () => {
3393
+ const i = o, { viewer: r, cardConfig: a } = Ft(i), l = ue(), c = () => {
3394
+ var B;
3395
+ return (B = l.value) == null ? void 0 : B.getBoundingClientRect();
3396
+ }, h = ue(!1), p = () => {
3402
3397
  h.value = !h.value;
3403
3398
  };
3404
- function u(P) {
3405
- var B, _;
3406
- (B = a.value) != null && B.closeCallback && ((_ = a.value) == null || _.closeCallback(P));
3399
+ function u(B) {
3400
+ var P, _;
3401
+ (P = a.value) != null && P.closeCallback && ((_ = a.value) == null || _.closeCallback(B));
3407
3402
  }
3408
3403
  const d = {
3409
3404
  distance: {
@@ -3418,7 +3413,7 @@ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = {
3418
3413
  name: "标高",
3419
3414
  icon: "measureElevation"
3420
3415
  }
3421
- }, f = ce([
3416
+ }, f = ue([
3422
3417
  {
3423
3418
  bindValue: "m",
3424
3419
  label: "单位",
@@ -3444,17 +3439,17 @@ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = {
3444
3439
  function m() {
3445
3440
  g && g.adjustSetting({ unit: f.value[0].bindValue, precision: f.value[1].bindValue });
3446
3441
  }
3447
- const v = ce(""), y = (P) => {
3448
- P !== v.value && (v.value = P, g.setType(P), R());
3442
+ const v = ue(""), y = (B) => {
3443
+ B !== v.value && (v.value = B, g.setType(B), R());
3449
3444
  };
3450
3445
  function b() {
3451
3446
  r.value && r.value.rayCasterManager.setEventHandler(null), g = new la(r.value, {
3452
3447
  callback: M.bind(this)
3453
3448
  }), y("distance");
3454
3449
  }
3455
- const E = ce([]);
3456
- function M(P) {
3457
- E.value = P;
3450
+ const E = ue([]);
3451
+ function M(B) {
3452
+ E.value = B;
3458
3453
  }
3459
3454
  function R() {
3460
3455
  g && g.clearAll();
@@ -3462,12 +3457,12 @@ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = {
3462
3457
  return bt(() => {
3463
3458
  b();
3464
3459
  }), an(() => {
3465
- var P, B;
3460
+ var B, P;
3466
3461
  R(), g && g.destory(), r.value && // rayCaster为数组时 判断长度 为对象时判断type是否有值
3467
- (Array.isArray(r.value.options.rayCaster) ? (P = r.value.options.rayCaster) != null && P.length : (B = r.value.options.rayCaster) != null && B.type) && r.value && r.value.rayCasterManager.setEventHandler(r.value.options.rayCaster);
3462
+ (Array.isArray(r.value.options.rayCaster) ? (B = r.value.options.rayCaster) != null && B.length : (P = r.value.options.rayCaster) != null && P.type) && r.value && r.value.rayCasterManager.setEventHandler(r.value.options.rayCaster);
3468
3463
  }), e({
3469
3464
  getCardDOMRect: c
3470
- }), (P, B) => (ie(), Re(Cs, os({
3465
+ }), (B, P) => (ie(), Re(Cs, os({
3471
3466
  ref_key: "CardRef",
3472
3467
  ref: l,
3473
3468
  "close-callback": u
@@ -3483,10 +3478,10 @@ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = {
3483
3478
  oe("div", Nc, [
3484
3479
  oe("div", Fc, [
3485
3480
  oe("div", Uc, [
3486
- (ie(), be(nt, null, vt(d, (k, G) => oe("div", {
3481
+ (ie(), xe(nt, null, vt(d, (k, G) => oe("div", {
3487
3482
  class: Rs(["measure-type", { active: K(v) === G }]),
3488
3483
  key: k.name,
3489
- onMouseup: (j) => y(G)
3484
+ onMouseup: (W) => y(G)
3490
3485
  }, [
3491
3486
  Te(Dt, {
3492
3487
  "use-parent-trigger": "",
@@ -3510,7 +3505,7 @@ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = {
3510
3505
  class: "measure-config",
3511
3506
  style: pt({ height: K(h) ? K(v) === "angle" ? "39px" : "68px" : "0" })
3512
3507
  }, [
3513
- (ie(!0), be(nt, null, vt(K(f), (k) => Hi((ie(), be("div", {
3508
+ (ie(!0), xe(nt, null, vt(K(f), (k) => zi((ie(), xe("div", {
3514
3509
  class: "unit-box config",
3515
3510
  key: k.label
3516
3511
  }, [
@@ -3522,7 +3517,7 @@ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = {
3522
3517
  onChange: m
3523
3518
  }, {
3524
3519
  default: Oe(() => [
3525
- (ie(!0), be(nt, null, vt(k.options, (G) => (ie(), Re(K(sa), {
3520
+ (ie(!0), xe(nt, null, vt(k.options, (G) => (ie(), Re(K(sa), {
3526
3521
  key: G.value,
3527
3522
  label: G.name,
3528
3523
  value: G.value
@@ -3534,9 +3529,9 @@ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = {
3534
3529
  [Xr, k.key.includes(K(v))]
3535
3530
  ])), 128))
3536
3531
  ], 4),
3537
- oe("div", Hc, [
3538
- (_ = K(E)) != null && _.length ? (ie(), be("div", zc, [
3539
- (ie(!0), be(nt, null, vt(K(E), (k, G) => (ie(), be("div", {
3532
+ oe("div", zc, [
3533
+ (_ = K(E)) != null && _.length ? (ie(), xe("div", Hc, [
3534
+ (ie(!0), xe(nt, null, vt(K(E), (k, G) => (ie(), xe("div", {
3540
3535
  class: "measure-item",
3541
3536
  key: G
3542
3537
  }, [
@@ -3555,9 +3550,9 @@ const Nc = { class: "measure-box" }, Fc = { class: "measure-types-box" }, Uc = {
3555
3550
  oe("div", Wc, [
3556
3551
  Te(K(na), {
3557
3552
  size: "small",
3558
- onClick: B[0] || (B[0] = (k) => R())
3553
+ onClick: P[0] || (P[0] = (k) => R())
3559
3554
  }, {
3560
- default: Oe(() => B[1] || (B[1] = [
3555
+ default: Oe(() => P[1] || (P[1] = [
3561
3556
  Zr("清除")
3562
3557
  ])),
3563
3558
  _: 1
@@ -3654,7 +3649,7 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3654
3649
  }, n0 = {
3655
3650
  key: 0,
3656
3651
  class: "loading-box"
3657
- }, i0 = /* @__PURE__ */ He({
3652
+ }, i0 = /* @__PURE__ */ ze({
3658
3653
  __name: "index",
3659
3654
  props: {
3660
3655
  viewer: {},
@@ -3662,7 +3657,7 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3662
3657
  otherInfo: {}
3663
3658
  },
3664
3659
  setup(o, { expose: e }) {
3665
- const i = o, { viewer: r, cardConfig: a } = Ft(i), l = ce(), c = () => {
3660
+ const i = o, { viewer: r, cardConfig: a } = Ft(i), l = ue(), c = () => {
3666
3661
  var y;
3667
3662
  return (y = l.value) == null ? void 0 : y.getBoundingClientRect();
3668
3663
  };
@@ -3670,27 +3665,27 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3670
3665
  var b, E;
3671
3666
  (b = a.value) != null && b.closeCallback && ((E = a.value) == null || E.closeCallback(y));
3672
3667
  }
3673
- const p = ce([]), u = ce(0);
3668
+ const p = ue([]), u = ue(0);
3674
3669
  async function d(y) {
3675
3670
  p.value = y, u.value = 0, await v(p.value[0]);
3676
3671
  }
3677
3672
  async function f(y) {
3678
- var b, E, M, R, P, B, _, k, G, j, z, H, $, J, ge;
3679
- if (await v(p.value[y]), p.value[y] instanceof Y && (r.value.focusOnTheMesh(p.value[y]), ((b = r.value.options.utilsMenu.options.tree) == null ? void 0 : b.show) !== !1 && ((E = r.value.utilsMenuRef.treeRef) != null && E.show) && ((R = (M = r.value.utilsMenuRef) == null ? void 0 : M.treeRef) != null && R.onTreeNodePointerClick) && ((B = (P = r.value.utilsMenuRef) == null ? void 0 : P.treeRef) == null ? void 0 : B.activeName) !== "model" && ((k = (_ = r.value.utilsMenuRef.treeRef) == null ? void 0 : _.currentTreeData) != null && k.length))) {
3680
- const ue = Jn(
3673
+ var b, E, M, R, B, P, _, k, G, W, H, V, $, J, ye;
3674
+ if (await v(p.value[y]), p.value[y] instanceof Y && (r.value.focusOnTheMesh(p.value[y]), ((b = r.value.options.utilsMenu.options.tree) == null ? void 0 : b.show) !== !1 && ((E = r.value.utilsMenuRef.treeRef) != null && E.show) && ((R = (M = r.value.utilsMenuRef) == null ? void 0 : M.treeRef) != null && R.onTreeNodePointerClick) && ((P = (B = r.value.utilsMenuRef) == null ? void 0 : B.treeRef) == null ? void 0 : P.activeName) !== "model" && ((k = (_ = r.value.utilsMenuRef.treeRef) == null ? void 0 : _.currentTreeData) != null && k.length))) {
3675
+ const ae = Jn(
3681
3676
  (G = r.value.utilsMenuRef.treeRef) == null ? void 0 : G.currentTreeData[0],
3682
3677
  p.value[y].userData.ExId,
3683
3678
  "guid"
3684
3679
  );
3685
- if (ue && (ue != null && ue.secondId)) {
3686
- (H = (z = (j = r.value.utilsMenuRef) == null ? void 0 : j.treeRef) == null ? void 0 : z.treeRef) == null || H.setExpandedKeys([ue == null ? void 0 : ue.secondId]), (ge = (J = ($ = r.value.utilsMenuRef) == null ? void 0 : $.treeRef) == null ? void 0 : J.treeRef) == null || ge.scrollToNode(ue == null ? void 0 : ue.secondId, "center");
3687
- const Ce = p.value[y].clone(), W = new Fe().copy(Ce.geometry);
3688
- W.applyMatrix4(Ce.matrix), W.deleteAttribute("normal"), W.deleteAttribute("uv"), W.userData = {
3689
- mesh: Ce.geometry.uuid,
3690
- guid: Ce.geometry.userData.ExId
3680
+ if (ae && (ae != null && ae.secondId)) {
3681
+ (V = (H = (W = r.value.utilsMenuRef) == null ? void 0 : W.treeRef) == null ? void 0 : H.treeRef) == null || V.setExpandedKeys([ae == null ? void 0 : ae.secondId]), (ye = (J = ($ = r.value.utilsMenuRef) == null ? void 0 : $.treeRef) == null ? void 0 : J.treeRef) == null || ye.scrollToNode(ae == null ? void 0 : ae.secondId, "center");
3682
+ const be = p.value[y].clone(), j = new Fe().copy(be.geometry);
3683
+ j.applyMatrix4(be.matrix), j.deleteAttribute("normal"), j.deleteAttribute("uv"), j.userData = {
3684
+ mesh: be.geometry.uuid,
3685
+ guid: be.geometry.userData.ExId
3691
3686
  };
3692
- const te = new Y(
3693
- W,
3687
+ const ee = new Y(
3688
+ j,
3694
3689
  new Ve({
3695
3690
  color: 14365695,
3696
3691
  transparent: !0,
@@ -3699,11 +3694,11 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3699
3694
  depthWrite: !1
3700
3695
  })
3701
3696
  );
3702
- r.value.highLightMeshManager.highLightMesh.add(te);
3697
+ r.value.highLightMeshManager.highLightMesh.add(ee);
3703
3698
  }
3704
3699
  }
3705
3700
  }
3706
- const g = ce([]), m = new ha(Kc, 4);
3701
+ const g = ue([]), m = new ha(Kc, 4);
3707
3702
  async function v(y) {
3708
3703
  var b, E, M, R;
3709
3704
  g.value = [];
@@ -3712,50 +3707,50 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3712
3707
  switch (y == null ? void 0 : y.type) {
3713
3708
  case "Mesh":
3714
3709
  if (g.value.push({ label: "构件名称", value: (y == null ? void 0 : y.name) || "暂无" }), g.value.push({ label: "构件分类", value: y == null ? void 0 : y.type }), y != null && y.material) {
3715
- let B = [y == null ? void 0 : y.material].flat(1 / 0);
3716
- const _ = g.value.push({ label: "构件材质", value: B.length ? [] : "暂无" }) - 1;
3717
- for (let k = 0; k < B.length; k++) {
3710
+ let P = [y == null ? void 0 : y.material].flat(1 / 0);
3711
+ const _ = g.value.push({ label: "构件材质", value: P.length ? [] : "暂无" }) - 1;
3712
+ for (let k = 0; k < P.length; k++) {
3718
3713
  g.value[_].value[k] = { loading: !0 };
3719
- let G = B[k];
3714
+ let G = P[k];
3720
3715
  try {
3721
3716
  if (G != null && G.map && ((b = G == null ? void 0 : G.map) != null && b.image))
3722
3717
  if ((E = G == null ? void 0 : G.map.image) != null && E.currentSrc)
3723
3718
  g.value[_].value[k] = { map: (R = (M = G.map) == null ? void 0 : M.image) == null ? void 0 : R.currentSrc };
3724
3719
  else {
3725
- const z = document.createElement("canvas").transferControlToOffscreen(), H = G == null ? void 0 : G.map.image, $ = {
3720
+ const H = document.createElement("canvas").transferControlToOffscreen(), V = G == null ? void 0 : G.map.image, $ = {
3726
3721
  // 仍然发送 OffscreenCanvas 的引用,而不是所有权
3727
- canvas: z,
3722
+ canvas: H,
3728
3723
  // 发送原始图片数据
3729
- imageSource: H
3730
- }, J = [z];
3731
- (H instanceof Blob || H instanceof File) && J.push(H), m.run($, J).then((ge) => {
3732
- const ue = ge == null ? void 0 : ge.data;
3733
- g.value[_].value[k] = ue ? { map: ue } : null;
3734
- }).catch((ge) => {
3724
+ imageSource: V
3725
+ }, J = [H];
3726
+ (V instanceof Blob || V instanceof File) && J.push(V), m.run($, J).then((ye) => {
3727
+ const ae = ye == null ? void 0 : ye.data;
3728
+ g.value[_].value[k] = ae ? { map: ae } : null;
3729
+ }).catch((ye) => {
3735
3730
  g.value[_].value[k] = null;
3736
3731
  });
3737
3732
  }
3738
3733
  else {
3739
- let j = G == null ? void 0 : G.color.getStyle();
3740
- g.value[_].value[k] = j ? { color: j } : null;
3734
+ let W = G == null ? void 0 : G.color.getStyle();
3735
+ g.value[_].value[k] = W ? { color: W } : null;
3741
3736
  }
3742
3737
  } catch {
3743
3738
  g.value[_].value[k] = null;
3744
3739
  }
3745
3740
  }
3746
3741
  }
3747
- let P = Yc(y);
3748
- if (P != null && P.isVector3) {
3749
- let B = `${Math.round(P.x * 10) / 10}m*${Math.round(P.y * 10) / 10}m*${Math.round(P.z * 10) / 10}m`;
3750
- g.value.push({ label: "构件尺寸", value: B });
3742
+ let B = Yc(y);
3743
+ if (B != null && B.isVector3) {
3744
+ let P = `${Math.round(B.x * 10) / 10}m*${Math.round(B.y * 10) / 10}m*${Math.round(B.z * 10) / 10}m`;
3745
+ g.value.push({ label: "构件尺寸", value: P });
3751
3746
  }
3752
3747
  break;
3753
3748
  default:
3754
3749
  g.value = [];
3755
3750
  break;
3756
3751
  }
3757
- } catch (P) {
3758
- console.log({ error: P });
3752
+ } catch (B) {
3753
+ console.log({ error: B });
3759
3754
  }
3760
3755
  }
3761
3756
  return bt(() => {
@@ -3786,7 +3781,7 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3786
3781
  var E;
3787
3782
  return [
3788
3783
  oe("div", Qc, [
3789
- ((E = K(p)) == null ? void 0 : E.length) > 1 ? (ie(), be("div", Jc, [
3784
+ ((E = K(p)) == null ? void 0 : E.length) > 1 ? (ie(), xe("div", Jc, [
3790
3785
  Te(K(ta), {
3791
3786
  modelValue: K(u),
3792
3787
  "onUpdate:modelValue": b[0] || (b[0] = (M) => Si(u) ? u.value = M : null),
@@ -3795,7 +3790,7 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3795
3790
  onChange: f
3796
3791
  }, {
3797
3792
  default: Oe(() => [
3798
- (ie(!0), be(nt, null, vt(K(p), (M, R) => (ie(), Re(K(sa), {
3793
+ (ie(!0), xe(nt, null, vt(K(p), (M, R) => (ie(), Re(K(sa), {
3799
3794
  key: R,
3800
3795
  label: M.name,
3801
3796
  value: R,
@@ -3805,10 +3800,10 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3805
3800
  _: 1
3806
3801
  }, 8, ["modelValue"])
3807
3802
  ])) : ut("", !0),
3808
- K(g).length ? (ie(), be("div", $c, [
3809
- (ie(!0), be(nt, null, vt(K(g), (M) => {
3803
+ K(g).length ? (ie(), xe("div", $c, [
3804
+ (ie(!0), xe(nt, null, vt(K(g), (M) => {
3810
3805
  var R;
3811
- return ie(), be("div", {
3806
+ return ie(), xe("div", {
3812
3807
  class: "descriptions-item",
3813
3808
  key: M.label
3814
3809
  }, [
@@ -3818,14 +3813,14 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3818
3813
  }, null, 8, ["text"])
3819
3814
  ]),
3820
3815
  oe("div", t0, [
3821
- M.label === "构件材质" && ((R = M.value.filter((P) => !!(P != null && P.loading) || !!(P != null && P.map) || !!(P != null && P.color))) != null && R.length) ? (ie(), be("div", s0, [
3822
- (ie(!0), be(nt, null, vt(M.value, (P, B) => (ie(), be(nt, { key: B }, [
3823
- P.loading ? (ie(), be("div", n0, [
3816
+ M.label === "构件材质" && ((R = M.value.filter((B) => !!(B != null && B.loading) || !!(B != null && B.map) || !!(B != null && B.color))) != null && R.length) ? (ie(), xe("div", s0, [
3817
+ (ie(!0), xe(nt, null, vt(M.value, (B, P) => (ie(), xe(nt, { key: P }, [
3818
+ B.loading ? (ie(), xe("div", n0, [
3824
3819
  Te(Dt, {
3825
3820
  name: "loading",
3826
3821
  size: "16px"
3827
3822
  })
3828
- ])) : P.map ? (ie(), Re(K(Pn), {
3823
+ ])) : B.map ? (ie(), Re(K(Pn), {
3829
3824
  key: 1,
3830
3825
  content: "贴图",
3831
3826
  placement: "top"
@@ -3833,21 +3828,21 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3833
3828
  default: Oe(() => [
3834
3829
  Te(K(A1), {
3835
3830
  class: "material-item",
3836
- src: P.map,
3831
+ src: B.map,
3837
3832
  fit: "cover",
3838
- "preview-src-list": [P.map]
3833
+ "preview-src-list": [B.map]
3839
3834
  }, null, 8, ["src", "preview-src-list"])
3840
3835
  ]),
3841
3836
  _: 2
3842
- }, 1024)) : P.color ? (ie(), Re(K(Pn), {
3837
+ }, 1024)) : B.color ? (ie(), Re(K(Pn), {
3843
3838
  key: 2,
3844
- content: P.color,
3839
+ content: B.color,
3845
3840
  placement: "top"
3846
3841
  }, {
3847
3842
  default: Oe(() => [
3848
3843
  oe("div", {
3849
3844
  class: "material-item",
3850
- style: pt({ backgroundColor: P })
3845
+ style: pt({ backgroundColor: B })
3851
3846
  }, null, 4)
3852
3847
  ]),
3853
3848
  _: 2
@@ -3873,7 +3868,7 @@ const ha = qc, Qc = { class: "com-info-box" }, Jc = { key: 0 }, $c = {
3873
3868
  }
3874
3869
  });
3875
3870
  const o0 = /* @__PURE__ */ et(i0, [["__scopeId", "data-v-9386eb37"]]);
3876
- class ua extends zi {
3871
+ class ua extends Hi {
3877
3872
  constructor(i, r, a) {
3878
3873
  super();
3879
3874
  S(this, "_plane", new Xe());
@@ -3940,7 +3935,7 @@ const us = new cs(), st = new U(), Yt = new U(), Ae = new yt(), Vo = {
3940
3935
  X: new U(1, 0, 0),
3941
3936
  Y: new U(0, 1, 0),
3942
3937
  Z: new U(0, 0, 1)
3943
- }, ci = { type: "change" }, Ho = { type: "mouseDown" }, zo = { type: "mouseUp", mode: null }, jo = { type: "objectChange" };
3938
+ }, ci = { type: "change" }, zo = { type: "mouseDown" }, Ho = { type: "mouseUp", mode: null }, jo = { type: "objectChange" };
3944
3939
  class pa extends sn {
3945
3940
  constructor(e, i) {
3946
3941
  super(), i === void 0 && (console.warn('THREE.TransformControls: The second parameter "domElement" is now mandatory.'), i = document), this.isTransformControls = !0, this.visible = !1, this.domElement = i, this.domElement.style.touchAction = "none";
@@ -3950,13 +3945,13 @@ class pa extends sn {
3950
3945
  this._plane = a, this.add(a);
3951
3946
  const l = this;
3952
3947
  function c(M, R) {
3953
- let P = R;
3948
+ let B = R;
3954
3949
  Object.defineProperty(l, M, {
3955
3950
  get: function() {
3956
- return P !== void 0 ? P : R;
3951
+ return B !== void 0 ? B : R;
3957
3952
  },
3958
- set: function(B) {
3959
- P !== B && (P = B, a[M] = B, r[M] = B, l.dispatchEvent({ type: M + "-changed", value: B }), l.dispatchEvent(ci));
3953
+ set: function(P) {
3954
+ B !== P && (B = P, a[M] = P, r[M] = P, l.dispatchEvent({ type: M + "-changed", value: P }), l.dispatchEvent(ci));
3960
3955
  }
3961
3956
  }), l[M] = R, a[M] = R, r[M] = R;
3962
3957
  }
@@ -3979,7 +3974,7 @@ class pa extends sn {
3979
3974
  if (!(this.object === void 0 || this.dragging === !0 || e.button !== 0) && this.axis !== null) {
3980
3975
  us.setFromCamera(e, this.camera);
3981
3976
  const i = hi(this._plane, us, !0);
3982
- i && (this.object.updateMatrixWorld(), this.object.parent.updateMatrixWorld(), this._positionStart.copy(this.object.position), this._quaternionStart.copy(this.object.quaternion), this._scaleStart.copy(this.object.scale), this.object.matrixWorld.decompose(this.worldPositionStart, this.worldQuaternionStart, this._worldScaleStart), this.pointStart.copy(i.point).sub(this.worldPositionStart)), this.dragging = !0, Ho.mode = this.mode, this.dispatchEvent(Ho);
3977
+ i && (this.object.updateMatrixWorld(), this.object.parent.updateMatrixWorld(), this._positionStart.copy(this.object.position), this._quaternionStart.copy(this.object.quaternion), this._scaleStart.copy(this.object.scale), this.object.matrixWorld.decompose(this.worldPositionStart, this.worldQuaternionStart, this._worldScaleStart), this.pointStart.copy(i.point).sub(this.worldPositionStart)), this.dragging = !0, zo.mode = this.mode, this.dispatchEvent(zo);
3983
3978
  }
3984
3979
  }
3985
3980
  pointerMove(e) {
@@ -4008,7 +4003,7 @@ class pa extends sn {
4008
4003
  }
4009
4004
  }
4010
4005
  pointerUp(e) {
4011
- e.button === 0 && (this.dragging && this.axis !== null && (zo.mode = this.mode, this.dispatchEvent(zo)), this.dragging = !1, this.axis = null);
4006
+ e.button === 0 && (this.dragging && this.axis !== null && (Ho.mode = this.mode, this.dispatchEvent(Ho)), this.dragging = !1, this.axis = null);
4012
4007
  }
4013
4008
  dispose() {
4014
4009
  this.domElement.removeEventListener("pointerdown", this._onPointerDown), this.domElement.removeEventListener("pointermove", this._onPointerHover), this.domElement.removeEventListener("pointermove", this._onPointerMove), this.domElement.removeEventListener("pointerup", this._onPointerUp), this.traverse(function(e) {
@@ -4142,15 +4137,15 @@ class u0 extends sn {
4142
4137
  E.setPositions([0, 0, 0, 1, 0, 0]);
4143
4138
  const M = new tt(75e-4, 75e-4, 0.5, 3);
4144
4139
  M.translate(0, 0.25, 0);
4145
- function R(ue, Ce) {
4146
- const W = new js(ue, 75e-4, 3, 64, Ce * Math.PI * 2);
4147
- return W.rotateY(Math.PI / 2), W.rotateX(Math.PI / 2), W;
4140
+ function R(ae, be) {
4141
+ const j = new js(ae, 75e-4, 3, 64, be * Math.PI * 2);
4142
+ return j.rotateY(Math.PI / 2), j.rotateX(Math.PI / 2), j;
4148
4143
  }
4149
- function P() {
4150
- const ue = new Fe();
4151
- return ue.setAttribute("position", new Jr([0, 0, 0, 1, 1, 1], 3)), ue;
4144
+ function B() {
4145
+ const ae = new Fe();
4146
+ return ae.setAttribute("position", new Jr([0, 0, 0, 1, 1, 1], 3)), ae;
4152
4147
  }
4153
- const B = {
4148
+ const P = {
4154
4149
  X: [
4155
4150
  [new Y(y, l), [0.5, 0, 0], [0, 0, -Math.PI / 2]],
4156
4151
  [new Y(y, l), [-0.5, 0, 0], [0, 0, Math.PI / 2]],
@@ -4190,7 +4185,7 @@ class u0 extends sn {
4190
4185
  }, k = {
4191
4186
  START: [[new Y(new bn(0.01, 2), a), null, null, null, "helper"]],
4192
4187
  END: [[new Y(new bn(0.01, 2), a), null, null, null, "helper"]],
4193
- DELTA: [[new Gt(P(), a), null, null, null, "helper"]],
4188
+ DELTA: [[new Gt(B(), a), null, null, null, "helper"]],
4194
4189
  X: [[new Gt(E, a.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]],
4195
4190
  Y: [[new Gt(E, a.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]],
4196
4191
  Z: [[new Gt(E, a.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]]
@@ -4200,15 +4195,15 @@ class u0 extends sn {
4200
4195
  Y: [[new Y(R(0.5, 0.5), c), null, [0, 0, -Math.PI / 2]]],
4201
4196
  Z: [[new Y(R(0.5, 0.5), h), null, [0, Math.PI / 2, 0]]],
4202
4197
  E: [[new Y(R(0.75, 1), g), null, [0, Math.PI / 2, 0]]]
4203
- }, j = {
4198
+ }, W = {
4204
4199
  AXIS: [[new Gt(E, a.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]]
4205
- }, z = {
4200
+ }, H = {
4206
4201
  XYZE: [[new Y(new b1(0.25, 10, 8), r)]],
4207
4202
  X: [[new Y(new js(0.5, 0.1, 4, 24), r), [0, 0, 0], [0, -Math.PI / 2, -Math.PI / 2]]],
4208
4203
  Y: [[new Y(new js(0.5, 0.1, 4, 24), r), [0, 0, 0], [Math.PI / 2, 0, 0]]],
4209
4204
  Z: [[new Y(new js(0.5, 0.1, 4, 24), r), [0, 0, 0], [0, 0, -Math.PI / 2]]],
4210
4205
  E: [[new Y(new js(0.75, 0.1, 2, 24), r)]]
4211
- }, H = {
4206
+ }, V = {
4212
4207
  X: [
4213
4208
  [new Y(b, l), [0.5, 0, 0], [0, 0, -Math.PI / 2]],
4214
4209
  [new Y(M, l), [0, 0, 0], [0, 0, -Math.PI / 2]],
@@ -4250,18 +4245,18 @@ class u0 extends sn {
4250
4245
  Y: [[new Gt(E, a.clone()), [0, -1e3, 0], [0, 0, Math.PI / 2], [1e6, 1, 1], "helper"]],
4251
4246
  Z: [[new Gt(E, a.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]]
4252
4247
  };
4253
- function ge(ue) {
4254
- const Ce = new sn();
4255
- for (const W in ue)
4256
- for (let te = ue[W].length; te--; ) {
4257
- const Q = ue[W][te][0].clone(), he = ue[W][te][1], de = ue[W][te][2], se = ue[W][te][3], me = ue[W][te][4];
4258
- Q.name = W, Q.tag = me, he && Q.position.set(he[0], he[1], he[2]), de && Q.rotation.set(de[0], de[1], de[2]), se && Q.scale.set(se[0], se[1], se[2]), Q.updateMatrix();
4248
+ function ye(ae) {
4249
+ const be = new sn();
4250
+ for (const j in ae)
4251
+ for (let ee = ae[j].length; ee--; ) {
4252
+ const Q = ae[j][ee][0].clone(), he = ae[j][ee][1], de = ae[j][ee][2], se = ae[j][ee][3], me = ae[j][ee][4];
4253
+ Q.name = j, Q.tag = me, he && Q.position.set(he[0], he[1], he[2]), de && Q.rotation.set(de[0], de[1], de[2]), se && Q.scale.set(se[0], se[1], se[2]), Q.updateMatrix();
4259
4254
  const ve = Q.geometry.clone();
4260
- ve.applyMatrix4(Q.matrix), Q.geometry = ve, Q.renderOrder = 1 / 0, Q.position.set(0, 0, 0), Q.rotation.set(0, 0, 0), Q.scale.set(1, 1, 1), Ce.add(Q);
4255
+ ve.applyMatrix4(Q.matrix), Q.geometry = ve, Q.renderOrder = 1 / 0, Q.position.set(0, 0, 0), Q.rotation.set(0, 0, 0), Q.scale.set(1, 1, 1), be.add(Q);
4261
4256
  }
4262
- return Ce;
4257
+ return be;
4263
4258
  }
4264
- this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = ge(B)), this.add(this.gizmo.rotate = ge(G)), this.add(this.gizmo.scale = ge(H)), this.add(this.picker.translate = ge(_)), this.add(this.picker.rotate = ge(z)), this.add(this.picker.scale = ge($)), this.add(this.helper.translate = ge(k)), this.add(this.helper.rotate = ge(j)), this.add(this.helper.scale = ge(J)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
4259
+ this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = ye(P)), this.add(this.gizmo.rotate = ye(G)), this.add(this.gizmo.scale = ye(V)), this.add(this.picker.translate = ye(_)), this.add(this.picker.rotate = ye(H)), this.add(this.picker.scale = ye($)), this.add(this.helper.translate = ye(k)), this.add(this.helper.rotate = ye(W)), this.add(this.helper.scale = ye(J)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
4265
4260
  }
4266
4261
  // updateMatrixWorld will update transformations and appearance of individual handles
4267
4262
  updateMatrixWorld(e) {
@@ -4618,7 +4613,7 @@ let d0 = class {
4618
4613
  this.localMesh.geometry.dispose(), this.localMesh.material.dispose(), this.group.remove(this.localMesh), this.globalPlanes.length = 0, this.localPlanes.length = 0, this.dragControl.dispose(), this.transControl.dispose(), this.group.remove(this.transControl);
4619
4614
  }
4620
4615
  };
4621
- const f0 = { class: "cutting-box" }, m0 = { class: "cutting-item" }, g0 = { class: "slider" }, y0 = { class: "cutting-item" }, v0 = { class: "slider" }, b0 = { class: "cutting-item" }, x0 = { class: "slider" }, C0 = /* @__PURE__ */ He({
4616
+ const f0 = { class: "cutting-box" }, m0 = { class: "cutting-item" }, g0 = { class: "slider" }, y0 = { class: "cutting-item" }, v0 = { class: "slider" }, b0 = { class: "cutting-item" }, x0 = { class: "slider" }, C0 = /* @__PURE__ */ ze({
4622
4617
  __name: "index",
4623
4618
  props: {
4624
4619
  viewer: {},
@@ -4628,9 +4623,9 @@ const f0 = { class: "cutting-box" }, m0 = { class: "cutting-item" }, g0 = { clas
4628
4623
  setup(o, { expose: e }) {
4629
4624
  const i = o, { viewer: r, cardConfig: a } = Ft(i);
4630
4625
  let l;
4631
- const c = ce({ x: { min: -1e5, max: 1e5 }, y: { min: -1e5, max: 1e5 }, z: { min: -1e5, max: 1e5 } }), h = ce(""), p = (g) => {
4626
+ const c = ue({ x: { min: -1e5, max: 1e5 }, y: { min: -1e5, max: 1e5 }, z: { min: -1e5, max: 1e5 } }), h = ue(""), p = (g) => {
4632
4627
  h.value = g, l && l.setClippingType(g);
4633
- }, u = ce({
4628
+ }, u = ue({
4634
4629
  x: [0, 0],
4635
4630
  y: [0, 0],
4636
4631
  z: [0, 0]
@@ -4732,7 +4727,7 @@ const f0 = { class: "cutting-box" }, m0 = { class: "cutting-item" }, g0 = { clas
4732
4727
  }, 16)) : ut("", !0);
4733
4728
  }
4734
4729
  });
4735
- const w0 = /* @__PURE__ */ et(C0, [["__scopeId", "data-v-021484ab"]]), E0 = { class: "base-info-box" }, S0 = { class: "descriptions-box" }, T0 = { class: "label" }, L0 = { class: "content" }, k0 = /* @__PURE__ */ He({
4730
+ const w0 = /* @__PURE__ */ et(C0, [["__scopeId", "data-v-021484ab"]]), E0 = { class: "base-info-box" }, S0 = { class: "descriptions-box" }, T0 = { class: "label" }, L0 = { class: "content" }, k0 = /* @__PURE__ */ ze({
4736
4731
  __name: "index",
4737
4732
  props: {
4738
4733
  viewer: {},
@@ -4740,7 +4735,7 @@ const w0 = /* @__PURE__ */ et(C0, [["__scopeId", "data-v-021484ab"]]), E0 = { cl
4740
4735
  otherInfo: {}
4741
4736
  },
4742
4737
  setup(o, { expose: e }) {
4743
- const i = o, { viewer: r, cardConfig: a } = Ft(i), l = ce(), c = () => {
4738
+ const i = o, { viewer: r, cardConfig: a } = Ft(i), l = ue(), c = () => {
4744
4739
  var d;
4745
4740
  return (d = l.value) == null ? void 0 : d.getBoundingClientRect();
4746
4741
  };
@@ -4748,7 +4743,7 @@ const w0 = /* @__PURE__ */ et(C0, [["__scopeId", "data-v-021484ab"]]), E0 = { cl
4748
4743
  var f, g;
4749
4744
  (f = a.value) != null && f.closeCallback && ((g = a.value) == null || g.closeCallback(d));
4750
4745
  }
4751
- const p = ce([
4746
+ const p = ue([
4752
4747
  { label: "构件数量", value: 0 },
4753
4748
  { label: "三角面数量", value: 0 },
4754
4749
  { label: "顶点数量", value: 0 }
@@ -4762,14 +4757,14 @@ const w0 = /* @__PURE__ */ et(C0, [["__scopeId", "data-v-021484ab"]]), E0 = { cl
4762
4757
  let f = 0, g = 0;
4763
4758
  for (let E in (v = r.value) == null ? void 0 : v.objs)
4764
4759
  ((y = r.value) == null ? void 0 : y.objs[E]).children.forEach((R) => {
4765
- var P;
4760
+ var B;
4766
4761
  if (R != null && R.isMesh) {
4767
- const B = R == null ? void 0 : R.geometry;
4768
- B.index ? f += ((P = B.index) == null ? void 0 : P.count) / 3 : f += B.attributes.position.count / 3;
4762
+ const P = R == null ? void 0 : R.geometry;
4763
+ P.index ? f += ((B = P.index) == null ? void 0 : B.count) / 3 : f += P.attributes.position.count / 3;
4769
4764
  }
4770
4765
  if (R != null && R.isMesh || R != null && R.isLine || R.isPoints) {
4771
- const B = R == null ? void 0 : R.geometry;
4772
- B != null && B.isBufferGeometry ? g += B.attributes.position.count : B != null && B.isGeometry && (g += B.vertices.length);
4766
+ const P = R == null ? void 0 : R.geometry;
4767
+ P != null && P.isBufferGeometry ? g += P.attributes.position.count : P != null && P.isGeometry && (g += P.vertices.length);
4773
4768
  }
4774
4769
  });
4775
4770
  f && (p.value[1].value = f), g && (p.value[2].value = f), g && (p.value[2].value = g), (b = i.otherInfo) != null && b.length && p.value.push(...i.otherInfo);
@@ -4792,7 +4787,7 @@ const w0 = /* @__PURE__ */ et(C0, [["__scopeId", "data-v-021484ab"]]), E0 = { cl
4792
4787
  default: Oe(() => [
4793
4788
  oe("div", E0, [
4794
4789
  oe("div", S0, [
4795
- (ie(!0), be(nt, null, vt(K(p), (g) => (ie(), be("div", {
4790
+ (ie(!0), xe(nt, null, vt(K(p), (g) => (ie(), xe("div", {
4796
4791
  class: "descriptions-item",
4797
4792
  key: g.label
4798
4793
  }, [
@@ -4814,7 +4809,7 @@ const w0 = /* @__PURE__ */ et(C0, [["__scopeId", "data-v-021484ab"]]), E0 = { cl
4814
4809
  }, 16));
4815
4810
  }
4816
4811
  });
4817
- const M0 = /* @__PURE__ */ et(k0, [["__scopeId", "data-v-102dd608"]]), I0 = { class: "config-box" }, A0 = { class: "inner-config-box" }, _0 = { class: "config-item" }, R0 = { class: "value-box" }, O0 = { class: "config-item" }, D0 = { class: "color-box" }, B0 = ["onClick"], P0 = { class: "color-item" }, N0 = /* @__PURE__ */ He({
4812
+ const M0 = /* @__PURE__ */ et(k0, [["__scopeId", "data-v-102dd608"]]), I0 = { class: "config-box" }, A0 = { class: "inner-config-box" }, _0 = { class: "config-item" }, R0 = { class: "value-box" }, O0 = { class: "config-item" }, D0 = { class: "color-box" }, B0 = ["onClick"], P0 = { class: "color-item" }, N0 = /* @__PURE__ */ ze({
4818
4813
  __name: "index",
4819
4814
  props: {
4820
4815
  viewer: {},
@@ -4823,7 +4818,7 @@ const M0 = /* @__PURE__ */ et(k0, [["__scopeId", "data-v-102dd608"]]), I0 = { cl
4823
4818
  },
4824
4819
  setup(o, { expose: e }) {
4825
4820
  var y;
4826
- const i = o, { viewer: r, cardConfig: a, otherInfo: l } = Ft(i), c = ce(!1);
4821
+ const i = o, { viewer: r, cardConfig: a, otherInfo: l } = Ft(i), c = ue(!1);
4827
4822
  function h(b) {
4828
4823
  c.value = b;
4829
4824
  }
@@ -4831,7 +4826,7 @@ const M0 = /* @__PURE__ */ et(k0, [["__scopeId", "data-v-102dd608"]]), I0 = { cl
4831
4826
  var E;
4832
4827
  h(!1), (E = a.value) != null && E.closeCallback && a.value.closeCallback(b);
4833
4828
  }
4834
- const u = ce([
4829
+ const u = ue([
4835
4830
  "linear-gradient(lightblue, white)",
4836
4831
  "linear-gradient(#5c5c5c, white)",
4837
4832
  "linear-gradient(#272727, white)",
@@ -4839,7 +4834,7 @@ const M0 = /* @__PURE__ */ et(k0, [["__scopeId", "data-v-102dd608"]]), I0 = { cl
4839
4834
  "linear-gradient(#32475b, white)"
4840
4835
  ]);
4841
4836
  let d = !0;
4842
- const f = ce({
4837
+ const f = ue({
4843
4838
  modelLine: ((y = l.value) == null ? void 0 : y.modelLine) || !1,
4844
4839
  activeBg: 0
4845
4840
  }), g = (b) => {
@@ -4847,7 +4842,7 @@ const M0 = /* @__PURE__ */ et(k0, [["__scopeId", "data-v-102dd608"]]), I0 = { cl
4847
4842
  if (d) {
4848
4843
  for (let E in r.value.objs)
4849
4844
  r.value.objs[E].children.map((R) => {
4850
- const P = R.geometry.clone(), B = new Fs(P), _ = new rs(B, new Pt({ color: "#5c5c5c" }));
4845
+ const B = R.geometry.clone(), P = new Fs(B), _ = new rs(P, new Pt({ color: "#5c5c5c" }));
4851
4846
  _.userData.type = "edge", r.value.scene.add(_);
4852
4847
  });
4853
4848
  d = !1;
@@ -4905,14 +4900,14 @@ const M0 = /* @__PURE__ */ et(k0, [["__scopeId", "data-v-102dd608"]]), I0 = { cl
4905
4900
  oe("div", O0, [
4906
4901
  E[2] || (E[2] = oe("div", { class: "label" }, "背景颜色", -1)),
4907
4902
  oe("div", D0, [
4908
- (ie(!0), be(nt, null, vt(K(u), (M, R) => (ie(), be("div", {
4903
+ (ie(!0), xe(nt, null, vt(K(u), (M, R) => (ie(), xe("div", {
4909
4904
  class: "color-item",
4910
4905
  key: R,
4911
4906
  style: pt({
4912
4907
  backgroundImage: M,
4913
4908
  border: K(f).activeBg === R ? "1px solid var(--el-color-primary)" : "transparent"
4914
4909
  }),
4915
- onClick: (P) => v(R)
4910
+ onClick: (B) => v(R)
4916
4911
  }, null, 12, B0))), 128)),
4917
4912
  oe("div", P0, [
4918
4913
  Te(Dt, {
@@ -4937,7 +4932,7 @@ const M0 = /* @__PURE__ */ et(k0, [["__scopeId", "data-v-102dd608"]]), I0 = { cl
4937
4932
  }, 16, ["style"]));
4938
4933
  }
4939
4934
  });
4940
- const F0 = /* @__PURE__ */ et(N0, [["__scopeId", "data-v-464a671e"]]), U0 = { class: "roam-box" }, G0 = { class: "option-card-box" }, V0 = { class: "descriptions-box" }, H0 = { class: "label" }, z0 = { class: "content" }, j0 = { class: "option-btn-box" }, W0 = { class: "option-item" }, X0 = { class: "option-btn" }, Z0 = { class: "option-item" }, Y0 = { class: "option-btn" }, K0 = { class: "exit-btn" }, q0 = /* @__PURE__ */ He({
4935
+ const F0 = /* @__PURE__ */ et(N0, [["__scopeId", "data-v-464a671e"]]), U0 = { class: "roam-box" }, G0 = { class: "option-card-box" }, V0 = { class: "descriptions-box" }, z0 = { class: "label" }, H0 = { class: "content" }, j0 = { class: "option-btn-box" }, W0 = { class: "option-item" }, X0 = { class: "option-btn" }, Z0 = { class: "option-item" }, Y0 = { class: "option-btn" }, K0 = { class: "exit-btn" }, q0 = /* @__PURE__ */ ze({
4941
4936
  __name: "index",
4942
4937
  props: {
4943
4938
  viewer: {},
@@ -4945,9 +4940,9 @@ const F0 = /* @__PURE__ */ et(N0, [["__scopeId", "data-v-464a671e"]]), U0 = { cl
4945
4940
  state: {}
4946
4941
  },
4947
4942
  setup(o, { expose: e }) {
4948
- const i = o, { viewer: r, cardConfig: a, state: l } = Ft(i), c = ce(!0), h = (y) => {
4943
+ const i = o, { viewer: r, cardConfig: a, state: l } = Ft(i), c = ue(!0), h = (y) => {
4949
4944
  c.value = y;
4950
- }, p = ce(), u = () => {
4945
+ }, p = ue(), u = () => {
4951
4946
  var y;
4952
4947
  return (y = p.value) == null ? void 0 : y.getBoundingClientRect();
4953
4948
  };
@@ -4955,7 +4950,7 @@ const F0 = /* @__PURE__ */ et(N0, [["__scopeId", "data-v-464a671e"]]), U0 = { cl
4955
4950
  var b, E;
4956
4951
  (b = a.value) != null && b.closeCallback && ((E = a.value) == null || E.closeCallback(y));
4957
4952
  }
4958
- const f = ce([
4953
+ const f = ue([
4959
4954
  { label: "W", value: "向前移动" },
4960
4955
  { label: "S", value: "向后移动" },
4961
4956
  { label: "A", value: "向左移动" },
@@ -4966,7 +4961,7 @@ const F0 = /* @__PURE__ */ et(N0, [["__scopeId", "data-v-464a671e"]]), U0 = { cl
4966
4961
  { label: "F", value: "整体向下移动" },
4967
4962
  { label: "鼠标中键", value: "滚轮放大缩小" },
4968
4963
  { label: "鼠标右键", value: "拖拽改变视角" }
4969
- ]), g = ce(0), m = ce(0), v = () => {
4964
+ ]), g = ue(0), m = ue(0), v = () => {
4970
4965
  r.value.setControl(l.value, {
4971
4966
  moveSpeed: g.value,
4972
4967
  rotateSpeed: m.value
@@ -4980,7 +4975,7 @@ const F0 = /* @__PURE__ */ et(N0, [["__scopeId", "data-v-464a671e"]]), U0 = { cl
4980
4975
  (Array.isArray(r.value.options.rayCaster) ? (y = r.value.options.rayCaster) != null && y.length : (b = r.value.options.rayCaster) != null && b.type) && r.value && r.value.rayCasterManager.setEventHandler(r.value.options.rayCaster);
4981
4976
  }), e({
4982
4977
  getCardDOMRect: u
4983
- }), (y, b) => (ie(), be("div", U0, [
4978
+ }), (y, b) => (ie(), xe("div", U0, [
4984
4979
  Te(Cs, os({
4985
4980
  style: { visibility: K(c) ? "visible" : "hidden" },
4986
4981
  ref_key: "CardRef",
@@ -4997,16 +4992,16 @@ const F0 = /* @__PURE__ */ et(N0, [["__scopeId", "data-v-464a671e"]]), U0 = { cl
4997
4992
  default: Oe(() => [
4998
4993
  oe("div", G0, [
4999
4994
  oe("div", V0, [
5000
- (ie(!0), be(nt, null, vt(K(f), (E) => (ie(), be("div", {
4995
+ (ie(!0), xe(nt, null, vt(K(f), (E) => (ie(), xe("div", {
5001
4996
  class: "descriptions-item",
5002
4997
  key: E.label
5003
4998
  }, [
5004
- oe("div", H0, [
4999
+ oe("div", z0, [
5005
5000
  Te(Wt, {
5006
5001
  text: E.label
5007
5002
  }, null, 8, ["text"])
5008
5003
  ]),
5009
- oe("div", z0, [
5004
+ oe("div", H0, [
5010
5005
  Te(Wt, {
5011
5006
  text: E.value
5012
5007
  }, null, 8, ["text"])
@@ -5079,7 +5074,7 @@ const F0 = /* @__PURE__ */ et(N0, [["__scopeId", "data-v-464a671e"]]), U0 = { cl
5079
5074
  ]));
5080
5075
  }
5081
5076
  });
5082
- const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["onClick"], $0 = ["onClick"], eh = ["onClick"], En = "20px", da = /* @__PURE__ */ He({
5077
+ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["onClick"], $0 = ["onClick"], eh = ["onClick"], En = "20px", da = /* @__PURE__ */ ze({
5083
5078
  __name: "index",
5084
5079
  props: {
5085
5080
  leave: { default: 1 },
@@ -5114,7 +5109,7 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5114
5109
  function c(h, p) {
5115
5110
  i("handleSelect", h, p);
5116
5111
  }
5117
- return (h, p) => (ie(!0), be(nt, null, vt(h.utils, (u, d) => (ie(), be(nt, {
5112
+ return (h, p) => (ie(!0), xe(nt, null, vt(h.utils, (u, d) => (ie(), xe(nt, {
5118
5113
  key: u.name
5119
5114
  }, [
5120
5115
  u.children ? (ie(), Re(K(R1), {
@@ -5157,7 +5152,7 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5157
5152
  class: Rs({ "is-active2": h.currentActive[d] })
5158
5153
  }, {
5159
5154
  default: Oe(() => [
5160
- h.leave > 1 ? (ie(), be("div", {
5155
+ h.leave > 1 ? (ie(), xe("div", {
5161
5156
  key: 0,
5162
5157
  class: "icon-box",
5163
5158
  onClick: (f) => c(d, [...h.keyPath, d])
@@ -5168,7 +5163,7 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5168
5163
  "right-text": u.name,
5169
5164
  "icon-style": { marginRight: "8px" }
5170
5165
  }, null, 8, ["name", "right-text"])
5171
- ], 8, $0)) : (ie(), be("div", {
5166
+ ], 8, $0)) : (ie(), xe("div", {
5172
5167
  key: 1,
5173
5168
  class: "icon-box",
5174
5169
  onClick: (f) => c(d, [...h.keyPath, d])
@@ -5185,7 +5180,7 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5185
5180
  }, 1032, ["index", "class"]))
5186
5181
  ], 64))), 128));
5187
5182
  }
5188
- }), th = { class: "utils-menu-box" }, sh = /* @__PURE__ */ He({
5183
+ }), th = { class: "utils-menu-box" }, sh = /* @__PURE__ */ ze({
5189
5184
  __name: "index",
5190
5185
  props: {
5191
5186
  show: { type: Boolean },
@@ -5193,37 +5188,37 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5193
5188
  options: {}
5194
5189
  },
5195
5190
  setup(o, { expose: e }) {
5196
- const i = o, { viewer: r } = Ft(i), a = ce(!0), l = ce({}), c = ce({}), h = ce({}), p = (B, _, k) => {
5197
- var G, j, z, H;
5191
+ const i = o, { viewer: r } = Ft(i), a = ue(!0), l = ue({}), c = ue({}), h = ue({}), p = (P, _, k) => {
5192
+ var G, W, H, V;
5198
5193
  if (_) {
5199
- const { left: $, top: J } = r.value.element.getBoundingClientRect(), { width: ge, height: ue, left: Ce, top: W } = _;
5200
- h.value[B] = {
5201
- size: { height: ue + "px", width: ge + "px" },
5202
- position: { left: Ce - $ + "px", top: W - J + "px" }
5203
- }, (j = (G = k == null ? void 0 : k.cardConfig) == null ? void 0 : G.size) != null && j.width || delete h.value[B].size.width, (H = (z = k == null ? void 0 : k.cardConfig) == null ? void 0 : z.size) != null && H.height || delete h.value[B].size.height;
5194
+ const { left: $, top: J } = r.value.element.getBoundingClientRect(), { width: ye, height: ae, left: be, top: j } = _;
5195
+ h.value[P] = {
5196
+ size: { height: ae + "px", width: ye + "px" },
5197
+ position: { left: be - $ + "px", top: j - J + "px" }
5198
+ }, (W = (G = k == null ? void 0 : k.cardConfig) == null ? void 0 : G.size) != null && W.width || delete h.value[P].size.width, (V = (H = k == null ? void 0 : k.cardConfig) == null ? void 0 : H.size) != null && V.height || delete h.value[P].size.height;
5204
5199
  }
5205
- }, u = ce(), d = ce(), f = ce(), g = ce(), m = ce(), v = ce(), y = ce(), b = (B, _) => {
5206
- (Array.isArray(B) ? B : [B]).forEach((j) => {
5200
+ }, u = ue(), d = ue(), f = ue(), g = ue(), m = ue(), v = ue(), y = ue(), b = (P, _) => {
5201
+ (Array.isArray(P) ? P : [P]).forEach((W) => {
5207
5202
  var $;
5208
- const z = !c.value[j];
5209
- let H;
5210
- z ? (H = P(l.value, _), !(H != null && H.children) && (H != null && H.active) && (c.value[j] = H, ($ = H.conflictKey) != null && $.length && E(H.conflictKey)), G(j, z ? H : c.value[j])) : E([j]);
5203
+ const H = !c.value[W];
5204
+ let V;
5205
+ H ? (V = B(l.value, _), !(V != null && V.children) && (V != null && V.active) && (c.value[W] = V, ($ = V.conflictKey) != null && $.length && E(V.conflictKey)), G(W, H ? V : c.value[W])) : E([W]);
5211
5206
  }), M();
5212
- function G(j, z) {
5213
- var H, $, J, ge, ue;
5214
- switch (z != null && z.activeCallback && (z == null || z.activeCallback()), j) {
5207
+ function G(W, H) {
5208
+ var V, $, J, ye, ae;
5209
+ switch (H != null && H.activeCallback && (H == null || H.activeCallback()), W) {
5215
5210
  case "review":
5216
- (H = r.value) == null || H.resetView();
5211
+ (V = r.value) == null || V.resetView();
5217
5212
  break;
5218
5213
  case "tree":
5219
5214
  u.value ? u.value.open() : u.value = Qt(
5220
5215
  Bc,
5221
5216
  {
5222
5217
  viewer: r.value,
5223
- config: z.config,
5218
+ config: H.config,
5224
5219
  cardConfig: {
5225
5220
  closeCallback: () => b(["tree"]),
5226
- ...z.cardConfig
5221
+ ...H.cardConfig
5227
5222
  }
5228
5223
  },
5229
5224
  r.value.element.parentElement
@@ -5236,25 +5231,25 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5236
5231
  {
5237
5232
  viewer: r.value,
5238
5233
  cardConfig: {
5239
- closeCallback: () => b([j]),
5240
- ...z.cardConfig
5234
+ closeCallback: () => b([W]),
5235
+ ...H.cardConfig
5241
5236
  },
5242
- state: j
5237
+ state: W
5243
5238
  },
5244
5239
  r.value.element.parentElement
5245
5240
  ), a.value = !1;
5246
5241
  break;
5247
5242
  case "screenshot":
5248
5243
  ($ = r.value) == null || $.renderScene();
5249
- const Ce = r.value.element.toDataURL((z == null ? void 0 : z.type) || "image/png", (z == null ? void 0 : z.quality) || 1);
5250
- if ((z == null ? void 0 : z.download) !== !1) {
5251
- const W = atob(Ce.split(",")[1]), te = Ce.split(",")[0].split(":")[1].split(";")[0], Q = new ArrayBuffer(W.length), he = new Uint8Array(Q);
5252
- for (let ve = 0; ve < W.length; ve++)
5253
- he[ve] = W.charCodeAt(ve);
5254
- const de = new Blob([he], { type: te }), se = URL.createObjectURL(de), me = document.createElement("a");
5244
+ const be = r.value.element.toDataURL((H == null ? void 0 : H.type) || "image/png", (H == null ? void 0 : H.quality) || 1);
5245
+ if ((H == null ? void 0 : H.download) !== !1) {
5246
+ const j = atob(be.split(",")[1]), ee = be.split(",")[0].split(":")[1].split(";")[0], Q = new ArrayBuffer(j.length), he = new Uint8Array(Q);
5247
+ for (let ve = 0; ve < j.length; ve++)
5248
+ he[ve] = j.charCodeAt(ve);
5249
+ const de = new Blob([he], { type: ee }), se = URL.createObjectURL(de), me = document.createElement("a");
5255
5250
  me.href = se, me.download = "scene.png", me.click(), URL.revokeObjectURL(se);
5256
5251
  }
5257
- z != null && z.screenshotCallback && (z == null || z.screenshotCallback(Ce));
5252
+ H != null && H.screenshotCallback && (H == null || H.screenshotCallback(be));
5258
5253
  break;
5259
5254
  case "global":
5260
5255
  case "local":
@@ -5263,16 +5258,16 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5263
5258
  {
5264
5259
  viewer: r.value,
5265
5260
  cardConfig: {
5266
- closeCallback: (W) => {
5261
+ closeCallback: (j) => {
5267
5262
  b(["local"]);
5268
5263
  },
5269
- ...z.cardConfig,
5270
- ...h.value[j]
5264
+ ...H.cardConfig,
5265
+ ...h.value[W]
5271
5266
  },
5272
5267
  currentActive: c.value
5273
5268
  },
5274
5269
  r.value.element.parentElement
5275
- )), (J = r.value) == null || J.resetView(), (ge = g.value) == null || ge.setCurrentType(j);
5270
+ )), (J = r.value) == null || J.resetView(), (ye = g.value) == null || ye.setCurrentType(W);
5276
5271
  break;
5277
5272
  case "measure":
5278
5273
  d.value = Qt(
@@ -5280,11 +5275,11 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5280
5275
  {
5281
5276
  viewer: r.value,
5282
5277
  cardConfig: {
5283
- closeCallback: (W) => {
5284
- b([j]);
5278
+ closeCallback: (j) => {
5279
+ b([W]);
5285
5280
  },
5286
- ...z.cardConfig,
5287
- ...h.value[j]
5281
+ ...H.cardConfig,
5282
+ ...h.value[W]
5288
5283
  }
5289
5284
  },
5290
5285
  r.value.element.parentElement
@@ -5296,11 +5291,11 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5296
5291
  {
5297
5292
  viewer: r.value,
5298
5293
  cardConfig: {
5299
- closeCallback: (W) => {
5300
- b([j]);
5294
+ closeCallback: (j) => {
5295
+ b([W]);
5301
5296
  },
5302
- ...z.cardConfig,
5303
- ...h.value[j]
5297
+ ...H.cardConfig,
5298
+ ...h.value[W]
5304
5299
  }
5305
5300
  },
5306
5301
  r.value.element.parentElement
@@ -5315,27 +5310,27 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5315
5310
  {
5316
5311
  viewer: r.value,
5317
5312
  cardConfig: {
5318
- closeCallback: (W) => {
5319
- b([j]);
5313
+ closeCallback: (j) => {
5314
+ b([W]);
5320
5315
  },
5321
- ...z.cardConfig,
5322
- ...h.value[j]
5316
+ ...H.cardConfig,
5317
+ ...h.value[W]
5323
5318
  },
5324
- otherInfo: z == null ? void 0 : z.otherInfo
5319
+ otherInfo: H == null ? void 0 : H.otherInfo
5325
5320
  },
5326
5321
  r.value.element.parentElement
5327
5322
  );
5328
5323
  break;
5329
5324
  case "config":
5330
- v.value ? (ue = v.value) == null || ue.setShow(!0) : v.value = Qt(
5325
+ v.value ? (ae = v.value) == null || ae.setShow(!0) : v.value = Qt(
5331
5326
  F0,
5332
5327
  {
5333
5328
  viewer: r.value,
5334
5329
  cardConfig: {
5335
5330
  closeCallback: () => b(["config"]),
5336
- ...z.cardConfig
5331
+ ...H.cardConfig
5337
5332
  },
5338
- otherInfo: z == null ? void 0 : z.otherInfo
5333
+ otherInfo: H == null ? void 0 : H.otherInfo
5339
5334
  },
5340
5335
  r.value.element.parentElement
5341
5336
  );
@@ -5345,9 +5340,9 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5345
5340
  }
5346
5341
  }
5347
5342
  };
5348
- function E(B) {
5349
- B.forEach((_) => {
5350
- var k, G, j, z, H;
5343
+ function E(P) {
5344
+ P.forEach((_) => {
5345
+ var k, G, W, H, V;
5351
5346
  switch (_) {
5352
5347
  case "tree":
5353
5348
  u.value && u.value.show && u.value.setShow(!1);
@@ -5360,14 +5355,14 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5360
5355
  d.value && (p(_, d.value.getCardDOMRect(), c.value[_]), (G = d.value) == null || G.destroy(), d.value = void 0);
5361
5356
  break;
5362
5357
  case "comInfo":
5363
- f.value && (p(_, f.value.getCardDOMRect(), c.value[_]), (j = f.value) == null || j.destroy(), f.value = void 0);
5358
+ f.value && (p(_, f.value.getCardDOMRect(), c.value[_]), (W = f.value) == null || W.destroy(), f.value = void 0);
5364
5359
  break;
5365
5360
  case "global":
5366
5361
  case "local":
5367
- g.value && ((z = g.value) == null || z.setCurrentType(""));
5362
+ g.value && ((H = g.value) == null || H.setCurrentType(""));
5368
5363
  break;
5369
5364
  case "baseInfo":
5370
- m.value && (p(_, m.value.getCardDOMRect(), c.value[_]), (H = m.value) == null || H.destroy(), m.value = void 0);
5365
+ m.value && (p(_, m.value.getCardDOMRect(), c.value[_]), (V = m.value) == null || V.destroy(), m.value = void 0);
5371
5366
  break;
5372
5367
  case "config":
5373
5368
  v.value && v.value.show && v.value.setShow(!1);
@@ -5377,35 +5372,35 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5377
5372
  });
5378
5373
  }
5379
5374
  function M() {
5380
- var B, _, k;
5375
+ var P, _, k;
5381
5376
  switch (!0) {
5382
- case (!((B = c.value) != null && B.global) && !((_ = c.value) != null && _.local)):
5377
+ case (!((P = c.value) != null && P.global) && !((_ = c.value) != null && _.local)):
5383
5378
  g.value && ((k = g.value) == null || k.destroy(), g.value = void 0);
5384
5379
  break;
5385
5380
  }
5386
5381
  }
5387
5382
  function R() {
5388
- const B = Object.keys(c.value);
5389
- E(B), M();
5383
+ const P = Object.keys(c.value);
5384
+ E(P), M();
5390
5385
  }
5391
- function P(B, _) {
5386
+ function B(P, _) {
5392
5387
  if (!(_ != null && _.length))
5393
5388
  return;
5394
- let k = B[_[0]];
5389
+ let k = P[_[0]];
5395
5390
  if (_.length <= 1)
5396
5391
  return k;
5397
5392
  for (let G = 1; G < _.length; G++) {
5398
- const j = _[G];
5399
- if (k.children[j])
5400
- k = k.children[j];
5393
+ const W = _[G];
5394
+ if (k.children[W])
5395
+ k = k.children[W];
5401
5396
  else
5402
5397
  return;
5403
5398
  }
5404
5399
  return k;
5405
5400
  }
5406
5401
  return bt(() => {
5407
- Object.entries(i.options).forEach(([B, _]) => {
5408
- (!_.hasOwnProperty("show") || _ != null && _.show) && (l.value[B] = _);
5402
+ Object.entries(i.options).forEach(([P, _]) => {
5403
+ (!_.hasOwnProperty("show") || _ != null && _.show) && (l.value[P] = _);
5409
5404
  });
5410
5405
  }), e({
5411
5406
  handleSelect: b,
@@ -5418,8 +5413,8 @@ const Q0 = /* @__PURE__ */ et(q0, [["__scopeId", "data-v-17942138"]]), J0 = ["on
5418
5413
  configRef: v,
5419
5414
  RoamRef: y,
5420
5415
  batchDeselectAll: R
5421
- }), (B, _) => (ie(), be("div", th, [
5422
- Object.keys(l.value).length ? Hi((ie(), Re(K(D1), {
5416
+ }), (P, _) => (ie(), xe("div", th, [
5417
+ Object.keys(l.value).length ? zi((ie(), Re(K(D1), {
5423
5418
  key: 0,
5424
5419
  "menu-trigger": "hover",
5425
5420
  class: "utils-menu",
@@ -5459,7 +5454,7 @@ function ih() {
5459
5454
  const Ko = {
5460
5455
  baseConfig: {
5461
5456
  transparent: 0,
5462
- clickHighlight: !0
5457
+ clickHighlight: !1
5463
5458
  },
5464
5459
  // hiddenMeshGuids: ["34161a9b-53e9-41a9-833d-2b4a689c2703-001c391b"],
5465
5460
  cube: { show: !0, size: 160 },
@@ -5595,7 +5590,7 @@ const Ko = {
5595
5590
  maximumNumberOfThreads: 4
5596
5591
  };
5597
5592
  class ma {
5598
- // 模型树组件
5593
+ // 上一次已应用的尺寸,用于跳过重复 resize
5599
5594
  /**
5600
5595
  * 构造函数:初始化 Viewer 对象。
5601
5596
  * @param dom - 绑定的 Canvas 元素
@@ -5662,12 +5657,19 @@ class ma {
5662
5657
  S(this, "options");
5663
5658
  S(this, "initOptions");
5664
5659
  S(this, "utilsMenuRef");
5665
- this.options = i ? Gn(Ko, i) : Ko, this.initOptions = Un(this.options), this.element = e, this.element.id = "viewer-3d", this.element.parentElement.style.position = "relative";
5660
+ // 模型树组件
5661
+ S(this, "resizeObserver");
5662
+ // 监听父容器尺寸变化
5663
+ S(this, "resizeRafId", 0);
5664
+ // 尺寸变化合并到下一帧执行,避免同一帧内重复 resize
5665
+ S(this, "lastResize", { width: 0, height: 0 });
5666
+ this.options = i ? Gn(Ko, i) : Ko, this.initOptions = Un(this.options), this.element = e, this.element.id = "viewer-3d", this.element.parentElement.style.position = "relative", this.element.style.width || (this.element.style.width = "100%"), this.element.style.height || (this.element.style.height = "100%"), this.element.style.display = "block";
5666
5667
  const r = this.element.clientWidth, a = this.element.clientHeight;
5667
- this.scene = new Po(), this.highLightMeshManager = new X1(this), this.perspectiveCamera = new Ti(65, r / a, 0.1, 1e4), this.orthographicCamera = new Is(r / -2, r / 2, a / 2, a / -2, 0.1, 5e3), this.allMesh = {}, this.objs = {}, this.objects = {}, this.resizeFlag = !0, this.clock = new C1(), this.stopRender = !1, this.workerPool = new ha(ih, this.options.maximumNumberOfThreads), this.init(this.options), this.controlType = "orbit", this.flag = !1, new ResizeObserver((c) => {
5668
- const h = c[0].target, p = h.clientWidth, u = h.clientHeight;
5669
- this.resize(p, u);
5670
- }).observe(e.parentElement), this.element.addEventListener("beforeunload", () => {
5668
+ this.scene = new Po(), this.highLightMeshManager = new X1(this), this.perspectiveCamera = new Ti(65, r / a, 0.1, 1e4), this.orthographicCamera = new Is(r / -2, r / 2, a / 2, a / -2, 0.1, 5e3), this.allMesh = {}, this.objs = {}, this.objects = {}, this.resizeFlag = !0, this.clock = new C1(), this.stopRender = !1, this.workerPool = new ha(ih, this.options.maximumNumberOfThreads), this.init(this.options), this.controlType = "orbit", this.flag = !1, this.resizeObserver = new ResizeObserver((l) => {
5669
+ var h;
5670
+ const c = (h = l[0]) == null ? void 0 : h.contentRect;
5671
+ c && this.scheduleResize(c.width, c.height);
5672
+ }), this.resizeObserver.observe(e.parentElement), this.element.addEventListener("beforeunload", () => {
5671
5673
  this.destroy();
5672
5674
  });
5673
5675
  }
@@ -5684,7 +5686,7 @@ class ma {
5684
5686
  canvas: this.element,
5685
5687
  antialias: !0,
5686
5688
  alpha: !0
5687
- }), this.renderer.setPixelRatio(window.devicePixelRatio), this.renderer.setSize(l, c), i.clearColor && this.renderer.setClearColor(i.clearColor), i.transparent && this.renderer.setClearAlpha(i.transparent), i.background && (this.scene.background = i.background), this.renderer.outputEncoding = Ot, this.renderer.autoClear = !1, this.scene.add(this.containerGroup, this.camera, this.floorGroup), this.containerGroup.addEventListener("clear", () => {
5689
+ }), this.renderer.setPixelRatio(window.devicePixelRatio), this.renderer.setSize(l, c, !1), i.clearColor && this.renderer.setClearColor(i.clearColor), i.transparent && this.renderer.setClearAlpha(i.transparent), i.background && (this.scene.background = i.background), this.renderer.outputEncoding = Ot, this.renderer.autoClear = !1, this.scene.add(this.containerGroup, this.camera, this.floorGroup), this.containerGroup.addEventListener("clear", () => {
5688
5690
  this.containerGroup.children.forEach((p) => {
5689
5691
  const u = p.geometry, d = p.material;
5690
5692
  u.dispose && u.dispose(), d.dispose && d.dispose();
@@ -5805,13 +5807,23 @@ class ma {
5805
5807
  addRays(e) {
5806
5808
  this.objs[e.uuid] = e, this.containerGroup.add(e);
5807
5809
  }
5810
+ /**
5811
+ * 把尺寸变化合并到下一帧执行,避免 ResizeObserver 同一帧内多次回调。
5812
+ * @param width - 目标宽度
5813
+ * @param height - 目标高度
5814
+ */
5815
+ scheduleResize(e, i) {
5816
+ this.resizeRafId || (this.resizeRafId = requestAnimationFrame(() => {
5817
+ this.resizeRafId = 0, this.resize(e, i);
5818
+ }));
5819
+ }
5808
5820
  /**
5809
5821
  * 调整场景大小。
5810
5822
  * @param width - 新的宽度
5811
5823
  * @param height - 新的高度
5812
5824
  */
5813
5825
  resize(e, i) {
5814
- this.flag && (e /= 2), this.perspectiveCamera.aspect = e / i, this.orthographicCamera.left = e / -2, this.orthographicCamera.right = e / 2, this.orthographicCamera.top = i / 2, this.orthographicCamera.bottom = i / -2, this.perspectiveCamera.updateProjectionMatrix(), this.orthographicCamera.updateProjectionMatrix(), this.renderer.setSize(e, i);
5826
+ !e || !i || (this.flag && (e /= 2), !(Math.abs(e - this.lastResize.width) < 0.5 && Math.abs(i - this.lastResize.height) < 0.5) && (this.lastResize = { width: e, height: i }, this.perspectiveCamera.aspect = e / i, this.orthographicCamera.left = e / -2, this.orthographicCamera.right = e / 2, this.orthographicCamera.top = i / 2, this.orthographicCamera.bottom = i / -2, this.perspectiveCamera.updateProjectionMatrix(), this.orthographicCamera.updateProjectionMatrix(), this.renderer.setSize(e, i, !1)));
5815
5827
  }
5816
5828
  /**
5817
5829
  * 创建并返回一个新的 Group 对象 调用该函数时 自动将group加入到场景对象中 并将调用mesh对象的uuid作为key值记录到this.objs中。
@@ -6282,6 +6294,7 @@ class ma {
6282
6294
  * 销毁场景:释放资源并停止渲染。
6283
6295
  */
6284
6296
  destroy(e = !1) {
6297
+ var r;
6285
6298
  const i = [
6286
6299
  "map",
6287
6300
  "aoMap",
@@ -6292,16 +6305,16 @@ class ma {
6292
6305
  "roughnessMap",
6293
6306
  "specularMap"
6294
6307
  ];
6295
- this.scene.traverse((r) => {
6296
- r != null && r.isMesh && (r.userData = {}, r.geometry && r.geometry.dispose(), (Array.isArray(r.material) ? r.material : [r.material]).forEach((a) => {
6297
- i.forEach((l) => {
6298
- a[l] && a[l].dispose();
6308
+ (r = this.resizeObserver) == null || r.disconnect(), this.resizeObserver = void 0, this.resizeRafId && (cancelAnimationFrame(this.resizeRafId), this.resizeRafId = 0), this.scene.traverse((a) => {
6309
+ a != null && a.isMesh && (a.userData = {}, a.geometry && a.geometry.dispose(), (Array.isArray(a.material) ? a.material : [a.material]).forEach((l) => {
6310
+ i.forEach((c) => {
6311
+ l[c] && l[c].dispose();
6299
6312
  });
6300
6313
  }));
6301
- }), E1.clear(), this.tempFileUrls.forEach((r) => URL.revokeObjectURL(r)), e || (cancelAnimationFrame(this.animationFrameId), this.renderer.dispose(), this.renderer.forceContextLoss(), this.scene.clear(), this.scene = null, this.workerPool.terminateAll()), this.allMesh = {}, this.objs = {}, this.objects = {};
6314
+ }), E1.clear(), this.tempFileUrls.forEach((a) => URL.revokeObjectURL(a)), e || (cancelAnimationFrame(this.animationFrameId), this.renderer.dispose(), this.renderer.forceContextLoss(), this.scene.clear(), this.scene = null, this.workerPool.terminateAll()), this.allMesh = {}, this.objs = {}, this.objects = {};
6302
6315
  }
6303
6316
  }
6304
- const oh = { class: "viewer-box" }, rh = /* @__PURE__ */ He({
6317
+ const oh = { class: "viewer-box" }, rh = /* @__PURE__ */ ze({
6305
6318
  __name: "index",
6306
6319
  props: {
6307
6320
  url: {},
@@ -6311,7 +6324,7 @@ const oh = { class: "viewer-box" }, rh = /* @__PURE__ */ He({
6311
6324
  errorCallback: {}
6312
6325
  },
6313
6326
  setup(o, { expose: e }) {
6314
- const i = o, r = ce();
6327
+ const i = o, r = ue();
6315
6328
  let a, l, c;
6316
6329
  async function h() {
6317
6330
  c && (c == null || c.dispatchEvent({
@@ -6347,7 +6360,7 @@ const oh = { class: "viewer-box" }, rh = /* @__PURE__ */ He({
6347
6360
  a == null || a.destroy();
6348
6361
  });
6349
6362
  const p = Wr(() => a);
6350
- return e({ viewer: p, menuUtilsRef: l, model: c, loadModel: h }), (u, d) => (ie(), be("div", oh, [
6363
+ return e({ viewer: p, menuUtilsRef: l, model: c, loadModel: h }), (u, d) => (ie(), xe("div", oh, [
6351
6364
  oe("canvas", {
6352
6365
  id: "viewer-3d",
6353
6366
  ref_key: "viewerDom",
@@ -6357,7 +6370,7 @@ const oh = { class: "viewer-box" }, rh = /* @__PURE__ */ He({
6357
6370
  }
6358
6371
  });
6359
6372
  const Jf = /* @__PURE__ */ et(rh, [["__scopeId", "data-v-0f333327"]]);
6360
- class ye {
6373
+ class ge {
6361
6374
  /**
6362
6375
  * Components order matters for lookup by prefix.
6363
6376
  * @param layerName {?String} Layer name, null if not bound to a layer (e.g. block definition).
@@ -6375,17 +6388,17 @@ class ye {
6375
6388
  * Null values are always first.
6376
6389
  */
6377
6390
  Compare(e) {
6378
- let i = Ht(this.layerName, e.layerName);
6379
- return i !== 0 || (i = Ht(this.blockName, e.blockName), i !== 0) || (i = Ht(this.geometryType, e.geometryType), i !== 0) || (i = Ht(this.color, e.color), i !== 0) ? i : Ht(this.lineType, e.lineType);
6391
+ let i = zt(this.layerName, e.layerName);
6392
+ return i !== 0 || (i = zt(this.blockName, e.blockName), i !== 0) || (i = zt(this.geometryType, e.geometryType), i !== 0) || (i = zt(this.color, e.color), i !== 0) ? i : zt(this.lineType, e.lineType);
6380
6393
  }
6381
6394
  IsIndexed() {
6382
- return this.geometryType === ye.GeometryType.INDEXED_LINES || this.geometryType === ye.GeometryType.INDEXED_TRIANGLES;
6395
+ return this.geometryType === ge.GeometryType.INDEXED_LINES || this.geometryType === ge.GeometryType.INDEXED_TRIANGLES;
6383
6396
  }
6384
6397
  IsInstanced() {
6385
- return this.geometryType === ye.GeometryType.BLOCK_INSTANCE || this.geometryType === ye.GeometryType.POINT_INSTANCE;
6398
+ return this.geometryType === ge.GeometryType.BLOCK_INSTANCE || this.geometryType === ge.GeometryType.POINT_INSTANCE;
6386
6399
  }
6387
6400
  }
6388
- ye.GeometryType = Object.freeze({
6401
+ ge.GeometryType = Object.freeze({
6389
6402
  POINTS: 0,
6390
6403
  LINES: 1,
6391
6404
  INDEXED_LINES: 2,
@@ -6395,7 +6408,7 @@ ye.GeometryType = Object.freeze({
6395
6408
  /** Shaped point instances. */
6396
6409
  POINT_INSTANCE: 6
6397
6410
  });
6398
- function Ht(o, e) {
6411
+ function zt(o, e) {
6399
6412
  return o === null ? e === null ? 0 : -1 : e === null ? 1 : o < e ? -1 : o > e ? 1 : 0;
6400
6413
  }
6401
6414
  function Us(o) {
@@ -6701,7 +6714,7 @@ const ya = [
6701
6714
  function lh(o) {
6702
6715
  return ya[o];
6703
6716
  }
6704
- function xe(o) {
6717
+ function Ce(o) {
6705
6718
  let e = {};
6706
6719
  o.rewind();
6707
6720
  let i = o.next(), r = i.code;
@@ -6719,7 +6732,7 @@ function va(o) {
6719
6732
  while (e.code !== 0);
6720
6733
  o.rewind();
6721
6734
  }
6722
- function ze(o, e) {
6735
+ function He(o, e) {
6723
6736
  switch (e.code) {
6724
6737
  case 0:
6725
6738
  o.type = e.value;
@@ -6784,7 +6797,7 @@ Zi.prototype.parseEntity = function(o, e) {
6784
6797
  i.vertices = ch(o, e), e = o.lastReadGroup;
6785
6798
  break;
6786
6799
  default:
6787
- ze(i, e);
6800
+ He(i, e);
6788
6801
  break;
6789
6802
  }
6790
6803
  e = o.next();
@@ -6836,7 +6849,7 @@ Yi.prototype.parseEntity = function(o, e) {
6836
6849
  for (i = { type: e.value }, e = o.next(); e !== "EOF" && e.code !== 0; ) {
6837
6850
  switch (e.code) {
6838
6851
  case 10:
6839
- i.center = xe(o);
6852
+ i.center = Ce(o);
6840
6853
  break;
6841
6854
  case 40:
6842
6855
  i.radius = e.value;
@@ -6848,10 +6861,10 @@ Yi.prototype.parseEntity = function(o, e) {
6848
6861
  i.endAngle = Math.PI / 180 * e.value, i.angleLength = i.endAngle - i.startAngle;
6849
6862
  break;
6850
6863
  case 210:
6851
- i.extrusionDirection = xe(o);
6864
+ i.extrusionDirection = Ce(o);
6852
6865
  break;
6853
6866
  default:
6854
- ze(i, e);
6867
+ He(i, e);
6855
6868
  break;
6856
6869
  }
6857
6870
  e = o.next();
@@ -6882,10 +6895,10 @@ Ki.prototype.parseEntity = function(o, e) {
6882
6895
  i.textStyle = e.value;
6883
6896
  break;
6884
6897
  case 10:
6885
- i.startPoint = xe(o);
6898
+ i.startPoint = Ce(o);
6886
6899
  break;
6887
6900
  case 11:
6888
- i.endPoint = xe(o);
6901
+ i.endPoint = Ce(o);
6889
6902
  break;
6890
6903
  case 39:
6891
6904
  i.thickness = e.value;
@@ -6923,10 +6936,10 @@ Ki.prototype.parseEntity = function(o, e) {
6923
6936
  va(o);
6924
6937
  break;
6925
6938
  case 210:
6926
- i.extrusionDirection = xe(o);
6939
+ i.extrusionDirection = Ce(o);
6927
6940
  break;
6928
6941
  default:
6929
- ze(i, e);
6942
+ He(i, e);
6930
6943
  break;
6931
6944
  }
6932
6945
  e = o.next();
@@ -6941,7 +6954,7 @@ qi.prototype.parseEntity = function(o, e) {
6941
6954
  for (i = { type: e.value }, e = o.next(); e !== "EOF" && e.code !== 0; ) {
6942
6955
  switch (e.code) {
6943
6956
  case 10:
6944
- i.center = xe(o);
6957
+ i.center = Ce(o);
6945
6958
  break;
6946
6959
  case 40:
6947
6960
  i.radius = e.value;
@@ -6953,10 +6966,10 @@ qi.prototype.parseEntity = function(o, e) {
6953
6966
  r = Math.PI / 180 * e.value, r < i.startAngle ? i.angleLength = r + 2 * Math.PI - i.startAngle : i.angleLength = r - i.startAngle, i.endAngle = r;
6954
6967
  break;
6955
6968
  case 210:
6956
- i.extrusionDirection = xe(o);
6969
+ i.extrusionDirection = Ce(o);
6957
6970
  break;
6958
6971
  default:
6959
- ze(i, e);
6972
+ He(i, e);
6960
6973
  break;
6961
6974
  }
6962
6975
  e = o.next();
@@ -6974,25 +6987,25 @@ Qi.prototype.parseEntity = function(o, e) {
6974
6987
  i.block = e.value;
6975
6988
  break;
6976
6989
  case 10:
6977
- i.anchorPoint = xe(o);
6990
+ i.anchorPoint = Ce(o);
6978
6991
  break;
6979
6992
  case 11:
6980
- i.middleOfText = xe(o);
6993
+ i.middleOfText = Ce(o);
6981
6994
  break;
6982
6995
  case 12:
6983
- i.insertionPoint = xe(o);
6996
+ i.insertionPoint = Ce(o);
6984
6997
  break;
6985
6998
  case 13:
6986
- i.linearOrAngularPoint1 = xe(o);
6999
+ i.linearOrAngularPoint1 = Ce(o);
6987
7000
  break;
6988
7001
  case 14:
6989
- i.linearOrAngularPoint2 = xe(o);
7002
+ i.linearOrAngularPoint2 = Ce(o);
6990
7003
  break;
6991
7004
  case 15:
6992
- i.diameterOrRadiusPoint = xe(o);
7005
+ i.diameterOrRadiusPoint = Ce(o);
6993
7006
  break;
6994
7007
  case 16:
6995
- i.arcPoint = xe(o);
7008
+ i.arcPoint = Ce(o);
6996
7009
  break;
6997
7010
  case 70:
6998
7011
  i.dimensionType = e.value;
@@ -7010,7 +7023,7 @@ Qi.prototype.parseEntity = function(o, e) {
7010
7023
  i.angle = e.value;
7011
7024
  break;
7012
7025
  default:
7013
- ze(i, e);
7026
+ He(i, e);
7014
7027
  break;
7015
7028
  }
7016
7029
  e = o.next();
@@ -7025,10 +7038,10 @@ Ji.prototype.parseEntity = function(o, e) {
7025
7038
  for (i = { type: e.value }, e = o.next(); e !== "EOF" && e.code !== 0; ) {
7026
7039
  switch (e.code) {
7027
7040
  case 10:
7028
- i.center = xe(o);
7041
+ i.center = Ce(o);
7029
7042
  break;
7030
7043
  case 11:
7031
- i.majorAxisEndPoint = xe(o);
7044
+ i.majorAxisEndPoint = Ce(o);
7032
7045
  break;
7033
7046
  case 40:
7034
7047
  i.axisRatio = e.value;
@@ -7043,10 +7056,10 @@ Ji.prototype.parseEntity = function(o, e) {
7043
7056
  i.name = e.value;
7044
7057
  break;
7045
7058
  case 210:
7046
- i.extrusionDirection = xe(o);
7059
+ i.extrusionDirection = Ce(o);
7047
7060
  break;
7048
7061
  default:
7049
- ze(i, e);
7062
+ He(i, e);
7050
7063
  break;
7051
7064
  }
7052
7065
  e = o.next();
@@ -7073,7 +7086,7 @@ $i.prototype.parseEntity = function(o, e) {
7073
7086
  i.zScale = e.value;
7074
7087
  break;
7075
7088
  case 10:
7076
- i.position = xe(o);
7089
+ i.position = Ce(o);
7077
7090
  break;
7078
7091
  case 50:
7079
7092
  i.rotation = e.value;
@@ -7091,10 +7104,10 @@ $i.prototype.parseEntity = function(o, e) {
7091
7104
  i.rowSpacing = e.value;
7092
7105
  break;
7093
7106
  case 210:
7094
- i.extrusionDirection = xe(o);
7107
+ i.extrusionDirection = Ce(o);
7095
7108
  break;
7096
7109
  default:
7097
- ze(i, e);
7110
+ He(i, e);
7098
7111
  break;
7099
7112
  }
7100
7113
  e = o.next();
@@ -7109,18 +7122,18 @@ eo.prototype.parseEntity = function(o, e) {
7109
7122
  for (e = o.next(); e !== "EOF" && e.code !== 0; ) {
7110
7123
  switch (e.code) {
7111
7124
  case 10:
7112
- i.vertices.unshift(xe(o));
7125
+ i.vertices.unshift(Ce(o));
7113
7126
  break;
7114
7127
  case 11:
7115
- i.vertices.push(xe(o));
7128
+ i.vertices.push(Ce(o));
7116
7129
  break;
7117
7130
  case 210:
7118
- i.extrusionDirection = xe(o);
7131
+ i.extrusionDirection = Ce(o);
7119
7132
  break;
7120
7133
  case 100:
7121
7134
  break;
7122
7135
  default:
7123
- ze(i, e);
7136
+ He(i, e);
7124
7137
  break;
7125
7138
  }
7126
7139
  e = o.next();
@@ -7153,10 +7166,10 @@ to.prototype.parseEntity = function(o, e) {
7153
7166
  e.value !== 0 && (i.width = e.value);
7154
7167
  break;
7155
7168
  case 210:
7156
- i.extrusionDirection = xe(o);
7169
+ i.extrusionDirection = Ce(o);
7157
7170
  break;
7158
7171
  default:
7159
- ze(i, e);
7172
+ He(i, e);
7160
7173
  break;
7161
7174
  }
7162
7175
  e = o.next();
@@ -7214,10 +7227,10 @@ so.prototype.parseEntity = function(o, e) {
7214
7227
  i.text ? i.text += e.value : i.text = e.value;
7215
7228
  break;
7216
7229
  case 10:
7217
- i.position = xe(o);
7230
+ i.position = Ce(o);
7218
7231
  break;
7219
7232
  case 11:
7220
- i.direction = xe(o);
7233
+ i.direction = Ce(o);
7221
7234
  break;
7222
7235
  case 40:
7223
7236
  i.height = e.value;
@@ -7241,7 +7254,7 @@ so.prototype.parseEntity = function(o, e) {
7241
7254
  va(o);
7242
7255
  break;
7243
7256
  default:
7244
- ze(i, e);
7257
+ He(i, e);
7245
7258
  break;
7246
7259
  }
7247
7260
  e = o.next();
@@ -7256,18 +7269,18 @@ no.prototype.parseEntity = function(o, e) {
7256
7269
  for (i = { type: e.value }, e = o.next(); e !== "EOF" && e.code !== 0; ) {
7257
7270
  switch (e.code) {
7258
7271
  case 10:
7259
- i.position = xe(o);
7272
+ i.position = Ce(o);
7260
7273
  break;
7261
7274
  case 39:
7262
7275
  i.thickness = e.value;
7263
7276
  break;
7264
7277
  case 210:
7265
- i.extrusionDirection = xe(o);
7278
+ i.extrusionDirection = Ce(o);
7266
7279
  break;
7267
7280
  case 100:
7268
7281
  break;
7269
7282
  default:
7270
- ze(i, e);
7283
+ He(i, e);
7271
7284
  break;
7272
7285
  }
7273
7286
  e = o.next();
@@ -7315,7 +7328,7 @@ io.prototype.parseEntity = function(o, e) {
7315
7328
  i.faceD = e.value;
7316
7329
  break;
7317
7330
  default:
7318
- ze(i, e);
7331
+ He(i, e);
7319
7332
  break;
7320
7333
  }
7321
7334
  e = o.next();
@@ -7356,10 +7369,10 @@ oo.prototype.parseEntity = function(o, e) {
7356
7369
  case 75:
7357
7370
  break;
7358
7371
  case 210:
7359
- i.extrusionDirection = xe(o);
7372
+ i.extrusionDirection = Ce(o);
7360
7373
  break;
7361
7374
  default:
7362
- ze(i, e);
7375
+ He(i, e);
7363
7376
  break;
7364
7377
  }
7365
7378
  e = o.next();
@@ -7382,7 +7395,7 @@ function uh(o, e) {
7382
7395
  function ph(o, e) {
7383
7396
  let i = { type: e.value };
7384
7397
  for (e = o.next(); e != "EOF" && e.code != 0; )
7385
- ze(i, e), e = o.next();
7398
+ He(i, e), e = o.next();
7386
7399
  return i;
7387
7400
  }
7388
7401
  function ro() {
@@ -7393,22 +7406,22 @@ ro.prototype.parseEntity = function(o, e) {
7393
7406
  for (i = { type: e.value }, i.points = [], e = o.next(); e !== "EOF" && e.code !== 0; ) {
7394
7407
  switch (e.code) {
7395
7408
  case 10:
7396
- i.points[0] = xe(o);
7409
+ i.points[0] = Ce(o);
7397
7410
  break;
7398
7411
  case 11:
7399
- i.points[1] = xe(o);
7412
+ i.points[1] = Ce(o);
7400
7413
  break;
7401
7414
  case 12:
7402
- i.points[2] = xe(o);
7415
+ i.points[2] = Ce(o);
7403
7416
  break;
7404
7417
  case 13:
7405
- i.points[3] = xe(o);
7418
+ i.points[3] = Ce(o);
7406
7419
  break;
7407
7420
  case 210:
7408
- i.extrusionDirection = xe(o);
7421
+ i.extrusionDirection = Ce(o);
7409
7422
  break;
7410
7423
  default:
7411
- ze(i, e);
7424
+ He(i, e);
7412
7425
  break;
7413
7426
  }
7414
7427
  e = o.next();
@@ -7423,16 +7436,16 @@ ao.prototype.parseEntity = function(o, e) {
7423
7436
  for (i = { type: e.value }, e = o.next(); e !== "EOF" && e.code !== 0; ) {
7424
7437
  switch (e.code) {
7425
7438
  case 10:
7426
- i.controlPoints || (i.controlPoints = []), i.controlPoints.push(xe(o));
7439
+ i.controlPoints || (i.controlPoints = []), i.controlPoints.push(Ce(o));
7427
7440
  break;
7428
7441
  case 11:
7429
- i.fitPoints || (i.fitPoints = []), i.fitPoints.push(xe(o));
7442
+ i.fitPoints || (i.fitPoints = []), i.fitPoints.push(Ce(o));
7430
7443
  break;
7431
7444
  case 12:
7432
- i.startTangent = xe(o);
7445
+ i.startTangent = Ce(o);
7433
7446
  break;
7434
7447
  case 13:
7435
- i.endTangent = xe(o);
7448
+ i.endTangent = Ce(o);
7436
7449
  break;
7437
7450
  case 40:
7438
7451
  i.knotValues || (i.knotValues = []), i.knotValues.push(e.value);
@@ -7453,10 +7466,10 @@ ao.prototype.parseEntity = function(o, e) {
7453
7466
  i.numberOfFitPoints = e.value;
7454
7467
  break;
7455
7468
  case 210:
7456
- i.extrusionDirection = xe(o);
7469
+ i.extrusionDirection = Ce(o);
7457
7470
  break;
7458
7471
  default:
7459
- ze(i, e);
7472
+ He(i, e);
7460
7473
  break;
7461
7474
  }
7462
7475
  e = o.next();
@@ -7471,10 +7484,10 @@ lo.prototype.parseEntity = function(o, e) {
7471
7484
  for (i = { type: e.value }, e = o.next(); e !== "EOF" && e.code !== 0; ) {
7472
7485
  switch (e.code) {
7473
7486
  case 10:
7474
- i.startPoint = xe(o);
7487
+ i.startPoint = Ce(o);
7475
7488
  break;
7476
7489
  case 11:
7477
- i.endPoint = xe(o);
7490
+ i.endPoint = Ce(o);
7478
7491
  break;
7479
7492
  case 40:
7480
7493
  i.textHeight = e.value;
@@ -7495,7 +7508,7 @@ lo.prototype.parseEntity = function(o, e) {
7495
7508
  i.valign = e.value;
7496
7509
  break;
7497
7510
  default:
7498
- ze(i, e);
7511
+ He(i, e);
7499
7512
  break;
7500
7513
  }
7501
7514
  e = o.next();
@@ -7566,7 +7579,7 @@ Gs.prototype._parse = function(o) {
7566
7579
  }, d = function() {
7567
7580
  let _ = {}, k;
7568
7581
  for (i = e.next(); i.value !== "EOF" && !p(0, "ENDSEC"); )
7569
- p(0, "BLOCK") ? (k = f(), B(k), k.name ? _[k.name] = k : console.error('block with handle "' + k.handle + '" is missing a name.')) : (ps(i), i = e.next());
7582
+ p(0, "BLOCK") ? (k = f(), P(k), k.name ? _[k.name] = k : console.error('block with handle "' + k.handle + '" is missing a name.')) : (ps(i), i = e.next());
7570
7583
  return _;
7571
7584
  }, f = function() {
7572
7585
  let _ = {};
@@ -7588,7 +7601,7 @@ Gs.prototype._parse = function(o) {
7588
7601
  _.layer = i.value, i = e.next();
7589
7602
  break;
7590
7603
  case 10:
7591
- _.position = P(), i = e.next();
7604
+ _.position = B(), i = e.next();
7592
7605
  break;
7593
7606
  case 67:
7594
7607
  _.paperSpace = !!(i.value && i.value == 1), i = e.next();
@@ -7624,7 +7637,7 @@ Gs.prototype._parse = function(o) {
7624
7637
  };
7625
7638
  const m = "ENDTAB";
7626
7639
  let v = function() {
7627
- let _ = M[i.value], k = {}, G = 0, j;
7640
+ let _ = M[i.value], k = {}, G = 0, W;
7628
7641
  for (i = e.next(); !p(0, m); )
7629
7642
  switch (i.code) {
7630
7643
  case 5:
@@ -7645,8 +7658,8 @@ Gs.prototype._parse = function(o) {
7645
7658
  default:
7646
7659
  ps(i), i = e.next();
7647
7660
  }
7648
- let z = k[_.tableRecordsProperty];
7649
- return z && (z.constructor === Array ? j = z.length : typeof z == "object" && (j = Object.keys(z).length), G !== j && console.warn("Parsed " + j + " " + _.dxfSymbolName + "'s but expected " + G)), i = e.next(), k;
7661
+ let H = k[_.tableRecordsProperty];
7662
+ return H && (H.constructor === Array ? W = H.length : typeof H == "object" && (W = Object.keys(H).length), G !== W && console.warn("Parsed " + W + " " + _.dxfSymbolName + "'s but expected " + G)), i = e.next(), k;
7650
7663
  }, M = {
7651
7664
  VPORT: {
7652
7665
  tableRecordsProperty: "viewPorts",
@@ -7660,28 +7673,28 @@ Gs.prototype._parse = function(o) {
7660
7673
  k.name = i.value, i = e.next();
7661
7674
  break;
7662
7675
  case 10:
7663
- k.lowerLeftCorner = P(), i = e.next();
7676
+ k.lowerLeftCorner = B(), i = e.next();
7664
7677
  break;
7665
7678
  case 11:
7666
- k.upperRightCorner = P(), i = e.next();
7679
+ k.upperRightCorner = B(), i = e.next();
7667
7680
  break;
7668
7681
  case 12:
7669
- k.center = P(), i = e.next();
7682
+ k.center = B(), i = e.next();
7670
7683
  break;
7671
7684
  case 13:
7672
- k.snapBasePoint = P(), i = e.next();
7685
+ k.snapBasePoint = B(), i = e.next();
7673
7686
  break;
7674
7687
  case 14:
7675
- k.snapSpacing = P(), i = e.next();
7688
+ k.snapSpacing = B(), i = e.next();
7676
7689
  break;
7677
7690
  case 15:
7678
- k.gridSpacing = P(), i = e.next();
7691
+ k.gridSpacing = B(), i = e.next();
7679
7692
  break;
7680
7693
  case 16:
7681
- k.viewDirectionFromTarget = P(), i = e.next();
7694
+ k.viewDirectionFromTarget = B(), i = e.next();
7682
7695
  break;
7683
7696
  case 17:
7684
- k.viewTarget = P(), i = e.next();
7697
+ k.viewTarget = B(), i = e.next();
7685
7698
  break;
7686
7699
  case 42:
7687
7700
  k.lensLength = i.value, i = e.next();
@@ -7705,16 +7718,16 @@ Gs.prototype._parse = function(o) {
7705
7718
  k.orthographicType = i.value, i = e.next();
7706
7719
  break;
7707
7720
  case 110:
7708
- k.ucsOrigin = P(), i = e.next();
7721
+ k.ucsOrigin = B(), i = e.next();
7709
7722
  break;
7710
7723
  case 111:
7711
- k.ucsXAxis = P(), i = e.next();
7724
+ k.ucsXAxis = B(), i = e.next();
7712
7725
  break;
7713
7726
  case 112:
7714
- k.ucsYAxis = P(), i = e.next();
7727
+ k.ucsYAxis = B(), i = e.next();
7715
7728
  break;
7716
7729
  case 110:
7717
- k.ucsOrigin = P(), i = e.next();
7730
+ k.ucsOrigin = B(), i = e.next();
7718
7731
  break;
7719
7732
  case 281:
7720
7733
  k.renderMode = i.value, i = e.next();
@@ -7748,7 +7761,7 @@ Gs.prototype._parse = function(o) {
7748
7761
  tableName: "lineType",
7749
7762
  dxfSymbolName: "LTYPE",
7750
7763
  parseTableRecords: function() {
7751
- let _ = {}, k, G = {}, j;
7764
+ let _ = {}, k, G = {}, W;
7752
7765
  for (i = e.next(); !p(0, "ENDTAB"); )
7753
7766
  switch (i.code) {
7754
7767
  case 2:
@@ -7758,7 +7771,7 @@ Gs.prototype._parse = function(o) {
7758
7771
  G.description = i.value, i = e.next();
7759
7772
  break;
7760
7773
  case 73:
7761
- j = i.value, j > 0 && (G.pattern = []), i = e.next();
7774
+ W = i.value, W > 0 && (G.pattern = []), i = e.next();
7762
7775
  break;
7763
7776
  case 40:
7764
7777
  G.patternLength = i.value, i = e.next();
@@ -7767,7 +7780,7 @@ Gs.prototype._parse = function(o) {
7767
7780
  G.pattern.push(i.value), i = e.next();
7768
7781
  break;
7769
7782
  case 0:
7770
- j > 0 && j !== G.pattern.length && console.warn("lengths do not match on LTYPE pattern"), _[k] = G, G = {}, i = e.next();
7783
+ W > 0 && W !== G.pattern.length && console.warn("lengths do not match on LTYPE pattern"), _[k] = G, G = {}, i = e.next();
7771
7784
  break;
7772
7785
  default:
7773
7786
  i = e.next();
@@ -7811,25 +7824,25 @@ Gs.prototype._parse = function(o) {
7811
7824
  if (i.code === 0) {
7812
7825
  if (i.value === G)
7813
7826
  break;
7814
- let j;
7827
+ let W;
7815
7828
  (i.value == "TEXT" || i.value == "MTEXT") && console.log("curr.value", i.value);
7816
- let z = c._entityHandlers[i.value];
7817
- if (z != null)
7818
- j = z.parseEntity(e, i), i = e.lastReadGroup;
7829
+ let H = c._entityHandlers[i.value];
7830
+ if (H != null)
7831
+ W = H.parseEntity(e, i), i = e.lastReadGroup;
7819
7832
  else {
7820
7833
  i = e.next();
7821
7834
  continue;
7822
7835
  }
7823
- B(j), k.push(j);
7836
+ P(W), k.push(W);
7824
7837
  } else
7825
7838
  i = e.next();
7826
7839
  return G == "ENDSEC" && (i = e.next()), k;
7827
- }, P = function() {
7840
+ }, B = function() {
7828
7841
  let _ = {}, k = i.code;
7829
7842
  if (_.x = i.value, k += 10, i = e.next(), i.code != k)
7830
7843
  throw new Error("Expected code for point value to be " + k + " but got " + i.code + ".");
7831
7844
  return _.y = i.value, k += 10, i = e.next(), i.code != k ? (e.rewind(), _) : (_.z = i.value, _);
7832
- }, B = function(_) {
7845
+ }, P = function(_) {
7833
7846
  if (!_)
7834
7847
  throw new TypeError("entity cannot be undefined or null");
7835
7848
  _.handle || (_.handle = a++);
@@ -7855,7 +7868,7 @@ class mh {
7855
7868
  return new Gs().parseSync(r);
7856
7869
  }
7857
7870
  }
7858
- class Hn {
7871
+ class zn {
7859
7872
  /**
7860
7873
  * @param type Array type, see NativeType.
7861
7874
  * @param initialCapacity Initial capacity, number of elements.
@@ -8515,8 +8528,8 @@ class Be {
8515
8528
  const M = y.chunks[E];
8516
8529
  let R = M.position;
8517
8530
  (E === 0 || E !== b.startChunkIdx) && (R += M.GetSpacingWidth());
8518
- const P = new Le(R, v);
8519
- P.applyMatrix3(m), M.block && (yield* M.block.Render(P, null, r, null, wt.LEFT, ms.BASELINE, h, p));
8531
+ const B = new Le(R, v);
8532
+ B.applyMatrix3(m), M.block && (yield* M.block.Render(B, null, r, null, wt.LEFT, ms.BASELINE, h, p));
8520
8533
  }
8521
8534
  v -= d;
8522
8535
  }
@@ -9159,11 +9172,11 @@ class cn {
9159
9172
  const b = Math.atan2(i.y - v.y, i.x - v.x), E = l / y;
9160
9173
  l < 0 && (m = -m);
9161
9174
  for (let M = 1; M < y; M++) {
9162
- const R = b + M * E, P = {
9175
+ const R = b + M * E, B = {
9163
9176
  x: v.x + m * Math.cos(R),
9164
9177
  y: v.y + m * Math.sin(R)
9165
9178
  };
9166
- e.push(P);
9179
+ e.push(B);
9167
9180
  }
9168
9181
  }
9169
9182
  e.push(r);
@@ -9277,7 +9290,7 @@ class cn {
9277
9290
  return;
9278
9291
  const r = this._GetEntityColor(e, i), a = this._GetEntityLayer(e, i), l = this.pdMode & Qe.MARK_MASK;
9279
9292
  if ((this.pdMode & Qe.SHAPE_MASK) !== 0) {
9280
- const p = new ye(a, Jo, ye.GeometryType.POINT_INSTANCE, r, 0);
9293
+ const p = new ge(a, Jo, ge.GeometryType.POINT_INSTANCE, r, 0);
9281
9294
  this._GetBatch(p).PushVertex(this._TransformVertex(e.position)), this._CreatePointShapeBlock();
9282
9295
  return;
9283
9296
  }
@@ -9475,7 +9488,7 @@ class cn {
9475
9488
  for (const p of r.batches)
9476
9489
  this._FlattenBatch(p, a, l, c, h);
9477
9490
  else {
9478
- const p = new ye(a, e.name, ye.GeometryType.BLOCK_INSTANCE, l, c);
9491
+ const p = new ge(a, e.name, ge.GeometryType.BLOCK_INSTANCE, l, c);
9479
9492
  this._GetBatch(p).PushInstanceTransform(h);
9480
9493
  }
9481
9494
  }
@@ -9484,7 +9497,7 @@ class cn {
9484
9497
  const c = this.layers.get(i);
9485
9498
  let h, p = 0;
9486
9499
  e.key.color === gt.BY_BLOCK ? h = r : e.key.color === gt.BY_LAYER ? h = (c == null ? void 0 : c.color) ?? 0 : h = e.key.color;
9487
- const u = new ye(i, null, e.key.geometryType, h, p);
9500
+ const u = new ge(i, null, e.key.geometryType, h, p);
9488
9501
  this._GetBatch(u).Merge(e, l);
9489
9502
  }
9490
9503
  /**
@@ -9625,7 +9638,7 @@ class cn {
9625
9638
  * @param blockCtx {?BlockContext}
9626
9639
  */
9627
9640
  _ProcessPoints(e, i = null) {
9628
- const r = new ye(e.layer, i == null ? void 0 : i.name, ye.GeometryType.POINTS, e.color, 0), a = this._GetBatch(r);
9641
+ const r = new ge(e.layer, i == null ? void 0 : i.name, ge.GeometryType.POINTS, e.color, 0), a = this._GetBatch(r);
9629
9642
  for (const l of e.vertices)
9630
9643
  a.PushVertex(this._TransformVertex(l, i));
9631
9644
  }
@@ -9636,7 +9649,7 @@ class cn {
9636
9649
  _ProcessLineSegments(e, i = null) {
9637
9650
  if (e.vertices.length % 2 !== 0)
9638
9651
  throw Error("Even number of vertices expected");
9639
- const r = new ye(e.layer, i == null ? void 0 : i.name, ye.GeometryType.LINES, e.color, e.lineType), a = this._GetBatch(r);
9652
+ const r = new ge(e.layer, i == null ? void 0 : i.name, ge.GeometryType.LINES, e.color, e.lineType), a = this._GetBatch(r);
9640
9653
  for (const l of e.vertices)
9641
9654
  a.PushVertex(this._TransformVertex(l, i));
9642
9655
  }
@@ -9649,17 +9662,17 @@ class cn {
9649
9662
  return;
9650
9663
  const r = e.vertices.length;
9651
9664
  if (r <= 3) {
9652
- const c = new ye(e.layer, i == null ? void 0 : i.name, ye.GeometryType.LINES, e.color, e.lineType), h = this._GetBatch(c);
9665
+ const c = new ge(e.layer, i == null ? void 0 : i.name, ge.GeometryType.LINES, e.color, e.lineType), h = this._GetBatch(c);
9653
9666
  let p = null;
9654
9667
  for (const u of e.vertices)
9655
9668
  p !== null && (h.PushVertex(this._TransformVertex(p, i)), h.PushVertex(this._TransformVertex(u, i))), p = u;
9656
9669
  e.shape && r > 2 && (h.PushVertex(this._TransformVertex(e.vertices[r - 1], i)), h.PushVertex(this._TransformVertex(e.vertices[0], i)));
9657
9670
  return;
9658
9671
  }
9659
- const a = new ye(
9672
+ const a = new ge(
9660
9673
  e.layer,
9661
9674
  i == null ? void 0 : i.name,
9662
- ye.GeometryType.INDEXED_LINES,
9675
+ ge.GeometryType.INDEXED_LINES,
9663
9676
  e.color,
9664
9677
  e.lineType
9665
9678
  ), l = this._GetBatch(a);
@@ -9683,7 +9696,7 @@ class cn {
9683
9696
  console.error("Unexpected size of indices array: " + e.indices.length);
9684
9697
  return;
9685
9698
  }
9686
- const r = new ye(e.layer, i == null ? void 0 : i.name, ye.GeometryType.INDEXED_TRIANGLES, e.color, 0), l = this._GetBatch(r).PushChunk(e.vertices.length);
9699
+ const r = new ge(e.layer, i == null ? void 0 : i.name, ge.GeometryType.INDEXED_TRIANGLES, e.color, 0), l = this._GetBatch(r).PushChunk(e.vertices.length);
9687
9700
  for (const c of e.vertices)
9688
9701
  l.PushVertex(this._TransformVertex(c, i));
9689
9702
  for (const c of e.indices)
@@ -9782,7 +9795,7 @@ class cn {
9782
9795
  }
9783
9796
  class Lh {
9784
9797
  constructor(e) {
9785
- this.key = e, e.IsIndexed() ? this.chunks = [] : e.geometryType === ye.GeometryType.BLOCK_INSTANCE ? this.transforms = new Hn(at.FLOAT32) : this.vertices = new Hn(at.FLOAT32);
9798
+ this.key = e, e.IsIndexed() ? this.chunks = [] : e.geometryType === ge.GeometryType.BLOCK_INSTANCE ? this.transforms = new zn(at.FLOAT32) : this.vertices = new zn(at.FLOAT32);
9786
9799
  }
9787
9800
  PushVertex(e) {
9788
9801
  const i = this.vertices.Push(e.x);
@@ -9854,7 +9867,7 @@ class Lh {
9854
9867
  e += i.vertices.GetSize();
9855
9868
  return e * Float32Array.BYTES_PER_ELEMENT;
9856
9869
  } else
9857
- return this.key.geometryType === ye.GeometryType.BLOCK_INSTANCE ? 0 : this.vertices.GetSize() * Float32Array.BYTES_PER_ELEMENT;
9870
+ return this.key.geometryType === ge.GeometryType.BLOCK_INSTANCE ? 0 : this.vertices.GetSize() * Float32Array.BYTES_PER_ELEMENT;
9858
9871
  }
9859
9872
  /** @return Indices buffer required size in bytes. */
9860
9873
  GetIndicesBufferSize() {
@@ -9868,7 +9881,7 @@ class Lh {
9868
9881
  }
9869
9882
  /** @return Instances transforms buffer required size in bytes. */
9870
9883
  GetTransformsSize() {
9871
- return this.key.geometryType === ye.GeometryType.BLOCK_INSTANCE ? this.transforms.GetSize() * Float32Array.BYTES_PER_ELEMENT : 0;
9884
+ return this.key.geometryType === ge.GeometryType.BLOCK_INSTANCE ? this.transforms.GetSize() * Float32Array.BYTES_PER_ELEMENT : 0;
9872
9885
  }
9873
9886
  Serialize(e) {
9874
9887
  if (this.key.IsIndexed()) {
@@ -9879,7 +9892,7 @@ class Lh {
9879
9892
  for (const r of this.chunks)
9880
9893
  i.chunks.push(r.Serialize(e));
9881
9894
  return i;
9882
- } else if (this.key.geometryType === ye.GeometryType.BLOCK_INSTANCE) {
9895
+ } else if (this.key.geometryType === ge.GeometryType.BLOCK_INSTANCE) {
9883
9896
  const i = this.transforms.GetSize(), r = {
9884
9897
  key: this.key,
9885
9898
  transformsOffset: e.transformsOffset,
@@ -9980,7 +9993,7 @@ ht.Type = Object.freeze({
9980
9993
  });
9981
9994
  class kh {
9982
9995
  constructor(e) {
9983
- e < 16 && (e = 16), this.indices = new Hn(at.UINT16, e * 2), this.vertices = new Hn(at.FLOAT32, e * 2);
9996
+ e < 16 && (e = 16), this.indices = new zn(at.UINT16, e * 2), this.vertices = new zn(at.FLOAT32, e * 2);
9984
9997
  }
9985
9998
  Serialize(e) {
9986
9999
  const i = {};
@@ -10290,14 +10303,14 @@ Ue.prototype.fromSVG = function(o, e = {}) {
10290
10303
  break;
10291
10304
  case "V":
10292
10305
  for (let R = 0; R < b.length; R++) {
10293
- let P = 0;
10294
- y && (P = this.commands.length && this.commands[this.commands.length - 1].y || 0), this.lineTo(E, b[R] + P);
10306
+ let B = 0;
10307
+ y && (B = this.commands.length && this.commands[this.commands.length - 1].y || 0), this.lineTo(E, b[R] + B);
10295
10308
  }
10296
10309
  break;
10297
10310
  case "H":
10298
10311
  for (let R = 0; R < b.length; R++) {
10299
- let P = 0;
10300
- y && (P = this.commands.length && this.commands[this.commands.length - 1].x || 0), this.lineTo(b[R] + P, M);
10312
+ let B = 0;
10313
+ y && (B = this.commands.length && this.commands[this.commands.length - 1].x || 0), this.lineTo(b[R] + B, M);
10301
10314
  }
10302
10315
  break;
10303
10316
  case "C":
@@ -10662,13 +10675,13 @@ pe.MACSTRING = function(o, e) {
10662
10675
  function _i(o) {
10663
10676
  return o >= -128 && o <= 127;
10664
10677
  }
10665
- function Hh(o, e, i) {
10678
+ function zh(o, e, i) {
10666
10679
  let r = 0, a = o.length;
10667
10680
  for (; e < a && r < 64 && o[e] === 0; )
10668
10681
  ++e, ++r;
10669
10682
  return i.push(128 | r - 1), e;
10670
10683
  }
10671
- function zh(o, e, i) {
10684
+ function Hh(o, e, i) {
10672
10685
  let r = 0, a = o.length, l = e;
10673
10686
  for (; l < a && r < 64; ) {
10674
10687
  let c = o[l];
@@ -10700,7 +10713,7 @@ q.VARDELTAS = function(o) {
10700
10713
  let e = 0, i = [];
10701
10714
  for (; e < o.length; ) {
10702
10715
  let r = o[e];
10703
- r === 0 ? e = Hh(o, e, i) : r >= -128 && r <= 127 ? e = zh(o, e, i) : e = jh(o, e, i);
10716
+ r === 0 ? e = zh(o, e, i) : r >= -128 && r <= 127 ? e = Hh(o, e, i) : e = jh(o, e, i);
10704
10717
  }
10705
10718
  return i;
10706
10719
  };
@@ -10878,7 +10891,7 @@ function Ps(o, e, i) {
10878
10891
  a = a.concat(i(e[l], l));
10879
10892
  return a;
10880
10893
  }
10881
- function zn(o) {
10894
+ function Hn(o) {
10882
10895
  o.format === 1 ? Pe.call(this, "coverageTable", [{ name: "coverageFormat", type: "USHORT", value: 1 }].concat(Bs("glyph", o.glyphs))) : o.format === 2 ? Pe.call(
10883
10896
  this,
10884
10897
  "coverageTable",
@@ -10893,8 +10906,8 @@ function zn(o) {
10893
10906
  )
10894
10907
  ) : re.assert(!1, "Coverage format must be 1 or 2.");
10895
10908
  }
10896
- zn.prototype = Object.create(Pe.prototype);
10897
- zn.prototype.constructor = zn;
10909
+ Hn.prototype = Object.create(Pe.prototype);
10910
+ Hn.prototype.constructor = Hn;
10898
10911
  function jn(o) {
10899
10912
  Pe.call(
10900
10913
  this,
@@ -11014,7 +11027,7 @@ Zn.prototype.constructor = Zn;
11014
11027
  let X = {
11015
11028
  Table: Pe,
11016
11029
  Record: Pe,
11017
- Coverage: zn,
11030
+ Coverage: Hn,
11018
11031
  ClassDef: Zn,
11019
11032
  ScriptList: jn,
11020
11033
  FeatureList: Wn,
@@ -11374,7 +11387,7 @@ D.prototype.parseDeltaSets = function(o, e) {
11374
11387
  }
11375
11388
  return i;
11376
11389
  };
11377
- let ee = {
11390
+ let te = {
11378
11391
  getByte: rr,
11379
11392
  getCard8: rr,
11380
11393
  getUShort: Yn,
@@ -11403,11 +11416,11 @@ function Jh(o, e, i, r, a) {
11403
11416
  o.length = e.parseUShort(), o.language = e.parseUShort();
11404
11417
  let l;
11405
11418
  o.segCount = l = e.parseUShort() >> 1, e.skip("uShort", 3), o.glyphIndexMap = {};
11406
- let c = new ee.Parser(i, r + a + 14), h = new ee.Parser(i, r + a + 16 + l * 2), p = new ee.Parser(i, r + a + 16 + l * 4), u = new ee.Parser(i, r + a + 16 + l * 6), d = r + a + 16 + l * 8;
11419
+ let c = new te.Parser(i, r + a + 14), h = new te.Parser(i, r + a + 16 + l * 2), p = new te.Parser(i, r + a + 16 + l * 4), u = new te.Parser(i, r + a + 16 + l * 6), d = r + a + 16 + l * 8;
11407
11420
  for (let f = 0; f < l - 1; f += 1) {
11408
11421
  let g, m = c.parseUShort(), v = h.parseUShort(), y = p.parseShort(), b = u.parseUShort();
11409
11422
  for (let E = v; E <= m; E += 1)
11410
- b !== 0 ? (d = u.offset + u.relativeOffset - 2, d += b, d += (E - v) * 2, g = ee.getUShort(i, d), g !== 0 && (g = g + y & 65535)) : g = E + y & 65535, o.glyphIndexMap[E] = g;
11423
+ b !== 0 ? (d = u.offset + u.relativeOffset - 2, d += b, d += (E - v) * 2, g = te.getUShort(i, d), g !== 0 && (g = g + y & 65535)) : g = E + y & 65535, o.glyphIndexMap[E] = g;
11411
11424
  }
11412
11425
  }
11413
11426
  function $h(o, e) {
@@ -11433,19 +11446,19 @@ function $h(o, e) {
11433
11446
  }
11434
11447
  function eu(o, e) {
11435
11448
  let i = {};
11436
- i.version = ee.getUShort(o, e), re.argument(i.version === 0, "cmap table version should be 0."), i.numTables = ee.getUShort(o, e + 2);
11449
+ i.version = te.getUShort(o, e), re.argument(i.version === 0, "cmap table version should be 0."), i.numTables = te.getUShort(o, e + 2);
11437
11450
  let r = null, a = -1, l = -1;
11438
11451
  for (let h = i.numTables - 1; h >= 0; h -= 1) {
11439
- let p = ee.getUShort(o, e + 4 + h * 8), u = ee.getUShort(o, e + 4 + h * 8 + 2);
11452
+ let p = te.getUShort(o, e + 4 + h * 8), u = te.getUShort(o, e + 4 + h * 8 + 2);
11440
11453
  if (p === 3 && (u === 0 || u === 1 || u === 10) || p === 0 && (u === 0 || u === 1 || u === 2 || u === 3 || u === 4)) {
11441
- if (l = ee.getULong(o, e + 4 + h * 8 + 4), r)
11454
+ if (l = te.getULong(o, e + 4 + h * 8 + 4), r)
11442
11455
  break;
11443
11456
  } else
11444
- p === 0 && u === 5 && (a = ee.getULong(o, e + 4 + h * 8 + 4), r = new ee.Parser(o, e + a), r.parseUShort() !== 14 && (a = -1, r = null));
11457
+ p === 0 && u === 5 && (a = te.getULong(o, e + 4 + h * 8 + 4), r = new te.Parser(o, e + a), r.parseUShort() !== 14 && (a = -1, r = null));
11445
11458
  }
11446
11459
  if (l === -1)
11447
11460
  throw new Error("No valid cmap sub-tables found.");
11448
- let c = new ee.Parser(o, e + l);
11461
+ let c = new te.Parser(o, e + l);
11449
11462
  if (i.format = c.parseUShort(), i.format === 12)
11450
11463
  Qh(i, c);
11451
11464
  else if (i.format === 4)
@@ -12938,42 +12951,42 @@ function qn(o) {
12938
12951
  return o.length < 1240 ? e = 107 : o.length < 33900 ? e = 1131 : e = 32768, e;
12939
12952
  }
12940
12953
  function _t(o, e, i, r) {
12941
- let a = [], l = [], c = r > 1 ? ee.getULong(o, e) : ee.getCard16(o, e), h = r > 1 ? 4 : 2, p, u;
12954
+ let a = [], l = [], c = r > 1 ? te.getULong(o, e) : te.getCard16(o, e), h = r > 1 ? 4 : 2, p, u;
12942
12955
  if (c !== 0) {
12943
- let d = ee.getByte(o, e + h);
12956
+ let d = te.getByte(o, e + h);
12944
12957
  p = e + (c + 1) * d + h;
12945
12958
  let f = e + h + 1;
12946
12959
  for (let g = 0; g < c + 1; g += 1)
12947
- a.push(ee.getOffset(o, f, d)), f += d;
12960
+ a.push(te.getOffset(o, f, d)), f += d;
12948
12961
  u = p + a[c];
12949
12962
  } else
12950
12963
  u = e + h;
12951
12964
  for (let d = 0; d < a.length - 1; d += 1) {
12952
- let f = ee.getBytes(o, p + a[d], p + a[d + 1]);
12965
+ let f = te.getBytes(o, p + a[d], p + a[d + 1]);
12953
12966
  i && (f = i(f, o, e, r)), l.push(f);
12954
12967
  }
12955
12968
  return { objects: l, startOffset: e, endOffset: u };
12956
12969
  }
12957
12970
  function fu(o, e, i) {
12958
- let r = [], a = i > 1 ? ee.getULong(o, e) : ee.getCard16(o, e), l = i > 1 ? 4 : 2, c, h;
12971
+ let r = [], a = i > 1 ? te.getULong(o, e) : te.getCard16(o, e), l = i > 1 ? 4 : 2, c, h;
12959
12972
  if (a !== 0) {
12960
- let p = ee.getByte(o, e + l);
12973
+ let p = te.getByte(o, e + l);
12961
12974
  c = e + (a + 1) * p + l;
12962
12975
  let u = e + l + 1;
12963
12976
  for (let d = 0; d < a + 1; d += 1)
12964
- r.push(ee.getOffset(o, u, p)), u += p;
12977
+ r.push(te.getOffset(o, u, p)), u += p;
12965
12978
  h = c + r[a];
12966
12979
  } else
12967
12980
  h = e + l;
12968
12981
  return { offsets: r, startOffset: e, endOffset: h };
12969
12982
  }
12970
12983
  function mu(o, e, i, r, a, l) {
12971
- let c = l > 1 ? ee.getULong(i, r) : ee.getCard16(i, r), h = l > 1 ? 4 : 2, p = 0;
12984
+ let c = l > 1 ? te.getULong(i, r) : te.getCard16(i, r), h = l > 1 ? 4 : 2, p = 0;
12972
12985
  if (c !== 0) {
12973
- let d = ee.getByte(i, r + h);
12986
+ let d = te.getByte(i, r + h);
12974
12987
  p = r + (c + 1) * d + h;
12975
12988
  }
12976
- let u = ee.getBytes(i, p + e[o], p + e[o + 1]);
12989
+ let u = te.getBytes(i, p + e[o], p + e[o + 1]);
12977
12990
  return a && (u = a(u)), u;
12978
12991
  }
12979
12992
  function gu(o) {
@@ -13014,7 +13027,7 @@ function vu(o) {
13014
13027
  }
13015
13028
  function yo(o, e, i, r) {
13016
13029
  e = e !== void 0 ? e : 0;
13017
- let a = new ee.Parser(o, e), l = [], c = [];
13030
+ let a = new te.Parser(o, e), l = [], c = [];
13018
13031
  i = i !== void 0 ? i : o.byteLength;
13019
13032
  let h = r < 2 ? 22 : 28;
13020
13033
  for (; a.relativeOffset < i; ) {
@@ -13050,9 +13063,9 @@ function vo(o, e, i) {
13050
13063
  }
13051
13064
  function bu(o, e) {
13052
13065
  let i = {};
13053
- if (i.formatMajor = ee.getCard8(o, e), i.formatMinor = ee.getCard8(o, e + 1), i.formatMajor > 2)
13066
+ if (i.formatMajor = te.getCard8(o, e), i.formatMinor = te.getCard8(o, e + 1), i.formatMajor > 2)
13054
13067
  throw new Error(`Unsupported CFF table version ${i.formatMajor}.${i.formatMinor}`);
13055
- return i.size = ee.getCard8(o, e + 2), i.formatMajor < 2 ? (i.offsetSize = ee.getCard8(o, e + 3), i.startOffset = e, i.endOffset = e + 4) : (i.topDictLength = ee.getCard16(o, e + 3), i.endOffset = e + 8), i;
13068
+ return i.size = te.getCard8(o, e + 2), i.formatMajor < 2 ? (i.offsetSize = te.getCard8(o, e + 3), i.startOffset = e, i.endOffset = e + 4) : (i.topDictLength = te.getCard16(o, e + 3), i.endOffset = e + 8), i;
13056
13069
  }
13057
13070
  let Na = [
13058
13071
  { name: "version", op: 0, type: "SID" },
@@ -13160,7 +13173,7 @@ function fi(o, e, i, r, a) {
13160
13173
  return l;
13161
13174
  }
13162
13175
  function Su(o, e, i, r) {
13163
- let a, l, c = new ee.Parser(o, e);
13176
+ let a, l, c = new te.Parser(o, e);
13164
13177
  i -= 1;
13165
13178
  let h = [".notdef"], p = c.parseCard8();
13166
13179
  if (p === 0)
@@ -13183,7 +13196,7 @@ function Su(o, e, i, r) {
13183
13196
  return h;
13184
13197
  }
13185
13198
  function Tu(o, e, i) {
13186
- let r, a = {}, l = new ee.Parser(o, e), c = l.parseCard8();
13199
+ let r, a = {}, l = new te.Parser(o, e), c = l.parseCard8();
13187
13200
  if (c === 0) {
13188
13201
  let h = l.parseCard8();
13189
13202
  for (let p = 0; p < h; p += 1)
@@ -13206,24 +13219,24 @@ function Lu(o) {
13206
13219
  o.pop();
13207
13220
  }
13208
13221
  function cr(o, e, i, r) {
13209
- let a, l, c, h, p = new hn(), u = [], d = 0, f = !1, g = !1, m = 0, v = 0, y, b, E, M, R = 0, P = [], B = o.tables.cff2 || o.tables.cff;
13210
- if (E = B.topDict._defaultWidthX, M = B.topDict._nominalWidthX, o.isCIDFont || r > 1) {
13211
- let z = B.topDict._fdSelect ? B.topDict._fdSelect[e.index] : 0, H = B.topDict._fdArray[z];
13212
- y = H._subrs, b = H._subrsBias, r > 1 ? (P = B.topDict._vstore.itemVariationStore.itemVariationSubtables, R = H._privateDict.vsindex) : (E = H._defaultWidthX, M = H._nominalWidthX);
13222
+ let a, l, c, h, p = new hn(), u = [], d = 0, f = !1, g = !1, m = 0, v = 0, y, b, E, M, R = 0, B = [], P = o.tables.cff2 || o.tables.cff;
13223
+ if (E = P.topDict._defaultWidthX, M = P.topDict._nominalWidthX, o.isCIDFont || r > 1) {
13224
+ let H = P.topDict._fdSelect ? P.topDict._fdSelect[e.index] : 0, V = P.topDict._fdArray[H];
13225
+ y = V._subrs, b = V._subrsBias, r > 1 ? (B = P.topDict._vstore.itemVariationStore.itemVariationSubtables, R = V._privateDict.vsindex) : (E = V._defaultWidthX, M = V._nominalWidthX);
13213
13226
  } else
13214
- y = B.topDict._subrs, b = B.topDict._subrsBias;
13227
+ y = P.topDict._subrs, b = P.topDict._subrsBias;
13215
13228
  let _ = E;
13216
- function k(z, H) {
13217
- g && p.closePath(), p.moveTo(z, H), g = !0;
13229
+ function k(H, V) {
13230
+ g && p.closePath(), p.moveTo(H, V), g = !0;
13218
13231
  }
13219
13232
  function G() {
13220
- let z;
13221
- z = (u.length & 1) !== 0, z && !f && (_ = u.shift() + M), d += u.length >> 1, u.length = 0, f = !0;
13233
+ let H;
13234
+ H = (u.length & 1) !== 0, H && !f && (_ = u.shift() + M), d += u.length >> 1, u.length = 0, f = !0;
13222
13235
  }
13223
- function j(z) {
13224
- let H, $, J, ge, ue, Ce, W, te, Q, he, de, se, me = 0;
13225
- for (; me < z.length; ) {
13226
- let ve = z[me];
13236
+ function W(H) {
13237
+ let V, $, J, ye, ae, be, j, ee, Q, he, de, se, me = 0;
13238
+ for (; me < H.length; ) {
13239
+ let ve = H[me];
13227
13240
  switch (me += 1, ve) {
13228
13241
  case 1:
13229
13242
  G();
@@ -13251,7 +13264,7 @@ function cr(o, e, i, r) {
13251
13264
  a = m + u.shift(), l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), m = c + u.shift(), v = h + u.shift(), p.curveTo(a, l, c, h, m, v);
13252
13265
  break;
13253
13266
  case 10:
13254
- ue = u.pop() + b, Ce = y[ue], Ce && j(Ce);
13267
+ ae = u.pop() + b, be = y[ae], be && W(be);
13255
13268
  break;
13256
13269
  case 11:
13257
13270
  if (r > 1) {
@@ -13260,18 +13273,18 @@ function cr(o, e, i, r) {
13260
13273
  }
13261
13274
  return;
13262
13275
  case 12:
13263
- switch (ve = z[me], me += 1, ve) {
13276
+ switch (ve = H[me], me += 1, ve) {
13264
13277
  case 35:
13265
- a = m + u.shift(), l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), W = c + u.shift(), te = h + u.shift(), Q = W + u.shift(), he = te + u.shift(), de = Q + u.shift(), se = he + u.shift(), m = de + u.shift(), v = se + u.shift(), u.shift(), p.curveTo(a, l, c, h, W, te), p.curveTo(Q, he, de, se, m, v);
13278
+ a = m + u.shift(), l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), j = c + u.shift(), ee = h + u.shift(), Q = j + u.shift(), he = ee + u.shift(), de = Q + u.shift(), se = he + u.shift(), m = de + u.shift(), v = se + u.shift(), u.shift(), p.curveTo(a, l, c, h, j, ee), p.curveTo(Q, he, de, se, m, v);
13266
13279
  break;
13267
13280
  case 34:
13268
- a = m + u.shift(), l = v, c = a + u.shift(), h = l + u.shift(), W = c + u.shift(), te = h, Q = W + u.shift(), he = h, de = Q + u.shift(), se = v, m = de + u.shift(), p.curveTo(a, l, c, h, W, te), p.curveTo(Q, he, de, se, m, v);
13281
+ a = m + u.shift(), l = v, c = a + u.shift(), h = l + u.shift(), j = c + u.shift(), ee = h, Q = j + u.shift(), he = h, de = Q + u.shift(), se = v, m = de + u.shift(), p.curveTo(a, l, c, h, j, ee), p.curveTo(Q, he, de, se, m, v);
13269
13282
  break;
13270
13283
  case 36:
13271
- a = m + u.shift(), l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), W = c + u.shift(), te = h, Q = W + u.shift(), he = h, de = Q + u.shift(), se = he + u.shift(), m = de + u.shift(), p.curveTo(a, l, c, h, W, te), p.curveTo(Q, he, de, se, m, v);
13284
+ a = m + u.shift(), l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), j = c + u.shift(), ee = h, Q = j + u.shift(), he = h, de = Q + u.shift(), se = he + u.shift(), m = de + u.shift(), p.curveTo(a, l, c, h, j, ee), p.curveTo(Q, he, de, se, m, v);
13272
13285
  break;
13273
13286
  case 37:
13274
- a = m + u.shift(), l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), W = c + u.shift(), te = h + u.shift(), Q = W + u.shift(), he = te + u.shift(), de = Q + u.shift(), se = he + u.shift(), Math.abs(de - m) > Math.abs(se - v) ? m = de + u.shift() : v = se + u.shift(), p.curveTo(a, l, c, h, W, te), p.curveTo(Q, he, de, se, m, v);
13287
+ a = m + u.shift(), l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), j = c + u.shift(), ee = h + u.shift(), Q = j + u.shift(), he = ee + u.shift(), de = Q + u.shift(), se = he + u.shift(), Math.abs(de - m) > Math.abs(se - v) ? m = de + u.shift() : v = se + u.shift(), p.curveTo(a, l, c, h, j, ee), p.curveTo(Q, he, de, se, m, v);
13275
13288
  break;
13276
13289
  default:
13277
13290
  console.log("Glyph " + e.index + ": unknown operator 1200" + ve), u.length = 0;
@@ -13296,7 +13309,7 @@ function cr(o, e, i, r) {
13296
13309
  console.error("CFF2 CharString operator blend (16) is not supported in CFF");
13297
13310
  break;
13298
13311
  }
13299
- let Ge = P[R], x = u.pop(), C = x * Ge.regionIndexes.length, L = u.length - C, w = L - x;
13312
+ let Ge = B[R], x = u.pop(), C = x * Ge.regionIndexes.length, L = u.length - C, w = L - x;
13300
13313
  for (let T = 0; T < x; T++) {
13301
13314
  let O = u[w + T];
13302
13315
  for (let A = 0; A < x.length; A++)
@@ -13341,10 +13354,10 @@ function cr(o, e, i, r) {
13341
13354
  a = m + u.shift(), l = v, c = a + u.shift(), h = l + u.shift(), m = c + u.shift(), v = h, p.curveTo(a, l, c, h, m, v);
13342
13355
  break;
13343
13356
  case 28:
13344
- H = z[me], $ = z[me + 1], u.push((H << 24 | $ << 16) >> 16), me += 2;
13357
+ V = H[me], $ = H[me + 1], u.push((V << 24 | $ << 16) >> 16), me += 2;
13345
13358
  break;
13346
13359
  case 29:
13347
- ue = u.pop() + o.gsubrsBias, Ce = o.gsubrs[ue], Ce && j(Ce);
13360
+ ae = u.pop() + o.gsubrsBias, be = o.gsubrs[ae], be && W(be);
13348
13361
  break;
13349
13362
  case 30:
13350
13363
  for (; u.length > 0 && (a = m, l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), m = c + u.shift(), v = h + (u.length === 1 ? u.shift() : 0), p.curveTo(a, l, c, h, m, v), u.length !== 0); )
@@ -13355,14 +13368,14 @@ function cr(o, e, i, r) {
13355
13368
  a = m, l = v + u.shift(), c = a + u.shift(), h = l + u.shift(), m = c + u.shift(), v = h + (u.length === 1 ? u.shift() : 0), p.curveTo(a, l, c, h, m, v);
13356
13369
  break;
13357
13370
  default:
13358
- ve < 32 ? console.log("Glyph " + e.index + ": unknown operator " + ve) : ve < 247 ? u.push(ve - 139) : ve < 251 ? (H = z[me], me += 1, u.push((ve - 247) * 256 + H + 108)) : ve < 255 ? (H = z[me], me += 1, u.push(-(ve - 251) * 256 - H - 108)) : (H = z[me], $ = z[me + 1], J = z[me + 2], ge = z[me + 3], me += 4, u.push((H << 24 | $ << 16 | J << 8 | ge) / 65536));
13371
+ ve < 32 ? console.log("Glyph " + e.index + ": unknown operator " + ve) : ve < 247 ? u.push(ve - 139) : ve < 251 ? (V = H[me], me += 1, u.push((ve - 247) * 256 + V + 108)) : ve < 255 ? (V = H[me], me += 1, u.push(-(ve - 251) * 256 - V - 108)) : (V = H[me], $ = H[me + 1], J = H[me + 2], ye = H[me + 3], me += 4, u.push((V << 24 | $ << 16 | J << 8 | ye) / 65536));
13359
13372
  }
13360
13373
  }
13361
13374
  }
13362
- return j(i), f && (e.advanceWidth = _), p;
13375
+ return W(i), f && (e.advanceWidth = _), p;
13363
13376
  }
13364
13377
  function hr(o, e, i, r, a) {
13365
- let l = [], c, h = new ee.Parser(o, e), p = h.parseCard8();
13378
+ let l = [], c, h = new te.Parser(o, e), p = h.parseCard8();
13366
13379
  if (p === 0)
13367
13380
  for (let u = 0; u < i; u++) {
13368
13381
  if (c = h.parseCard8(), c >= r)
@@ -13392,11 +13405,11 @@ function hr(o, e, i, r, a) {
13392
13405
  function ku(o, e, i, r) {
13393
13406
  let a, l = bu(o, e);
13394
13407
  l.formatMajor === 2 ? a = i.tables.cff2 = {} : a = i.tables.cff = {};
13395
- let c = l.formatMajor > 1 ? null : _t(o, l.endOffset, ee.bytesToString), h = l.formatMajor > 1 ? null : _t(o, c.endOffset), p = l.formatMajor > 1 ? null : _t(o, h.endOffset, ee.bytesToString), u = _t(o, l.formatMajor > 1 ? e + l.size + l.topDictLength : p.endOffset, void 0, l.formatMajor);
13408
+ let c = l.formatMajor > 1 ? null : _t(o, l.endOffset, te.bytesToString), h = l.formatMajor > 1 ? null : _t(o, c.endOffset), p = l.formatMajor > 1 ? null : _t(o, h.endOffset, te.bytesToString), u = _t(o, l.formatMajor > 1 ? e + l.size + l.topDictLength : p.endOffset, void 0, l.formatMajor);
13396
13409
  i.gsubrs = u.objects, i.gsubrsBias = qn(i.gsubrs);
13397
13410
  let d;
13398
13411
  if (l.formatMajor > 1) {
13399
- let g = e + l.size, m = ee.getBytes(o, g, g + l.topDictLength);
13412
+ let g = e + l.size, m = te.getBytes(o, g, g + l.topDictLength);
13400
13413
  d = fi(o, 0, [m], void 0, l.formatMajor)[0];
13401
13414
  } else {
13402
13415
  let g = fi(o, e, h.objects, p.objects, l.formatMajor);
@@ -13444,7 +13457,7 @@ function ku(o, e, i, r) {
13444
13457
  i.glyphs.push(g, Nt.cffGlyphLoader(i, g, cr, m, l.formatMajor));
13445
13458
  }
13446
13459
  if (d.vstore) {
13447
- let g = new ee.Parser(o, e + d.vstore);
13460
+ let g = new te.Parser(o, e + d.vstore);
13448
13461
  d._vstore = g.parseVariationStore();
13449
13462
  }
13450
13463
  }
@@ -13467,7 +13480,7 @@ function Iu(o) {
13467
13480
  e.names.push({ name: "name_" + i, type: "NAME", value: o[i] });
13468
13481
  return e;
13469
13482
  }
13470
- function Ha(o, e, i) {
13483
+ function za(o, e, i) {
13471
13484
  let r = {};
13472
13485
  for (let a = 0; a < o.length; a += 1) {
13473
13486
  let l = o[a], c = e[l.name];
@@ -13477,7 +13490,7 @@ function Ha(o, e, i) {
13477
13490
  }
13478
13491
  function ur(o, e, i) {
13479
13492
  let r = new X.Record("Top DICT", [{ name: "dict", type: "DICT", value: {} }]);
13480
- return r.dict = Ha(i > 1 ? Fa : Na, o, e), r;
13493
+ return r.dict = za(i > 1 ? Fa : Na, o, e), r;
13481
13494
  }
13482
13495
  function pr(o) {
13483
13496
  let e = new X.Record("Top DICT INDEX", [{ name: "topDicts", type: "INDEX", value: [] }]);
@@ -13540,7 +13553,7 @@ function Du(o, e) {
13540
13553
  }
13541
13554
  function Bu(o, e, i) {
13542
13555
  let r = new X.Record("Private DICT", [{ name: "dict", type: "DICT", value: {} }]);
13543
- return r.dict = Ha(i > 1 ? Ga : Ua, o, e), r;
13556
+ return r.dict = za(i > 1 ? Ga : Ua, o, e), r;
13544
13557
  }
13545
13558
  function Pu(o, e) {
13546
13559
  let i = new X.Table("CFF ", [
@@ -13575,7 +13588,7 @@ function Pu(o, e) {
13575
13588
  }
13576
13589
  let Oi = { parse: ku, make: Pu };
13577
13590
  function Nu(o, e) {
13578
- let i = {}, r = new ee.Parser(o, e);
13591
+ let i = {}, r = new te.Parser(o, e);
13579
13592
  return i.version = r.parseVersion(), i.fontRevision = Math.round(r.parseFixed() * 1e3) / 1e3, i.checkSumAdjustment = r.parseULong(), i.magicNumber = r.parseULong(), re.argument(i.magicNumber === 1594834165, "Font header has wrong magic number."), i.flags = r.parseUShort(), i.unitsPerEm = r.parseUShort(), i.created = r.parseLongDateTime(), i.modified = r.parseLongDateTime(), i.xMin = r.parseShort(), i.yMin = r.parseShort(), i.xMax = r.parseShort(), i.yMax = r.parseShort(), i.macStyle = r.parseUShort(), i.lowestRecPPEM = r.parseUShort(), i.fontDirectionHint = r.parseShort(), i.indexToLocFormat = r.parseShort(), i.glyphDataFormat = r.parseShort(), i;
13580
13593
  }
13581
13594
  function Fu(o) {
@@ -13604,9 +13617,9 @@ function Fu(o) {
13604
13617
  o
13605
13618
  );
13606
13619
  }
13607
- let za = { parse: Nu, make: Fu };
13620
+ let Ha = { parse: Nu, make: Fu };
13608
13621
  function Uu(o, e) {
13609
- let i = {}, r = new ee.Parser(o, e);
13622
+ let i = {}, r = new te.Parser(o, e);
13610
13623
  return i.version = r.parseVersion(), i.ascender = r.parseShort(), i.descender = r.parseShort(), i.lineGap = r.parseShort(), i.advanceWidthMax = r.parseUShort(), i.minLeftSideBearing = r.parseShort(), i.minRightSideBearing = r.parseShort(), i.xMaxExtent = r.parseShort(), i.caretSlopeRise = r.parseShort(), i.caretSlopeRun = r.parseShort(), i.caretOffset = r.parseShort(), r.relativeOffset += 8, i.metricDataFormat = r.parseShort(), i.numberOfHMetrics = r.parseUShort(), i;
13611
13624
  }
13612
13625
  function Gu(o) {
@@ -13636,21 +13649,21 @@ function Gu(o) {
13636
13649
  }
13637
13650
  let ja = { parse: Uu, make: Gu };
13638
13651
  function Vu(o, e, i, r, a) {
13639
- let l, c, h = new ee.Parser(o, e);
13652
+ let l, c, h = new te.Parser(o, e);
13640
13653
  for (let p = 0; p < r; p += 1) {
13641
13654
  p < i && (l = h.parseUShort(), c = h.parseShort());
13642
13655
  let u = a.get(p);
13643
13656
  u.advanceWidth = l, u.leftSideBearing = c;
13644
13657
  }
13645
13658
  }
13646
- function Hu(o, e, i, r, a) {
13659
+ function zu(o, e, i, r, a) {
13647
13660
  o._hmtxTableData = {};
13648
- let l, c, h = new ee.Parser(e, i);
13661
+ let l, c, h = new te.Parser(e, i);
13649
13662
  for (let p = 0; p < a; p += 1)
13650
13663
  p < r && (l = h.parseUShort(), c = h.parseShort()), o._hmtxTableData[p] = { advanceWidth: l, leftSideBearing: c };
13651
13664
  }
13652
- function zu(o, e, i, r, a, l, c) {
13653
- c.lowMemory ? Hu(o, e, i, r, a) : Vu(e, i, r, a, l);
13665
+ function Hu(o, e, i, r, a, l, c) {
13666
+ c.lowMemory ? zu(o, e, i, r, a) : Vu(e, i, r, a, l);
13654
13667
  }
13655
13668
  function ju(o) {
13656
13669
  let e = new X.Table("hmtx", []);
@@ -13660,7 +13673,7 @@ function ju(o) {
13660
13673
  }
13661
13674
  return e;
13662
13675
  }
13663
- let Wa = { parse: zu, make: ju };
13676
+ let Wa = { parse: Hu, make: ju };
13664
13677
  function Wu(o) {
13665
13678
  let e = new X.Table("ltag", [
13666
13679
  { name: "version", type: "ULONG", value: 1 },
@@ -13674,7 +13687,7 @@ function Wu(o) {
13674
13687
  return e.fields.push({ name: "stringPool", type: "CHARARRAY", value: i }), e;
13675
13688
  }
13676
13689
  function Xu(o, e) {
13677
- let i = new ee.Parser(o, e), r = i.parseULong();
13690
+ let i = new te.Parser(o, e), r = i.parseULong();
13678
13691
  re.argument(r === 1, "Unsupported ltag table version."), i.skip("uLong", 1);
13679
13692
  let a = i.parseULong(), l = [];
13680
13693
  for (let c = 0; c < a; c++) {
@@ -13687,7 +13700,7 @@ function Xu(o, e) {
13687
13700
  }
13688
13701
  let Xa = { make: Wu, parse: Xu };
13689
13702
  function Zu(o, e) {
13690
- let i = {}, r = new ee.Parser(o, e);
13703
+ let i = {}, r = new te.Parser(o, e);
13691
13704
  return i.version = r.parseVersion(), i.numGlyphs = r.parseUShort(), i.version === 1 && (i.maxPoints = r.parseUShort(), i.maxContours = r.parseUShort(), i.maxCompositePoints = r.parseUShort(), i.maxCompositeContours = r.parseUShort(), i.maxZones = r.parseUShort(), i.maxTwilightPoints = r.parseUShort(), i.maxStorage = r.parseUShort(), i.maxFunctionDefs = r.parseUShort(), i.maxInstructionDefs = r.parseUShort(), i.maxStackElements = r.parseUShort(), i.maxSizeOfInstructions = r.parseUShort(), i.maxComponentElements = r.parseUShort(), i.maxComponentDepth = r.parseUShort()), i;
13692
13705
  }
13693
13706
  function Yu(o) {
@@ -14245,16 +14258,16 @@ function $u(o) {
14245
14258
  return Ja[o];
14246
14259
  }
14247
14260
  function e2(o, e, i) {
14248
- let r = {}, a = new ee.Parser(o, e), l = a.parseUShort(), c = a.parseUShort(), h = a.offset + a.parseUShort();
14261
+ let r = {}, a = new te.Parser(o, e), l = a.parseUShort(), c = a.parseUShort(), h = a.offset + a.parseUShort();
14249
14262
  for (let p = 0; p < c; p++) {
14250
14263
  let u = a.parseUShort(), d = a.parseUShort(), f = a.parseUShort(), g = a.parseUShort(), m = Ya[g] || g, v = a.parseUShort(), y = a.parseUShort(), b = qu(u, f, i), E = Qa(u, d, f), M = $u(u);
14251
14264
  if (E !== void 0 && b !== void 0 && M !== void 0) {
14252
14265
  let R;
14253
14266
  if (E === Di ? R = Ds.UTF16(o, h + y, v) : R = Ds.MACSTRING(o, h + y, v, E), R) {
14254
- let P = r[M];
14255
- P === void 0 && (P = r[M] = {});
14256
- let B = P[m];
14257
- B === void 0 && (B = P[m] = {}), B[b] = R;
14267
+ let B = r[M];
14268
+ B === void 0 && (B = r[M] = {});
14269
+ let P = B[m];
14270
+ P === void 0 && (P = B[m] = {}), P[b] = R;
14258
14271
  }
14259
14272
  }
14260
14273
  }
@@ -14314,17 +14327,17 @@ function s2(o, e) {
14314
14327
  for (let b in y) {
14315
14328
  let E = y[b];
14316
14329
  if (m === 1 || m === 0) {
14317
- let M = r[b], R = Ku[M], P = Qa(m, R, M), B = q.MACSTRING(E, P);
14318
- if (m === 0 && (M = e.indexOf(b), M < 0 && (M = e.length, e.push(b)), R = 4, B = q.UTF16(E)), B !== void 0) {
14319
- let _ = fr(B, c);
14320
- l.push(dr(m, R, M, u, B.length, _));
14330
+ let M = r[b], R = Ku[M], B = Qa(m, R, M), P = q.MACSTRING(E, B);
14331
+ if (m === 0 && (M = e.indexOf(b), M < 0 && (M = e.length, e.push(b)), R = 4, P = q.UTF16(E)), P !== void 0) {
14332
+ let _ = fr(P, c);
14333
+ l.push(dr(m, R, M, u, P.length, _));
14321
14334
  }
14322
14335
  }
14323
14336
  if (m === 3) {
14324
14337
  let M = a[b];
14325
14338
  if (M !== void 0) {
14326
- let R = q.UTF16(E), P = fr(R, c);
14327
- l.push(dr(3, 1, M, u, R.length, P));
14339
+ let R = q.UTF16(E), B = fr(R, c);
14340
+ l.push(dr(3, 1, M, u, R.length, B));
14328
14341
  }
14329
14342
  }
14330
14343
  }
@@ -14476,7 +14489,7 @@ function n2(o) {
14476
14489
  return -1;
14477
14490
  }
14478
14491
  function i2(o, e) {
14479
- let i = {}, r = new ee.Parser(o, e);
14492
+ let i = {}, r = new te.Parser(o, e);
14480
14493
  i.version = r.parseUShort(), i.xAvgCharWidth = r.parseShort(), i.usWeightClass = r.parseUShort(), i.usWidthClass = r.parseUShort(), i.fsType = r.parseUShort(), i.ySubscriptXSize = r.parseShort(), i.ySubscriptYSize = r.parseShort(), i.ySubscriptXOffset = r.parseShort(), i.ySubscriptYOffset = r.parseShort(), i.ySuperscriptXSize = r.parseShort(), i.ySuperscriptYSize = r.parseShort(), i.ySuperscriptXOffset = r.parseShort(), i.ySuperscriptYOffset = r.parseShort(), i.yStrikeoutSize = r.parseShort(), i.yStrikeoutPosition = r.parseShort(), i.sFamilyClass = r.parseShort(), i.panose = [];
14481
14494
  for (let a = 0; a < 10; a++)
14482
14495
  i.panose[a] = r.parseByte();
@@ -14538,7 +14551,7 @@ function o2(o) {
14538
14551
  }
14539
14552
  let Pi = { parse: i2, make: o2, unicodeRanges: Bi, getUnicodeRange: n2 };
14540
14553
  function r2(o, e) {
14541
- let i = {}, r = new ee.Parser(o, e);
14554
+ let i = {}, r = new te.Parser(o, e);
14542
14555
  switch (i.version = r.parseVersion(), i.italicAngle = r.parseFixed(), i.underlinePosition = r.parseShort(), i.underlineThickness = r.parseShort(), i.isFixedPitch = r.parseULong(), i.minMemType42 = r.parseULong(), i.maxMemType42 = r.parseULong(), i.minMemType1 = r.parseULong(), i.maxMemType1 = r.parseULong(), i.version) {
14543
14556
  case 1:
14544
14557
  i.names = gs.slice();
@@ -14898,7 +14911,7 @@ function c2(o) {
14898
14911
  }
14899
14912
  let tl = { parse: l2, make: c2 };
14900
14913
  function h2(o, e) {
14901
- let i = new ee.Parser(o, e), r = i.parseULong();
14914
+ let i = new te.Parser(o, e), r = i.parseULong();
14902
14915
  re.argument(r === 1, "Unsupported META table version."), i.parseULong(), i.parseULong();
14903
14916
  let a = i.parseULong(), l = {};
14904
14917
  for (let c = 0; c < a; c++) {
@@ -15020,7 +15033,7 @@ function v2(o, e, i) {
15020
15033
  ];
15021
15034
  }
15022
15035
  function b2(o, e, i) {
15023
- let r = {}, a = new ee.Parser(o, e);
15036
+ let r = {}, a = new te.Parser(o, e);
15024
15037
  return r.tag = a.parseTag(), r.minValue = a.parseFixed(), r.defaultValue = a.parseFixed(), r.maxValue = a.parseFixed(), a.skip("uShort", 1), r.name = (i.macintosh || i.windows || i.unicode)[a.parseUShort()] || {}, r;
15025
15038
  }
15026
15039
  function x2(o, e, i, r) {
@@ -15035,7 +15048,7 @@ function x2(o, e, i, r) {
15035
15048
  return l;
15036
15049
  }
15037
15050
  function C2(o, e, i, r) {
15038
- let a = {}, l = new ee.Parser(o, e);
15051
+ let a = {}, l = new te.Parser(o, e);
15039
15052
  a.name = (r.macintosh || r.windows || r.unicode)[l.parseUShort()] || {}, l.skip("uShort", 1), a.coordinates = {};
15040
15053
  for (let c = 0; c < i.length; ++c)
15041
15054
  a.coordinates[i[c].tag] = l.parseFixed();
@@ -15059,7 +15072,7 @@ function w2(o, e) {
15059
15072
  return i;
15060
15073
  }
15061
15074
  function E2(o, e, i) {
15062
- let r = new ee.Parser(o, e), a = r.parseULong();
15075
+ let r = new te.Parser(o, e), a = r.parseULong();
15063
15076
  re.argument(a === 65536, "Unsupported fvar table version.");
15064
15077
  let l = r.parseOffset16();
15065
15078
  r.skip("uShort", 1);
@@ -15110,7 +15123,7 @@ function T2() {
15110
15123
  }
15111
15124
  function L2(o, e, i) {
15112
15125
  e || (e = 0);
15113
- let r = new ee.Parser(o, e), a = r.parseUShort(), l = r.parseUShort();
15126
+ let r = new te.Parser(o, e), a = r.parseUShort(), l = r.parseUShort();
15114
15127
  a !== 1 && console.warn(`Unsupported STAT table version ${a}.${l}`);
15115
15128
  let c = [a, l], h = r.parseUShort(), p = r.parseUShort(), u = r.parseOffset32(), d = r.parseUShort(), f = r.parseOffset32(), g = a > 1 || l > 0 ? r.parseUShort() : void 0;
15116
15129
  i !== void 0 && re.argument(p >= i.axes.length, "STAT axis count must be greater than or equal to fvar axis count"), d > 0 && re.argument(p >= 0, "STAT axis count must be greater than 0 if STAT axis value count is greater than 0");
@@ -15252,7 +15265,7 @@ function O2(o, e, i) {
15252
15265
  }
15253
15266
  let ll = { make: R2, parse: O2 };
15254
15267
  function D2(o, e) {
15255
- let i = {}, r = new ee.Parser(o, e);
15268
+ let i = {}, r = new te.Parser(o, e);
15256
15269
  i.version = r.parseUShort(), re.argument(i.version <= 1, "Unsupported gasp table version."), i.numRanges = r.parseUShort(), i.gaspRanges = [];
15257
15270
  for (let a = 0; a < i.numRanges; a++)
15258
15271
  i.gaspRanges[a] = { rangeMaxPPEM: r.parseUShort(), rangeGaspBehavior: r.parseUShort() };
@@ -15361,7 +15374,7 @@ function N2(o) {
15361
15374
  minRightSideBearing: Math.min.apply(null, h)
15362
15375
  };
15363
15376
  v.ascender = o.ascender, v.descender = o.descender;
15364
- let y = za.make({
15377
+ let y = Ha.make({
15365
15378
  flags: 3,
15366
15379
  unitsPerEm: o.unitsPerEm,
15367
15380
  xMin: v.xMin,
@@ -15401,33 +15414,33 @@ function N2(o) {
15401
15414
  },
15402
15415
  o.tables.os2
15403
15416
  )
15404
- ), R = Wa.make(o.glyphs), P = Oa.make(o.glyphs), B = o.getEnglishName("fontFamily"), _ = o.getEnglishName("fontSubfamily"), k = B + " " + _, G = o.getEnglishName("postScriptName");
15405
- G || (G = B.replace(/\s/g, "") + "-" + _);
15406
- let j = {};
15417
+ ), R = Wa.make(o.glyphs), B = Oa.make(o.glyphs), P = o.getEnglishName("fontFamily"), _ = o.getEnglishName("fontSubfamily"), k = P + " " + _, G = o.getEnglishName("postScriptName");
15418
+ G || (G = P.replace(/\s/g, "") + "-" + _);
15419
+ let W = {};
15407
15420
  for (let w in o.names)
15408
- j[w] = o.names[w];
15409
- j.unicode = j.unicode || {}, j.macintosh = j.macintosh || {}, j.windows = j.windows || {};
15410
- let z = o.names.unicode || {}, H = o.names.macintosh || {}, $ = o.names.windows || {};
15421
+ W[w] = o.names[w];
15422
+ W.unicode = W.unicode || {}, W.macintosh = W.macintosh || {}, W.windows = W.windows || {};
15423
+ let H = o.names.unicode || {}, V = o.names.macintosh || {}, $ = o.names.windows || {};
15411
15424
  for (let w in ["unicode", "macintosh", "windows"])
15412
- j[w] = j[w] || {}, j[w].uniqueID || (j.unicode.uniqueID = { en: o.getEnglishName("manufacturer") + ":" + k }), j[w].postScriptName || (j.unicode.postScriptName = { en: G });
15413
- j.unicode.preferredFamily || (j.unicode.preferredFamily = z.fontFamily || H.fontFamily || $.fontFamily), j.macintosh.preferredFamily || (j.macintosh.preferredFamily = H.fontFamily || z.fontFamily || $.fontFamily), j.windows.preferredFamily || (j.windows.preferredFamily = $.fontFamily || z.fontFamily || H.fontFamily), j.unicode.preferredSubfamily || (j.unicode.preferredSubfamily = z.fontSubFamily || H.fontSubFamily || $.fontSubFamily), j.macintosh.preferredSubfamily || (j.macintosh.preferredSubfamily = H.fontSubFamily || z.fontSubFamily || $.fontSubFamily), j.windows.preferredSubfamily || (j.windows.preferredSubfamily = $.fontSubFamily || z.fontSubFamily || H.fontSubFamily);
15414
- let J = o.tables.fvar ? rl.make(o.tables.fvar, o.names) : void 0, ge = o.tables.gasp ? cl.make(o.tables.gasp) : void 0, ue = [], Ce = $a.make(j, ue), W = ue.length > 0 ? Xa.make(ue) : void 0, te = el.make(o.tables.post), Q = Oi.make(o.glyphs, {
15425
+ W[w] = W[w] || {}, W[w].uniqueID || (W.unicode.uniqueID = { en: o.getEnglishName("manufacturer") + ":" + k }), W[w].postScriptName || (W.unicode.postScriptName = { en: G });
15426
+ W.unicode.preferredFamily || (W.unicode.preferredFamily = H.fontFamily || V.fontFamily || $.fontFamily), W.macintosh.preferredFamily || (W.macintosh.preferredFamily = V.fontFamily || H.fontFamily || $.fontFamily), W.windows.preferredFamily || (W.windows.preferredFamily = $.fontFamily || H.fontFamily || V.fontFamily), W.unicode.preferredSubfamily || (W.unicode.preferredSubfamily = H.fontSubFamily || V.fontSubFamily || $.fontSubFamily), W.macintosh.preferredSubfamily || (W.macintosh.preferredSubfamily = V.fontSubFamily || H.fontSubFamily || $.fontSubFamily), W.windows.preferredSubfamily || (W.windows.preferredSubfamily = $.fontSubFamily || H.fontSubFamily || V.fontSubFamily);
15427
+ let J = o.tables.fvar ? rl.make(o.tables.fvar, o.names) : void 0, ye = o.tables.gasp ? cl.make(o.tables.gasp) : void 0, ae = [], be = $a.make(W, ae), j = ae.length > 0 ? Xa.make(ae) : void 0, ee = el.make(o.tables.post), Q = Oi.make(o.glyphs, {
15415
15428
  version: o.getEnglishName("version"),
15416
15429
  fullName: k,
15417
- familyName: B,
15430
+ familyName: P,
15418
15431
  weightName: _,
15419
15432
  postScriptName: G,
15420
15433
  unitsPerEm: o.unitsPerEm,
15421
15434
  fontBBox: [0, v.yMin, v.ascender, v.advanceWidthMax]
15422
- }), he = o.metas && Object.keys(o.metas).length > 0 ? sl.make(o.metas) : void 0, de = [y, b, E, M, Ce, P, te, Q, R];
15423
- W && de.push(W);
15435
+ }), he = o.metas && Object.keys(o.metas).length > 0 ? sl.make(o.metas) : void 0, de = [y, b, E, M, be, B, ee, Q, R];
15436
+ j && de.push(j);
15424
15437
  let se = { gsub: tl, cpal: il, colr: nl, stat: al, avar: ll }, me = { avar: [o.tables.fvar] };
15425
15438
  J && de.push(J);
15426
15439
  for (let w in se) {
15427
15440
  let T = o.tables[w];
15428
15441
  T && de.push(se[w].make.call(o, T, ...me[w] || []));
15429
15442
  }
15430
- he && de.push(he), ge && de.push(ge);
15443
+ he && de.push(he), ye && de.push(ye);
15431
15444
  let ve = hl(de), Ge = ve.encode(), x = xo(Ge), C = ve.fields, L = !1;
15432
15445
  for (let w = 0; w < C.length; w += 1)
15433
15446
  if (C[w].name === "head table") {
@@ -15792,7 +15805,7 @@ function xr(o, e, i, r, a) {
15792
15805
  return (e & r) > 0 ? (l = o.parseByte(), e & a || (l = -l), l = i + l) : (e & a) > 0 ? l = i : l = i + o.parseShort(), l;
15793
15806
  }
15794
15807
  function pl(o, e, i) {
15795
- let r = new ee.Parser(e, i);
15808
+ let r = new te.Parser(e, i);
15796
15809
  o.numberOfContours = r.parseShort(), o._xMin = r.parseShort(), o._yMin = r.parseShort(), o._xMax = r.parseShort(), o._yMax = r.parseShort();
15797
15810
  let a, l;
15798
15811
  if (o.numberOfContours > 0) {
@@ -15908,7 +15921,7 @@ function fl(o, e) {
15908
15921
  }
15909
15922
  return dl(e.points);
15910
15923
  }
15911
- function H2(o, e, i, r) {
15924
+ function z2(o, e, i, r) {
15912
15925
  let a = new Nt.GlyphSet(r);
15913
15926
  for (let l = 0; l < i.length - 1; l += 1) {
15914
15927
  let c = i[l], h = i[l + 1];
@@ -15916,7 +15929,7 @@ function H2(o, e, i, r) {
15916
15929
  }
15917
15930
  return a;
15918
15931
  }
15919
- function z2(o, e, i, r) {
15932
+ function H2(o, e, i, r) {
15920
15933
  let a = new Nt.GlyphSet(r);
15921
15934
  return r._push = function(l) {
15922
15935
  let c = i[l], h = i[l + 1];
@@ -15924,7 +15937,7 @@ function z2(o, e, i, r) {
15924
15937
  }, a;
15925
15938
  }
15926
15939
  function j2(o, e, i, r, a) {
15927
- return a.lowMemory ? z2(o, e, i, r) : H2(o, e, i, r);
15940
+ return a.lowMemory ? H2(o, e, i, r) : z2(o, e, i, r);
15928
15941
  }
15929
15942
  let ml = { getPath: dl, parse: j2 }, gl, xs, yl, Fi;
15930
15943
  function vl(o) {
@@ -15995,7 +16008,7 @@ let xl = function(o) {
15995
16008
  untouch: function(o) {
15996
16009
  o.xTouched = !1;
15997
16010
  }
15998
- }, zt = {
16011
+ }, Ht = {
15999
16012
  x: 0,
16000
16013
  y: 1,
16001
16014
  axis: "y",
@@ -16013,10 +16026,10 @@ let xl = function(o) {
16013
16026
  return;
16014
16027
  }
16015
16028
  if (a = r.distance(o, e, !0, !0), l = r.distance(o, i, !0, !0), p = r.distance(e, e, !1, !0), u = r.distance(i, i, !1, !0), c = Math.abs(a), h = Math.abs(l), d = c + h, d === 0) {
16016
- zt.setRelative(o, o, (p + u) / 2, r, !0);
16029
+ Ht.setRelative(o, o, (p + u) / 2, r, !0);
16017
16030
  return;
16018
16031
  }
16019
- zt.setRelative(o, o, (p * h + u * c) / d, r, !0);
16032
+ Ht.setRelative(o, o, (p * h + u * c) / d, r, !0);
16020
16033
  },
16021
16034
  normalSlope: 0,
16022
16035
  setRelative: function(o, e, i, r, a) {
@@ -16039,12 +16052,12 @@ let xl = function(o) {
16039
16052
  }
16040
16053
  };
16041
16054
  Object.freeze(Bt);
16042
- Object.freeze(zt);
16055
+ Object.freeze(Ht);
16043
16056
  function fn(o, e) {
16044
16057
  this.x = o, this.y = e, this.axis = void 0, this.slope = e / o, this.normalSlope = -o / e, Object.freeze(this);
16045
16058
  }
16046
16059
  fn.prototype.distance = function(o, e, i, r) {
16047
- return this.x * Bt.distance(o, e, i, r) + this.y * zt.distance(o, e, i, r);
16060
+ return this.x * Bt.distance(o, e, i, r) + this.y * Ht.distance(o, e, i, r);
16048
16061
  };
16049
16062
  fn.prototype.interpolate = function(o, e, i, r) {
16050
16063
  let a, l, c, h, p, u, d;
@@ -16064,7 +16077,7 @@ fn.prototype.touch = function(o) {
16064
16077
  };
16065
16078
  function mn(o, e) {
16066
16079
  let i = Math.sqrt(o * o + e * e);
16067
- return o /= i, e /= i, o === 1 && e === 0 ? Bt : o === 0 && e === 1 ? zt : new fn(o, e);
16080
+ return o /= i, e /= i, o === 1 && e === 0 ? Bt : o === 0 && e === 1 ? Ht : new fn(o, e);
16068
16081
  }
16069
16082
  function jt(o, e, i, r) {
16070
16083
  this.x = this.xo = Math.round(o * 64) / 64, this.y = this.yo = Math.round(e * 64) / 64, this.lastPointOfContour = i, this.onCurve = r, this.prevPointOnContour = void 0, this.nextPointOnContour = void 0, this.xTouched = !1, this.yTouched = !1, Object.preventExtensions(this);
@@ -16253,8 +16266,8 @@ function tp(o) {
16253
16266
  function sp(o) {
16254
16267
  let e = o.stack, i = e.pop(), r = e.pop(), a = e.pop(), l = e.pop(), c = e.pop(), h = o.z0, p = o.z1, u = h[i], d = h[r], f = p[a], g = p[l], m = o.z2[c];
16255
16268
  exports.DEBUG && console.log("ISECT[], ", i, r, a, l, c);
16256
- let v = u.x, y = u.y, b = d.x, E = d.y, M = f.x, R = f.y, P = g.x, B = g.y, _ = (v - b) * (R - B) - (y - E) * (M - P), k = v * E - y * b, G = M * B - R * P;
16257
- m.x = (k * (M - P) - G * (v - b)) / _, m.y = (k * (R - B) - G * (y - E)) / _;
16269
+ let v = u.x, y = u.y, b = d.x, E = d.y, M = f.x, R = f.y, B = g.x, P = g.y, _ = (v - b) * (R - P) - (y - E) * (M - B), k = v * E - y * b, G = M * P - R * B;
16270
+ m.x = (k * (M - B) - G * (v - b)) / _, m.y = (k * (R - P) - G * (y - E)) / _;
16258
16271
  }
16259
16272
  function np(o) {
16260
16273
  o.rp0 = o.stack.pop(), exports.DEBUG && console.log(o.step, "SRP0[]", o.rp0);
@@ -16539,11 +16552,11 @@ function Vp(o) {
16539
16552
  let e = o.stack, i = e.pop(), r = e.pop();
16540
16553
  exports.DEBUG && console.log(o.step, "GTEQ[]", i, r), e.push(r >= i ? 1 : 0);
16541
16554
  }
16542
- function Hp(o) {
16555
+ function zp(o) {
16543
16556
  let e = o.stack, i = e.pop(), r = e.pop();
16544
16557
  exports.DEBUG && console.log(o.step, "EQ[]", i, r), e.push(i === r ? 1 : 0);
16545
16558
  }
16546
- function zp(o) {
16559
+ function Hp(o) {
16547
16560
  let e = o.stack, i = e.pop(), r = e.pop();
16548
16561
  exports.DEBUG && console.log(o.step, "NEQ[]", i, r), e.push(i !== r ? 1 : 0);
16549
16562
  }
@@ -16801,11 +16814,11 @@ function ne(o, e, i, r, a, l) {
16801
16814
  ), l.rp1 = l.rp0, l.rp2 = p, e && (l.rp0 = p);
16802
16815
  }
16803
16816
  gl = [
16804
- Cr.bind(void 0, zt),
16817
+ Cr.bind(void 0, Ht),
16805
16818
  Cr.bind(void 0, Bt),
16806
- wr.bind(void 0, zt),
16819
+ wr.bind(void 0, Ht),
16807
16820
  wr.bind(void 0, Bt),
16808
- Er.bind(void 0, zt),
16821
+ Er.bind(void 0, Ht),
16809
16822
  Er.bind(void 0, Bt),
16810
16823
  Sr.bind(void 0, 0),
16811
16824
  Sr.bind(void 0, 1),
@@ -16849,7 +16862,7 @@ gl = [
16849
16862
  void 0,
16850
16863
  Lr.bind(void 0, 0),
16851
16864
  Lr.bind(void 0, 1),
16852
- kr.bind(void 0, zt),
16865
+ kr.bind(void 0, Ht),
16853
16866
  kr.bind(void 0, Bt),
16854
16867
  Mr.bind(void 0, 0),
16855
16868
  Mr.bind(void 0, 1),
@@ -16885,8 +16898,8 @@ gl = [
16885
16898
  Up,
16886
16899
  Gp,
16887
16900
  Vp,
16888
- Hp,
16889
16901
  zp,
16902
+ Hp,
16890
16903
  jp,
16891
16904
  Wp,
16892
16905
  Xp,
@@ -17358,8 +17371,8 @@ function kd(o, e) {
17358
17371
  for (let b = 0; b < y.subtables.length; b++) {
17359
17372
  let E = y.subtables[b], M, R = this.getSubstitutionType(y, E);
17360
17373
  if (R === "71" ? (R = this.getSubstitutionType(E, E.extension), M = this.getLookupMethod(E, E.extension), E = E.extension) : M = this.getLookupMethod(y, E), R === "12")
17361
- for (let P = 0; P < r.length; P++) {
17362
- let B = o.get(P), _ = M(B);
17374
+ for (let B = 0; B < r.length; B++) {
17375
+ let P = o.get(B), _ = M(P);
17363
17376
  _ && g.push(_);
17364
17377
  }
17365
17378
  else
@@ -17577,8 +17590,8 @@ let Pr = { 11: Nd, 12: Fd, 63: Ud, 41: Gd };
17577
17590
  function Vd(o, e, i) {
17578
17591
  o instanceof ys && Pr[o.id] && Pr[o.id](o, e, i);
17579
17592
  }
17580
- let Hs = Vd;
17581
- function Hd(o) {
17593
+ let zs = Vd;
17594
+ function zd(o) {
17582
17595
  let e = [].concat(o.backtrack);
17583
17596
  for (let i = e.length - 1; i >= 0; i--) {
17584
17597
  let r = e[i], a = wl(r), l = ls(r);
@@ -17589,7 +17602,7 @@ function Hd(o) {
17589
17602
  }
17590
17603
  return !1;
17591
17604
  }
17592
- function zd(o) {
17605
+ function Hd(o) {
17593
17606
  if (wl(o.current))
17594
17607
  return !1;
17595
17608
  for (let e = 0; e < o.lookahead.length; e++) {
@@ -17616,7 +17629,7 @@ function jd(o) {
17616
17629
  continue;
17617
17630
  a.setCurrentIndex(c), l.setCurrentIndex(c);
17618
17631
  let p = 0;
17619
- Hd(l) && (p |= 1), zd(l) && (p |= 2);
17632
+ zd(l) && (p |= 1), Hd(l) && (p |= 2);
17620
17633
  let u;
17621
17634
  switch (p) {
17622
17635
  case 1:
@@ -17638,7 +17651,7 @@ function jd(o) {
17638
17651
  }
17639
17652
  for (let f = 0; f < d.length; f++) {
17640
17653
  let g = d[f];
17641
- g instanceof ys && (Hs(g, r, f), a.context[f] = g.substitution);
17654
+ g instanceof ys && (zs(g, r, f), a.context[f] = g.substitution);
17642
17655
  }
17643
17656
  }
17644
17657
  }
@@ -17655,7 +17668,7 @@ function Xd(o) {
17655
17668
  if (l.length) {
17656
17669
  for (let c = 0; c < l.length; c++) {
17657
17670
  let h = l[c];
17658
- Hs(h, i, a);
17671
+ zs(h, i, a);
17659
17672
  }
17660
17673
  r = Nr(i);
17661
17674
  }
@@ -17683,7 +17696,7 @@ function Qd(o) {
17683
17696
  if (l.length) {
17684
17697
  for (let c = 0; c < l.length; c++) {
17685
17698
  let h = l[c];
17686
- Hs(h, i, a);
17699
+ zs(h, i, a);
17687
17700
  }
17688
17701
  r = Fr(i);
17689
17702
  }
@@ -17711,7 +17724,7 @@ function s3(o) {
17711
17724
  if (l.length) {
17712
17725
  for (let c = 0; c < l.length; c++) {
17713
17726
  let h = l[c];
17714
- Hs(h, i, a);
17727
+ zs(h, i, a);
17715
17728
  }
17716
17729
  r = Ur(i, a);
17717
17730
  }
@@ -17730,7 +17743,7 @@ function i3(o) {
17730
17743
  if (l.length) {
17731
17744
  for (let c = 0; c < l.length; c++) {
17732
17745
  let h = l[c];
17733
- Hs(h, i, a);
17746
+ zs(h, i, a);
17734
17747
  }
17735
17748
  r = Gr(i, a);
17736
17749
  }
@@ -17749,7 +17762,7 @@ function r3(o) {
17749
17762
  if (l.length) {
17750
17763
  for (let c = 0; c < l.length; c++) {
17751
17764
  let h = l[c];
17752
- Hs(h, i, a);
17765
+ zs(h, i, a);
17753
17766
  }
17754
17767
  r = Vr(i, a);
17755
17768
  }
@@ -18272,7 +18285,7 @@ function N3(o) {
18272
18285
  return e;
18273
18286
  }
18274
18287
  function F3(o, e) {
18275
- let i = new ee.Parser(o, e), r = i.parseUShort();
18288
+ let i = new te.Parser(o, e), r = i.parseUShort();
18276
18289
  if (r === 0)
18277
18290
  return P3(i);
18278
18291
  if (r === 1)
@@ -18281,7 +18294,7 @@ function F3(o, e) {
18281
18294
  }
18282
18295
  let U3 = { parse: F3 };
18283
18296
  function G3(o, e, i, r) {
18284
- let a = new ee.Parser(o, e), l = r ? a.parseUShort : a.parseULong, c = [];
18297
+ let a = new te.Parser(o, e), l = r ? a.parseUShort : a.parseULong, c = [];
18285
18298
  for (let h = 0; h < i + 1; h += 1) {
18286
18299
  let p = l.call(a);
18287
18300
  r && (p *= 2), c.push(p);
@@ -18289,18 +18302,18 @@ function G3(o, e, i, r) {
18289
18302
  return c;
18290
18303
  }
18291
18304
  let V3 = { parse: G3 };
18292
- function Hr(o, e) {
18305
+ function zr(o, e) {
18293
18306
  let i = [], r = 12;
18294
18307
  for (let a = 0; a < e; a += 1) {
18295
- let l = ee.getTag(o, r), c = ee.getULong(o, r + 4), h = ee.getULong(o, r + 8), p = ee.getULong(o, r + 12);
18308
+ let l = te.getTag(o, r), c = te.getULong(o, r + 4), h = te.getULong(o, r + 8), p = te.getULong(o, r + 12);
18296
18309
  i.push({ tag: l, checksum: c, offset: h, length: p, compression: !1 }), r += 16;
18297
18310
  }
18298
18311
  return i;
18299
18312
  }
18300
- function H3(o, e) {
18313
+ function z3(o, e) {
18301
18314
  let i = [], r = 44;
18302
18315
  for (let a = 0; a < e; a += 1) {
18303
- let l = ee.getTag(o, r), c = ee.getULong(o, r + 4), h = ee.getULong(o, r + 8), p = ee.getULong(o, r + 12), u;
18316
+ let l = te.getTag(o, r), c = te.getULong(o, r + 4), h = te.getULong(o, r + 8), p = te.getULong(o, r + 12), u;
18304
18317
  h < p ? u = "WOFF" : u = !1, i.push({ tag: l, offset: c, compression: u, compressedLength: h, length: p }), r += 20;
18305
18318
  }
18306
18319
  return i;
@@ -18314,31 +18327,31 @@ function ke(o, e) {
18314
18327
  } else
18315
18328
  return { data: o, offset: e.offset };
18316
18329
  }
18317
- function z3(o, e = {}) {
18330
+ function H3(o, e = {}) {
18318
18331
  let i, r, a = new C3({ empty: !0 });
18319
18332
  o.constructor !== ArrayBuffer && (o = new Uint8Array(o).buffer);
18320
- let l = new DataView(o, 0), c, h = [], p = ee.getTag(l, 0);
18333
+ let l = new DataView(o, 0), c, h = [], p = te.getTag(l, 0);
18321
18334
  if (p === String.fromCharCode(0, 1, 0, 0) || p === "true" || p === "typ1")
18322
- a.outlinesFormat = "truetype", c = ee.getUShort(l, 4), h = Hr(l, c);
18335
+ a.outlinesFormat = "truetype", c = te.getUShort(l, 4), h = zr(l, c);
18323
18336
  else if (p === "OTTO")
18324
- a.outlinesFormat = "cff", c = ee.getUShort(l, 4), h = Hr(l, c);
18337
+ a.outlinesFormat = "cff", c = te.getUShort(l, 4), h = zr(l, c);
18325
18338
  else if (p === "wOFF") {
18326
- let H = ee.getTag(l, 4);
18327
- if (H === String.fromCharCode(0, 1, 0, 0))
18339
+ let V = te.getTag(l, 4);
18340
+ if (V === String.fromCharCode(0, 1, 0, 0))
18328
18341
  a.outlinesFormat = "truetype";
18329
- else if (H === "OTTO")
18342
+ else if (V === "OTTO")
18330
18343
  a.outlinesFormat = "cff";
18331
18344
  else
18332
18345
  throw new Error("Unsupported OpenType flavor " + p);
18333
- c = ee.getUShort(l, 12), h = H3(l, c);
18346
+ c = te.getUShort(l, 12), h = z3(l, c);
18334
18347
  } else if (p === "wOF2") {
18335
- let H = "https://github.com/opentypejs/opentype.js/issues/183#issuecomment-1147228025";
18336
- throw new Error("WOFF2 require an external decompressor library, see examples at: " + H);
18348
+ let V = "https://github.com/opentypejs/opentype.js/issues/183#issuecomment-1147228025";
18349
+ throw new Error("WOFF2 require an external decompressor library, see examples at: " + V);
18337
18350
  } else
18338
18351
  throw new Error("Unsupported OpenType signature " + p);
18339
- let u, d, f, g, m, v, y, b, E, M, R, P, B, _, k, G;
18340
- for (let H = 0; H < c; H += 1) {
18341
- let $ = h[H], J;
18352
+ let u, d, f, g, m, v, y, b, E, M, R, B, P, _, k, G;
18353
+ for (let V = 0; V < c; V += 1) {
18354
+ let $ = h[V], J;
18342
18355
  switch ($.tag) {
18343
18356
  case "avar":
18344
18357
  v = $;
@@ -18347,7 +18360,7 @@ function z3(o, e = {}) {
18347
18360
  J = ke(l, $), a.tables.cmap = Oa.parse(J.data, J.offset), a.encoding = new Ba(a.tables.cmap);
18348
18361
  break;
18349
18362
  case "cvt ":
18350
- J = ke(l, $), G = new ee.Parser(J.data, J.offset), a.tables.cvt = G.parseShortList($.length / 2);
18363
+ J = ke(l, $), G = new te.Parser(J.data, J.offset), a.tables.cvt = G.parseShortList($.length / 2);
18351
18364
  break;
18352
18365
  case "fvar":
18353
18366
  f = $;
@@ -18359,10 +18372,10 @@ function z3(o, e = {}) {
18359
18372
  m = $;
18360
18373
  break;
18361
18374
  case "fpgm":
18362
- J = ke(l, $), G = new ee.Parser(J.data, J.offset), a.tables.fpgm = G.parseByteList($.length);
18375
+ J = ke(l, $), G = new te.Parser(J.data, J.offset), a.tables.fpgm = G.parseByteList($.length);
18363
18376
  break;
18364
18377
  case "head":
18365
- J = ke(l, $), a.tables.head = za.parse(J.data, J.offset), a.unitsPerEm = a.tables.head.unitsPerEm, i = a.tables.head.indexToLocFormat;
18378
+ J = ke(l, $), a.tables.head = Ha.parse(J.data, J.offset), a.unitsPerEm = a.tables.head.unitsPerEm, i = a.tables.head.indexToLocFormat;
18366
18379
  break;
18367
18380
  case "hhea":
18368
18381
  J = ke(l, $), a.tables.hhea = ja.parse(J.data, J.offset), a.ascender = a.tables.hhea.ascender, a.descender = a.tables.hhea.descender, a.numberOfHMetrics = a.tables.hhea.numberOfHMetrics;
@@ -18392,13 +18405,13 @@ function z3(o, e = {}) {
18392
18405
  J = ke(l, $), a.tables.post = el.parse(J.data, J.offset), a.glyphNames = new fo(a.tables.post);
18393
18406
  break;
18394
18407
  case "prep":
18395
- J = ke(l, $), G = new ee.Parser(J.data, J.offset), a.tables.prep = G.parseByteList($.length);
18408
+ J = ke(l, $), G = new te.Parser(J.data, J.offset), a.tables.prep = G.parseByteList($.length);
18396
18409
  break;
18397
18410
  case "glyf":
18398
18411
  y = $;
18399
18412
  break;
18400
18413
  case "loca":
18401
- B = $;
18414
+ P = $;
18402
18415
  break;
18403
18416
  case "CFF ":
18404
18417
  u = $;
@@ -18407,7 +18420,7 @@ function z3(o, e = {}) {
18407
18420
  d = $;
18408
18421
  break;
18409
18422
  case "kern":
18410
- P = $;
18423
+ B = $;
18411
18424
  break;
18412
18425
  case "GDEF":
18413
18426
  b = $;
@@ -18426,57 +18439,57 @@ function z3(o, e = {}) {
18426
18439
  break;
18427
18440
  }
18428
18441
  }
18429
- let j = ke(l, _);
18430
- if (a.tables.name = $a.parse(j.data, j.offset, r), a.names = a.tables.name, y && B) {
18431
- let H = i === 0, $ = ke(l, B), J = V3.parse($.data, $.offset, a.numGlyphs, H), ge = ke(l, y);
18432
- a.glyphs = ml.parse(ge.data, ge.offset, J, a, e);
18442
+ let W = ke(l, _);
18443
+ if (a.tables.name = $a.parse(W.data, W.offset, r), a.names = a.tables.name, y && P) {
18444
+ let V = i === 0, $ = ke(l, P), J = V3.parse($.data, $.offset, a.numGlyphs, V), ye = ke(l, y);
18445
+ a.glyphs = ml.parse(ye.data, ye.offset, J, a, e);
18433
18446
  } else if (u) {
18434
- let H = ke(l, u);
18435
- Oi.parse(H.data, H.offset, a, e);
18447
+ let V = ke(l, u);
18448
+ Oi.parse(V.data, V.offset, a, e);
18436
18449
  } else if (d) {
18437
- let H = ke(l, d);
18438
- Oi.parse(H.data, H.offset, a, e);
18450
+ let V = ke(l, d);
18451
+ Oi.parse(V.data, V.offset, a, e);
18439
18452
  } else
18440
18453
  throw new Error("Font doesn't contain TrueType, CFF or CFF2 outlines.");
18441
- let z = ke(l, R);
18442
- if (Wa.parse(a, z.data, z.offset, a.numberOfHMetrics, a.numGlyphs, a.glyphs, e), lu(a, e), P) {
18443
- let H = ke(l, P);
18444
- a.kerningPairs = U3.parse(H.data, H.offset);
18454
+ let H = ke(l, R);
18455
+ if (Wa.parse(a, H.data, H.offset, a.numberOfHMetrics, a.numGlyphs, a.glyphs, e), lu(a, e), B) {
18456
+ let V = ke(l, B);
18457
+ a.kerningPairs = U3.parse(V.data, V.offset);
18445
18458
  } else
18446
18459
  a.kerningPairs = {};
18447
18460
  if (b) {
18448
- let H = ke(l, b);
18449
- a.tables.gdef = _3.parse(H.data, H.offset);
18461
+ let V = ke(l, b);
18462
+ a.tables.gdef = _3.parse(V.data, V.offset);
18450
18463
  }
18451
18464
  if (E) {
18452
- let H = ke(l, E);
18453
- a.tables.gpos = B3.parse(H.data, H.offset), a.position.init();
18465
+ let V = ke(l, E);
18466
+ a.tables.gpos = B3.parse(V.data, V.offset), a.position.init();
18454
18467
  }
18455
18468
  if (M) {
18456
- let H = ke(l, M);
18457
- a.tables.gsub = tl.parse(H.data, H.offset);
18469
+ let V = ke(l, M);
18470
+ a.tables.gsub = tl.parse(V.data, V.offset);
18458
18471
  }
18459
18472
  if (f) {
18460
- let H = ke(l, f);
18461
- a.tables.fvar = rl.parse(H.data, H.offset, a.names);
18473
+ let V = ke(l, f);
18474
+ a.tables.fvar = rl.parse(V.data, V.offset, a.names);
18462
18475
  }
18463
18476
  if (g) {
18464
- let H = ke(l, g);
18465
- a.tables.stat = al.parse(H.data, H.offset, a.tables.fvar);
18477
+ let V = ke(l, g);
18478
+ a.tables.stat = al.parse(V.data, V.offset, a.tables.fvar);
18466
18479
  }
18467
18480
  if (m) {
18468
18481
  f || console.warn("This font provides a gvar table, but no fvar table, which is required for variable fonts."), y || console.warn("This font provides a gvar table, but no glyf table. Glyph variation only works with TrueType outlines.");
18469
- let H = ke(l, m);
18470
- a.tables.gvar = S3.parse(H.data, H.offset, a.names);
18482
+ let V = ke(l, m);
18483
+ a.tables.gvar = S3.parse(V.data, V.offset, a.names);
18471
18484
  }
18472
18485
  if (v) {
18473
18486
  f || console.warn("This font provides an avar table, but no fvar table, which is required for variable fonts.");
18474
- let H = ke(l, v);
18475
- a.tables.avar = ll.parse(H.data, H.offset, a.tables.fvar);
18487
+ let V = ke(l, v);
18488
+ a.tables.avar = ll.parse(V.data, V.offset, a.tables.fvar);
18476
18489
  }
18477
18490
  if (k) {
18478
- let H = ke(l, k);
18479
- a.tables.meta = sl.parse(H.data, H.offset), a.metas = a.tables.meta;
18491
+ let V = ke(l, k);
18492
+ a.tables.meta = sl.parse(V.data, V.offset), a.metas = a.tables.meta;
18480
18493
  }
18481
18494
  return a;
18482
18495
  }
@@ -18577,7 +18590,7 @@ class lt {
18577
18590
  return async function() {
18578
18591
  i && i("font", 0, null);
18579
18592
  const c = await fetch(l).then((h) => h.arrayBuffer());
18580
- return i && i("prepare", 0, null), z3(c);
18593
+ return i && i("prepare", 0, null), H3(c);
18581
18594
  };
18582
18595
  }
18583
18596
  const a = [];
@@ -18618,7 +18631,7 @@ lt.Request = class {
18618
18631
  this._Reject(o);
18619
18632
  }
18620
18633
  };
18621
- class zr {
18634
+ class Hr {
18622
18635
  /**
18623
18636
  * @param instanceType {Number} One of InstanceType values.
18624
18637
  * @param geometryType {?number} One of BatchingKey.GeometryType.
@@ -18633,8 +18646,8 @@ class zr {
18633
18646
  * Null values are always first.
18634
18647
  */
18635
18648
  Compare(e) {
18636
- let i = Ht(this.instanceType, e.instanceType);
18637
- return i !== 0 || (i = Ht(this.geometryType, e.geometryType), i !== 0) || (i = Ht(this.color, e.color), i !== 0) ? i : Ht(this.lineType, e.lineType);
18649
+ let i = zt(this.instanceType, e.instanceType);
18650
+ return i !== 0 || (i = zt(this.geometryType, e.geometryType), i !== 0) || (i = zt(this.color, e.color), i !== 0) ? i : zt(this.lineType, e.lineType);
18638
18651
  }
18639
18652
  }
18640
18653
  function _s(o) {
@@ -18748,7 +18761,7 @@ class Ns {
18748
18761
  for (const c of l.layers)
18749
18762
  this.layers.set(c.name, new Y3(c.name, c.color));
18750
18763
  for (const c of l.batches)
18751
- if (c.key.blockName !== null && c.key.geometryType !== ye.GeometryType.BLOCK_INSTANCE && c.key.geometryType !== ye.GeometryType.POINT_INSTANCE) {
18764
+ if (c.key.blockName !== null && c.key.geometryType !== ge.GeometryType.BLOCK_INSTANCE && c.key.geometryType !== ge.GeometryType.POINT_INSTANCE) {
18752
18765
  let h = this.blocks.get(c.key.blockName);
18753
18766
  h || (h = new K3(), this.blocks.set(c.key.blockName, h)), h.PushBatch(new jr(this, l, c));
18754
18767
  }
@@ -18757,14 +18770,14 @@ class Ns {
18757
18770
  return this.scene.dxfLayers = this.layers, this.scene;
18758
18771
  }
18759
18772
  _LoadBatch(e, i) {
18760
- if (i.key.blockName !== null && i.key.geometryType !== ye.GeometryType.BLOCK_INSTANCE && i.key.geometryType !== ye.GeometryType.POINT_INSTANCE)
18773
+ if (i.key.blockName !== null && i.key.geometryType !== ge.GeometryType.BLOCK_INSTANCE && i.key.geometryType !== ge.GeometryType.POINT_INSTANCE)
18761
18774
  return;
18762
18775
  const r = new jr(this, e, i).CreateObjects(), a = this.layers.get(i.key.layerName);
18763
18776
  for (const l of r)
18764
18777
  this.scene.add(l), a && a.PushObject(l);
18765
18778
  }
18766
18779
  _GetSimpleColorMaterial(e, i = Je.NONE) {
18767
- const r = new zr(i, null, e, 0);
18780
+ const r = new Hr(i, null, e, 0);
18768
18781
  let a = this.materials.find({ key: r });
18769
18782
  return a !== null || (a = {
18770
18783
  key: r,
@@ -18795,7 +18808,7 @@ class Ns {
18795
18808
  return a.uniforms.color = { value: new _e.Color(e) }, a;
18796
18809
  }
18797
18810
  _GetSimplePointMaterial(e, i = Je.NONE) {
18798
- const r = new zr(i, ye.GeometryType.POINTS, e, 0);
18811
+ const r = new Hr(i, ge.GeometryType.POINTS, e, 0);
18799
18812
  let a = this.materials.find({ key: r });
18800
18813
  return a !== null || (a = {
18801
18814
  key: r,
@@ -18957,7 +18970,7 @@ class jr {
18957
18970
  r.verticesOffset * Float32Array.BYTES_PER_ELEMENT,
18958
18971
  r.verticesSize
18959
18972
  );
18960
- (this.key.geometryType !== ye.GeometryType.POINT_INSTANCE || i.pointShapeHasDot) && (this.vertices = new _e.BufferAttribute(a, 2)), this.key.geometryType === ye.GeometryType.POINT_INSTANCE && (this.transforms = new _e.InstancedBufferAttribute(a, 2));
18973
+ (this.key.geometryType !== ge.GeometryType.POINT_INSTANCE || i.pointShapeHasDot) && (this.vertices = new _e.BufferAttribute(a, 2)), this.key.geometryType === ge.GeometryType.POINT_INSTANCE && (this.transforms = new _e.InstancedBufferAttribute(a, 2));
18961
18974
  }
18962
18975
  if (r.hasOwnProperty("chunks")) {
18963
18976
  this.chunks = [];
@@ -18985,16 +18998,16 @@ class jr {
18985
18998
  ), l = new _e.InstancedInterleavedBuffer(a, 6);
18986
18999
  this.transforms0 = new _e.InterleavedBufferAttribute(l, 3, 0), this.transforms1 = new _e.InterleavedBufferAttribute(l, 3, 3);
18987
19000
  }
18988
- if (this.key.geometryType === ye.GeometryType.BLOCK_INSTANCE || this.key.geometryType === ye.GeometryType.POINT_INSTANCE) {
19001
+ if (this.key.geometryType === ge.GeometryType.BLOCK_INSTANCE || this.key.geometryType === ge.GeometryType.POINT_INSTANCE) {
18989
19002
  const a = this.viewer.layers.get(this.key.layerName);
18990
19003
  a ? this.layerColor = a.color : this.layerColor = 0;
18991
19004
  }
18992
19005
  }
18993
19006
  GetInstanceType() {
18994
19007
  switch (this.key.geometryType) {
18995
- case ye.GeometryType.BLOCK_INSTANCE:
19008
+ case ge.GeometryType.BLOCK_INSTANCE:
18996
19009
  return Je.FULL;
18997
- case ye.GeometryType.POINT_INSTANCE:
19010
+ case ge.GeometryType.POINT_INSTANCE:
18998
19011
  return Je.POINT;
18999
19012
  default:
19000
19013
  return Je.NONE;
@@ -19004,7 +19017,7 @@ class jr {
19004
19017
  * @param instanceBatch {?Batch} Batch with instance transform. Null for non-instanced object.
19005
19018
  */
19006
19019
  *CreateObjects(e = null) {
19007
- if (this.key.geometryType === ye.GeometryType.BLOCK_INSTANCE || this.key.geometryType === ye.GeometryType.POINT_INSTANCE) {
19020
+ if (this.key.geometryType === ge.GeometryType.BLOCK_INSTANCE || this.key.geometryType === ge.GeometryType.POINT_INSTANCE) {
19008
19021
  if (e !== null)
19009
19022
  throw new Error("Unexpected instance batch specified for instance batch");
19010
19023
  yield* this._CreateBlockInstanceObjects();
@@ -19013,23 +19026,23 @@ class jr {
19013
19026
  yield* this._CreateObjects(e);
19014
19027
  }
19015
19028
  *_CreateObjects(e) {
19016
- const i = e ? e._GetInstanceColor(this.key.color) : this.key.color, a = (this.key.geometryType === ye.GeometryType.POINTS || this.key.geometryType === ye.GeometryType.POINT_INSTANCE ? this.viewer._GetSimplePointMaterial : this.viewer._GetSimpleColorMaterial).call(
19029
+ const i = e ? e._GetInstanceColor(this.key.color) : this.key.color, a = (this.key.geometryType === ge.GeometryType.POINTS || this.key.geometryType === ge.GeometryType.POINT_INSTANCE ? this.viewer._GetSimplePointMaterial : this.viewer._GetSimpleColorMaterial).call(
19017
19030
  this.viewer,
19018
19031
  this.viewer._TransformColor(i),
19019
19032
  (e == null ? void 0 : e.GetInstanceType()) ?? Je.NONE
19020
19033
  );
19021
19034
  let l;
19022
19035
  switch (this.key.geometryType) {
19023
- case ye.GeometryType.POINTS:
19024
- case ye.GeometryType.POINT_INSTANCE:
19036
+ case ge.GeometryType.POINTS:
19037
+ case ge.GeometryType.POINT_INSTANCE:
19025
19038
  l = _e.Points;
19026
19039
  break;
19027
- case ye.GeometryType.LINES:
19028
- case ye.GeometryType.INDEXED_LINES:
19040
+ case ge.GeometryType.LINES:
19041
+ case ge.GeometryType.INDEXED_LINES:
19029
19042
  l = _e.LineSegments;
19030
19043
  break;
19031
- case ye.GeometryType.TRIANGLES:
19032
- case ye.GeometryType.INDEXED_TRIANGLES:
19044
+ case ge.GeometryType.TRIANGLES:
19045
+ case ge.GeometryType.INDEXED_TRIANGLES:
19033
19046
  l = _e.Mesh;
19034
19047
  break;
19035
19048
  default:
@@ -19057,7 +19070,7 @@ class jr {
19057
19070
  _SetInstanceTransformAttribute(e) {
19058
19071
  if (!e.isInstancedBufferGeometry)
19059
19072
  throw new Error("InstancedBufferGeometry expected");
19060
- this.key.geometryType === ye.GeometryType.POINT_INSTANCE ? e.setAttribute("instanceTransform", this.transforms) : (e.setAttribute("instanceTransform0", this.transforms0), e.setAttribute("instanceTransform1", this.transforms1));
19073
+ this.key.geometryType === ge.GeometryType.POINT_INSTANCE ? e.setAttribute("instanceTransform", this.transforms) : (e.setAttribute("instanceTransform0", this.transforms0), e.setAttribute("instanceTransform1", this.transforms1));
19061
19074
  }
19062
19075
  *_CreateBlockInstanceObjects() {
19063
19076
  const e = this.viewer.blocks.get(this.key.blockName);
@@ -19687,16 +19700,16 @@ class gf {
19687
19700
  const p = this;
19688
19701
  let u;
19689
19702
  e.onmousedown = function(g) {
19690
- var B;
19691
- const m = g.clientX, v = g.clientY, y = e.getBoundingClientRect(), b = (B = p.viewer.element.parentElement) == null ? void 0 : B.getBoundingClientRect();
19703
+ var P;
19704
+ const m = g.clientX, v = g.clientY, y = e.getBoundingClientRect(), b = (P = p.viewer.element.parentElement) == null ? void 0 : P.getBoundingClientRect();
19692
19705
  if (!b)
19693
19706
  return;
19694
- const E = b.height - y.height, M = b.width - y.width, R = Number(e.style.right.split("p")[0]) || 0, P = Number(e.style.bottom.split("p")[0]) || 0;
19707
+ const E = b.height - y.height, M = b.width - y.width, R = Number(e.style.right.split("p")[0]) || 0, B = Number(e.style.bottom.split("p")[0]) || 0;
19695
19708
  clearTimeout(u), u = setTimeout(() => {
19696
19709
  e.style.cursor = "grabbing", document.onmousemove = function(_) {
19697
19710
  const k = _.clientX, G = _.clientY;
19698
- let j = m - k + R, z = v - G + P;
19699
- j < 0 && (j = 0), z < 0 && (z = 0), j > M && (j = M), z > E && (z = E), e.style.right = j + "px", e.style.bottom = z + "px";
19711
+ let W = m - k + R, H = v - G + B;
19712
+ W < 0 && (W = 0), H < 0 && (H = 0), W > M && (W = M), H > E && (H = E), e.style.right = W + "px", e.style.bottom = H + "px";
19700
19713
  };
19701
19714
  }, 1e3), e.onmouseup = function() {
19702
19715
  document.onmousemove = null, clearTimeout(u), e.style.cursor = "default";
@@ -19807,7 +19820,7 @@ let yf = class {
19807
19820
  this.dom.setAttribute("data-attr", i || "全屏"), document.addEventListener("fullscreenchange", () => {
19808
19821
  this.fullFlag = !document.fullscreenElement;
19809
19822
  }), this.dom.onmouseup = () => {
19810
- this.fullFlag ? this.target.requestFullscreen() : document.exitFullscreen();
19823
+ document.fullscreenElement ? document.exitFullscreen() : this.target.requestFullscreen();
19811
19824
  };
19812
19825
  }
19813
19826
  };
@@ -19834,14 +19847,14 @@ class vf extends ma {
19834
19847
  r.x > r.y ? h = this.orthographicCamera.right / r.x : h = this.orthographicCamera.top / r.y, this.orthographicCamera.zoom = h, this.camera.position.copy(c), this.orthographicCamera.updateProjectionMatrix(), this.orbitControl.target.copy(a), this.orbitControl.update();
19835
19848
  }
19836
19849
  }
19837
- const bf = { class: "viewer-box" }, xf = /* @__PURE__ */ He({
19850
+ const bf = { class: "viewer-box" }, xf = /* @__PURE__ */ ze({
19838
19851
  __name: "index-dxf",
19839
19852
  props: {
19840
19853
  url: { default: "/A-1F-研发楼.dxf" },
19841
19854
  showTools: { type: Boolean, default: !0 }
19842
19855
  },
19843
19856
  setup(o, { expose: e }) {
19844
- const i = o, r = ce(null), a = ce(null), l = ce(!1), c = [
19857
+ const i = o, r = ue(null), a = ue(null), l = ue(!1), c = [
19845
19858
  "/fonts/Roboto-LightItalic.ttf",
19846
19859
  "/fonts/NotoSansDisplay-SemiCondensedLightItalic.ttf",
19847
19860
  "/fonts/HanaMinA.ttf",
@@ -19858,11 +19871,11 @@ const bf = { class: "viewer-box" }, xf = /* @__PURE__ */ He({
19858
19871
  }
19859
19872
  function v(b) {
19860
19873
  if (b.preventDefault(), b.touches.length === 1 && d !== null && f !== null) {
19861
- const E = b.touches[0].pageX, M = b.touches[0].pageY, R = E - d, P = M - f;
19862
- for (const B in h.objs)
19863
- if (Object.hasOwnProperty.call(h.objs, B)) {
19864
- const _ = h.objs[B];
19865
- _.position.x += R / 2 / h.camera.zoom, _.position.z += P / 2 / h.camera.zoom;
19874
+ const E = b.touches[0].pageX, M = b.touches[0].pageY, R = E - d, B = M - f;
19875
+ for (const P in h.objs)
19876
+ if (Object.hasOwnProperty.call(h.objs, P)) {
19877
+ const _ = h.objs[P];
19878
+ _.position.x += R / 2 / h.camera.zoom, _.position.z += B / 2 / h.camera.zoom;
19866
19879
  }
19867
19880
  d = E, f = M;
19868
19881
  }
@@ -19885,9 +19898,9 @@ const bf = { class: "viewer-box" }, xf = /* @__PURE__ */ He({
19885
19898
  progressCbk: void 0,
19886
19899
  workerFactory: E
19887
19900
  }).then((R) => {
19888
- let P = new $e();
19889
- P.setFromObject(R);
19890
- const B = P.getSize(new U()), _ = 600 / Math.max(B.x, B.z);
19901
+ let B = new $e();
19902
+ B.setFromObject(R);
19903
+ const P = B.getSize(new U()), _ = 600 / Math.max(P.x, P.z);
19891
19904
  p = R, R.scale.set(_, _, _), h.addObject(R), h.centerView(), h.renderer.domElement.addEventListener("touchstart", m, !1), h.renderer.domElement.addEventListener("touchmove", v, !1), l.value = !1;
19892
19905
  });
19893
19906
  };
@@ -19909,8 +19922,8 @@ const bf = { class: "viewer-box" }, xf = /* @__PURE__ */ He({
19909
19922
  h.destroy();
19910
19923
  }), e({ viewer: () => h }), (b, E) => {
19911
19924
  const M = Fl("loading");
19912
- return Hi((ie(), be("div", bf, [
19913
- b.showTools ? (ie(), be("div", {
19925
+ return zi((ie(), xe("div", bf, [
19926
+ b.showTools ? (ie(), xe("div", {
19914
19927
  key: 0,
19915
19928
  class: "dxf-tools",
19916
19929
  ref_key: "dxfTools",
@@ -20425,8 +20438,8 @@ class r6 {
20425
20438
  e.visible = f, a.findAllChildNode(c, e.visible, 1), v(e, f);
20426
20439
  function v(E, M) {
20427
20440
  var R;
20428
- E.visible = M, (R = E == null ? void 0 : E.children) != null && R.length && (E == null || E.children.forEach((P) => {
20429
- v(P, M);
20441
+ E.visible = M, (R = E == null ? void 0 : E.children) != null && R.length && (E == null || E.children.forEach((B) => {
20442
+ v(B, M);
20430
20443
  }));
20431
20444
  }
20432
20445
  if (e.visible) {
@@ -20457,21 +20470,21 @@ class r6 {
20457
20470
  for (const R in i) {
20458
20471
  if (R == "model")
20459
20472
  continue;
20460
- const P = i[R], B = P.geometry, _ = B.attributes.position;
20461
- B.userData[E.guid] && (B.userData[E.guid].forEach((k) => {
20462
- const G = k.geo_start, j = k.geo_end;
20473
+ const B = i[R], P = B.geometry, _ = P.attributes.position;
20474
+ P.userData[E.guid] && (P.userData[E.guid].forEach((k) => {
20475
+ const G = k.geo_start, W = k.geo_end;
20463
20476
  if (M) {
20464
20477
  if (k.position)
20465
- for (let z = G; z < j; z++) {
20466
- const H = (z - G) * 3;
20467
- _.setXYZ(z, k.position[H], k.position[H + 1], k.position[H + 2]);
20478
+ for (let H = G; H < W; H++) {
20479
+ const V = (H - G) * 3;
20480
+ _.setXYZ(H, k.position[V], k.position[V + 1], k.position[V + 2]);
20468
20481
  }
20469
20482
  } else {
20470
20483
  !k.position && (k.position = []);
20471
- for (let z = G; z < j; z++)
20472
- k.position.push(_.getX(z), _.getY(z), _.getZ(z)), _.setXYZ(z, 0, 0, 0);
20484
+ for (let H = G; H < W; H++)
20485
+ k.position.push(_.getX(H), _.getY(H), _.getZ(H)), _.setXYZ(H, 0, 0, 0);
20473
20486
  }
20474
- }), y[R] = P, _.needsUpdate = !0);
20487
+ }), y[R] = B, _.needsUpdate = !0);
20475
20488
  }
20476
20489
  };
20477
20490
  b(e, e.visible);
@@ -20848,7 +20861,11 @@ class a6 {
20848
20861
  e.information.text,
20849
20862
  e.information.color,
20850
20863
  e.information.opacity
20851
- )) && this.content.appendChild(this.classWrapper.constructInfo.dom), e.fullScreen && (a = new Rf(e.fullScreen.img, e.fullScreen.text)) && this.content.appendChild(a.dom), e.baseInfo && (this.classWrapper.baseInfo = new Sf(this.viewer, e.baseInfo.img, e.baseInfo.text)) && this.content.appendChild(this.classWrapper.baseInfo.dom), e.baseSetting && (this.classWrapper.baseSetting = new kf(this.viewer, e.baseSetting.img, e.baseSetting.text)) && this.content.appendChild(this.classWrapper.baseSetting.dom);
20864
+ )) && this.content.appendChild(this.classWrapper.constructInfo.dom), e.fullScreen && (a = new Rf(
20865
+ e.fullScreen.img,
20866
+ e.fullScreen.text,
20867
+ this.viewer.element.parentElement
20868
+ )) && this.content.appendChild(a.dom), e.baseInfo && (this.classWrapper.baseInfo = new Sf(this.viewer, e.baseInfo.img, e.baseInfo.text)) && this.content.appendChild(this.classWrapper.baseInfo.dom), e.baseSetting && (this.classWrapper.baseSetting = new kf(this.viewer, e.baseSetting.img, e.baseSetting.text)) && this.content.appendChild(this.classWrapper.baseSetting.dom);
20852
20869
  }
20853
20870
  _mouseupEvent() {
20854
20871
  const e = function(r) {
@@ -21329,16 +21346,19 @@ class _f {
21329
21346
  }
21330
21347
  }
21331
21348
  class Rf {
21332
- constructor(e, i) {
21349
+ constructor(e, i, r) {
21333
21350
  S(this, "dom");
21334
21351
  S(this, "fullFlag");
21335
- if (this.fullFlag = !0, this.dom = document.createElement("div"), e) {
21336
- const r = document.createElement("img");
21337
- r.src = e, this.dom.appendChild(r);
21352
+ S(this, "target");
21353
+ if (this.fullFlag = !0, this.target = r || document.documentElement, this.dom = document.createElement("div"), e) {
21354
+ const a = document.createElement("img");
21355
+ a.src = e, this.dom.appendChild(a);
21338
21356
  } else
21339
21357
  this.dom.appendChild(Ml());
21340
- this.dom.setAttribute("data-attr", i || "全屏"), this.dom.setAttribute("data-class", "fullScreen"), this.dom.onmouseup = () => {
21341
- this.fullFlag ? (document.documentElement.requestFullscreen(), this.fullFlag = !this.fullFlag) : this.fullFlag || (document.exitFullscreen(), this.fullFlag = !this.fullFlag);
21358
+ this.dom.setAttribute("data-attr", i || "全屏"), this.dom.setAttribute("data-class", "fullScreen"), document.addEventListener("fullscreenchange", () => {
21359
+ this.fullFlag = !document.fullscreenElement;
21360
+ }), this.dom.onmouseup = () => {
21361
+ document.fullscreenElement ? document.exitFullscreen() : this.target.requestFullscreen();
21342
21362
  };
21343
21363
  }
21344
21364
  }
@@ -21502,8 +21522,8 @@ class Df {
21502
21522
  return;
21503
21523
  const v = m.height - g.height, y = m.width - g.width, b = Number(h.measureDio.style.right.split("p")[0]) || 20, E = Number(h.measureDio.style.bottom.split("p")[0]) || 50;
21504
21524
  document.onmousemove = function(R) {
21505
- const P = R.clientX, B = R.clientY;
21506
- let _ = d - P + b, k = f - B + E;
21525
+ const B = R.clientX, P = R.clientY;
21526
+ let _ = d - B + b, k = f - P + E;
21507
21527
  _ < 0 && (_ = 0), k < 0 && (k = 0), _ > y && (_ = y), k > v && (k = v), h.measureDio.style.right = _ + "px", h.measureDio.style.bottom = k + "px";
21508
21528
  }, h.measureDio.onmouseup = function() {
21509
21529
  document.onmousemove = null;
@@ -21650,4 +21670,4 @@ export {
21650
21670
  El as viewImg
21651
21671
  };
21652
21672
 
21653
- ;(function(){try{if(typeof document==="undefined")return;if(document.querySelector("style[data-threejs-viewer-style]"))return;var el=document.createElement("style");el.setAttribute("data-threejs-viewer-style","");el.textContent=".text[data-v-c466b0fc]{box-sizing:border-box;flex:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.text[data-v-c466b0fc]>*{vertical-align:middle}p[data-v-c466b0fc]{margin:0}.empty-box[data-v-7f559bc0]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.empty-box p[data-v-7f559bc0]{margin:9px 0 0;font-size:14px;font-weight:400;line-height:16px;color:#999}.svg-container[data-v-e4df4dc8]{display:inline-block;fill:currentColor}.svg-icon-box[data-v-621d0d75]{display:flex;align-items:center;max-width:100%;overflow:hidden;vertical-align:middle}.svg-icon-box .text[data-v-621d0d75]{flex:1;overflow:hidden;font-family:MiSans-Normal,MiSans;font-size:14px;font-weight:400;line-height:16px}.svg-icon-box .icon[data-v-621d0d75]{display:flex;align-items:center;overflow:hidden;vertical-align:-.15em;fill:currentColor}.custom-over-flow>span:nth-child(1){display:inline-block;max-width:800px!important}.base-panel[data-v-a0e4f5c1]{position:absolute;z-index:10;display:flex;flex-direction:column;overflow:hidden;background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow-light);opacity:.7;transition:opacity .2s ease}.base-panel[data-v-a0e4f5c1]:hover{opacity:1}.base-panel__header[data-v-a0e4f5c1]{position:relative;display:flex;align-items:center;background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.base-panel__header-title[data-v-a0e4f5c1]{display:inline-block;width:100%;height:40px;font-size:14px;font-weight:500;line-height:40px;color:var(--el-text-color-primary);text-align:center}.base-panel .close-btn[data-v-a0e4f5c1]{position:absolute;top:4px;right:8px;padding:0;font-size:18px;line-height:36px;color:var(--el-text-color-secondary);cursor:pointer}.base-panel .close-btn[data-v-a0e4f5c1]:hover{color:var(--el-color-primary)}.base-panel__body[data-v-a0e4f5c1]{position:relative;display:flex;flex:1;overflow:hidden}.base-panel__resize[data-v-a0e4f5c1]{position:absolute;right:5px;bottom:5px;z-index:20;color:var(--el-border-color-light);cursor:nwse-resize}.base-panel__resize[data-v-a0e4f5c1]:hover{color:var(--el-color-primary)}.dragging[data-v-a0e4f5c1]{cursor:move!important}.unselectable[data-v-a0e4f5c1] *{-webkit-user-select:none;user-select:none}.model-tree-box[data-v-e582614f]{z-index:10;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.model-tree-box[data-v-e582614f] .tree-tabs .el-tabs__header{margin:0}.model-tree-box[data-v-e582614f] .tree-tabs .el-tabs__item:nth-child(2){padding-left:20px}.model-tree-box[data-v-e582614f] .tree-tabs .el-tabs__item:last-child{padding-right:20px}.model-tree-box .tree-box[data-v-e582614f]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;overflow:hidden}.model-tree-box .tree-box[data-v-e582614f] .filter-tree{flex:1;margin-top:10px;overflow:hidden}.model-tree-box .tree-box[data-v-e582614f] .filter-tree .el-tree-node .el-tree-node__content .tree-node-box{flex:1;overflow:hidden}.model-tree-box .tree-box[data-v-e582614f] .filter-tree .el-tree-node .el-tree-node__content .height-light{color:var(--el-color-primary)}.model-tree-box .tree-box[data-v-e582614f] .filter-tree .el-tree__empty-block{width:100%;height:200px;overflow:hidden}.measure-box[data-v-39b67b39]{display:flex;flex-direction:column;width:100%;height:100%;padding:10px;overflow:hidden}.measure-box .measure-types-box[data-v-39b67b39]{display:flex;align-items:center;justify-content:space-between;padding:0 0 10px}.measure-box .measure-types-box .measure-types[data-v-39b67b39]{display:flex;gap:10px;align-items:center;cursor:pointer}.measure-box .measure-types-box .measure-types .measure-type[data-v-39b67b39]{padding:10px;color:#9b9a9a;border-radius:2px}.measure-box .measure-types-box .measure-types .measure-type[data-v-39b67b39]:hover,.measure-box .measure-types-box .measure-types .measure-type.active[data-v-39b67b39]{color:var(--el-color-primary);background-color:var(--el-color-primary-light-9)}.measure-box .measure-types-box .arrow-right[data-v-39b67b39]{margin-right:10px;cursor:pointer}.measure-box .measure-types-box .arrow-right.active[data-v-39b67b39],.measure-box .measure-types-box .arrow-right[data-v-39b67b39]:hover{color:var(--el-color-primary)}.measure-box[data-v-39b67b39] .measure-config{display:flex;flex-direction:column;flex-shrink:0;gap:10px;padding:0 10px;overflow:hidden;transition:height .3s}.measure-box[data-v-39b67b39] .measure-config .config{display:flex;gap:10px;align-items:center;overflow:hidden}.measure-box[data-v-39b67b39] .measure-config .config .label{font-size:12px}.measure-box[data-v-39b67b39] .measure-config .config .el-select{flex:1}.measure-box .measure-result[data-v-39b67b39]{padding:10px 10px 0}.measure-box .measure-result .measure-result-box[data-v-39b67b39]{display:flex;flex-direction:column;gap:10px}.measure-box .measure-result .measure-result-box .measure-item[data-v-39b67b39]{display:flex;gap:10px;align-items:center}.measure-box .measure-result .measure-result-box .measure-item .label[data-v-39b67b39]{width:60px;font-size:14px;color:var(--el-text-color-regular);text-align:right}.measure-box .clear-btn[data-v-39b67b39]{display:flex;justify-content:flex-end}.com-info-box[data-v-9386eb37]{width:100%;overflow:hidden}.com-info-box .descriptions-box[data-v-9386eb37]{border-top:1px solid var(--el-border-color-darker)}.com-info-box .descriptions-box .descriptions-item[data-v-9386eb37]{display:flex;width:100%;overflow:hidden}.com-info-box .descriptions-box .descriptions-item .label[data-v-9386eb37]{flex-shrink:0;width:40%;padding:10px;overflow:hidden;font-size:14px;font-weight:700;color:var(--el-text-color-regular);text-align:right;background:rgb(245,247,250);border:1px solid var(--el-border-color-darker);border-top:unset}.com-info-box .descriptions-box .descriptions-item .content[data-v-9386eb37]{flex:1;padding:10px;overflow:hidden;font-size:14px;border:1px solid var(--el-border-color-darker);border-top:unset;border-left:unset}.com-info-box .descriptions-box .descriptions-item .content[data-v-9386eb37] .material-box{display:flex;gap:10px;align-items:center;width:100%;height:100%}.com-info-box .descriptions-box .descriptions-item .content[data-v-9386eb37] .material-box .material-item{width:16px;height:16px;overflow:hidden;border:1px solid #000000;border-radius:3px}.com-info-box .descriptions-box .descriptions-item .content[data-v-9386eb37] .material-box .loading-box{animation:spin-clockwise-9386eb37 1s linear infinite}@keyframes spin-clockwise-9386eb37{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.cutting-box[data-v-021484ab]{display:flex;flex-direction:column;gap:20px;width:100%;padding:10px}.cutting-box .cutting-item[data-v-021484ab]{display:flex;gap:10px;align-items:center;width:100%;overflow:hidden}.cutting-box .cutting-item .label[data-v-021484ab]{font-size:14px}.cutting-box .cutting-item[data-v-021484ab] .slider{flex:1;overflow:hidden}.cutting-box .cutting-item[data-v-021484ab] .slider .el-slider{padding-left:10px}.cutting-box .cutting-item[data-v-021484ab] .slider .el-slider .el-slider__runway{margin-right:20px}.cutting-box .cutting-item[data-v-021484ab] .slider .el-slider .el-slider__runway .el-slider__button-wrapper .el-slider__button{width:15px;height:15px}.base-info-box[data-v-102dd608]{width:100%;overflow:hidden}.base-info-box .descriptions-box .descriptions-item[data-v-102dd608]{display:flex;width:100%;overflow:hidden}.base-info-box .descriptions-box .descriptions-item .label[data-v-102dd608]{flex-shrink:0;width:40%;padding:10px;overflow:hidden;font-size:14px;font-weight:700;color:var(--el-text-color-regular);text-align:right;background:rgb(245,247,250);border:1px solid var(--el-border-color-darker);border-top:unset}.base-info-box .descriptions-box .descriptions-item .content[data-v-102dd608]{flex-shrink:0;width:60%;padding:10px;overflow:hidden;font-size:14px;border:1px solid var(--el-border-color-darker);border-top:unset;border-left:unset}.base-info-box .descriptions-box .descriptions-item .content .color[data-v-102dd608]{display:flex;gap:10px;align-items:center;width:100%;height:100%}.base-info-box .descriptions-box .descriptions-item .content .color .color-item[data-v-102dd608]{width:16px;height:16px;overflow:hidden;border-radius:3px}.config-box[data-v-464a671e]{width:100%;padding:10px;overflow:hidden}.config-box .inner-config-box[data-v-464a671e]{display:flex;flex-direction:column;gap:10px}.config-box .inner-config-box .config-item[data-v-464a671e]{display:flex;gap:20px;align-items:center;overflow:hidden}.config-box .inner-config-box .config-item .label[data-v-464a671e]{font-size:14px}.config-box .inner-config-box .config-item .color-box[data-v-464a671e]{display:flex;flex:1;flex-wrap:wrap;gap:10px;overflow:hidden}.config-box .inner-config-box .config-item .color-box .color-item[data-v-464a671e]{position:relative;width:20px;height:20px;overflow:hidden;cursor:pointer}.config-box .inner-config-box .config-item .color-box .color-item .upload-btn[data-v-464a671e]{position:absolute;top:0;z-index:10;width:100%;height:100%;cursor:pointer;opacity:0}.option-card-box[data-v-17942138]{width:100%;overflow:hidden}.option-card-box .descriptions-box[data-v-17942138]{border-top:1px solid var(--el-border-color-darker)}.option-card-box .descriptions-box .descriptions-item[data-v-17942138]{display:flex;width:100%;overflow:hidden}.option-card-box .descriptions-box .descriptions-item .label[data-v-17942138]{flex-shrink:0;width:40%;padding:10px;overflow:hidden;font-size:14px;font-weight:700;color:var(--el-text-color-regular);text-align:center;background:rgb(245,247,250);border:1px solid var(--el-border-color-darker);border-top:unset}.option-card-box .descriptions-box .descriptions-item .content[data-v-17942138]{flex:1;padding:10px;overflow:hidden;font-size:14px;text-align:center;border:1px solid var(--el-border-color-darker);border-top:unset;border-left:unset}.option-btn-box[data-v-17942138]{position:absolute;bottom:50px;left:50%;z-index:10;display:flex;gap:20px;align-items:center;padding:10px 20px;background-color:rgb(var(--el-menu-bg-color-rgb) .6);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow);transform:translate(-50%)}.option-btn-box .option-item[data-v-17942138]{display:flex;gap:10px;align-items:center}.option-btn-box .option-item .option-label[data-v-17942138]{font-size:14px;font-weight:700;color:var(--el-text-color-regular)}.utils-menu-box[data-v-b6ef63b9]{position:absolute;bottom:50px;left:50%;z-index:10;transform:translate(-50%)}.utils-menu-box[data-v-b6ef63b9] .el-menu{background-color:rgb(var(--el-menu-bg-color-rgb) .6);border:1px solid var(--el-border-color);border-radius:2px;box-shadow:var(--el-box-shadow)}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu{padding:0 10px;border-bottom:unset}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item .el-sub-menu__title,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu .el-sub-menu__title{padding:0}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item .el-sub-menu__title:hover,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu .el-sub-menu__title:hover{color:unset!important;background-color:unset}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item .el-sub-menu__title .el-icon,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu .el-sub-menu__title .el-icon{display:none}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item:hover,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu:hover{color:var(--el-menu-hover-text-color)!important;background-color:rgb(var(--el-color-primary-light-9) .9)!important}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item:hover .icon-box,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu:hover .icon-box{color:#fff;background-color:var(--el-color-primary);border-radius:50%}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item .icon-box,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu .icon-box{display:flex;align-items:center;justify-content:center;width:35px;height:35px}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active{color:unset!important;background-color:unset!important;border-bottom:unset!important}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active .el-sub-menu__title{color:unset!important;background-color:unset!important;border-bottom:unset}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active2{color:var(--el-menu-hover-text-color)!important;background-color:rgb(var(--el-color-primary-light-9) .8)!important}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active2 .icon-box{color:#fff;background-color:var(--el-color-primary);border-radius:50%}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active2 .el-sub-menu__title{color:var(--el-menu-text-color);background-color:var(--el-menu-bg-color);background-color:unset!important}.utils-menu-popper .el-menu{min-width:unset}.utils-menu-popper .el-menu .icon-box{display:flex;align-items:center;width:100%;height:100%}.utils-menu-popper .el-menu .is-active,.utils-menu-popper .el-menu .is-active .el-sub-menu__title{color:unset!important;background-color:unset!important;border-bottom:unset}.utils-menu-popper .el-menu .is-active2{color:var(--el-menu-hover-text-color)!important;background-color:rgb(var(--el-menu-bg-color-rgb) .8)!important}.utils-menu-popper .el-menu .is-active2 .icon-box{background-color:rgb(var(--el-menu-bg-color-rgb) .8)!important}.utils-menu-popper .el-menu .is-active2 .el-sub-menu__title{color:var(--el-menu-text-color);background-color:var(--el-menu-bg-color);background-color:unset!important}.viewer-box[data-v-0f333327]{position:relative;width:100%;height:100%}.viewer-box #viewer-3d[data-v-0f333327]{width:100%;height:100%;background-image:linear-gradient(lightblue,white);outline:none}.viewer-box[data-v-696004c1]{position:relative;width:100%;height:100%}.viewer-box #viewer-3d[data-v-696004c1]{width:100%;height:100%;background-image:linear-gradient(lightblue,white);outline:none}.viewer-box .dxf-tools[data-v-696004c1]{position:absolute;bottom:25px;left:50%;transform:translate(-50%)}.viewer-box .function-wrapper{display:flex;align-items:center;justify-content:space-around;width:auto;height:48px;padding:0 12px;background-color:rgb(var(--el-menu-bg-color-rgb) .6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow)}.viewer-box .function-wrapper>div{position:relative;display:flex;align-items:center;justify-content:center;width:35px;height:35px;margin:0 8px;cursor:pointer;background-color:transparent;border-radius:50%;transition:background-color .2s ease}.viewer-box .function-wrapper>div:hover{color:#fff;background-color:var(--el-color-primary);border-color:transparent}.viewer-box .function-active{color:#fff;background-color:var(--el-color-primary)!important}.viewer-box .function-wrapper>div>.svg-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%}.viewer-box .svg-wrapper:hover{background-color:transparent!important}.viewer-box .control>span{color:var(--el-text-color-primary)!important}.viewer-box .control:hover{background-color:rgb(var(--el-color-primary-rgb) .08)}.viewer-box .control:hover>span{color:var(--el-color-primary)!important}.viewer-box .text-active{margin-left:4px;font-size:14px;font-weight:500;color:var(--el-color-primary)}.viewer-box .function-wrapper>div:after{position:absolute;top:-30px;left:50%;z-index:10;display:none;padding:4px 8px;font-size:12px;line-height:1.4;color:#fff;white-space:nowrap;content:attr(data-attr);background-color:#000000bf;border-radius:4px;box-shadow:0 2px 8px #0000001f;transform:translate(-50%)}.viewer-box .function-wrapper>div:before{position:absolute;top:-10px;left:50%;z-index:10;display:none;width:0;height:0;content:\"\";border-top:6px solid rgba(0,0,0,.75);border-right:6px solid transparent;border-left:6px solid transparent;transform:translate(-50%)}.viewer-box .function-wrapper>div:hover:after,.viewer-box .function-wrapper>div:hover:before{display:block}.viewer-box .mark-wrapper,.viewer-box .info-wrapper,.viewer-box .setting-wrapper,.viewer-box .measure-wrapper,.viewer-box .layer-wrapper,.viewer-box .fly-box-control-info,.viewer-box .person-box-control-info,.viewer-box .cutting-box{background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow-light)}.viewer-box .layer-wrapper{position:absolute;top:20px;left:20px;box-sizing:border-box;width:340px;height:600px;padding:0;overflow:hidden}.viewer-box .layer-box{width:100%;height:100%}.viewer-box .layer-header{display:flex;align-items:center;width:100%;height:40px;padding:0 12px;font-size:14px;font-weight:500;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .layer-box>.layer-content{box-sizing:border-box;width:100%;height:calc(100% - 40px);padding:4px 12px;overflow-y:auto}.viewer-box .line-item{display:flex;align-items:center;width:100%;height:28px;margin-bottom:4px;border-radius:4px;transition:background-color .15s}.viewer-box .line-item:hover{background-color:var(--el-fill-color-light)}.viewer-box .layer-header>div,.viewer-box .line-item>div{width:18px;height:18px;color:var(--el-color-primary)}.viewer-box .line-item>span{display:block}.viewer-box .line-item>.color-span{width:20px;height:20px;margin-left:6px;border:1px solid var(--el-border-color);border-radius:2px}.viewer-box .line-item>.text-span{width:calc(100% - 58px);margin-left:6px;overflow:hidden;font-size:14px;color:var(--el-text-color-primary);text-overflow:ellipsis;white-space:nowrap}.viewer-box .measure-wrapper{position:absolute;right:20px;bottom:50px;box-sizing:border-box;width:298px;height:290px;padding:0;overflow:visible;-webkit-user-select:none;user-select:none}.viewer-box .header{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:40px;font-size:14px;font-weight:500;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .header .header-title{font-size:14px;font-weight:500;color:var(--el-text-color-primary)}.viewer-box .header-setting{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--el-text-color-secondary);cursor:pointer}.viewer-box .header-setting:hover,.viewer-box .header-setting.is-active{color:var(--el-color-primary)}.viewer-box .content-tab{display:flex;gap:10px;align-items:center;padding:14px 10px 10px}.viewer-box .content-tab>div{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#9b9a9a;cursor:pointer;border-radius:4px;transition:all .2s}.viewer-box .content-tab>div:hover{color:var(--el-color-primary);background:var(--el-color-primary-light-9)}.viewer-box .content-tab>.measure-active{color:var(--el-color-primary);background:var(--el-color-primary-light-9)}.viewer-box .dxf-measure-wrapper .clear-btn{position:absolute;right:12px;bottom:10px;padding:4px 12px;font-size:12px;line-height:1;color:var(--el-text-color-regular);cursor:pointer;background:var(--el-fill-color);border:1px solid var(--el-border-color);border-radius:4px;transition:color .2s,border-color .2s}.viewer-box .dxf-measure-wrapper .clear-btn:hover{color:var(--el-color-primary);border-color:var(--el-color-primary)}.viewer-box .measure-text{display:flex;flex-direction:column;gap:4px;padding:10px 12px;font-size:14px}.viewer-box .measure-line{display:flex;flex-direction:row;gap:4px;align-items:center}.viewer-box .measure-text-type{color:var(--el-text-color-secondary)}.viewer-box .measure-text-num{font-weight:500;color:var(--el-color-primary)}.viewer-box .measure-line-x .measure-text-num-x-val{color:var(--el-color-danger)}.viewer-box .measure-line-y .measure-text-num-y-val{color:var(--el-color-success)}.viewer-box .measure-setting{position:absolute;right:0;bottom:calc(100% + 8px);z-index:20;box-sizing:border-box;width:260px;overflow:hidden;background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow-light)}.viewer-box ::-webkit-scrollbar{width:6px;height:6px}.viewer-box ::-webkit-scrollbar-thumb{background:rgb(var(--el-scrollbar-bg-color-rgb, 144, 147, 153) .3);border-radius:3px}.viewer-box ::-webkit-scrollbar-thumb:hover{background:rgb(var(--el-color-primary-rgb) .5)}.viewer-box .flex{display:flex;align-items:center;justify-content:space-between}.viewer-box .flex-center{display:flex;align-items:center;justify-content:center}.viewer-box .function-wrapper>.fly-box{position:absolute;top:0;left:50%;display:none;justify-content:space-around;width:498px;height:48px;padding:0 10px;font-family:PingFang SC-Regular,PingFang SC;font-size:14px;font-weight:400;color:#fff;background:#333333;filter:none;border-radius:4px;transform:translate(-50%)}.viewer-box .function-wrapper>.fly-box:after,.viewer-box .function-wrapper>.fly-box:before{width:0;height:0;padding:0;overflow:hidden;border:none}.viewer-box .fly-box div{height:48px;font-size:14px;line-height:48px;white-space:nowrap;-webkit-user-select:none;user-select:none}.viewer-box .fly-box span{display:inline-block}.viewer-box .fly-item{padding:0 8px}.viewer-box .fly-item>span{display:inline-block;width:12px;height:12px;font-size:14px;line-height:12px;text-align:center;cursor:pointer;border:1px solid #ffffff;border-radius:2px}.viewer-box .fly-item>span:hover{color:var(--el-color-primary);border-color:var(--el-color-primary)}.viewer-box .fly-item>span:nth-child(2){width:auto;height:16px;padding:0 5px;margin:0 10px;line-height:16px;pointer-events:none;background:rgba(255,255,255,.2);border:none;border-radius:2px}.viewer-box .fly-box>.fly-out{height:36px;padding-left:22px;font-family:PingFang SC-Regular,PingFang SC;font-size:14px;font-weight:400;line-height:36px;color:var(--el-color-primary);border-left:1px solid;border-image:linear-gradient(to bottom,#000000,#ffffff,#000000) 1}.viewer-box .function-wrapper>.fly-box-control-info{position:absolute;right:0;bottom:54px;display:block;width:272px;height:308px;padding-top:20px;overflow:hidden;font-size:14px;background-color:var(--el-bg-color);border-radius:4px;transform:translate(110%)}.viewer-box .function-wrapper>.person-box-control-info{height:278px!important}.viewer-box .fly-box-control-info>.control-close{position:absolute;top:5px;right:5px;width:18px;height:18px;font-size:12px;line-height:18px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid var(--el-border-color);border-radius:50%}.viewer-box .fly-box-control-info>.control-close:hover{color:var(--el-color-primary);border-color:var(--el-color-primary)}.viewer-box .fly-box-control-info>.control-info-item{display:flex;align-items:center;justify-content:space-between;width:100%;height:30px;border-bottom:1px solid var(--el-border-color-lighter)}.viewer-box .control-info-item>span{display:block;width:55%;color:var(--el-text-color-primary);text-align:center}.viewer-box .control-info-item>span:nth-child(1){width:40%;padding-right:15px;border-right:1px solid var(--el-border-color-lighter)}.viewer-box .cutting-box{position:absolute;bottom:166%;left:50%;z-index:11;box-sizing:border-box;width:100px;height:90px;-webkit-user-select:none;user-select:none;transform:translate(-50%)}.viewer-box .cutting-box:before{position:absolute;bottom:-10px;left:50%;z-index:10;width:0;height:0;content:\"\";border-top:10px solid var(--el-bg-color);border-right:10px solid transparent;border-left:10px solid transparent;transform:translate(-50%)}.viewer-box .cutting-box>div{padding-bottom:4px;border-bottom:1px solid var(--el-border-color-lighter)}.viewer-box .cutting-box>div>img{width:20px;height:20px;margin-right:12px;object-fit:contain}.viewer-box .cutting-box>div>span{font-size:14px;color:var(--el-color-primary)}.viewer-box .cut-wrapper{margin-top:10px}.viewer-box .cut-wrapper>div{box-sizing:content-box!important;display:flex;align-items:center;justify-content:space-between;width:80%;height:20px;padding:8px 10px;margin-right:10px;font-size:14px}.viewer-box .cut-wrapper>div>div{margin-right:4px}.viewer-box .cut-wrapper>div>img{width:16px;height:16px;vertical-align:middle}.viewer-box .cut-wrapper>div:hover{color:var(--el-color-primary);background:var(--el-color-primary-light-9)}.viewer-box .cutting-active{background-color:var(--el-color-primary-light-9)}.viewer-box .cutting-silder{position:absolute;top:50%;left:105%;width:220px;background-color:var(--el-bg-color);border-radius:4px;box-shadow:var(--el-box-shadow-light);transform:translateY(-50%)}.viewer-box .local-content{padding:0 15px;margin:10px 0}.viewer-box .local-content>div{position:relative;width:100%;height:6px;border-radius:5px}.viewer-box .local-content>div:nth-child(1){height:18px;margin-bottom:4px;font-size:14px;font-weight:500;line-height:18px;color:var(--el-text-color-primary);text-align:left}.viewer-box .local-content>div>div{position:absolute;top:50%;width:14px;height:14px;cursor:pointer;background-color:#fff;border:1px solid var(--el-color-primary);border-radius:50%;box-shadow:0 1px 4px #0000002b;transform:translateY(-50%) translate(-50%)}.viewer-box .local-content>div>div:hover{transform:translateY(-50%) translate(-50%) scale(1.1)}.viewer-box .mark-wrapper{position:absolute;right:20px;bottom:30px;box-sizing:border-box;width:350px;height:460px;overflow:hidden auto;pointer-events:auto;cursor:pointer;border-radius:4px;opacity:1}.viewer-box .title-text{display:flex;align-items:center;width:100%;height:40px;padding:0 12px;margin:0;font-size:14px;font-weight:500;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .mark-list,.viewer-box .setting-list{display:flex;padding-left:10px;font-size:14px;font-weight:500;line-height:40px;color:var(--el-text-color-regular);text-align:left}.viewer-box .list-type{width:123px;height:40px;padding-left:11px;border:1px solid var(--el-border-color)}.viewer-box .list-value{width:187px;height:40px;padding-left:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--el-border-color)}.viewer-box .info-wrapper,.viewer-box .setting-wrapper{position:absolute;right:20px;bottom:30px;box-sizing:border-box;width:350px;overflow:hidden auto;pointer-events:auto;cursor:pointer;border-radius:4px;opacity:1}.viewer-box .info-wrapper{height:170px}.viewer-box .setting-wrapper{height:210px}.viewer-box .setting-type{height:40px;padding-left:11px}.viewer-box .setting-value{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;width:187px;height:40px;padding-left:14px}.viewer-box .setting-bg{position:relative;width:24px;height:24px;margin-left:12px}.viewer-box .setting-bg:hover:after{display:block}.viewer-box .setting-bg:after{position:absolute;top:-44px;left:50%;z-index:10;display:none;font-size:12px;color:var(--el-text-color-primary);white-space:nowrap;content:attr(data-attr);background-color:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow-light);transform:translate(-50%)}.viewer-box .setting-active{border:1px solid var(--el-color-primary)}.viewer-box .setting-header,.viewer-box .setting-close{cursor:pointer}.viewer-box .setting-unit,.viewer-box .setting-accuracy{display:flex;align-items:center;justify-content:space-evenly;margin:20px 0;font-size:14px;font-weight:500;color:var(--el-color-primary)}.viewer-box .setting-header{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;padding:0 12px;font-size:14px;font-weight:500;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .svgDiv{display:flex;align-items:center;justify-content:space-around;width:40px;height:40px;cursor:pointer}.viewer-box .svgDiv:hover{background-color:var(--el-fill-color-light)}.viewer-box .unit-select,.viewer-box .accuracy-select{width:170px;padding:4px 24px 4px 10px;font-size:14px;color:var(--el-text-color-primary);background-color:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;outline:none}.viewer-box .unit-select>option:checked,.viewer-box .setting-accuracy>option:checked{color:var(--el-color-primary)}.viewer-box .tree-header{display:flex;justify-content:flex-start;width:100%;height:40px;padding:0 12px;font-size:14px;font-weight:500;line-height:40px;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .tree-header>div{height:30px;padding:0 5px;margin:0 10px;font-size:14px;font-weight:400;line-height:30px;color:var(--el-color-primary);cursor:pointer;border-bottom:1px solid rgba(0,0,0,0)}.viewer-box .tree-header>div:hover{border-color:var(--el-color-primary)}.viewer-box .tree-content{position:relative;box-sizing:border-box;width:100%;height:calc(100% - 30px);padding-left:12px;overflow:hidden auto}.viewer-box .tree-content::-webkit-scrollbar-thumb{width:100%;height:10px;background-color:var(--el-color-primary);border-radius:15px}.viewer-box .tree-content::-webkit-scrollbar{width:4px;background-color:var(--el-bg-color)}.viewer-box .tree-content>div{position:absolute;top:0;left:12px;display:none;width:calc(100% - 12px);height:auto}.viewer-box .header-active{border-color:var(--el-color-primary)!important}.viewer-box .tree-active{display:block!important}.viewer-box .tree-parent{overflow:hidden;transition:all .5s}.viewer-box .tree-item{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;width:100%;height:30px;overflow:hidden;cursor:pointer}.viewer-box .tree-item>div{margin-right:10px;transition:all .5s}.viewer-box .tree-item>input{display:block;width:16px;height:16px;margin-right:5px}.viewer-box .tree-item>span{display:block;overflow:hidden;font-size:14px;color:var(--el-text-color-primary);text-align:left;text-overflow:ellipsis;white-space:nowrap}\n";(document.head||document.documentElement).appendChild(el);}catch(e){}})();
21673
+ ;(function(){try{if(typeof document==="undefined")return;if(document.querySelector("style[data-threejs-viewer-style]"))return;var el=document.createElement("style");el.setAttribute("data-threejs-viewer-style","");el.textContent=".text[data-v-c466b0fc]{box-sizing:border-box;flex:1;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;vertical-align:middle}.text[data-v-c466b0fc]>*{vertical-align:middle}p[data-v-c466b0fc]{margin:0}.empty-box[data-v-7f559bc0]{display:flex;flex-direction:column;align-items:center;justify-content:center;width:100%;height:100%}.empty-box p[data-v-7f559bc0]{margin:9px 0 0;font-size:14px;font-weight:400;line-height:16px;color:#999}.svg-container[data-v-e4df4dc8]{display:inline-block;fill:currentColor}.svg-icon-box[data-v-621d0d75]{display:flex;align-items:center;max-width:100%;overflow:hidden;vertical-align:middle}.svg-icon-box .text[data-v-621d0d75]{flex:1;overflow:hidden;font-family:MiSans-Normal,MiSans;font-size:14px;font-weight:400;line-height:16px}.svg-icon-box .icon[data-v-621d0d75]{display:flex;align-items:center;overflow:hidden;vertical-align:-.15em;fill:currentColor}.custom-over-flow>span:nth-child(1){display:inline-block;max-width:800px!important}.base-panel[data-v-a0e4f5c1]{position:absolute;z-index:10;display:flex;flex-direction:column;overflow:hidden;background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow-light);opacity:.7;transition:opacity .2s ease}.base-panel[data-v-a0e4f5c1]:hover{opacity:1}.base-panel__header[data-v-a0e4f5c1]{position:relative;display:flex;align-items:center;background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.base-panel__header-title[data-v-a0e4f5c1]{display:inline-block;width:100%;height:40px;font-size:14px;font-weight:500;line-height:40px;color:var(--el-text-color-primary);text-align:center}.base-panel .close-btn[data-v-a0e4f5c1]{position:absolute;top:4px;right:8px;padding:0;font-size:18px;line-height:36px;color:var(--el-text-color-secondary);cursor:pointer}.base-panel .close-btn[data-v-a0e4f5c1]:hover{color:var(--el-color-primary)}.base-panel__body[data-v-a0e4f5c1]{position:relative;display:flex;flex:1;overflow:hidden}.base-panel__resize[data-v-a0e4f5c1]{position:absolute;right:5px;bottom:5px;z-index:20;color:var(--el-border-color-light);cursor:nwse-resize}.base-panel__resize[data-v-a0e4f5c1]:hover{color:var(--el-color-primary)}.dragging[data-v-a0e4f5c1]{cursor:move!important}.unselectable[data-v-a0e4f5c1] *{-webkit-user-select:none;user-select:none}.model-tree-box[data-v-54e25803]{z-index:10;display:flex;flex-direction:column;width:100%;height:100%;overflow:hidden}.model-tree-box[data-v-54e25803] .tree-tabs .el-tabs__header{margin:0}.model-tree-box[data-v-54e25803] .tree-tabs .el-tabs__item:nth-child(2){padding-left:20px}.model-tree-box[data-v-54e25803] .tree-tabs .el-tabs__item:last-child{padding-right:20px}.model-tree-box .tree-box[data-v-54e25803]{position:relative;display:flex;flex:1;flex-direction:column;padding:10px;overflow:hidden}.model-tree-box .tree-box[data-v-54e25803] .filter-tree{flex:1;margin-top:10px;overflow:hidden}.model-tree-box .tree-box[data-v-54e25803] .filter-tree .el-tree-node .el-tree-node__content .tree-node-box{flex:1;overflow:hidden}.model-tree-box .tree-box[data-v-54e25803] .filter-tree .el-tree-node .el-tree-node__content .height-light{color:var(--el-color-primary)}.model-tree-box .tree-box[data-v-54e25803] .filter-tree .el-tree__empty-block{width:100%;height:200px;overflow:hidden}.measure-box[data-v-39b67b39]{display:flex;flex-direction:column;width:100%;height:100%;padding:10px;overflow:hidden}.measure-box .measure-types-box[data-v-39b67b39]{display:flex;align-items:center;justify-content:space-between;padding:0 0 10px}.measure-box .measure-types-box .measure-types[data-v-39b67b39]{display:flex;gap:10px;align-items:center;cursor:pointer}.measure-box .measure-types-box .measure-types .measure-type[data-v-39b67b39]{padding:10px;color:#9b9a9a;border-radius:2px}.measure-box .measure-types-box .measure-types .measure-type[data-v-39b67b39]:hover,.measure-box .measure-types-box .measure-types .measure-type.active[data-v-39b67b39]{color:var(--el-color-primary);background-color:var(--el-color-primary-light-9)}.measure-box .measure-types-box .arrow-right[data-v-39b67b39]{margin-right:10px;cursor:pointer}.measure-box .measure-types-box .arrow-right.active[data-v-39b67b39],.measure-box .measure-types-box .arrow-right[data-v-39b67b39]:hover{color:var(--el-color-primary)}.measure-box[data-v-39b67b39] .measure-config{display:flex;flex-direction:column;flex-shrink:0;gap:10px;padding:0 10px;overflow:hidden;transition:height .3s}.measure-box[data-v-39b67b39] .measure-config .config{display:flex;gap:10px;align-items:center;overflow:hidden}.measure-box[data-v-39b67b39] .measure-config .config .label{font-size:12px}.measure-box[data-v-39b67b39] .measure-config .config .el-select{flex:1}.measure-box .measure-result[data-v-39b67b39]{padding:10px 10px 0}.measure-box .measure-result .measure-result-box[data-v-39b67b39]{display:flex;flex-direction:column;gap:10px}.measure-box .measure-result .measure-result-box .measure-item[data-v-39b67b39]{display:flex;gap:10px;align-items:center}.measure-box .measure-result .measure-result-box .measure-item .label[data-v-39b67b39]{width:60px;font-size:14px;color:var(--el-text-color-regular);text-align:right}.measure-box .clear-btn[data-v-39b67b39]{display:flex;justify-content:flex-end}.com-info-box[data-v-9386eb37]{width:100%;overflow:hidden}.com-info-box .descriptions-box[data-v-9386eb37]{border-top:1px solid var(--el-border-color-darker)}.com-info-box .descriptions-box .descriptions-item[data-v-9386eb37]{display:flex;width:100%;overflow:hidden}.com-info-box .descriptions-box .descriptions-item .label[data-v-9386eb37]{flex-shrink:0;width:40%;padding:10px;overflow:hidden;font-size:14px;font-weight:700;color:var(--el-text-color-regular);text-align:right;background:rgb(245,247,250);border:1px solid var(--el-border-color-darker);border-top:unset}.com-info-box .descriptions-box .descriptions-item .content[data-v-9386eb37]{flex:1;padding:10px;overflow:hidden;font-size:14px;border:1px solid var(--el-border-color-darker);border-top:unset;border-left:unset}.com-info-box .descriptions-box .descriptions-item .content[data-v-9386eb37] .material-box{display:flex;gap:10px;align-items:center;width:100%;height:100%}.com-info-box .descriptions-box .descriptions-item .content[data-v-9386eb37] .material-box .material-item{width:16px;height:16px;overflow:hidden;border:1px solid #000000;border-radius:3px}.com-info-box .descriptions-box .descriptions-item .content[data-v-9386eb37] .material-box .loading-box{animation:spin-clockwise-9386eb37 1s linear infinite}@keyframes spin-clockwise-9386eb37{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.cutting-box[data-v-021484ab]{display:flex;flex-direction:column;gap:20px;width:100%;padding:10px}.cutting-box .cutting-item[data-v-021484ab]{display:flex;gap:10px;align-items:center;width:100%;overflow:hidden}.cutting-box .cutting-item .label[data-v-021484ab]{font-size:14px}.cutting-box .cutting-item[data-v-021484ab] .slider{flex:1;overflow:hidden}.cutting-box .cutting-item[data-v-021484ab] .slider .el-slider{padding-left:10px}.cutting-box .cutting-item[data-v-021484ab] .slider .el-slider .el-slider__runway{margin-right:20px}.cutting-box .cutting-item[data-v-021484ab] .slider .el-slider .el-slider__runway .el-slider__button-wrapper .el-slider__button{width:15px;height:15px}.base-info-box[data-v-102dd608]{width:100%;overflow:hidden}.base-info-box .descriptions-box .descriptions-item[data-v-102dd608]{display:flex;width:100%;overflow:hidden}.base-info-box .descriptions-box .descriptions-item .label[data-v-102dd608]{flex-shrink:0;width:40%;padding:10px;overflow:hidden;font-size:14px;font-weight:700;color:var(--el-text-color-regular);text-align:right;background:rgb(245,247,250);border:1px solid var(--el-border-color-darker);border-top:unset}.base-info-box .descriptions-box .descriptions-item .content[data-v-102dd608]{flex-shrink:0;width:60%;padding:10px;overflow:hidden;font-size:14px;border:1px solid var(--el-border-color-darker);border-top:unset;border-left:unset}.base-info-box .descriptions-box .descriptions-item .content .color[data-v-102dd608]{display:flex;gap:10px;align-items:center;width:100%;height:100%}.base-info-box .descriptions-box .descriptions-item .content .color .color-item[data-v-102dd608]{width:16px;height:16px;overflow:hidden;border-radius:3px}.config-box[data-v-464a671e]{width:100%;padding:10px;overflow:hidden}.config-box .inner-config-box[data-v-464a671e]{display:flex;flex-direction:column;gap:10px}.config-box .inner-config-box .config-item[data-v-464a671e]{display:flex;gap:20px;align-items:center;overflow:hidden}.config-box .inner-config-box .config-item .label[data-v-464a671e]{font-size:14px}.config-box .inner-config-box .config-item .color-box[data-v-464a671e]{display:flex;flex:1;flex-wrap:wrap;gap:10px;overflow:hidden}.config-box .inner-config-box .config-item .color-box .color-item[data-v-464a671e]{position:relative;width:20px;height:20px;overflow:hidden;cursor:pointer}.config-box .inner-config-box .config-item .color-box .color-item .upload-btn[data-v-464a671e]{position:absolute;top:0;z-index:10;width:100%;height:100%;cursor:pointer;opacity:0}.option-card-box[data-v-17942138]{width:100%;overflow:hidden}.option-card-box .descriptions-box[data-v-17942138]{border-top:1px solid var(--el-border-color-darker)}.option-card-box .descriptions-box .descriptions-item[data-v-17942138]{display:flex;width:100%;overflow:hidden}.option-card-box .descriptions-box .descriptions-item .label[data-v-17942138]{flex-shrink:0;width:40%;padding:10px;overflow:hidden;font-size:14px;font-weight:700;color:var(--el-text-color-regular);text-align:center;background:rgb(245,247,250);border:1px solid var(--el-border-color-darker);border-top:unset}.option-card-box .descriptions-box .descriptions-item .content[data-v-17942138]{flex:1;padding:10px;overflow:hidden;font-size:14px;text-align:center;border:1px solid var(--el-border-color-darker);border-top:unset;border-left:unset}.option-btn-box[data-v-17942138]{position:absolute;bottom:50px;left:50%;z-index:10;display:flex;gap:20px;align-items:center;padding:10px 20px;background-color:rgb(var(--el-menu-bg-color-rgb) .6);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow);transform:translate(-50%)}.option-btn-box .option-item[data-v-17942138]{display:flex;gap:10px;align-items:center}.option-btn-box .option-item .option-label[data-v-17942138]{font-size:14px;font-weight:700;color:var(--el-text-color-regular)}.utils-menu-box[data-v-b6ef63b9]{position:absolute;bottom:50px;left:50%;z-index:10;transform:translate(-50%)}.utils-menu-box[data-v-b6ef63b9] .el-menu{background-color:rgb(var(--el-menu-bg-color-rgb) .6);border:1px solid var(--el-border-color);border-radius:2px;box-shadow:var(--el-box-shadow)}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu{padding:0 10px;border-bottom:unset}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item .el-sub-menu__title,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu .el-sub-menu__title{padding:0}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item .el-sub-menu__title:hover,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu .el-sub-menu__title:hover{color:unset!important;background-color:unset}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item .el-sub-menu__title .el-icon,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu .el-sub-menu__title .el-icon{display:none}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item:hover,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu:hover{color:var(--el-menu-hover-text-color)!important;background-color:rgb(var(--el-color-primary-light-9) .9)!important}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item:hover .icon-box,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu:hover .icon-box{color:#fff;background-color:var(--el-color-primary);border-radius:50%}.utils-menu-box[data-v-b6ef63b9] .el-menu .el-menu-item .icon-box,.utils-menu-box[data-v-b6ef63b9] .el-menu>.el-sub-menu .icon-box{display:flex;align-items:center;justify-content:center;width:35px;height:35px}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active{color:unset!important;background-color:unset!important;border-bottom:unset!important}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active .el-sub-menu__title{color:unset!important;background-color:unset!important;border-bottom:unset}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active2{color:var(--el-menu-hover-text-color)!important;background-color:rgb(var(--el-color-primary-light-9) .8)!important}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active2 .icon-box{color:#fff;background-color:var(--el-color-primary);border-radius:50%}.utils-menu-box[data-v-b6ef63b9] .el-menu .is-active2 .el-sub-menu__title{color:var(--el-menu-text-color);background-color:var(--el-menu-bg-color);background-color:unset!important}.utils-menu-popper .el-menu{min-width:unset}.utils-menu-popper .el-menu .icon-box{display:flex;align-items:center;width:100%;height:100%}.utils-menu-popper .el-menu .is-active,.utils-menu-popper .el-menu .is-active .el-sub-menu__title{color:unset!important;background-color:unset!important;border-bottom:unset}.utils-menu-popper .el-menu .is-active2{color:var(--el-menu-hover-text-color)!important;background-color:rgb(var(--el-menu-bg-color-rgb) .8)!important}.utils-menu-popper .el-menu .is-active2 .icon-box{background-color:rgb(var(--el-menu-bg-color-rgb) .8)!important}.utils-menu-popper .el-menu .is-active2 .el-sub-menu__title{color:var(--el-menu-text-color);background-color:var(--el-menu-bg-color);background-color:unset!important}.viewer-box[data-v-0f333327]{position:relative;width:100%;height:100%}.viewer-box #viewer-3d[data-v-0f333327]{width:100%;height:100%;background-image:linear-gradient(lightblue,white);outline:none}.viewer-box[data-v-696004c1]{position:relative;width:100%;height:100%}.viewer-box #viewer-3d[data-v-696004c1]{width:100%;height:100%;background-image:linear-gradient(lightblue,white);outline:none}.viewer-box .dxf-tools[data-v-696004c1]{position:absolute;bottom:25px;left:50%;transform:translate(-50%)}.viewer-box .function-wrapper{display:flex;align-items:center;justify-content:space-around;width:auto;height:48px;padding:0 12px;background-color:rgb(var(--el-menu-bg-color-rgb) .6);-webkit-backdrop-filter:blur(2px);backdrop-filter:blur(2px);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow)}.viewer-box .function-wrapper>div{position:relative;display:flex;align-items:center;justify-content:center;width:35px;height:35px;margin:0 8px;cursor:pointer;background-color:transparent;border-radius:50%;transition:background-color .2s ease}.viewer-box .function-wrapper>div:hover{color:#fff;background-color:var(--el-color-primary);border-color:transparent}.viewer-box .function-active{color:#fff;background-color:var(--el-color-primary)!important}.viewer-box .function-wrapper>div>.svg-wrapper{display:flex;align-items:center;justify-content:center;width:100%;height:100%;border-radius:50%}.viewer-box .svg-wrapper:hover{background-color:transparent!important}.viewer-box .control>span{color:var(--el-text-color-primary)!important}.viewer-box .control:hover{background-color:rgb(var(--el-color-primary-rgb) .08)}.viewer-box .control:hover>span{color:var(--el-color-primary)!important}.viewer-box .text-active{margin-left:4px;font-size:14px;font-weight:500;color:var(--el-color-primary)}.viewer-box .function-wrapper>div:after{position:absolute;top:-30px;left:50%;z-index:10;display:none;padding:4px 8px;font-size:12px;line-height:1.4;color:#fff;white-space:nowrap;content:attr(data-attr);background-color:#000000bf;border-radius:4px;box-shadow:0 2px 8px #0000001f;transform:translate(-50%)}.viewer-box .function-wrapper>div:before{position:absolute;top:-10px;left:50%;z-index:10;display:none;width:0;height:0;content:\"\";border-top:6px solid rgba(0,0,0,.75);border-right:6px solid transparent;border-left:6px solid transparent;transform:translate(-50%)}.viewer-box .function-wrapper>div:hover:after,.viewer-box .function-wrapper>div:hover:before{display:block}.viewer-box .mark-wrapper,.viewer-box .info-wrapper,.viewer-box .setting-wrapper,.viewer-box .measure-wrapper,.viewer-box .layer-wrapper,.viewer-box .fly-box-control-info,.viewer-box .person-box-control-info,.viewer-box .cutting-box{background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow-light)}.viewer-box .layer-wrapper{position:absolute;top:20px;left:20px;box-sizing:border-box;width:340px;height:600px;padding:0;overflow:hidden}.viewer-box .layer-box{width:100%;height:100%}.viewer-box .layer-header{display:flex;align-items:center;width:100%;height:40px;padding:0 12px;font-size:14px;font-weight:500;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .layer-box>.layer-content{box-sizing:border-box;width:100%;height:calc(100% - 40px);padding:4px 12px;overflow-y:auto}.viewer-box .line-item{display:flex;align-items:center;width:100%;height:28px;margin-bottom:4px;border-radius:4px;transition:background-color .15s}.viewer-box .line-item:hover{background-color:var(--el-fill-color-light)}.viewer-box .layer-header>div,.viewer-box .line-item>div{width:18px;height:18px;color:var(--el-color-primary)}.viewer-box .line-item>span{display:block}.viewer-box .line-item>.color-span{width:20px;height:20px;margin-left:6px;border:1px solid var(--el-border-color);border-radius:2px}.viewer-box .line-item>.text-span{width:calc(100% - 58px);margin-left:6px;overflow:hidden;font-size:14px;color:var(--el-text-color-primary);text-overflow:ellipsis;white-space:nowrap}.viewer-box .measure-wrapper{position:absolute;right:20px;bottom:50px;box-sizing:border-box;width:298px;height:290px;padding:0;overflow:visible;-webkit-user-select:none;user-select:none}.viewer-box .header{position:relative;display:flex;align-items:center;justify-content:center;width:100%;height:40px;font-size:14px;font-weight:500;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .header .header-title{font-size:14px;font-weight:500;color:var(--el-text-color-primary)}.viewer-box .header-setting{position:absolute;top:0;right:0;display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:var(--el-text-color-secondary);cursor:pointer}.viewer-box .header-setting:hover,.viewer-box .header-setting.is-active{color:var(--el-color-primary)}.viewer-box .content-tab{display:flex;gap:10px;align-items:center;padding:14px 10px 10px}.viewer-box .content-tab>div{display:flex;align-items:center;justify-content:center;width:40px;height:40px;color:#9b9a9a;cursor:pointer;border-radius:4px;transition:all .2s}.viewer-box .content-tab>div:hover{color:var(--el-color-primary);background:var(--el-color-primary-light-9)}.viewer-box .content-tab>.measure-active{color:var(--el-color-primary);background:var(--el-color-primary-light-9)}.viewer-box .dxf-measure-wrapper .clear-btn{position:absolute;right:12px;bottom:10px;padding:4px 12px;font-size:12px;line-height:1;color:var(--el-text-color-regular);cursor:pointer;background:var(--el-fill-color);border:1px solid var(--el-border-color);border-radius:4px;transition:color .2s,border-color .2s}.viewer-box .dxf-measure-wrapper .clear-btn:hover{color:var(--el-color-primary);border-color:var(--el-color-primary)}.viewer-box .measure-text{display:flex;flex-direction:column;gap:4px;padding:10px 12px;font-size:14px}.viewer-box .measure-line{display:flex;flex-direction:row;gap:4px;align-items:center}.viewer-box .measure-text-type{color:var(--el-text-color-secondary)}.viewer-box .measure-text-num{font-weight:500;color:var(--el-color-primary)}.viewer-box .measure-line-x .measure-text-num-x-val{color:var(--el-color-danger)}.viewer-box .measure-line-y .measure-text-num-y-val{color:var(--el-color-success)}.viewer-box .measure-setting{position:absolute;right:0;bottom:calc(100% + 8px);z-index:20;box-sizing:border-box;width:260px;overflow:hidden;background:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow-light)}.viewer-box ::-webkit-scrollbar{width:6px;height:6px}.viewer-box ::-webkit-scrollbar-thumb{background:rgb(var(--el-scrollbar-bg-color-rgb, 144, 147, 153) .3);border-radius:3px}.viewer-box ::-webkit-scrollbar-thumb:hover{background:rgb(var(--el-color-primary-rgb) .5)}.viewer-box .flex{display:flex;align-items:center;justify-content:space-between}.viewer-box .flex-center{display:flex;align-items:center;justify-content:center}.viewer-box .function-wrapper>.fly-box{position:absolute;top:0;left:50%;display:none;justify-content:space-around;width:498px;height:48px;padding:0 10px;font-family:PingFang SC-Regular,PingFang SC;font-size:14px;font-weight:400;color:#fff;background:#333333;filter:none;border-radius:4px;transform:translate(-50%)}.viewer-box .function-wrapper>.fly-box:after,.viewer-box .function-wrapper>.fly-box:before{width:0;height:0;padding:0;overflow:hidden;border:none}.viewer-box .fly-box div{height:48px;font-size:14px;line-height:48px;white-space:nowrap;-webkit-user-select:none;user-select:none}.viewer-box .fly-box span{display:inline-block}.viewer-box .fly-item{padding:0 8px}.viewer-box .fly-item>span{display:inline-block;width:12px;height:12px;font-size:14px;line-height:12px;text-align:center;cursor:pointer;border:1px solid #ffffff;border-radius:2px}.viewer-box .fly-item>span:hover{color:var(--el-color-primary);border-color:var(--el-color-primary)}.viewer-box .fly-item>span:nth-child(2){width:auto;height:16px;padding:0 5px;margin:0 10px;line-height:16px;pointer-events:none;background:rgba(255,255,255,.2);border:none;border-radius:2px}.viewer-box .fly-box>.fly-out{height:36px;padding-left:22px;font-family:PingFang SC-Regular,PingFang SC;font-size:14px;font-weight:400;line-height:36px;color:var(--el-color-primary);border-left:1px solid;border-image:linear-gradient(to bottom,#000000,#ffffff,#000000) 1}.viewer-box .function-wrapper>.fly-box-control-info{position:absolute;right:0;bottom:54px;display:block;width:272px;height:308px;padding-top:20px;overflow:hidden;font-size:14px;background-color:var(--el-bg-color);border-radius:4px;transform:translate(110%)}.viewer-box .function-wrapper>.person-box-control-info{height:278px!important}.viewer-box .fly-box-control-info>.control-close{position:absolute;top:5px;right:5px;width:18px;height:18px;font-size:12px;line-height:18px;text-align:center;cursor:pointer;-webkit-user-select:none;user-select:none;border:1px solid var(--el-border-color);border-radius:50%}.viewer-box .fly-box-control-info>.control-close:hover{color:var(--el-color-primary);border-color:var(--el-color-primary)}.viewer-box .fly-box-control-info>.control-info-item{display:flex;align-items:center;justify-content:space-between;width:100%;height:30px;border-bottom:1px solid var(--el-border-color-lighter)}.viewer-box .control-info-item>span{display:block;width:55%;color:var(--el-text-color-primary);text-align:center}.viewer-box .control-info-item>span:nth-child(1){width:40%;padding-right:15px;border-right:1px solid var(--el-border-color-lighter)}.viewer-box .cutting-box{position:absolute;bottom:166%;left:50%;z-index:11;box-sizing:border-box;width:100px;height:90px;-webkit-user-select:none;user-select:none;transform:translate(-50%)}.viewer-box .cutting-box:before{position:absolute;bottom:-10px;left:50%;z-index:10;width:0;height:0;content:\"\";border-top:10px solid var(--el-bg-color);border-right:10px solid transparent;border-left:10px solid transparent;transform:translate(-50%)}.viewer-box .cutting-box>div{padding-bottom:4px;border-bottom:1px solid var(--el-border-color-lighter)}.viewer-box .cutting-box>div>img{width:20px;height:20px;margin-right:12px;object-fit:contain}.viewer-box .cutting-box>div>span{font-size:14px;color:var(--el-color-primary)}.viewer-box .cut-wrapper{margin-top:10px}.viewer-box .cut-wrapper>div{box-sizing:content-box!important;display:flex;align-items:center;justify-content:space-between;width:80%;height:20px;padding:8px 10px;margin-right:10px;font-size:14px}.viewer-box .cut-wrapper>div>div{margin-right:4px}.viewer-box .cut-wrapper>div>img{width:16px;height:16px;vertical-align:middle}.viewer-box .cut-wrapper>div:hover{color:var(--el-color-primary);background:var(--el-color-primary-light-9)}.viewer-box .cutting-active{background-color:var(--el-color-primary-light-9)}.viewer-box .cutting-silder{position:absolute;top:50%;left:105%;width:220px;background-color:var(--el-bg-color);border-radius:4px;box-shadow:var(--el-box-shadow-light);transform:translateY(-50%)}.viewer-box .local-content{padding:0 15px;margin:10px 0}.viewer-box .local-content>div{position:relative;width:100%;height:6px;border-radius:5px}.viewer-box .local-content>div:nth-child(1){height:18px;margin-bottom:4px;font-size:14px;font-weight:500;line-height:18px;color:var(--el-text-color-primary);text-align:left}.viewer-box .local-content>div>div{position:absolute;top:50%;width:14px;height:14px;cursor:pointer;background-color:#fff;border:1px solid var(--el-color-primary);border-radius:50%;box-shadow:0 1px 4px #0000002b;transform:translateY(-50%) translate(-50%)}.viewer-box .local-content>div>div:hover{transform:translateY(-50%) translate(-50%) scale(1.1)}.viewer-box .mark-wrapper{position:absolute;right:20px;bottom:30px;box-sizing:border-box;width:350px;height:460px;overflow:hidden auto;pointer-events:auto;cursor:pointer;border-radius:4px;opacity:1}.viewer-box .title-text{display:flex;align-items:center;width:100%;height:40px;padding:0 12px;margin:0;font-size:14px;font-weight:500;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .mark-list,.viewer-box .setting-list{display:flex;padding-left:10px;font-size:14px;font-weight:500;line-height:40px;color:var(--el-text-color-regular);text-align:left}.viewer-box .list-type{width:123px;height:40px;padding-left:11px;border:1px solid var(--el-border-color)}.viewer-box .list-value{width:187px;height:40px;padding-left:14px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;border:1px solid var(--el-border-color)}.viewer-box .info-wrapper,.viewer-box .setting-wrapper{position:absolute;right:20px;bottom:30px;box-sizing:border-box;width:350px;overflow:hidden auto;pointer-events:auto;cursor:pointer;border-radius:4px;opacity:1}.viewer-box .info-wrapper{height:170px}.viewer-box .setting-wrapper{height:210px}.viewer-box .setting-type{height:40px;padding-left:11px}.viewer-box .setting-value{position:relative;display:flex;flex-direction:row;align-items:center;justify-content:center;width:187px;height:40px;padding-left:14px}.viewer-box .setting-bg{position:relative;width:24px;height:24px;margin-left:12px}.viewer-box .setting-bg:hover:after{display:block}.viewer-box .setting-bg:after{position:absolute;top:-44px;left:50%;z-index:10;display:none;font-size:12px;color:var(--el-text-color-primary);white-space:nowrap;content:attr(data-attr);background-color:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;box-shadow:var(--el-box-shadow-light);transform:translate(-50%)}.viewer-box .setting-active{border:1px solid var(--el-color-primary)}.viewer-box .setting-header,.viewer-box .setting-close{cursor:pointer}.viewer-box .setting-unit,.viewer-box .setting-accuracy{display:flex;align-items:center;justify-content:space-evenly;margin:20px 0;font-size:14px;font-weight:500;color:var(--el-color-primary)}.viewer-box .setting-header{display:flex;align-items:center;justify-content:space-between;width:100%;height:40px;padding:0 12px;font-size:14px;font-weight:500;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .svgDiv{display:flex;align-items:center;justify-content:space-around;width:40px;height:40px;cursor:pointer}.viewer-box .svgDiv:hover{background-color:var(--el-fill-color-light)}.viewer-box .unit-select,.viewer-box .accuracy-select{width:170px;padding:4px 24px 4px 10px;font-size:14px;color:var(--el-text-color-primary);background-color:var(--el-bg-color);border:1px solid var(--el-border-color);border-radius:4px;outline:none}.viewer-box .unit-select>option:checked,.viewer-box .setting-accuracy>option:checked{color:var(--el-color-primary)}.viewer-box .tree-header{display:flex;justify-content:flex-start;width:100%;height:40px;padding:0 12px;font-size:14px;font-weight:500;line-height:40px;color:var(--el-text-color-primary);background:var(--el-fill-color-light);border-bottom:1px solid var(--el-border-color)}.viewer-box .tree-header>div{height:30px;padding:0 5px;margin:0 10px;font-size:14px;font-weight:400;line-height:30px;color:var(--el-color-primary);cursor:pointer;border-bottom:1px solid rgba(0,0,0,0)}.viewer-box .tree-header>div:hover{border-color:var(--el-color-primary)}.viewer-box .tree-content{position:relative;box-sizing:border-box;width:100%;height:calc(100% - 30px);padding-left:12px;overflow:hidden auto}.viewer-box .tree-content::-webkit-scrollbar-thumb{width:100%;height:10px;background-color:var(--el-color-primary);border-radius:15px}.viewer-box .tree-content::-webkit-scrollbar{width:4px;background-color:var(--el-bg-color)}.viewer-box .tree-content>div{position:absolute;top:0;left:12px;display:none;width:calc(100% - 12px);height:auto}.viewer-box .header-active{border-color:var(--el-color-primary)!important}.viewer-box .tree-active{display:block!important}.viewer-box .tree-parent{overflow:hidden;transition:all .5s}.viewer-box .tree-item{box-sizing:border-box;display:flex;align-items:center;justify-content:flex-start;width:100%;height:30px;overflow:hidden;cursor:pointer}.viewer-box .tree-item>div{margin-right:10px;transition:all .5s}.viewer-box .tree-item>input{display:block;width:16px;height:16px;margin-right:5px}.viewer-box .tree-item>span{display:block;overflow:hidden;font-size:14px;color:var(--el-text-color-primary);text-align:left;text-overflow:ellipsis;white-space:nowrap}\n";(document.head||document.documentElement).appendChild(el);}catch(e){}})();