ss-component-new 1.3.210 → 1.3.211

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.
Files changed (75) hide show
  1. package/dist/{MTLLoader-DeNQEDDV.js → MTLLoader-DK0YEfmV.js} +128 -128
  2. package/dist/{MTLLoader-M7CiYfFW.cjs → MTLLoader-DT6ZCumt.cjs} +1 -1
  3. package/dist/{OrbitControls-B2qrbvvw.js → OrbitControls-BJ5JdTSS.js} +4 -4
  4. package/dist/{OrbitControls-B9Sgfquf.cjs → OrbitControls-BJWy8v0C.cjs} +1 -1
  5. package/dist/{URDFLoader-9032qb6C.js → URDFLoader-Brg6535P.js} +157 -157
  6. package/dist/{URDFLoader-CP2IGFu5.cjs → URDFLoader-W_SNhmdX.cjs} +1 -1
  7. package/dist/{animationData-irwHhyfV.js → animationData-8XlPmQjQ.js} +13 -13
  8. package/dist/{animationData-DBp3KNaJ.cjs → animationData-DH63hVD0.cjs} +1 -1
  9. package/dist/{array-D8Whtbfi.js → array--oWQ-uuM.js} +35 -35
  10. package/dist/{array-BHuQ4aQj.cjs → array-CnEs_Zkr.cjs} +1 -1
  11. package/dist/{iconfont-Bd_cSNOm.cjs → iconfont-7ZjpM-r4.cjs} +1 -1
  12. package/dist/{iconfont-D_-ZbGWb.js → iconfont-CZFsgV6D.js} +34 -34
  13. package/dist/{index-BfQjLA5z.cjs → index-6qqtfDrv.cjs} +1 -1
  14. package/dist/{index-0xSU4Ddw.js → index-7zCWtTsM.js} +1 -1
  15. package/dist/{index-BHWMdPW0.cjs → index-BJSZ_4Ea.cjs} +1 -1
  16. package/dist/index-Bk5J64jn.cjs +1 -0
  17. package/dist/index-BluLnUW6.cjs +25 -0
  18. package/dist/{index-C-gll2RJ.cjs → index-BoQGKagq.cjs} +1 -1
  19. package/dist/{index-C1vZ1Dsq.js → index-BrR2fKml.js} +4 -4
  20. package/dist/{index-30Q8y2rj.cjs → index-BvB4-lC-.cjs} +1 -1
  21. package/dist/{index-BECQ_fKO.cjs → index-BwWLgGJW.cjs} +1 -1
  22. package/dist/{index-T7AwNhEa.js → index-CB2plQVk.js} +2 -2
  23. package/dist/index-CGLSrHQr.js +20255 -0
  24. package/dist/{index-IqYcFP_m.cjs → index-CVvbcx1f.cjs} +13 -13
  25. package/dist/{index-dBndFKmb.js → index-CXBaq-i8.js} +1 -1
  26. package/dist/{index-DDwrt_au.js → index-ChkSDTXA.js} +69 -69
  27. package/dist/{index-D39j5ZpW.cjs → index-CrHY-9Lh.cjs} +1 -1
  28. package/dist/{index-DwpE4gc1.cjs → index-CzZ_7W71.cjs} +1 -1
  29. package/dist/{index-BEoxoKHQ.js → index-DCalu8ye.js} +4483 -4417
  30. package/dist/{index-DHG4LUTU.cjs → index-DGlYSzLI.cjs} +1 -1
  31. package/dist/{index-PCpDsgMI.cjs → index-DLa77zL8.cjs} +1 -1
  32. package/dist/{index-Dy4WZ9QH.js → index-D_QYbfU2.js} +1 -1
  33. package/dist/{index-CztcQVqJ.js → index-DbtbQaq_.js} +4 -4
  34. package/dist/{index-CoqEkPRb.cjs → index-DdAMNfQj.cjs} +1 -1
  35. package/dist/{index-PulMpmwl.js → index-DkSLW43f.js} +1 -1
  36. package/dist/{index-fUOXBHT_.js → index-Dm1A68ev.js} +40 -40
  37. package/dist/{index-Bb9kFwIK.js → index-Do5SonId.js} +7 -7
  38. package/dist/{index-CUK2gC7j.cjs → index-DvsbEbjA.cjs} +1 -1
  39. package/dist/{index-B4efvWUd.js → index-DzzyleRJ.js} +3 -3
  40. package/dist/{index-DFFEzlIn.cjs → index-Kma2untS.cjs} +1 -1
  41. package/dist/{index-nXKn3an4.js → index-TwYy6S2R.js} +3 -3
  42. package/dist/{index-CfW0AISx.js → index-XcxmU1zE.js} +54 -54
  43. package/dist/{index-BzBtsmmK.js → index-fkXgG1SA.js} +3 -3
  44. package/dist/{index-BG3-pCGg.js → index-kVetlbwY.js} +1 -1
  45. package/dist/{index-BhEvFyew.cjs → index-lEk4SqkW.cjs} +1 -1
  46. package/dist/{index-BvZk3GYM.cjs → index-uTkuTB5j.cjs} +1 -1
  47. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BKflGJ6_.cjs → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C4-Boen2.cjs} +433 -433
  48. package/dist/{index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BeZML1fP.js → index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DJMRdhBD.js} +42668 -41120
  49. package/dist/{main-orEJ71b0.cjs → main-C5QZz4ml.cjs} +1 -1
  50. package/dist/{main-B-Z64sBd.js → main-CdoJk6OP.js} +3 -3
  51. package/dist/ss-component.cjs +1 -1
  52. package/dist/ss-component.css +1 -1
  53. package/dist/ss-component.js +8 -8
  54. package/dist/ss-component2.cjs +1 -1
  55. package/dist/ss-component2.js +10 -10
  56. package/dist/{threeModel-CeMCVCsr.cjs → threeModel-DJY6aBiW.cjs} +1 -1
  57. package/dist/{threeModel-CMcdiedr.js → threeModel-DN9k0cPG.js} +107 -107
  58. package/dist/{threePreview-Bvzci_N6.cjs → threePreview-BRTSxEsx.cjs} +1 -1
  59. package/dist/{threePreview-CXoYF3CS.js → threePreview-Ck5_C_Ie.js} +91 -91
  60. package/dist/{threeSceneView-DngjMpgq.js → threeSceneView-Dnloehk4.js} +35 -35
  61. package/dist/{threeSceneView-BtlwrvUl.cjs → threeSceneView-WORk6wxQ.cjs} +1 -1
  62. package/dist/{threeSceneViewForCPMPIP-DPBFEQO_.js → threeSceneViewForCPMPIP-B5S6Pkiy.js} +7 -7
  63. package/dist/{threeSceneViewForCPMPIP-B52FvPCv.cjs → threeSceneViewForCPMPIP-Crvhfn8Q.cjs} +1 -1
  64. package/dist/{threeTrackPathView-jwQL0OKk.js → threeTrackPathView-D7owXgHH.js} +115 -115
  65. package/dist/{threeTrackPathView-CgGGFtJS.cjs → threeTrackPathView-DhLklNi1.cjs} +1 -1
  66. package/dist/{threeViewerHost-DlQldyru.js → threeViewerHost-C3Ix_lnU.js} +13 -13
  67. package/dist/{threeViewerHost-oQwtJ8gu.cjs → threeViewerHost-CzcH6fgT.cjs} +1 -1
  68. package/dist/{urdfTree-CF7U6rbd.js → urdfTree-5RG5VgDT.js} +8 -8
  69. package/dist/{urdfTree-BuAPOipd.cjs → urdfTree-CHc_PLzG.cjs} +1 -1
  70. package/dist/{workpieceTreePanel--KV_vQNl.cjs → workpieceTreePanel-B9zsFlEe.cjs} +1 -1
  71. package/dist/{workpieceTreePanel-Dlz35lso.js → workpieceTreePanel-DI502fPr.js} +29 -29
  72. package/package.json +1 -1
  73. package/dist/index-CmVUkazT.cjs +0 -1
  74. package/dist/index-CqnxeaNF.js +0 -21825
  75. package/dist/index-Dl2U41ci.cjs +0 -25
@@ -1,4 +1,4 @@
1
- import { ad as Z, ae as K, O as D, C as P, j as S, ak as H, V as O, af as V, K as ie, al as N, bj as X, ah as B, t as re, bn as Y, ai as W, p as Q, a_ as oe, an as ae, bg as le, bA as q, b0 as $, bM as ce, b7 as he } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BeZML1fP.js";
1
+ import { aa as Z, ab as Q, Z as D, C as P, r as S, ah as H, V as O, ac as _, R as ie, ai as N, bn as X, ae as T, E as ne, br as Y, af as W, x as K, b2 as oe, ak as ae, bk as le, bE as q, b4 as $, bQ as ce, bb as he } from "./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-DJMRdhBD.js";
2
2
  class xe extends Z {
3
3
  /**
4
4
  * Constructs a new STL loader.
@@ -18,12 +18,12 @@ class xe extends Z {
18
18
  * @param {onErrorCallback} onError - Executed when errors occur.
19
19
  */
20
20
  load(t, s, i, e) {
21
- const n = this, c = new K(this.manager);
21
+ const r = this, c = new Q(this.manager);
22
22
  c.setPath(this.path), c.setResponseType("arraybuffer"), c.setRequestHeader(this.requestHeader), c.setWithCredentials(this.withCredentials), c.load(t, function(h) {
23
23
  try {
24
- s(n.parse(h));
24
+ s(r.parse(h));
25
25
  } catch (l) {
26
- e ? e(l) : console.error(l), n.manager.itemError(t);
26
+ e ? e(l) : console.error(l), r.manager.itemError(t);
27
27
  }
28
28
  }, i, e);
29
29
  }
@@ -34,8 +34,8 @@ class xe extends Z {
34
34
  * @return {BufferGeometry} The parsed geometry.
35
35
  */
36
36
  parse(t) {
37
- function s(r) {
38
- const o = new DataView(r), a = 32 / 8 * 3 + 32 / 8 * 3 * 3 + 16 / 8, u = o.getUint32(80, !0);
37
+ function s(n) {
38
+ const o = new DataView(n), a = 32 / 8 * 3 + 32 / 8 * 3 * 3 + 16 / 8, u = o.getUint32(80, !0);
39
39
  if (80 + 32 / 8 + u * a === o.byteLength)
40
40
  return !0;
41
41
  const m = [115, 111, 108, 105, 100];
@@ -43,69 +43,69 @@ class xe extends Z {
43
43
  if (i(m, o, p)) return !1;
44
44
  return !0;
45
45
  }
46
- function i(r, o, a) {
47
- for (let u = 0, d = r.length; u < d; u++)
48
- if (r[u] !== o.getUint8(a + u)) return !1;
46
+ function i(n, o, a) {
47
+ for (let u = 0, d = n.length; u < d; u++)
48
+ if (n[u] !== o.getUint8(a + u)) return !1;
49
49
  return !0;
50
50
  }
51
- function e(r) {
52
- const o = new DataView(r), a = o.getUint32(80, !0);
51
+ function e(n) {
52
+ const o = new DataView(n), a = o.getUint32(80, !0);
53
53
  let u, d, m, p = !1, g, b, x, C, v;
54
54
  for (let y = 0; y < 70; y++)
55
55
  o.getUint32(y, !1) == 1129270351 && o.getUint8(y + 4) == 82 && o.getUint8(y + 5) == 61 && (p = !0, g = new Float32Array(a * 3 * 3), b = o.getUint8(y + 6) / 255, x = o.getUint8(y + 7) / 255, C = o.getUint8(y + 8) / 255, v = o.getUint8(y + 9) / 255);
56
- const j = 84, f = 12 * 4 + 2, w = new D(), _ = new Float32Array(a * 3 * 3), A = new Float32Array(a * 3 * 3), k = new P();
56
+ const j = 84, f = 12 * 4 + 2, w = new D(), M = new Float32Array(a * 3 * 3), V = new Float32Array(a * 3 * 3), A = new P();
57
57
  for (let y = 0; y < a; y++) {
58
- const U = j + y * f, E = o.getFloat32(U, !0), z = o.getFloat32(U + 4, !0), T = o.getFloat32(U + 8, !0);
58
+ const U = j + y * f, E = o.getFloat32(U, !0), z = o.getFloat32(U + 4, !0), R = o.getFloat32(U + 8, !0);
59
59
  if (p) {
60
60
  const F = o.getUint16(U + 48, !0);
61
61
  (F & 32768) === 0 ? (u = (F & 31) / 31, d = (F >> 5 & 31) / 31, m = (F >> 10 & 31) / 31) : (u = b, d = x, m = C);
62
62
  }
63
63
  for (let F = 1; F <= 3; F++) {
64
- const G = U + F * 12, M = y * 3 * 3 + (F - 1) * 3;
65
- _[M] = o.getFloat32(G, !0), _[M + 1] = o.getFloat32(G + 4, !0), _[M + 2] = o.getFloat32(G + 8, !0), A[M] = E, A[M + 1] = z, A[M + 2] = T, p && (k.setRGB(u, d, m, S), g[M] = k.r, g[M + 1] = k.g, g[M + 2] = k.b);
64
+ const G = U + F * 12, k = y * 3 * 3 + (F - 1) * 3;
65
+ M[k] = o.getFloat32(G, !0), M[k + 1] = o.getFloat32(G + 4, !0), M[k + 2] = o.getFloat32(G + 8, !0), V[k] = E, V[k + 1] = z, V[k + 2] = R, p && (A.setRGB(u, d, m, S), g[k] = A.r, g[k + 1] = A.g, g[k + 2] = A.b);
66
66
  }
67
67
  }
68
- return w.setAttribute("position", new H(_, 3)), w.setAttribute("normal", new H(A, 3)), p && (w.setAttribute("color", new H(g, 3)), w.hasColors = !0, w.alpha = v), w;
68
+ return w.setAttribute("position", new H(M, 3)), w.setAttribute("normal", new H(V, 3)), p && (w.setAttribute("color", new H(g, 3)), w.hasColors = !0, w.alpha = v), w;
69
69
  }
70
- function n(r) {
70
+ function r(n) {
71
71
  const o = new D(), a = /solid([\s\S]*?)endsolid/g, u = /facet([\s\S]*?)endfacet/g, d = /solid\s(.+)/;
72
72
  let m = 0;
73
73
  const p = /[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source, g = new RegExp("vertex" + p + p + p, "g"), b = new RegExp("normal" + p + p + p, "g"), x = [], C = [], v = [], j = new O();
74
- let f, w = 0, _ = 0, A = 0;
75
- for (; (f = a.exec(r)) !== null; ) {
76
- _ = A;
77
- const k = f[0], y = (f = d.exec(k)) !== null ? f[1] : "";
78
- for (v.push(y); (f = u.exec(k)) !== null; ) {
79
- let z = 0, T = 0;
74
+ let f, w = 0, M = 0, V = 0;
75
+ for (; (f = a.exec(n)) !== null; ) {
76
+ M = V;
77
+ const A = f[0], y = (f = d.exec(A)) !== null ? f[1] : "";
78
+ for (v.push(y); (f = u.exec(A)) !== null; ) {
79
+ let z = 0, R = 0;
80
80
  const F = f[0];
81
81
  for (; (f = b.exec(F)) !== null; )
82
- j.x = parseFloat(f[1]), j.y = parseFloat(f[2]), j.z = parseFloat(f[3]), T++;
82
+ j.x = parseFloat(f[1]), j.y = parseFloat(f[2]), j.z = parseFloat(f[3]), R++;
83
83
  for (; (f = g.exec(F)) !== null; )
84
- x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), C.push(j.x, j.y, j.z), z++, A++;
85
- T !== 1 && console.error("THREE.STLLoader: Something isn't right with the normal of face number " + m), z !== 3 && console.error("THREE.STLLoader: Something isn't right with the vertices of face number " + m), m++;
84
+ x.push(parseFloat(f[1]), parseFloat(f[2]), parseFloat(f[3])), C.push(j.x, j.y, j.z), z++, V++;
85
+ R !== 1 && console.error("THREE.STLLoader: Something isn't right with the normal of face number " + m), z !== 3 && console.error("THREE.STLLoader: Something isn't right with the vertices of face number " + m), m++;
86
86
  }
87
- const U = _, E = A - _;
87
+ const U = M, E = V - M;
88
88
  o.userData.groupNames = v, o.addGroup(U, E, w), w++;
89
89
  }
90
- return o.setAttribute("position", new V(x, 3)), o.setAttribute("normal", new V(C, 3)), o;
90
+ return o.setAttribute("position", new _(x, 3)), o.setAttribute("normal", new _(C, 3)), o;
91
91
  }
92
- function c(r) {
93
- return typeof r != "string" ? new TextDecoder().decode(r) : r;
92
+ function c(n) {
93
+ return typeof n != "string" ? new TextDecoder().decode(n) : n;
94
94
  }
95
- function h(r) {
96
- if (typeof r == "string") {
97
- const o = new Uint8Array(r.length);
98
- for (let a = 0; a < r.length; a++)
99
- o[a] = r.charCodeAt(a) & 255;
95
+ function h(n) {
96
+ if (typeof n == "string") {
97
+ const o = new Uint8Array(n.length);
98
+ for (let a = 0; a < n.length; a++)
99
+ o[a] = n.charCodeAt(a) & 255;
100
100
  return o.buffer || o;
101
101
  } else
102
- return r;
102
+ return n;
103
103
  }
104
104
  const l = h(t);
105
- return s(l) ? e(l) : n(c(t));
105
+ return s(l) ? e(l) : r(c(t));
106
106
  }
107
107
  }
108
- const ue = /^[og]\s*(.+)?/, pe = /^mtllib /, fe = /^usemtl /, de = /^usemap /, ee = /\s+/, te = new O(), J = new O(), se = new O(), ne = new O(), L = new O(), R = new P();
108
+ const ue = /^[og]\s*(.+)?/, pe = /^mtllib /, fe = /^usemtl /, de = /^usemap /, ee = /\s+/, te = new O(), J = new O(), se = new O(), re = new O(), L = new O(), B = new P();
109
109
  function me() {
110
110
  const I = {
111
111
  objects: [],
@@ -134,20 +134,20 @@ function me() {
134
134
  },
135
135
  materials: [],
136
136
  smooth: !0,
137
- startMaterial: function(e, n) {
137
+ startMaterial: function(e, r) {
138
138
  const c = this._finalize(!1);
139
139
  c && (c.inherited || c.groupCount <= 0) && this.materials.splice(c.index, 1);
140
140
  const h = {
141
141
  index: this.materials.length,
142
142
  name: e || "",
143
- mtllib: Array.isArray(n) && n.length > 0 ? n[n.length - 1] : "",
143
+ mtllib: Array.isArray(r) && r.length > 0 ? r[r.length - 1] : "",
144
144
  smooth: c !== void 0 ? c.smooth : this.smooth,
145
145
  groupStart: c !== void 0 ? c.groupEnd : 0,
146
146
  groupEnd: -1,
147
147
  groupCount: -1,
148
148
  inherited: !1,
149
149
  clone: function(l) {
150
- const r = {
150
+ const n = {
151
151
  index: typeof l == "number" ? l : this.index,
152
152
  name: this.name,
153
153
  mtllib: this.mtllib,
@@ -157,7 +157,7 @@ function me() {
157
157
  groupCount: -1,
158
158
  inherited: !1
159
159
  };
160
- return r.clone = this.clone.bind(r), r;
160
+ return n.clone = this.clone.bind(n), n;
161
161
  }
162
162
  };
163
163
  return this.materials.push(h), h;
@@ -167,14 +167,14 @@ function me() {
167
167
  return this.materials[this.materials.length - 1];
168
168
  },
169
169
  _finalize: function(e) {
170
- const n = this.currentMaterial();
171
- if (n && n.groupEnd === -1 && (n.groupEnd = this.geometry.vertices.length / 3, n.groupCount = n.groupEnd - n.groupStart, n.inherited = !1), e && this.materials.length > 1)
170
+ const r = this.currentMaterial();
171
+ if (r && r.groupEnd === -1 && (r.groupEnd = this.geometry.vertices.length / 3, r.groupCount = r.groupEnd - r.groupStart, r.inherited = !1), e && this.materials.length > 1)
172
172
  for (let c = this.materials.length - 1; c >= 0; c--)
173
173
  this.materials[c].groupCount <= 0 && this.materials.splice(c, 1);
174
174
  return e && this.materials.length === 0 && this.materials.push({
175
175
  name: "",
176
176
  smooth: this.smooth
177
- }), n;
177
+ }), r;
178
178
  }
179
179
  }, i && i.name && typeof i.clone == "function") {
180
180
  const e = i.clone(0);
@@ -198,8 +198,8 @@ function me() {
198
198
  return (i >= 0 ? i - 1 : i + s / 2) * 2;
199
199
  },
200
200
  addVertex: function(t, s, i) {
201
- const e = this.vertices, n = this.object.geometry.vertices;
202
- n.push(e[t + 0], e[t + 1], e[t + 2]), n.push(e[s + 0], e[s + 1], e[s + 2]), n.push(e[i + 0], e[i + 1], e[i + 2]);
201
+ const e = this.vertices, r = this.object.geometry.vertices;
202
+ r.push(e[t + 0], e[t + 1], e[t + 2]), r.push(e[s + 0], e[s + 1], e[s + 2]), r.push(e[i + 0], e[i + 1], e[i + 2]);
203
203
  },
204
204
  addVertexPoint: function(t) {
205
205
  const s = this.vertices;
@@ -210,20 +210,20 @@ function me() {
210
210
  this.object.geometry.vertices.push(s[t + 0], s[t + 1], s[t + 2]);
211
211
  },
212
212
  addNormal: function(t, s, i) {
213
- const e = this.normals, n = this.object.geometry.normals;
214
- n.push(e[t + 0], e[t + 1], e[t + 2]), n.push(e[s + 0], e[s + 1], e[s + 2]), n.push(e[i + 0], e[i + 1], e[i + 2]);
213
+ const e = this.normals, r = this.object.geometry.normals;
214
+ r.push(e[t + 0], e[t + 1], e[t + 2]), r.push(e[s + 0], e[s + 1], e[s + 2]), r.push(e[i + 0], e[i + 1], e[i + 2]);
215
215
  },
216
216
  addFaceNormal: function(t, s, i) {
217
- const e = this.vertices, n = this.object.geometry.normals;
218
- te.fromArray(e, t), J.fromArray(e, s), se.fromArray(e, i), L.subVectors(se, J), ne.subVectors(te, J), L.cross(ne), L.normalize(), n.push(L.x, L.y, L.z), n.push(L.x, L.y, L.z), n.push(L.x, L.y, L.z);
217
+ const e = this.vertices, r = this.object.geometry.normals;
218
+ te.fromArray(e, t), J.fromArray(e, s), se.fromArray(e, i), L.subVectors(se, J), re.subVectors(te, J), L.cross(re), L.normalize(), r.push(L.x, L.y, L.z), r.push(L.x, L.y, L.z), r.push(L.x, L.y, L.z);
219
219
  },
220
220
  addColor: function(t, s, i) {
221
- const e = this.colors, n = this.object.geometry.colors;
222
- e[t] !== void 0 && n.push(e[t + 0], e[t + 1], e[t + 2]), e[s] !== void 0 && n.push(e[s + 0], e[s + 1], e[s + 2]), e[i] !== void 0 && n.push(e[i + 0], e[i + 1], e[i + 2]);
221
+ const e = this.colors, r = this.object.geometry.colors;
222
+ e[t] !== void 0 && r.push(e[t + 0], e[t + 1], e[t + 2]), e[s] !== void 0 && r.push(e[s + 0], e[s + 1], e[s + 2]), e[i] !== void 0 && r.push(e[i + 0], e[i + 1], e[i + 2]);
223
223
  },
224
224
  addUV: function(t, s, i) {
225
- const e = this.uvs, n = this.object.geometry.uvs;
226
- n.push(e[t + 0], e[t + 1]), n.push(e[s + 0], e[s + 1]), n.push(e[i + 0], e[i + 1]);
225
+ const e = this.uvs, r = this.object.geometry.uvs;
226
+ r.push(e[t + 0], e[t + 1]), r.push(e[s + 0], e[s + 1]), r.push(e[i + 0], e[i + 1]);
227
227
  },
228
228
  addDefaultUV: function() {
229
229
  const t = this.object.geometry.uvs;
@@ -233,17 +233,17 @@ function me() {
233
233
  const s = this.uvs;
234
234
  this.object.geometry.uvs.push(s[t + 0], s[t + 1]);
235
235
  },
236
- addFace: function(t, s, i, e, n, c, h, l, r) {
236
+ addFace: function(t, s, i, e, r, c, h, l, n) {
237
237
  const o = this.vertices.length;
238
238
  let a = this.parseVertexIndex(t, o), u = this.parseVertexIndex(s, o), d = this.parseVertexIndex(i, o);
239
239
  if (this.addVertex(a, u, d), this.addColor(a, u, d), h !== void 0 && h !== "") {
240
240
  const m = this.normals.length;
241
- a = this.parseNormalIndex(h, m), u = this.parseNormalIndex(l, m), d = this.parseNormalIndex(r, m), this.addNormal(a, u, d);
241
+ a = this.parseNormalIndex(h, m), u = this.parseNormalIndex(l, m), d = this.parseNormalIndex(n, m), this.addNormal(a, u, d);
242
242
  } else
243
243
  this.addFaceNormal(a, u, d);
244
244
  if (e !== void 0 && e !== "") {
245
245
  const m = this.uvs.length;
246
- a = this.parseUVIndex(e, m), u = this.parseUVIndex(n, m), d = this.parseUVIndex(c, m), this.addUV(a, u, d), this.object.geometry.hasUVIndices = !0;
246
+ a = this.parseUVIndex(e, m), u = this.parseUVIndex(r, m), d = this.parseUVIndex(c, m), this.addUV(a, u, d), this.object.geometry.hasUVIndices = !0;
247
247
  } else
248
248
  this.addDefaultUV();
249
249
  },
@@ -251,17 +251,17 @@ function me() {
251
251
  this.object.geometry.type = "Points";
252
252
  const s = this.vertices.length;
253
253
  for (let i = 0, e = t.length; i < e; i++) {
254
- const n = this.parseVertexIndex(t[i], s);
255
- this.addVertexPoint(n), this.addColor(n);
254
+ const r = this.parseVertexIndex(t[i], s);
255
+ this.addVertexPoint(r), this.addColor(r);
256
256
  }
257
257
  },
258
258
  addLineGeometry: function(t, s) {
259
259
  this.object.geometry.type = "Line";
260
260
  const i = this.vertices.length, e = this.uvs.length;
261
- for (let n = 0, c = t.length; n < c; n++)
262
- this.addVertexLine(this.parseVertexIndex(t[n], i));
263
- for (let n = 0, c = s.length; n < c; n++)
264
- this.addUVLine(this.parseUVIndex(s[n], e));
261
+ for (let r = 0, c = t.length; r < c; r++)
262
+ this.addVertexLine(this.parseVertexIndex(t[r], i));
263
+ for (let r = 0, c = s.length; r < c; r++)
264
+ this.addUVLine(this.parseUVIndex(s[r], e));
265
265
  }
266
266
  };
267
267
  return I.startObject("", !1), I;
@@ -285,12 +285,12 @@ class we extends Z {
285
285
  * @param {onErrorCallback} onError - Executed when errors occur.
286
286
  */
287
287
  load(t, s, i, e) {
288
- const n = this, c = new K(this.manager);
288
+ const r = this, c = new Q(this.manager);
289
289
  c.setPath(this.path), c.setRequestHeader(this.requestHeader), c.setWithCredentials(this.withCredentials), c.load(t, function(h) {
290
290
  try {
291
- s(n.parse(h));
291
+ s(r.parse(h));
292
292
  } catch (l) {
293
- e ? e(l) : console.error(l), n.manager.itemError(t);
293
+ e ? e(l) : console.error(l), r.manager.itemError(t);
294
294
  }
295
295
  }, i, e);
296
296
  }
@@ -319,24 +319,24 @@ class we extends Z {
319
319
  `);
320
320
  let e = [];
321
321
  for (let h = 0, l = i.length; h < l; h++) {
322
- const r = i[h].trimStart();
323
- if (r.length === 0) continue;
324
- const o = r.charAt(0);
322
+ const n = i[h].trimStart();
323
+ if (n.length === 0) continue;
324
+ const o = n.charAt(0);
325
325
  if (o !== "#")
326
326
  if (o === "v") {
327
- const a = r.split(ee);
327
+ const a = n.split(ee);
328
328
  switch (a[0]) {
329
329
  case "v":
330
330
  s.vertices.push(
331
331
  parseFloat(a[1]),
332
332
  parseFloat(a[2]),
333
333
  parseFloat(a[3])
334
- ), a.length >= 7 ? (R.setRGB(
334
+ ), a.length >= 7 ? (B.setRGB(
335
335
  parseFloat(a[4]),
336
336
  parseFloat(a[5]),
337
337
  parseFloat(a[6]),
338
338
  S
339
- ), s.colors.push(R.r, R.g, R.b)) : s.colors.push(void 0, void 0, void 0);
339
+ ), s.colors.push(B.r, B.g, B.b)) : s.colors.push(void 0, void 0, void 0);
340
340
  break;
341
341
  case "vn":
342
342
  s.normals.push(
@@ -353,7 +353,7 @@ class we extends Z {
353
353
  break;
354
354
  }
355
355
  } else if (o === "f") {
356
- const u = r.slice(1).trim().split(ee), d = [];
356
+ const u = n.slice(1).trim().split(ee), d = [];
357
357
  for (let p = 0, g = u.length; p < g; p++) {
358
358
  const b = u[p];
359
359
  if (b.length > 0) {
@@ -377,10 +377,10 @@ class we extends Z {
377
377
  );
378
378
  }
379
379
  } else if (o === "l") {
380
- const a = r.substring(1).trim().split(" ");
380
+ const a = n.substring(1).trim().split(" ");
381
381
  let u = [];
382
382
  const d = [];
383
- if (r.indexOf("/") === -1)
383
+ if (n.indexOf("/") === -1)
384
384
  u = a;
385
385
  else
386
386
  for (let m = 0, p = a.length; m < p; m++) {
@@ -389,19 +389,19 @@ class we extends Z {
389
389
  }
390
390
  s.addLineGeometry(u, d);
391
391
  } else if (o === "p") {
392
- const u = r.slice(1).trim().split(" ");
392
+ const u = n.slice(1).trim().split(" ");
393
393
  s.addPointGeometry(u);
394
- } else if ((e = ue.exec(r)) !== null) {
394
+ } else if ((e = ue.exec(n)) !== null) {
395
395
  const a = (" " + e[0].slice(1).trim()).slice(1);
396
396
  s.startObject(a);
397
- } else if (fe.test(r))
398
- s.object.startMaterial(r.substring(7).trim(), s.materialLibraries);
399
- else if (pe.test(r))
400
- s.materialLibraries.push(r.substring(7).trim());
401
- else if (de.test(r))
397
+ } else if (fe.test(n))
398
+ s.object.startMaterial(n.substring(7).trim(), s.materialLibraries);
399
+ else if (pe.test(n))
400
+ s.materialLibraries.push(n.substring(7).trim());
401
+ else if (de.test(n))
402
402
  console.warn('THREE.OBJLoader: Rendering identifier "usemap" not supported. Textures must be defined in MTL files.');
403
403
  else if (o === "s") {
404
- if (e = r.split(" "), e.length > 1) {
404
+ if (e = n.split(" "), e.length > 1) {
405
405
  const u = e[1].trim().toLowerCase();
406
406
  s.object.smooth = u !== "0" && u !== "off";
407
407
  } else
@@ -409,19 +409,19 @@ class we extends Z {
409
409
  const a = s.object.currentMaterial();
410
410
  a && (a.smooth = s.object.smooth);
411
411
  } else {
412
- if (r === "\0") continue;
413
- console.warn('THREE.OBJLoader: Unexpected line: "' + r + '"');
412
+ if (n === "\0") continue;
413
+ console.warn('THREE.OBJLoader: Unexpected line: "' + n + '"');
414
414
  }
415
415
  }
416
416
  s.finalize();
417
- const n = new ie();
418
- if (n.materialLibraries = [].concat(s.materialLibraries), !(s.objects.length === 1 && s.objects[0].geometry.vertices.length === 0) === !0)
417
+ const r = new ie();
418
+ if (r.materialLibraries = [].concat(s.materialLibraries), !(s.objects.length === 1 && s.objects[0].geometry.vertices.length === 0) === !0)
419
419
  for (let h = 0, l = s.objects.length; h < l; h++) {
420
- const r = s.objects[h], o = r.geometry, a = r.materials, u = o.type === "Line", d = o.type === "Points";
420
+ const n = s.objects[h], o = n.geometry, a = n.materials, u = o.type === "Line", d = o.type === "Points";
421
421
  let m = !1;
422
422
  if (o.vertices.length === 0) continue;
423
423
  const p = new D();
424
- p.setAttribute("position", new V(o.vertices, 3)), o.normals.length > 0 && p.setAttribute("normal", new V(o.normals, 3)), o.colors.length > 0 && (m = !0, p.setAttribute("color", new V(o.colors, 3))), o.hasUVIndices === !0 && p.setAttribute("uv", new V(o.uvs, 2));
424
+ p.setAttribute("position", new _(o.vertices, 3)), o.normals.length > 0 && p.setAttribute("normal", new _(o.normals, 3)), o.colors.length > 0 && (m = !0, p.setAttribute("color", new _(o.colors, 3))), o.hasUVIndices === !0 && p.setAttribute("uv", new _(o.uvs, 2));
425
425
  const g = [];
426
426
  for (let x = 0, C = a.length; x < C; x++) {
427
427
  const v = a[x], j = v.name + "_" + v.smooth + "_" + m;
@@ -430,12 +430,12 @@ class we extends Z {
430
430
  if (f = this.materials.create(v.name), u && f && !(f instanceof N)) {
431
431
  const w = new N();
432
432
  X.prototype.copy.call(w, f), w.color.copy(f.color), f = w;
433
- } else if (d && f && !(f instanceof B)) {
434
- const w = new B({ size: 10, sizeAttenuation: !1 });
433
+ } else if (d && f && !(f instanceof T)) {
434
+ const w = new T({ size: 10, sizeAttenuation: !1 });
435
435
  X.prototype.copy.call(w, f), w.color.copy(f.color), w.map = f.map, f = w;
436
436
  }
437
437
  }
438
- f === void 0 && (u ? f = new N() : d ? f = new B({ size: 1, sizeAttenuation: !1 }) : f = new re(), f.name = v.name, f.flatShading = !v.smooth, f.vertexColors = m, s.materials[j] = f), g.push(f);
438
+ f === void 0 && (u ? f = new N() : d ? f = new T({ size: 1, sizeAttenuation: !1 }) : f = new ne(), f.name = v.name, f.flatShading = !v.smooth, f.vertexColors = m, s.materials[j] = f), g.push(f);
439
439
  }
440
440
  let b;
441
441
  if (g.length > 1) {
@@ -443,18 +443,18 @@ class we extends Z {
443
443
  const v = a[x];
444
444
  p.addGroup(v.groupStart, v.groupCount, x);
445
445
  }
446
- u ? b = new Y(p, g) : d ? b = new W(p, g) : b = new Q(p, g);
446
+ u ? b = new Y(p, g) : d ? b = new W(p, g) : b = new K(p, g);
447
447
  } else
448
- u ? b = new Y(p, g[0]) : d ? b = new W(p, g[0]) : b = new Q(p, g[0]);
449
- b.name = r.name, n.add(b);
448
+ u ? b = new Y(p, g[0]) : d ? b = new W(p, g[0]) : b = new K(p, g[0]);
449
+ b.name = n.name, r.add(b);
450
450
  }
451
451
  else if (s.vertices.length > 0) {
452
- const h = new B({ size: 1, sizeAttenuation: !1 }), l = new D();
453
- l.setAttribute("position", new V(s.vertices, 3)), s.colors.length > 0 && s.colors[0] !== void 0 && (l.setAttribute("color", new V(s.colors, 3)), h.vertexColors = !0);
454
- const r = new W(l, h);
455
- n.add(r);
452
+ const h = new T({ size: 1, sizeAttenuation: !1 }), l = new D();
453
+ l.setAttribute("position", new _(s.vertices, 3)), s.colors.length > 0 && s.colors[0] !== void 0 && (l.setAttribute("color", new _(s.colors, 3)), h.vertexColors = !0);
454
+ const n = new W(l, h);
455
+ r.add(n);
456
456
  }
457
- return n;
457
+ return r;
458
458
  }
459
459
  }
460
460
  class ye extends Z {
@@ -471,12 +471,12 @@ class ye extends Z {
471
471
  * @param {onErrorCallback} onError - Executed when errors occur.
472
472
  */
473
473
  load(t, s, i, e) {
474
- const n = this, c = this.path === "" ? oe.extractUrlBase(t) : this.path, h = new K(this.manager);
474
+ const r = this, c = this.path === "" ? oe.extractUrlBase(t) : this.path, h = new Q(this.manager);
475
475
  h.setPath(this.path), h.setRequestHeader(this.requestHeader), h.setWithCredentials(this.withCredentials), h.load(t, function(l) {
476
476
  try {
477
- s(n.parse(l, c));
478
- } catch (r) {
479
- e ? e(r) : console.error(r), n.manager.itemError(t);
477
+ s(r.parse(l, c));
478
+ } catch (n) {
479
+ e ? e(n) : console.error(n), r.manager.itemError(t);
480
480
  }
481
481
  }, i, e);
482
482
  }
@@ -500,19 +500,19 @@ class ye extends Z {
500
500
  const i = t.split(`
501
501
  `);
502
502
  let e = {};
503
- const n = /\s+/, c = {};
503
+ const r = /\s+/, c = {};
504
504
  for (let l = 0; l < i.length; l++) {
505
- let r = i[l];
506
- if (r = r.trim(), r.length === 0 || r.charAt(0) === "#")
505
+ let n = i[l];
506
+ if (n = n.trim(), n.length === 0 || n.charAt(0) === "#")
507
507
  continue;
508
- const o = r.indexOf(" ");
509
- let a = o >= 0 ? r.substring(0, o) : r;
508
+ const o = n.indexOf(" ");
509
+ let a = o >= 0 ? n.substring(0, o) : n;
510
510
  a = a.toLowerCase();
511
- let u = o >= 0 ? r.substring(o + 1) : "";
511
+ let u = o >= 0 ? n.substring(o + 1) : "";
512
512
  if (u = u.trim(), a === "newmtl")
513
513
  e = { name: u }, c[u] = e;
514
514
  else if (a === "ka" || a === "kd" || a === "ks" || a === "ke") {
515
- const d = u.split(n, 3);
515
+ const d = u.split(r, 3);
516
516
  e[a] = [parseFloat(d[0]), parseFloat(d[1]), parseFloat(d[2])];
517
517
  } else
518
518
  e[a] = u;
@@ -538,19 +538,19 @@ class ge {
538
538
  if (!this.options) return t;
539
539
  const s = {};
540
540
  for (const i in t) {
541
- const e = t[i], n = {};
542
- s[i] = n;
541
+ const e = t[i], r = {};
542
+ s[i] = r;
543
543
  for (const c in e) {
544
544
  let h = !0, l = e[c];
545
- const r = c.toLowerCase();
546
- switch (r) {
545
+ const n = c.toLowerCase();
546
+ switch (n) {
547
547
  case "kd":
548
548
  case "ka":
549
549
  case "ks":
550
550
  this.options && this.options.normalizeRGB && (l = [l[0] / 255, l[1] / 255, l[2] / 255]), this.options && this.options.ignoreZeroRGBs && l[0] === 0 && l[1] === 0 && l[2] === 0 && (h = !1);
551
551
  break;
552
552
  }
553
- h && (n[r] = l);
553
+ h && (r[n] = l);
554
554
  }
555
555
  }
556
556
  return s;
@@ -576,17 +576,17 @@ class ge {
576
576
  name: t,
577
577
  side: this.side
578
578
  };
579
- function n(h, l) {
579
+ function r(h, l) {
580
580
  return typeof l != "string" || l === "" ? "" : /^https?:\/\//i.test(l) ? l : h + l;
581
581
  }
582
582
  function c(h, l) {
583
583
  if (e[h]) return;
584
- const r = s.getTextureParams(l, e), o = s.loadTexture(n(s.baseUrl, r.url));
585
- o.repeat.copy(r.scale), o.offset.copy(r.offset), o.wrapS = s.wrap, o.wrapT = s.wrap, (h === "map" || h === "emissiveMap") && (o.colorSpace = S), e[h] = o;
584
+ const n = s.getTextureParams(l, e), o = s.loadTexture(r(s.baseUrl, n.url));
585
+ o.repeat.copy(n.scale), o.offset.copy(n.offset), o.wrapS = s.wrap, o.wrapT = s.wrap, (h === "map" || h === "emissiveMap") && (o.colorSpace = S), e[h] = o;
586
586
  }
587
587
  for (const h in i) {
588
588
  const l = i[h];
589
- let r;
589
+ let n;
590
590
  if (l !== "")
591
591
  switch (h.toLowerCase()) {
592
592
  // Ns is material specular exponent
@@ -625,28 +625,28 @@ class ge {
625
625
  e.shininess = parseFloat(l);
626
626
  break;
627
627
  case "d":
628
- r = parseFloat(l), r < 1 && (e.opacity = r, e.transparent = !0);
628
+ n = parseFloat(l), n < 1 && (e.opacity = n, e.transparent = !0);
629
629
  break;
630
630
  case "tr":
631
- r = parseFloat(l), this.options && this.options.invertTrProperty && (r = 1 - r), r > 0 && (e.opacity = 1 - r, e.transparent = !0);
631
+ n = parseFloat(l), this.options && this.options.invertTrProperty && (n = 1 - n), n > 0 && (e.opacity = 1 - n, e.transparent = !0);
632
632
  break;
633
633
  }
634
634
  }
635
- return this.materials[t] = new re(e), this.materials[t];
635
+ return this.materials[t] = new ne(e), this.materials[t];
636
636
  }
637
637
  getTextureParams(t, s) {
638
638
  const i = {
639
639
  scale: new $(1, 1),
640
640
  offset: new $(0, 0)
641
641
  }, e = t.split(/\s+/);
642
- let n;
643
- return n = e.indexOf("-bm"), n >= 0 && (s.bumpScale = parseFloat(e[n + 1]), e.splice(n, 2)), n = e.indexOf("-mm"), n >= 0 && (s.displacementBias = parseFloat(e[n + 1]), s.displacementScale = parseFloat(e[n + 2]), e.splice(n, 3)), n = e.indexOf("-s"), n >= 0 && (i.scale.set(parseFloat(e[n + 1]), parseFloat(e[n + 2])), e.splice(n, 4)), n = e.indexOf("-o"), n >= 0 && (i.offset.set(parseFloat(e[n + 1]), parseFloat(e[n + 2])), e.splice(n, 4)), i.url = e.join(" ").trim(), i;
642
+ let r;
643
+ return r = e.indexOf("-bm"), r >= 0 && (s.bumpScale = parseFloat(e[r + 1]), e.splice(r, 2)), r = e.indexOf("-mm"), r >= 0 && (s.displacementBias = parseFloat(e[r + 1]), s.displacementScale = parseFloat(e[r + 2]), e.splice(r, 3)), r = e.indexOf("-s"), r >= 0 && (i.scale.set(parseFloat(e[r + 1]), parseFloat(e[r + 2])), e.splice(r, 4)), r = e.indexOf("-o"), r >= 0 && (i.offset.set(parseFloat(e[r + 1]), parseFloat(e[r + 2])), e.splice(r, 4)), i.url = e.join(" ").trim(), i;
644
644
  }
645
- loadTexture(t, s, i, e, n) {
645
+ loadTexture(t, s, i, e, r) {
646
646
  const c = this.manager !== void 0 ? this.manager : ce;
647
647
  let h = c.getHandler(t);
648
648
  h === null && (h = new he(c)), h.setCrossOrigin && h.setCrossOrigin(this.crossOrigin);
649
- const l = h.load(t, i, e, n);
649
+ const l = h.load(t, i, e, r);
650
650
  return s !== void 0 && (l.mapping = s), l;
651
651
  }
652
652
  }
@@ -1,4 +1,4 @@
1
- "use strict";const o=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-BKflGJ6_.cjs");class H extends o.Loader{constructor(t){super(t)}load(t,s,i,e){const r=this,u=new o.FileLoader(this.manager);u.setPath(this.path),u.setResponseType("arraybuffer"),u.setRequestHeader(this.requestHeader),u.setWithCredentials(this.withCredentials),u.load(t,function(h){try{s(r.parse(h))}catch(c){e?e(c):console.error(c),r.manager.itemError(t)}},i,e)}parse(t){function s(n){const a=new DataView(n),l=32/8*3+32/8*3*3+16/8,f=a.getUint32(80,!0);if(80+32/8+f*l===a.byteLength)return!0;const g=[115,111,108,105,100];for(let p=0;p<5;p++)if(i(g,a,p))return!1;return!0}function i(n,a,l){for(let f=0,m=n.length;f<m;f++)if(n[f]!==a.getUint8(l+f))return!1;return!0}function e(n){const a=new DataView(n),l=a.getUint32(80,!0);let f,m,g,p=!1,b,x,w,j,F;for(let v=0;v<70;v++)a.getUint32(v,!1)==1129270351&&a.getUint8(v+4)==82&&a.getUint8(v+5)==61&&(p=!0,b=new Float32Array(l*3*3),x=a.getUint8(v+6)/255,w=a.getUint8(v+7)/255,j=a.getUint8(v+8)/255,F=a.getUint8(v+9)/255);const M=84,d=12*4+2,y=new o.BufferGeometry,A=new Float32Array(l*3*3),V=new Float32Array(l*3*3),S=new o.Color;for(let v=0;v<l;v++){const k=M+v*d,O=a.getFloat32(k,!0),U=a.getFloat32(k+4,!0),P=a.getFloat32(k+8,!0);if(p){const L=a.getUint16(k+48,!0);(L&32768)===0?(f=(L&31)/31,m=(L>>5&31)/31,g=(L>>10&31)/31):(f=x,m=w,g=j)}for(let L=1;L<=3;L++){const R=k+L*12,_=v*3*3+(L-1)*3;A[_]=a.getFloat32(R,!0),A[_+1]=a.getFloat32(R+4,!0),A[_+2]=a.getFloat32(R+8,!0),V[_]=O,V[_+1]=U,V[_+2]=P,p&&(S.setRGB(f,m,g,o.SRGBColorSpace),b[_]=S.r,b[_+1]=S.g,b[_+2]=S.b)}}return y.setAttribute("position",new o.BufferAttribute(A,3)),y.setAttribute("normal",new o.BufferAttribute(V,3)),p&&(y.setAttribute("color",new o.BufferAttribute(b,3)),y.hasColors=!0,y.alpha=F),y}function r(n){const a=new o.BufferGeometry,l=/solid([\s\S]*?)endsolid/g,f=/facet([\s\S]*?)endfacet/g,m=/solid\s(.+)/;let g=0;const p=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,b=new RegExp("vertex"+p+p+p,"g"),x=new RegExp("normal"+p+p+p,"g"),w=[],j=[],F=[],M=new o.Vector3;let d,y=0,A=0,V=0;for(;(d=l.exec(n))!==null;){A=V;const S=d[0],v=(d=m.exec(S))!==null?d[1]:"";for(F.push(v);(d=f.exec(S))!==null;){let U=0,P=0;const L=d[0];for(;(d=x.exec(L))!==null;)M.x=parseFloat(d[1]),M.y=parseFloat(d[2]),M.z=parseFloat(d[3]),P++;for(;(d=b.exec(L))!==null;)w.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3])),j.push(M.x,M.y,M.z),U++,V++;P!==1&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+g),U!==3&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+g),g++}const k=A,O=V-A;a.userData.groupNames=F,a.addGroup(k,O,y),y++}return a.setAttribute("position",new o.Float32BufferAttribute(w,3)),a.setAttribute("normal",new o.Float32BufferAttribute(j,3)),a}function u(n){return typeof n!="string"?new TextDecoder().decode(n):n}function h(n){if(typeof n=="string"){const a=new Uint8Array(n.length);for(let l=0;l<n.length;l++)a[l]=n.charCodeAt(l)&255;return a.buffer||a}else return n}const c=h(t);return s(c)?e(c):r(u(t))}}const N=/^[og]\s*(.+)?/,W=/^mtllib /,q=/^usemtl /,J=/^usemap /,G=/\s+/,T=new o.Vector3,z=new o.Vector3,D=new o.Vector3,E=new o.Vector3,C=new o.Vector3,I=new o.Color;function Z(){const B={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(t,s){if(this.object&&this.object.fromDeclaration===!1){this.object.name=t,this.object.fromDeclaration=s!==!1;return}const i=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:s!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,r){const u=this._finalize(!1);u&&(u.inherited||u.groupCount<=0)&&this.materials.splice(u.index,1);const h={index:this.materials.length,name:e||"",mtllib:Array.isArray(r)&&r.length>0?r[r.length-1]:"",smooth:u!==void 0?u.smooth:this.smooth,groupStart:u!==void 0?u.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(c){const n={index:typeof c=="number"?c:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return n.clone=this.clone.bind(n),n}};return this.materials.push(h),h},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const r=this.currentMaterial();if(r&&r.groupEnd===-1&&(r.groupEnd=this.geometry.vertices.length/3,r.groupCount=r.groupEnd-r.groupStart,r.inherited=!1),e&&this.materials.length>1)for(let u=this.materials.length-1;u>=0;u--)this.materials[u].groupCount<=0&&this.materials.splice(u,1);return e&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),r}},i&&i.name&&typeof i.clone=="function"){const e=i.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/3)*3},parseNormalIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/3)*3},parseUVIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/2)*2},addVertex:function(t,s,i){const e=this.vertices,r=this.object.geometry.vertices;r.push(e[t+0],e[t+1],e[t+2]),r.push(e[s+0],e[s+1],e[s+2]),r.push(e[i+0],e[i+1],e[i+2])},addVertexPoint:function(t){const s=this.vertices;this.object.geometry.vertices.push(s[t+0],s[t+1],s[t+2])},addVertexLine:function(t){const s=this.vertices;this.object.geometry.vertices.push(s[t+0],s[t+1],s[t+2])},addNormal:function(t,s,i){const e=this.normals,r=this.object.geometry.normals;r.push(e[t+0],e[t+1],e[t+2]),r.push(e[s+0],e[s+1],e[s+2]),r.push(e[i+0],e[i+1],e[i+2])},addFaceNormal:function(t,s,i){const e=this.vertices,r=this.object.geometry.normals;T.fromArray(e,t),z.fromArray(e,s),D.fromArray(e,i),C.subVectors(D,z),E.subVectors(T,z),C.cross(E),C.normalize(),r.push(C.x,C.y,C.z),r.push(C.x,C.y,C.z),r.push(C.x,C.y,C.z)},addColor:function(t,s,i){const e=this.colors,r=this.object.geometry.colors;e[t]!==void 0&&r.push(e[t+0],e[t+1],e[t+2]),e[s]!==void 0&&r.push(e[s+0],e[s+1],e[s+2]),e[i]!==void 0&&r.push(e[i+0],e[i+1],e[i+2])},addUV:function(t,s,i){const e=this.uvs,r=this.object.geometry.uvs;r.push(e[t+0],e[t+1]),r.push(e[s+0],e[s+1]),r.push(e[i+0],e[i+1])},addDefaultUV:function(){const t=this.object.geometry.uvs;t.push(0,0),t.push(0,0),t.push(0,0)},addUVLine:function(t){const s=this.uvs;this.object.geometry.uvs.push(s[t+0],s[t+1])},addFace:function(t,s,i,e,r,u,h,c,n){const a=this.vertices.length;let l=this.parseVertexIndex(t,a),f=this.parseVertexIndex(s,a),m=this.parseVertexIndex(i,a);if(this.addVertex(l,f,m),this.addColor(l,f,m),h!==void 0&&h!==""){const g=this.normals.length;l=this.parseNormalIndex(h,g),f=this.parseNormalIndex(c,g),m=this.parseNormalIndex(n,g),this.addNormal(l,f,m)}else this.addFaceNormal(l,f,m);if(e!==void 0&&e!==""){const g=this.uvs.length;l=this.parseUVIndex(e,g),f=this.parseUVIndex(r,g),m=this.parseUVIndex(u,g),this.addUV(l,f,m),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(t){this.object.geometry.type="Points";const s=this.vertices.length;for(let i=0,e=t.length;i<e;i++){const r=this.parseVertexIndex(t[i],s);this.addVertexPoint(r),this.addColor(r)}},addLineGeometry:function(t,s){this.object.geometry.type="Line";const i=this.vertices.length,e=this.uvs.length;for(let r=0,u=t.length;r<u;r++)this.addVertexLine(this.parseVertexIndex(t[r],i));for(let r=0,u=s.length;r<u;r++)this.addUVLine(this.parseUVIndex(s[r],e))}};return B.startObject("",!1),B}class X extends o.Loader{constructor(t){super(t),this.materials=null}load(t,s,i,e){const r=this,u=new o.FileLoader(this.manager);u.setPath(this.path),u.setRequestHeader(this.requestHeader),u.setWithCredentials(this.withCredentials),u.load(t,function(h){try{s(r.parse(h))}catch(c){e?e(c):console.error(c),r.manager.itemError(t)}},i,e)}setMaterials(t){return this.materials=t,this}parse(t){const s=new Z;t.indexOf(`\r
1
+ "use strict";const o=require("./index.vue_vue_type_style_index_0_scoped_6b92e250_lang-C4-Boen2.cjs");class H extends o.Loader{constructor(t){super(t)}load(t,s,i,e){const r=this,u=new o.FileLoader(this.manager);u.setPath(this.path),u.setResponseType("arraybuffer"),u.setRequestHeader(this.requestHeader),u.setWithCredentials(this.withCredentials),u.load(t,function(h){try{s(r.parse(h))}catch(c){e?e(c):console.error(c),r.manager.itemError(t)}},i,e)}parse(t){function s(n){const a=new DataView(n),l=32/8*3+32/8*3*3+16/8,f=a.getUint32(80,!0);if(80+32/8+f*l===a.byteLength)return!0;const g=[115,111,108,105,100];for(let p=0;p<5;p++)if(i(g,a,p))return!1;return!0}function i(n,a,l){for(let f=0,m=n.length;f<m;f++)if(n[f]!==a.getUint8(l+f))return!1;return!0}function e(n){const a=new DataView(n),l=a.getUint32(80,!0);let f,m,g,p=!1,b,x,w,j,F;for(let v=0;v<70;v++)a.getUint32(v,!1)==1129270351&&a.getUint8(v+4)==82&&a.getUint8(v+5)==61&&(p=!0,b=new Float32Array(l*3*3),x=a.getUint8(v+6)/255,w=a.getUint8(v+7)/255,j=a.getUint8(v+8)/255,F=a.getUint8(v+9)/255);const M=84,d=12*4+2,y=new o.BufferGeometry,A=new Float32Array(l*3*3),V=new Float32Array(l*3*3),S=new o.Color;for(let v=0;v<l;v++){const k=M+v*d,O=a.getFloat32(k,!0),U=a.getFloat32(k+4,!0),P=a.getFloat32(k+8,!0);if(p){const L=a.getUint16(k+48,!0);(L&32768)===0?(f=(L&31)/31,m=(L>>5&31)/31,g=(L>>10&31)/31):(f=x,m=w,g=j)}for(let L=1;L<=3;L++){const R=k+L*12,_=v*3*3+(L-1)*3;A[_]=a.getFloat32(R,!0),A[_+1]=a.getFloat32(R+4,!0),A[_+2]=a.getFloat32(R+8,!0),V[_]=O,V[_+1]=U,V[_+2]=P,p&&(S.setRGB(f,m,g,o.SRGBColorSpace),b[_]=S.r,b[_+1]=S.g,b[_+2]=S.b)}}return y.setAttribute("position",new o.BufferAttribute(A,3)),y.setAttribute("normal",new o.BufferAttribute(V,3)),p&&(y.setAttribute("color",new o.BufferAttribute(b,3)),y.hasColors=!0,y.alpha=F),y}function r(n){const a=new o.BufferGeometry,l=/solid([\s\S]*?)endsolid/g,f=/facet([\s\S]*?)endfacet/g,m=/solid\s(.+)/;let g=0;const p=/[\s]+([+-]?(?:\d*)(?:\.\d*)?(?:[eE][+-]?\d+)?)/.source,b=new RegExp("vertex"+p+p+p,"g"),x=new RegExp("normal"+p+p+p,"g"),w=[],j=[],F=[],M=new o.Vector3;let d,y=0,A=0,V=0;for(;(d=l.exec(n))!==null;){A=V;const S=d[0],v=(d=m.exec(S))!==null?d[1]:"";for(F.push(v);(d=f.exec(S))!==null;){let U=0,P=0;const L=d[0];for(;(d=x.exec(L))!==null;)M.x=parseFloat(d[1]),M.y=parseFloat(d[2]),M.z=parseFloat(d[3]),P++;for(;(d=b.exec(L))!==null;)w.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3])),j.push(M.x,M.y,M.z),U++,V++;P!==1&&console.error("THREE.STLLoader: Something isn't right with the normal of face number "+g),U!==3&&console.error("THREE.STLLoader: Something isn't right with the vertices of face number "+g),g++}const k=A,O=V-A;a.userData.groupNames=F,a.addGroup(k,O,y),y++}return a.setAttribute("position",new o.Float32BufferAttribute(w,3)),a.setAttribute("normal",new o.Float32BufferAttribute(j,3)),a}function u(n){return typeof n!="string"?new TextDecoder().decode(n):n}function h(n){if(typeof n=="string"){const a=new Uint8Array(n.length);for(let l=0;l<n.length;l++)a[l]=n.charCodeAt(l)&255;return a.buffer||a}else return n}const c=h(t);return s(c)?e(c):r(u(t))}}const N=/^[og]\s*(.+)?/,W=/^mtllib /,q=/^usemtl /,J=/^usemap /,G=/\s+/,T=new o.Vector3,z=new o.Vector3,D=new o.Vector3,E=new o.Vector3,C=new o.Vector3,I=new o.Color;function Z(){const B={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materials:{},materialLibraries:[],startObject:function(t,s){if(this.object&&this.object.fromDeclaration===!1){this.object.name=t,this.object.fromDeclaration=s!==!1;return}const i=this.object&&typeof this.object.currentMaterial=="function"?this.object.currentMaterial():void 0;if(this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:s!==!1,geometry:{vertices:[],normals:[],colors:[],uvs:[],hasUVIndices:!1},materials:[],smooth:!0,startMaterial:function(e,r){const u=this._finalize(!1);u&&(u.inherited||u.groupCount<=0)&&this.materials.splice(u.index,1);const h={index:this.materials.length,name:e||"",mtllib:Array.isArray(r)&&r.length>0?r[r.length-1]:"",smooth:u!==void 0?u.smooth:this.smooth,groupStart:u!==void 0?u.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(c){const n={index:typeof c=="number"?c:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return n.clone=this.clone.bind(n),n}};return this.materials.push(h),h},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(e){const r=this.currentMaterial();if(r&&r.groupEnd===-1&&(r.groupEnd=this.geometry.vertices.length/3,r.groupCount=r.groupEnd-r.groupStart,r.inherited=!1),e&&this.materials.length>1)for(let u=this.materials.length-1;u>=0;u--)this.materials[u].groupCount<=0&&this.materials.splice(u,1);return e&&this.materials.length===0&&this.materials.push({name:"",smooth:this.smooth}),r}},i&&i.name&&typeof i.clone=="function"){const e=i.clone(0);e.inherited=!0,this.object.materials.push(e)}this.objects.push(this.object)},finalize:function(){this.object&&typeof this.object._finalize=="function"&&this.object._finalize(!0)},parseVertexIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/3)*3},parseNormalIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/3)*3},parseUVIndex:function(t,s){const i=parseInt(t,10);return(i>=0?i-1:i+s/2)*2},addVertex:function(t,s,i){const e=this.vertices,r=this.object.geometry.vertices;r.push(e[t+0],e[t+1],e[t+2]),r.push(e[s+0],e[s+1],e[s+2]),r.push(e[i+0],e[i+1],e[i+2])},addVertexPoint:function(t){const s=this.vertices;this.object.geometry.vertices.push(s[t+0],s[t+1],s[t+2])},addVertexLine:function(t){const s=this.vertices;this.object.geometry.vertices.push(s[t+0],s[t+1],s[t+2])},addNormal:function(t,s,i){const e=this.normals,r=this.object.geometry.normals;r.push(e[t+0],e[t+1],e[t+2]),r.push(e[s+0],e[s+1],e[s+2]),r.push(e[i+0],e[i+1],e[i+2])},addFaceNormal:function(t,s,i){const e=this.vertices,r=this.object.geometry.normals;T.fromArray(e,t),z.fromArray(e,s),D.fromArray(e,i),C.subVectors(D,z),E.subVectors(T,z),C.cross(E),C.normalize(),r.push(C.x,C.y,C.z),r.push(C.x,C.y,C.z),r.push(C.x,C.y,C.z)},addColor:function(t,s,i){const e=this.colors,r=this.object.geometry.colors;e[t]!==void 0&&r.push(e[t+0],e[t+1],e[t+2]),e[s]!==void 0&&r.push(e[s+0],e[s+1],e[s+2]),e[i]!==void 0&&r.push(e[i+0],e[i+1],e[i+2])},addUV:function(t,s,i){const e=this.uvs,r=this.object.geometry.uvs;r.push(e[t+0],e[t+1]),r.push(e[s+0],e[s+1]),r.push(e[i+0],e[i+1])},addDefaultUV:function(){const t=this.object.geometry.uvs;t.push(0,0),t.push(0,0),t.push(0,0)},addUVLine:function(t){const s=this.uvs;this.object.geometry.uvs.push(s[t+0],s[t+1])},addFace:function(t,s,i,e,r,u,h,c,n){const a=this.vertices.length;let l=this.parseVertexIndex(t,a),f=this.parseVertexIndex(s,a),m=this.parseVertexIndex(i,a);if(this.addVertex(l,f,m),this.addColor(l,f,m),h!==void 0&&h!==""){const g=this.normals.length;l=this.parseNormalIndex(h,g),f=this.parseNormalIndex(c,g),m=this.parseNormalIndex(n,g),this.addNormal(l,f,m)}else this.addFaceNormal(l,f,m);if(e!==void 0&&e!==""){const g=this.uvs.length;l=this.parseUVIndex(e,g),f=this.parseUVIndex(r,g),m=this.parseUVIndex(u,g),this.addUV(l,f,m),this.object.geometry.hasUVIndices=!0}else this.addDefaultUV()},addPointGeometry:function(t){this.object.geometry.type="Points";const s=this.vertices.length;for(let i=0,e=t.length;i<e;i++){const r=this.parseVertexIndex(t[i],s);this.addVertexPoint(r),this.addColor(r)}},addLineGeometry:function(t,s){this.object.geometry.type="Line";const i=this.vertices.length,e=this.uvs.length;for(let r=0,u=t.length;r<u;r++)this.addVertexLine(this.parseVertexIndex(t[r],i));for(let r=0,u=s.length;r<u;r++)this.addUVLine(this.parseUVIndex(s[r],e))}};return B.startObject("",!1),B}class X extends o.Loader{constructor(t){super(t),this.materials=null}load(t,s,i,e){const r=this,u=new o.FileLoader(this.manager);u.setPath(this.path),u.setRequestHeader(this.requestHeader),u.setWithCredentials(this.withCredentials),u.load(t,function(h){try{s(r.parse(h))}catch(c){e?e(c):console.error(c),r.manager.itemError(t)}},i,e)}setMaterials(t){return this.materials=t,this}parse(t){const s=new Z;t.indexOf(`\r
2
2
  `)!==-1&&(t=t.replace(/\r\n/g,`
3
3
  `)),t.indexOf(`\\
4
4
  `)!==-1&&(t=t.replace(/\\\n/g,""));const i=t.split(`