ss-component-new 1.3.21 → 1.3.22

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 (98) hide show
  1. package/dist/{MTLLoader-YtHulNzU.cjs → MTLLoader-C_XCtjSi.cjs} +1 -1
  2. package/dist/{MTLLoader-CBRDqlja.js → MTLLoader-YR-bfx1D.js} +24 -24
  3. package/dist/{OrbitControls-CKR1ruPg.js → OrbitControls-BGsXD_A7.js} +1 -1
  4. package/dist/{OrbitControls-Bwzpfq8_.cjs → OrbitControls-CktvE4iE.cjs} +1 -1
  5. package/dist/{URDFLoader-DIvTWPgk.cjs → URDFLoader-10oVp_KW.cjs} +1 -1
  6. package/dist/{URDFLoader-D-0fnLWu.js → URDFLoader-m1gMdnSQ.js} +189 -189
  7. package/dist/{animationData-BBVNOO1d.js → animationData-CpK8d_Vm.js} +19 -19
  8. package/dist/{animationData-krmt7b15.cjs → animationData-Cr2ra7rm.cjs} +1 -1
  9. package/dist/{array-AvrqnNoJ.js → array-BmfCVZvi.js} +46 -46
  10. package/dist/{array-CMW4ey7w.cjs → array-COho2hZW.cjs} +1 -1
  11. package/dist/{iconfont-CSj9Ypb0.js → iconfont-0yJB130V.js} +29 -29
  12. package/dist/{iconfont-CUPzGSlt.cjs → iconfont-DsF7kuG5.cjs} +1 -1
  13. package/dist/{index-VF71yUkZ.js → index-5YbplPvi.js} +2 -2
  14. package/dist/{index-I09e-7nF.js → index-76YbJdM8.js} +2 -2
  15. package/dist/{index-BWb8IVmh.js → index-98Ogvz1v.js} +7 -7
  16. package/dist/{index-B7VKjUP4.cjs → index-B4LIBl-a.cjs} +1 -1
  17. package/dist/{index-NB4ig2Zg.js → index-B52TVCSg.js} +8 -8
  18. package/dist/{index-B1Zztqcr.cjs → index-BEBJWYp0.cjs} +1 -1
  19. package/dist/{index-Dx5UzB8t.js → index-BHjvJiFA.js} +5 -5
  20. package/dist/{index-BLxE_tkf.cjs → index-BJPBBWWH.cjs} +1 -1
  21. package/dist/{index-DEF8zy07.js → index-BLcFvu4u.js} +3 -3
  22. package/dist/{index-BPstNH4r.cjs → index-BPlHuTxE.cjs} +4 -4
  23. package/dist/index-BPu9kWR3.js +11883 -0
  24. package/dist/{index-snyYrfwK.cjs → index-BRJ1_Tfi.cjs} +1 -1
  25. package/dist/{index-vCTVD7cV.cjs → index-BWCv7zxy.cjs} +1 -1
  26. package/dist/{index-DWfxnemZ.js → index-BXUByyre.js} +2 -2
  27. package/dist/{index-DUt_5IeJ.js → index-Bnp6YMyE.js} +1461 -1455
  28. package/dist/{index-CGrJyKvT.cjs → index-BxMPyw-Y.cjs} +1 -1
  29. package/dist/{index-DWm4nu2G.cjs → index-CBqGrYej.cjs} +1 -1
  30. package/dist/{index-Dm67w52u.cjs → index-CC9drriV.cjs} +1 -1
  31. package/dist/{index-sMsCzNtW.js → index-COQpDVsv.js} +1570 -1535
  32. package/dist/{index-C4Ohl9vT.js → index-CRbfwrdV.js} +41 -41
  33. package/dist/{index-CuvQZsbE.cjs → index-CVXrjDFh.cjs} +1 -1
  34. package/dist/{index-CEzEaG0d.js → index-CXiOVgoz.js} +1 -1
  35. package/dist/{index-BzGHYxs2.cjs → index-CbBY3TG6.cjs} +1 -1
  36. package/dist/{index-DuGfBNM6.cjs → index-CgFSiyRX.cjs} +1 -1
  37. package/dist/{index-Cu-8pzHm.js → index-Chxt6xBv.js} +5 -5
  38. package/dist/{index-CIrXKpNl.cjs → index-Cjqg29ul.cjs} +1 -1
  39. package/dist/index-CpbBe_mV.cjs +1 -0
  40. package/dist/index-CuAHwR97.cjs +1 -0
  41. package/dist/{index-DHrb-D39.js → index-D-kqGA71.js} +7 -7
  42. package/dist/{index-euZWOilV.cjs → index-D3ixok8t.cjs} +1 -1
  43. package/dist/{index-D39AtL48.js → index-D8HD14bz.js} +1 -1
  44. package/dist/{index-DABBYx7H.js → index-DBh5Z73C.js} +1 -1
  45. package/dist/index-DIWralYr.js +67 -0
  46. package/dist/{index-C8fMwErX.cjs → index-DRTxe12U.cjs} +13 -13
  47. package/dist/{index-BFKUrR1o.cjs → index-DS-YTop9.cjs} +1 -1
  48. package/dist/{index-Cw4Pm2PQ.cjs → index-DU9e5EhS.cjs} +1 -1
  49. package/dist/{index-DN2waPoj.cjs → index-D_Yhv_HV.cjs} +1 -1
  50. package/dist/{index-d6tZBTSp.cjs → index-DaIE9uY1.cjs} +1 -1
  51. package/dist/{index-BT6DSXQW.js → index-Ddoq7kRQ.js} +9 -9
  52. package/dist/{index-CZKslfuq.js → index-Du1HuKYs.js} +2 -2
  53. package/dist/{index-Cxl9cpua.js → index-HgbCIoqo.js} +2 -2
  54. package/dist/index-MK7NdOmS.cjs +1 -0
  55. package/dist/{index-C7WQ1ky5.js → index-NaWMtdUV.js} +2 -2
  56. package/dist/{index-DTttfGgm.js → index-OX4hSXv6.js} +7 -7
  57. package/dist/{index-DXiGkaWi.cjs → index-TMUwtzAm.cjs} +1 -1
  58. package/dist/{index-DGRL8SEt.js → index-Va8AOLWi.js} +1 -1
  59. package/dist/{index-Bjsm8c8q.cjs → index-c4SVf22I.cjs} +1 -1
  60. package/dist/{index-CppJQDiT.js → index-gfdgTjvQ.js} +3 -3
  61. package/dist/{index-CEq2QX9L.js → index-nr6V1FzX.js} +7 -7
  62. package/dist/{index-ovqPs7X7.cjs → index-oMihgN5x.cjs} +1 -1
  63. package/dist/{index-DTuVgYze.cjs → index-r6HP72OA.cjs} +1 -1
  64. package/dist/{index-CBtxzh-u.js → index-tVVurbFz.js} +3 -3
  65. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-n7J00Lcz.js → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js} +29074 -28413
  66. package/dist/{index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-b_9vxv2X.cjs → index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-ZMwIbmlN.cjs} +392 -382
  67. package/dist/{index.vue_vue_type_style_index_1_lang-DDedRKQj.cjs → index.vue_vue_type_style_index_1_lang--4T7j9qz.cjs} +1 -1
  68. package/dist/{index.vue_vue_type_style_index_1_lang-q8rMzh6x.js → index.vue_vue_type_style_index_1_lang-CNh42_ZH.js} +75 -75
  69. package/dist/{main-CmrBxQsF.cjs → main-BH4e9Of0.cjs} +1 -1
  70. package/dist/{main-ZLB6NnLd.js → main-DU0KTY9Z.js} +4 -4
  71. package/dist/{menuIndex-8RF_0N_y.cjs → menuIndex-D52EAwtb.cjs} +1 -1
  72. package/dist/{menuIndex-BwWrdu20.js → menuIndex-DYaogp2R.js} +1 -1
  73. package/dist/ss-component.cjs +1 -1
  74. package/dist/ss-component.js +10 -10
  75. package/dist/ss-component2.cjs +1 -1
  76. package/dist/ss-component2.js +11 -11
  77. package/dist/{threeModel-DpvPVwlN.js → threeModel-AsOY6mTs.js} +45 -45
  78. package/dist/{threeModel-D5UnPmV3.cjs → threeModel-rcCyHi_m.cjs} +1 -1
  79. package/dist/{threePreview-XQG7sQy9.js → threePreview-CkKl3frr.js} +125 -125
  80. package/dist/{threePreview-CBFQtSls.cjs → threePreview-DOD9HOZn.cjs} +1 -1
  81. package/dist/{threeSceneView-D97Sc8hd.cjs → threeSceneView-DZvOLWv6.cjs} +1 -1
  82. package/dist/{threeSceneView-CdZFIImJ.js → threeSceneView-DlL9pZlj.js} +38 -38
  83. package/dist/{threeSceneViewForCPMPIP-4Cjv1ZS4.cjs → threeSceneViewForCPMPIP-CZvKvfDx.cjs} +1 -1
  84. package/dist/{threeSceneViewForCPMPIP-DH__ogKh.js → threeSceneViewForCPMPIP-DB0Eczbs.js} +8 -8
  85. package/dist/{threeTrackPathView-s17KavQX.cjs → threeTrackPathView-DgyAEYfV.cjs} +1 -1
  86. package/dist/{threeTrackPathView-BFQXaw-a.js → threeTrackPathView-Eb1bvUXJ.js} +78 -78
  87. package/dist/{threeViewerHost-C39tiQj-.cjs → threeViewerHost-BMU1tg9c.cjs} +1 -1
  88. package/dist/{threeViewerHost-BgPjA_94.js → threeViewerHost-Bdzv9iPb.js} +11 -11
  89. package/dist/{urdfTree-HdeBG5se.cjs → urdfTree-CoK2r17Y.cjs} +1 -1
  90. package/dist/{urdfTree-DM6uTeXj.js → urdfTree-hLtm0aFY.js} +10 -10
  91. package/dist/{workpieceTreePanel-C5qUdbmi.js → workpieceTreePanel-Ne_ACq86.js} +63 -63
  92. package/dist/{workpieceTreePanel-BKOHDm85.cjs → workpieceTreePanel-mWvCQyyw.cjs} +1 -1
  93. package/package.json +1 -1
  94. package/dist/index-BteE57Nz.js +0 -103
  95. package/dist/index-C8FzkPpO.cjs +0 -1
  96. package/dist/index-CmctAnWR.cjs +0 -11
  97. package/dist/index-CsbDyIb2.cjs +0 -1
  98. package/dist/index-DdXtt1dh.js +0 -12544
@@ -1,5 +1,5 @@
1
- import { S as Ln } from "./MTLLoader-CBRDqlja.js";
2
- import { bI as vn, b8 as Rn, aK as lt, aY as At, aL as In, V as pe, a5 as he, bi as dt, K as Mn, b5 as Tt, L as ut, a6 as Le, bp as ft, bJ as Sn, a1 as ve, by as Se, O as me, a_ as On, a2 as Gn, aU as Pn, P as ht, bn as qn, Z as Un, b0 as jn, a0 as Fn, _ as Hn, aw as pt, b2 as Et, bv as mt, bx as Bn, az as zn, aM as ye, bq as Dn, aS as bt, bk as Vn, Y as Ce, aB as Jn, bl as Kn, bo as Wn, be as Oe, bg as gt, bK as Yn, bL as Xn, bM as yt, bN as $n, bO as Zn, bP as Qn, bQ as ei, aQ as ti, bR as ni, bS as ii, a4 as si } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-n7J00Lcz.js";
1
+ import { S as Ln } from "./MTLLoader-YR-bfx1D.js";
2
+ import { bO as vn, be as Rn, aQ as lt, b2 as At, aR as In, V as pe, aa as he, bo as dt, P as Mn, bb as Tt, Q as ut, ab as Le, bv as ft, bP as Sn, a6 as ve, bE as Se, X as me, b4 as On, a7 as Gn, a_ as Pn, R as ht, bt as qn, a2 as Fn, b6 as Un, a5 as jn, a3 as Hn, aC as pt, b8 as Et, bB as mt, bD as Bn, aF as Dn, aS as ye, bw as zn, aY as bt, bq as Vn, a1 as Ce, aH as Jn, br as Wn, bu as Kn, bk as Oe, bm as gt, bQ as Yn, bR as Xn, bS as yt, bT as $n, bU as Qn, bV as Zn, bW as ei, aW as ti, bX as ni, bY as ii, a9 as si } from "./index.vue_vue_type_style_index_0_scoped_0f027c8c_lang-1pEFQ04s.js";
3
3
  class wt extends vn {
4
4
  /**
5
5
  * Constructs a new TGA loader.
@@ -16,7 +16,7 @@ class wt extends vn {
16
16
  * @return {DataTextureLoader~TexData} An object representing the parsed texture data.
17
17
  */
18
18
  parse(O) {
19
- function Q(u) {
19
+ function Z(u) {
20
20
  switch (u.image_type) {
21
21
  // check indexed type
22
22
  case Ne:
@@ -44,11 +44,11 @@ class wt extends vn {
44
44
  if (u.pixel_size !== 8 && u.pixel_size !== 16 && u.pixel_size !== 24 && u.pixel_size !== 32)
45
45
  throw new Error("THREE.TGALoader: Invalid pixel size " + u.pixel_size);
46
46
  }
47
- function R(u, W, D, B, X) {
48
- let j, z;
49
- const _ = D.pixel_size >> 3, x = D.width * D.height * _;
50
- if (W && (z = X.subarray(B, B += D.colormap_length * (D.colormap_size >> 3))), u) {
51
- j = new Uint8Array(x);
47
+ function R(u, K, z, B, X) {
48
+ let U, D;
49
+ const _ = z.pixel_size >> 3, x = z.width * z.height * _;
50
+ if (K && (D = X.subarray(B, B += z.colormap_length * (z.colormap_size >> 3))), u) {
51
+ U = new Uint8Array(x);
52
52
  let N, f, A, V = 0;
53
53
  const le = new Uint8Array(_);
54
54
  for (; V < x; )
@@ -56,96 +56,96 @@ class wt extends vn {
56
56
  for (A = 0; A < _; ++A)
57
57
  le[A] = X[B++];
58
58
  for (A = 0; A < f; ++A)
59
- j.set(le, V + A * _);
59
+ U.set(le, V + A * _);
60
60
  V += _ * f;
61
61
  } else {
62
62
  for (f *= _, A = 0; A < f; ++A)
63
- j[V + A] = X[B++];
63
+ U[V + A] = X[B++];
64
64
  V += f;
65
65
  }
66
66
  } else
67
- j = X.subarray(
67
+ U = X.subarray(
68
68
  B,
69
- B += W ? D.width * D.height : x
69
+ B += K ? z.width * z.height : x
70
70
  );
71
71
  return {
72
- pixel_data: j,
73
- palettes: z
72
+ pixel_data: U,
73
+ palettes: D
74
74
  };
75
75
  }
76
- function se(u, W, D, B, X, j, z, _, x) {
76
+ function se(u, K, z, B, X, U, D, _, x) {
77
77
  const N = x;
78
78
  let f, A = 0, V, le;
79
79
  const Ae = C.width;
80
- for (le = W; le !== B; le += D)
81
- for (V = X; V !== z; V += j, A++)
80
+ for (le = K; le !== B; le += z)
81
+ for (V = X; V !== D; V += U, A++)
82
82
  f = _[A], u[(V + Ae * le) * 4 + 3] = 255, u[(V + Ae * le) * 4 + 2] = N[f * 3 + 0], u[(V + Ae * le) * 4 + 1] = N[f * 3 + 1], u[(V + Ae * le) * 4 + 0] = N[f * 3 + 2];
83
83
  return u;
84
84
  }
85
- function v(u, W, D, B, X, j, z, _) {
85
+ function v(u, K, z, B, X, U, D, _) {
86
86
  let x, N = 0, f, A;
87
87
  const V = C.width;
88
- for (A = W; A !== B; A += D)
89
- for (f = X; f !== z; f += j, N += 2)
88
+ for (A = K; A !== B; A += z)
89
+ for (f = X; f !== D; f += U, N += 2)
90
90
  x = _[N + 0] + (_[N + 1] << 8), u[(f + V * A) * 4 + 0] = (x & 31744) >> 7, u[(f + V * A) * 4 + 1] = (x & 992) >> 2, u[(f + V * A) * 4 + 2] = (x & 31) << 3, u[(f + V * A) * 4 + 3] = x & 32768 ? 0 : 255;
91
91
  return u;
92
92
  }
93
- function oe(u, W, D, B, X, j, z, _) {
93
+ function oe(u, K, z, B, X, U, D, _) {
94
94
  let x = 0, N, f;
95
95
  const A = C.width;
96
- for (f = W; f !== B; f += D)
97
- for (N = X; N !== z; N += j, x += 3)
96
+ for (f = K; f !== B; f += z)
97
+ for (N = X; N !== D; N += U, x += 3)
98
98
  u[(N + A * f) * 4 + 3] = 255, u[(N + A * f) * 4 + 2] = _[x + 0], u[(N + A * f) * 4 + 1] = _[x + 1], u[(N + A * f) * 4 + 0] = _[x + 2];
99
99
  return u;
100
100
  }
101
- function I(u, W, D, B, X, j, z, _) {
101
+ function I(u, K, z, B, X, U, D, _) {
102
102
  let x = 0, N, f;
103
103
  const A = C.width;
104
- for (f = W; f !== B; f += D)
105
- for (N = X; N !== z; N += j, x += 4)
104
+ for (f = K; f !== B; f += z)
105
+ for (N = X; N !== D; N += U, x += 4)
106
106
  u[(N + A * f) * 4 + 2] = _[x + 0], u[(N + A * f) * 4 + 1] = _[x + 1], u[(N + A * f) * 4 + 0] = _[x + 2], u[(N + A * f) * 4 + 3] = _[x + 3];
107
107
  return u;
108
108
  }
109
- function Y(u, W, D, B, X, j, z, _) {
109
+ function Y(u, K, z, B, X, U, D, _) {
110
110
  let x, N = 0, f, A;
111
111
  const V = C.width;
112
- for (A = W; A !== B; A += D)
113
- for (f = X; f !== z; f += j, N++)
112
+ for (A = K; A !== B; A += z)
113
+ for (f = X; f !== D; f += U, N++)
114
114
  x = _[N], u[(f + V * A) * 4 + 0] = x, u[(f + V * A) * 4 + 1] = x, u[(f + V * A) * 4 + 2] = x, u[(f + V * A) * 4 + 3] = 255;
115
115
  return u;
116
116
  }
117
- function ne(u, W, D, B, X, j, z, _) {
117
+ function ne(u, K, z, B, X, U, D, _) {
118
118
  let x = 0, N, f;
119
119
  const A = C.width;
120
- for (f = W; f !== B; f += D)
121
- for (N = X; N !== z; N += j, x += 2)
120
+ for (f = K; f !== B; f += z)
121
+ for (N = X; N !== D; N += U, x += 2)
122
122
  u[(N + A * f) * 4 + 0] = _[x + 0], u[(N + A * f) * 4 + 1] = _[x + 0], u[(N + A * f) * 4 + 2] = _[x + 0], u[(N + A * f) * 4 + 3] = _[x + 1];
123
123
  return u;
124
124
  }
125
- function we(u, W, D, B, X) {
126
- let j, z, _, x, N, f;
125
+ function we(u, K, z, B, X) {
126
+ let U, D, _, x, N, f;
127
127
  switch ((C.flags & M) >> q) {
128
128
  default:
129
129
  case J:
130
- j = 0, _ = 1, N = W, z = 0, x = 1, f = D;
130
+ U = 0, _ = 1, N = K, D = 0, x = 1, f = z;
131
131
  break;
132
- case F:
133
- j = 0, _ = 1, N = W, z = D - 1, x = -1, f = -1;
132
+ case j:
133
+ U = 0, _ = 1, N = K, D = z - 1, x = -1, f = -1;
134
134
  break;
135
135
  case S:
136
- j = W - 1, _ = -1, N = -1, z = 0, x = 1, f = D;
136
+ U = K - 1, _ = -1, N = -1, D = 0, x = 1, f = z;
137
137
  break;
138
138
  case E:
139
- j = W - 1, _ = -1, N = -1, z = D - 1, x = -1, f = -1;
139
+ U = K - 1, _ = -1, N = -1, D = z - 1, x = -1, f = -1;
140
140
  break;
141
141
  }
142
- if (U)
142
+ if (F)
143
143
  switch (C.pixel_size) {
144
144
  case 8:
145
- Y(u, z, x, f, j, _, N, B);
145
+ Y(u, D, x, f, U, _, N, B);
146
146
  break;
147
147
  case 16:
148
- ne(u, z, x, f, j, _, N, B);
148
+ ne(u, D, x, f, U, _, N, B);
149
149
  break;
150
150
  default:
151
151
  throw new Error("THREE.TGALoader: Format not supported.");
@@ -153,23 +153,23 @@ class wt extends vn {
153
153
  else
154
154
  switch (C.pixel_size) {
155
155
  case 8:
156
- se(u, z, x, f, j, _, N, B, X);
156
+ se(u, D, x, f, U, _, N, B, X);
157
157
  break;
158
158
  case 16:
159
- v(u, z, x, f, j, _, N, B);
159
+ v(u, D, x, f, U, _, N, B);
160
160
  break;
161
161
  case 24:
162
- oe(u, z, x, f, j, _, N, B);
162
+ oe(u, D, x, f, U, _, N, B);
163
163
  break;
164
164
  case 32:
165
- I(u, z, x, f, j, _, N, B);
165
+ I(u, D, x, f, U, _, N, B);
166
166
  break;
167
167
  default:
168
168
  throw new Error("THREE.TGALoader: Format not supported.");
169
169
  }
170
170
  return u;
171
171
  }
172
- const ke = 0, Ne = 1, $ = 2, ie = 3, ee = 9, be = 10, ge = 11, M = 48, q = 4, F = 0, E = 1, J = 2, S = 3;
172
+ const ke = 0, Ne = 1, $ = 2, ie = 3, ee = 9, be = 10, ge = 11, M = 48, q = 4, j = 0, E = 1, J = 2, S = 3;
173
173
  if (O.length < 19) throw new Error("THREE.TGALoader: Not enough data to contain header.");
174
174
  let m = 0;
175
175
  const h = new Uint8Array(O), C = {
@@ -188,10 +188,10 @@ class wt extends vn {
188
188
  pixel_size: h[m++],
189
189
  flags: h[m++]
190
190
  };
191
- if (Q(C), C.id_length + m > O.length)
191
+ if (Z(C), C.id_length + m > O.length)
192
192
  throw new Error("THREE.TGALoader: No data.");
193
193
  m += C.id_length;
194
- let L = !1, k = !1, U = !1;
194
+ let L = !1, k = !1, F = !1;
195
195
  switch (C.image_type) {
196
196
  case ee:
197
197
  L = !0, k = !0;
@@ -205,10 +205,10 @@ class wt extends vn {
205
205
  case $:
206
206
  break;
207
207
  case ge:
208
- L = !0, U = !0;
208
+ L = !0, F = !0;
209
209
  break;
210
210
  case ie:
211
- U = !0;
211
+ F = !0;
212
212
  break;
213
213
  }
214
214
  const ae = new Uint8Array(C.width * C.height * 4), te = R(L, k, C, m, h);
@@ -232,11 +232,11 @@ class oi extends lt {
232
232
  * @param {onProgressCallback} onProgress - Executed while the loading is in progress.
233
233
  * @param {onErrorCallback} onError - Executed when errors occur.
234
234
  */
235
- load(O, Q, R, se) {
235
+ load(O, Z, R, se) {
236
236
  const v = this, oe = v.path === "" ? At.extractUrlBase(O) : v.path, I = new In(v.manager);
237
237
  I.setPath(v.path), I.setRequestHeader(v.requestHeader), I.setWithCredentials(v.withCredentials), I.load(O, function(Y) {
238
238
  try {
239
- Q(v.parse(Y, oe));
239
+ Z(v.parse(Y, oe));
240
240
  } catch (ne) {
241
241
  se ? se(ne) : console.error(ne), v.manager.itemError(O);
242
242
  }
@@ -250,7 +250,7 @@ class oi extends lt {
250
250
  * @param {string} path - The asset path.
251
251
  * @return {{scene:Group,animations:Array<AnimationClip>,kinematics:Object}} An object representing the parsed asset.
252
252
  */
253
- parse(O, Q) {
253
+ parse(O, Z) {
254
254
  function R(t, e) {
255
255
  const i = [], n = t.childNodes;
256
256
  for (let s = 0, o = n.length; s < o; s++) {
@@ -390,7 +390,7 @@ class oi extends lt {
390
390
  }
391
391
  return e;
392
392
  }
393
- function F(t) {
393
+ function j(t) {
394
394
  return ee(T.animations[t], q);
395
395
  }
396
396
  function E(t, e, i) {
@@ -401,8 +401,8 @@ class oi extends lt {
401
401
  case "matrix":
402
402
  for (l = 0, g = e.array.length; l < g; l++)
403
403
  if (d = e.array[l], c = l * i.stride, p[d] === void 0 && (p[d] = {}), t.arraySyntax === !0) {
404
- const K = i.array[c], H = t.indices[0] + 4 * t.indices[1];
405
- p[d][H] = K;
404
+ const W = i.array[c], H = t.indices[0] + 4 * t.indices[1];
405
+ p[d][H] = W;
406
406
  } else
407
407
  for (a = 0, b = i.stride; a < b; a++)
408
408
  p[d][a] = i.array[c + a];
@@ -459,7 +459,7 @@ class oi extends lt {
459
459
  for (let s = 0, o = t.length; s < o; s++) {
460
460
  const r = t[s];
461
461
  if (r.value[e] === null) {
462
- if (i = U(t, s, e), n = ae(t, s, e), i === null) {
462
+ if (i = F(t, s, e), n = ae(t, s, e), i === null) {
463
463
  r.value[e] = n.value[e];
464
464
  continue;
465
465
  }
@@ -471,7 +471,7 @@ class oi extends lt {
471
471
  }
472
472
  }
473
473
  }
474
- function U(t, e, i) {
474
+ function F(t, e, i) {
475
475
  for (; e >= 0; ) {
476
476
  const n = t[e];
477
477
  if (n.value[i] !== null) return n;
@@ -512,17 +512,17 @@ class oi extends lt {
512
512
  }
513
513
  T.clips[t.getAttribute("id")] = e;
514
514
  }
515
- function W(t) {
515
+ function K(t) {
516
516
  const e = [], i = t.name, n = t.end - t.start || -1, s = t.animations;
517
517
  for (let o = 0, r = s.length; o < r; o++) {
518
- const d = F(s[o]);
518
+ const d = j(s[o]);
519
519
  for (let c = 0, l = d.length; c < l; c++)
520
520
  e.push(d[c]);
521
521
  }
522
522
  return new ft(i, n, e);
523
523
  }
524
- function D(t) {
525
- return ee(T.clips[t], W);
524
+ function z(t) {
525
+ return ee(T.clips[t], K);
526
526
  }
527
527
  function B(t) {
528
528
  const e = {};
@@ -556,16 +556,16 @@ class oi extends lt {
556
556
  e.sources[o] = Ge(s);
557
557
  break;
558
558
  case "joints":
559
- e.joints = j(s);
559
+ e.joints = U(s);
560
560
  break;
561
561
  case "vertex_weights":
562
- e.vertexWeights = z(s);
562
+ e.vertexWeights = D(s);
563
563
  break;
564
564
  }
565
565
  }
566
566
  return e;
567
567
  }
568
- function j(t) {
568
+ function U(t) {
569
569
  const e = {
570
570
  inputs: {}
571
571
  };
@@ -581,7 +581,7 @@ class oi extends lt {
581
581
  }
582
582
  return e;
583
583
  }
584
- function z(t) {
584
+ function D(t) {
585
585
  const e = {
586
586
  inputs: {}
587
587
  };
@@ -629,7 +629,7 @@ class oi extends lt {
629
629
  const P = r[b + d], fe = r[b + c], re = a[fe];
630
630
  G.push({ index: P, weight: re }), b += 2;
631
631
  }
632
- for (G.sort(K), w = 0; w < 4; w++) {
632
+ for (G.sort(W), w = 0; w < 4; w++) {
633
633
  const P = G[w];
634
634
  P !== void 0 ? (i.indices.array.push(P.index), i.weights.array.push(P.weight)) : (i.indices.array.push(0), i.weights.array.push(0));
635
635
  }
@@ -639,7 +639,7 @@ class oi extends lt {
639
639
  i.joints.push({ name: H, boneInverse: G });
640
640
  }
641
641
  return i;
642
- function K(H, G) {
642
+ function W(H, G) {
643
643
  return G.weight - H.weight;
644
644
  }
645
645
  }
@@ -767,19 +767,19 @@ class oi extends lt {
767
767
  case "ambient":
768
768
  case "shininess":
769
769
  case "transparency":
770
- e[s.nodeName] = Fe(s);
770
+ e[s.nodeName] = je(s);
771
771
  break;
772
772
  case "transparent":
773
773
  e[s.nodeName] = {
774
774
  opaque: s.hasAttribute("opaque") ? s.getAttribute("opaque") : "A_ONE",
775
- data: Fe(s)
775
+ data: je(s)
776
776
  };
777
777
  break;
778
778
  }
779
779
  }
780
780
  return e;
781
781
  }
782
- function Fe(t) {
782
+ function je(t) {
783
783
  const e = {};
784
784
  for (let i = 0, n = t.childNodes.length; i < n; i++) {
785
785
  const s = t.childNodes[i];
@@ -840,7 +840,7 @@ class oi extends lt {
840
840
  s.textContent.toUpperCase() === "TRUE" ? e.technique[s.nodeName] = 1 : s.textContent.toUpperCase() === "FALSE" ? e.technique[s.nodeName] = 0 : e.technique[s.nodeName] = parseInt(s.textContent);
841
841
  break;
842
842
  case "bump":
843
- e[s.nodeName] = ze(s);
843
+ e[s.nodeName] = De(s);
844
844
  break;
845
845
  }
846
846
  }
@@ -868,13 +868,13 @@ class oi extends lt {
868
868
  e[s.nodeName] = parseInt(s.textContent);
869
869
  break;
870
870
  case "bump":
871
- e[s.nodeName] = ze(s);
871
+ e[s.nodeName] = De(s);
872
872
  break;
873
873
  }
874
874
  }
875
875
  return e;
876
876
  }
877
- function ze(t) {
877
+ function De(t) {
878
878
  const e = {};
879
879
  for (let i = 0, n = t.childNodes.length; i < n; i++) {
880
880
  const s = t.childNodes[i];
@@ -887,11 +887,11 @@ class oi extends lt {
887
887
  }
888
888
  return e;
889
889
  }
890
- function De(t) {
890
+ function ze(t) {
891
891
  return t;
892
892
  }
893
893
  function St(t) {
894
- return ee(T.effects[t], De);
894
+ return ee(T.effects[t], ze);
895
895
  }
896
896
  function Ot(t) {
897
897
  const e = {
@@ -912,7 +912,7 @@ class oi extends lt {
912
912
  let e, i = t.slice((t.lastIndexOf(".") - 1 >>> 0) + 2);
913
913
  switch (i = i.toLowerCase(), i) {
914
914
  case "tga":
915
- e = Ue;
915
+ e = Fe;
916
916
  break;
917
917
  default:
918
918
  e = rt;
@@ -1042,36 +1042,36 @@ class oi extends lt {
1042
1042
  if (s.nodeType === 1)
1043
1043
  switch (s.nodeName) {
1044
1044
  case "optics":
1045
- e.optics = Ut(s);
1045
+ e.optics = Ft(s);
1046
1046
  break;
1047
1047
  }
1048
1048
  }
1049
1049
  T.cameras[t.getAttribute("id")] = e;
1050
1050
  }
1051
- function Ut(t) {
1051
+ function Ft(t) {
1052
1052
  for (let e = 0; e < t.childNodes.length; e++) {
1053
1053
  const i = t.childNodes[e];
1054
1054
  switch (i.nodeName) {
1055
1055
  case "technique_common":
1056
- return jt(i);
1056
+ return Ut(i);
1057
1057
  }
1058
1058
  }
1059
1059
  return {};
1060
1060
  }
1061
- function jt(t) {
1061
+ function Ut(t) {
1062
1062
  const e = {};
1063
1063
  for (let i = 0; i < t.childNodes.length; i++) {
1064
1064
  const n = t.childNodes[i];
1065
1065
  switch (n.nodeName) {
1066
1066
  case "perspective":
1067
1067
  case "orthographic":
1068
- e.technique = n.nodeName, e.parameters = Ft(n);
1068
+ e.technique = n.nodeName, e.parameters = jt(n);
1069
1069
  break;
1070
1070
  }
1071
1071
  }
1072
1072
  return e;
1073
1073
  }
1074
- function Ft(t) {
1074
+ function jt(t) {
1075
1075
  const e = {};
1076
1076
  for (let i = 0; i < t.childNodes.length; i++) {
1077
1077
  const n = t.childNodes[i];
@@ -1130,13 +1130,13 @@ class oi extends lt {
1130
1130
  if (s.nodeType === 1)
1131
1131
  switch (s.nodeName) {
1132
1132
  case "technique_common":
1133
- e = zt(s);
1133
+ e = Dt(s);
1134
1134
  break;
1135
1135
  }
1136
1136
  }
1137
1137
  T.lights[t.getAttribute("id")] = e;
1138
1138
  }
1139
- function zt(t) {
1139
+ function Dt(t) {
1140
1140
  const e = {};
1141
1141
  for (let i = 0, n = t.childNodes.length; i < n; i++) {
1142
1142
  const s = t.childNodes[i];
@@ -1146,12 +1146,12 @@ class oi extends lt {
1146
1146
  case "point":
1147
1147
  case "spot":
1148
1148
  case "ambient":
1149
- e.technique = s.nodeName, e.parameters = Dt(s);
1149
+ e.technique = s.nodeName, e.parameters = zt(s);
1150
1150
  }
1151
1151
  }
1152
1152
  return e;
1153
1153
  }
1154
- function Dt(t) {
1154
+ function zt(t) {
1155
1155
  const e = {};
1156
1156
  for (let i = 0, n = t.childNodes.length; i < n; i++) {
1157
1157
  const s = t.childNodes[i];
@@ -1172,27 +1172,27 @@ class oi extends lt {
1172
1172
  }
1173
1173
  return e;
1174
1174
  }
1175
- function Ke(t) {
1175
+ function We(t) {
1176
1176
  let e;
1177
1177
  switch (t.technique) {
1178
1178
  case "directional":
1179
1179
  e = new Hn();
1180
1180
  break;
1181
1181
  case "point":
1182
- e = new Fn();
1182
+ e = new jn();
1183
1183
  break;
1184
1184
  case "spot":
1185
- e = new jn();
1185
+ e = new Un();
1186
1186
  break;
1187
1187
  case "ambient":
1188
- e = new Un();
1188
+ e = new Fn();
1189
1189
  break;
1190
1190
  }
1191
1191
  return t.parameters.color && e.color.copy(t.parameters.color), t.parameters.distance && (e.distance = t.parameters.distance), e;
1192
1192
  }
1193
1193
  function Vt(t) {
1194
1194
  const e = T.lights[t];
1195
- return e !== void 0 ? ee(e, Ke) : (console.warn("THREE.ColladaLoader: Couldn't find light with ID:", t), null);
1195
+ return e !== void 0 ? ee(e, We) : (console.warn("THREE.ColladaLoader: Couldn't find light with ID:", t), null);
1196
1196
  }
1197
1197
  function Jt(t) {
1198
1198
  const e = {
@@ -1211,7 +1211,7 @@ class oi extends lt {
1211
1211
  e.sources[o] = Ge(s);
1212
1212
  break;
1213
1213
  case "vertices":
1214
- e.vertices = Kt(s);
1214
+ e.vertices = Wt(s);
1215
1215
  break;
1216
1216
  case "polygons":
1217
1217
  console.warn("THREE.ColladaLoader: Unsupported primitive type: ", s.nodeName);
@@ -1220,7 +1220,7 @@ class oi extends lt {
1220
1220
  case "linestrips":
1221
1221
  case "polylist":
1222
1222
  case "triangles":
1223
- e.primitives.push(Wt(s));
1223
+ e.primitives.push(Kt(s));
1224
1224
  break;
1225
1225
  default:
1226
1226
  console.log(s);
@@ -1252,7 +1252,7 @@ class oi extends lt {
1252
1252
  }
1253
1253
  return e;
1254
1254
  }
1255
- function Kt(t) {
1255
+ function Wt(t) {
1256
1256
  const e = {};
1257
1257
  for (let i = 0; i < t.childNodes.length; i++) {
1258
1258
  const n = t.childNodes[i];
@@ -1260,7 +1260,7 @@ class oi extends lt {
1260
1260
  }
1261
1261
  return e;
1262
1262
  }
1263
- function Wt(t) {
1263
+ function Kt(t) {
1264
1264
  const e = {
1265
1265
  type: t.nodeName,
1266
1266
  material: t.getAttribute("material"),
@@ -1301,7 +1301,7 @@ class oi extends lt {
1301
1301
  t[i].hasUV === !0 && e++;
1302
1302
  e > 0 && e < t.length && (t.uvsNeedsFix = !0);
1303
1303
  }
1304
- function We(t) {
1304
+ function Ke(t) {
1305
1305
  const e = {}, i = t.sources, n = t.vertices, s = t.primitives;
1306
1306
  if (s.length === 0) return {};
1307
1307
  const o = Yt(s);
@@ -1312,10 +1312,10 @@ class oi extends lt {
1312
1312
  return e;
1313
1313
  }
1314
1314
  function $t(t, e, i) {
1315
- const n = {}, s = { array: [], stride: 0 }, o = { array: [], stride: 0 }, r = { array: [], stride: 0 }, d = { array: [], stride: 0 }, c = { array: [], stride: 0 }, l = { array: [], stride: 4 }, g = { array: [], stride: 4 }, a = new zn(), b = [];
1315
+ const n = {}, s = { array: [], stride: 0 }, o = { array: [], stride: 0 }, r = { array: [], stride: 0 }, d = { array: [], stride: 0 }, c = { array: [], stride: 0 }, l = { array: [], stride: 4 }, g = { array: [], stride: 4 }, a = new Dn(), b = [];
1316
1316
  let p = 0;
1317
1317
  for (let w = 0; w < t.length; w++) {
1318
- const y = t[w], K = y.inputs;
1318
+ const y = t[w], W = y.inputs;
1319
1319
  let H = 0;
1320
1320
  switch (y.type) {
1321
1321
  case "lines":
@@ -1345,8 +1345,8 @@ class oi extends lt {
1345
1345
  console.warn("THREE.ColladaLoader: Unknown primitive type:", y.type);
1346
1346
  }
1347
1347
  a.addGroup(p, H, w), p += H, y.material && b.push(y.material);
1348
- for (const G in K) {
1349
- const P = K[G];
1348
+ for (const G in W) {
1349
+ const P = W[G];
1350
1350
  switch (G) {
1351
1351
  case "VERTEX":
1352
1352
  for (const fe in i) {
@@ -1417,13 +1417,13 @@ class oi extends lt {
1417
1417
  for (let b = 0, p = d.length; b < p; b++) {
1418
1418
  const w = d[b];
1419
1419
  if (w === 4) {
1420
- const y = a + r * 0, K = a + r * 1, H = a + r * 2, G = a + r * 3;
1421
- c(y), c(K), c(G), c(K), c(H), c(G);
1420
+ const y = a + r * 0, W = a + r * 1, H = a + r * 2, G = a + r * 3;
1421
+ c(y), c(W), c(G), c(W), c(H), c(G);
1422
1422
  } else if (w === 3) {
1423
- const y = a + r * 0, K = a + r * 1, H = a + r * 2;
1424
- c(y), c(K), c(H);
1423
+ const y = a + r * 0, W = a + r * 1, H = a + r * 2;
1424
+ c(y), c(W), c(H);
1425
1425
  } else if (w > 4)
1426
- for (let y = 1, K = w - 2; y <= K; y++) {
1426
+ for (let y = 1, W = w - 2; y <= W; y++) {
1427
1427
  const H = a + r * 0, G = a + r * y, P = a + r * (y + 1);
1428
1428
  c(H), c(G), c(P);
1429
1429
  }
@@ -1434,9 +1434,9 @@ class oi extends lt {
1434
1434
  c(a);
1435
1435
  }
1436
1436
  function Ye(t) {
1437
- return ee(T.geometries[t], We);
1437
+ return ee(T.geometries[t], Ke);
1438
1438
  }
1439
- function Zt(t) {
1439
+ function Qt(t) {
1440
1440
  const e = {
1441
1441
  name: t.getAttribute("name") || "",
1442
1442
  joints: {},
@@ -1453,11 +1453,11 @@ class oi extends lt {
1453
1453
  }
1454
1454
  T.kinematicsModels[t.getAttribute("id")] = e;
1455
1455
  }
1456
- function Qt(t) {
1456
+ function Zt(t) {
1457
1457
  return t.build !== void 0 ? t.build : t;
1458
1458
  }
1459
1459
  function en(t) {
1460
- return ee(T.kinematicsModels[t], Qt);
1460
+ return ee(T.kinematicsModels[t], Zt);
1461
1461
  }
1462
1462
  function tn(t, e) {
1463
1463
  for (let i = 0; i < t.childNodes.length; i++) {
@@ -1664,7 +1664,7 @@ class oi extends lt {
1664
1664
  if (t === void 0 || e === void 0) return;
1665
1665
  const n = en(t), s = fn(e), o = it(i), r = s.bindJointAxis, d = {};
1666
1666
  for (let g = 0, a = r.length; g < a; g++) {
1667
- const b = r[g], p = Z.querySelector('[sid="' + b.target + '"]');
1667
+ const b = r[g], p = Q.querySelector('[sid="' + b.target + '"]');
1668
1668
  if (p) {
1669
1669
  const w = p.parentElement;
1670
1670
  c(b.jointIndex, w);
@@ -1699,10 +1699,10 @@ class oi extends lt {
1699
1699
  else if (p.static)
1700
1700
  console.warn("THREE.ColladaLoader: Joint " + g + " is static.");
1701
1701
  else {
1702
- const w = b.object, y = p.axis, K = b.transforms;
1702
+ const w = b.object, y = p.axis, W = b.transforms;
1703
1703
  ce.identity();
1704
- for (let H = 0; H < K.length; H++) {
1705
- const G = K[H];
1704
+ for (let H = 0; H < W.length; H++) {
1705
+ const G = W[H];
1706
1706
  if (G.sid && G.sid.indexOf(g) !== -1)
1707
1707
  switch (p.type) {
1708
1708
  case "revolute":
@@ -1739,7 +1739,7 @@ class oi extends lt {
1739
1739
  };
1740
1740
  }
1741
1741
  function pn(t) {
1742
- const e = [], i = Z.querySelector('[id="' + t.id + '"]');
1742
+ const e = [], i = Q.querySelector('[id="' + t.id + '"]');
1743
1743
  for (let n = 0; n < i.childNodes.length; n++) {
1744
1744
  const s = i.childNodes[n];
1745
1745
  if (s.nodeType !== 1) continue;
@@ -1811,13 +1811,13 @@ class oi extends lt {
1811
1811
  e.instanceCameras.push(I(n.getAttribute("url")));
1812
1812
  break;
1813
1813
  case "instance_controller":
1814
- e.instanceControllers.push(Ze(n));
1814
+ e.instanceControllers.push(Qe(n));
1815
1815
  break;
1816
1816
  case "instance_light":
1817
1817
  e.instanceLights.push(I(n.getAttribute("url")));
1818
1818
  break;
1819
1819
  case "instance_geometry":
1820
- e.instanceGeometries.push(Ze(n));
1820
+ e.instanceGeometries.push(Qe(n));
1821
1821
  break;
1822
1822
  case "instance_node":
1823
1823
  e.instanceNodes.push(I(n.getAttribute("url")));
@@ -1844,7 +1844,7 @@ class oi extends lt {
1844
1844
  }
1845
1845
  return tt(e.id) ? console.warn("THREE.ColladaLoader: There is already a node with ID %s. Exclude current node from further processing.", e.id) : T.nodes[e.id] = e, e;
1846
1846
  }
1847
- function Ze(t) {
1847
+ function Qe(t) {
1848
1848
  const e = {
1849
1849
  id: I(t.getAttribute("url")),
1850
1850
  materials: {},
@@ -1874,14 +1874,14 @@ class oi extends lt {
1874
1874
  const l = t[s];
1875
1875
  let g;
1876
1876
  if (tt(l))
1877
- g = Ee(l), Qe(g, e, i);
1877
+ g = Ee(l), Ze(g, e, i);
1878
1878
  else if (Nn(l)) {
1879
1879
  const b = T.visualScenes[l].children;
1880
1880
  for (let p = 0; p < b.length; p++) {
1881
1881
  const w = b[p];
1882
1882
  if (w.type === "JOINT") {
1883
1883
  const y = Ee(w.id);
1884
- Qe(y, e, i);
1884
+ Ze(y, e, i);
1885
1885
  }
1886
1886
  }
1887
1887
  } else
@@ -1898,9 +1898,9 @@ class oi extends lt {
1898
1898
  const d = [], c = [];
1899
1899
  for (s = 0; s < n.length; s++)
1900
1900
  r = n[s], d.push(r.bone), c.push(r.boneInverse);
1901
- return new Wn(d, c);
1901
+ return new Kn(d, c);
1902
1902
  }
1903
- function Qe(t, e, i) {
1903
+ function Ze(t, e, i) {
1904
1904
  t.traverse(function(n) {
1905
1905
  if (n.isBone === !0) {
1906
1906
  let s;
@@ -1924,9 +1924,9 @@ class oi extends lt {
1924
1924
  p !== null && e.push(p.clone());
1925
1925
  }
1926
1926
  for (let a = 0, b = r.length; a < b; a++) {
1927
- const p = r[a], w = N(p.id), y = Ye(w.id), K = et(y, p.materials), H = p.skeletons, G = w.skin.joints, P = bn(H, G);
1928
- for (let fe = 0, re = K.length; fe < re; fe++) {
1929
- const xe = K[fe];
1927
+ const p = r[a], w = N(p.id), y = Ye(w.id), W = et(y, p.materials), H = p.skeletons, G = w.skin.joints, P = bn(H, G);
1928
+ for (let fe = 0, re = W.length; fe < re; fe++) {
1929
+ const xe = W[fe];
1930
1930
  xe.isSkinnedMesh && (xe.bind(P, w.skin.bindMatrix), xe.normalizeSkinWeights()), e.push(xe);
1931
1931
  }
1932
1932
  }
@@ -1936,8 +1936,8 @@ class oi extends lt {
1936
1936
  }
1937
1937
  for (let a = 0, b = c.length; a < b; a++) {
1938
1938
  const p = c[a], w = Ye(p.id), y = et(w, p.materials);
1939
- for (let K = 0, H = y.length; K < H; K++)
1940
- e.push(y[K]);
1939
+ for (let W = 0, H = y.length; W < H; W++)
1940
+ e.push(y[W]);
1941
1941
  }
1942
1942
  for (let a = 0, b = l.length; a < b; a++)
1943
1943
  e.push(Ee(l[a]).clone());
@@ -1945,7 +1945,7 @@ class oi extends lt {
1945
1945
  if (n.length === 0 && e.length === 1)
1946
1946
  g = e[0];
1947
1947
  else {
1948
- g = s === "JOINT" ? new Dn() : new pt();
1948
+ g = s === "JOINT" ? new zn() : new pt();
1949
1949
  for (let a = 0; a < e.length; a++)
1950
1950
  g.add(e[a]);
1951
1951
  }
@@ -1979,7 +1979,7 @@ class oi extends lt {
1979
1979
  let c;
1980
1980
  switch (n) {
1981
1981
  case "lines":
1982
- c = new Kn(s.data, d);
1982
+ c = new Wn(s.data, d);
1983
1983
  break;
1984
1984
  case "linestrips":
1985
1985
  c = new Jn(s.data, d);
@@ -2036,7 +2036,7 @@ class oi extends lt {
2036
2036
  if (ne(T.animations) === !1) {
2037
2037
  const e = [];
2038
2038
  for (const i in T.animations) {
2039
- const n = F(i);
2039
+ const n = j(i);
2040
2040
  for (let s = 0, o = n.length; s < o; s++)
2041
2041
  e.push(n[s]);
2042
2042
  }
@@ -2044,7 +2044,7 @@ class oi extends lt {
2044
2044
  }
2045
2045
  } else
2046
2046
  for (const e in t)
2047
- Ie.push(D(e));
2047
+ Ie.push(z(e));
2048
2048
  }
2049
2049
  function En(t) {
2050
2050
  let e = "";
@@ -2058,19 +2058,19 @@ class oi extends lt {
2058
2058
  }
2059
2059
  if (O.length === 0)
2060
2060
  return { scene: new Mn() };
2061
- const st = new DOMParser().parseFromString(O, "application/xml"), Z = R(st, "COLLADA")[0], qe = st.getElementsByTagName("parsererror")[0];
2061
+ const st = new DOMParser().parseFromString(O, "application/xml"), Q = R(st, "COLLADA")[0], qe = st.getElementsByTagName("parsererror")[0];
2062
2062
  if (qe !== void 0) {
2063
2063
  const t = R(qe, "div")[0];
2064
2064
  let e;
2065
2065
  return t ? e = t.textContent : e = En(qe), console.error(`THREE.ColladaLoader: Failed to parse collada file.
2066
2066
  `, e), null;
2067
2067
  }
2068
- const xn = Z.getAttribute("version");
2068
+ const xn = Q.getAttribute("version");
2069
2069
  console.debug("THREE.ColladaLoader: File version", xn);
2070
- const ot = we(R(Z, "asset")[0]), rt = new Tt(this.manager);
2071
- rt.setPath(this.resourcePath || Q).setCrossOrigin(this.crossOrigin);
2072
- let Ue;
2073
- wt && (Ue = new wt(this.manager), Ue.setPath(this.resourcePath || Q));
2070
+ const ot = we(R(Q, "asset")[0]), rt = new Tt(this.manager);
2071
+ rt.setPath(this.resourcePath || Z).setCrossOrigin(this.crossOrigin);
2072
+ let Fe;
2073
+ wt && (Fe = new wt(this.manager), Fe.setPath(this.resourcePath || Z));
2074
2074
  const Re = new ut(), Ie = [];
2075
2075
  let at = {}, _n = 0;
2076
2076
  const T = {
@@ -2089,8 +2089,8 @@ class oi extends lt {
2089
2089
  physicsModels: {},
2090
2090
  kinematicsScenes: {}
2091
2091
  };
2092
- $(Z, "library_animations", "animation", be), $(Z, "library_animation_clips", "animation_clip", u), $(Z, "library_controllers", "controller", B), $(Z, "library_images", "image", f), $(Z, "library_effects", "effect", le), $(Z, "library_materials", "material", Ot), $(Z, "library_cameras", "camera", qt), $(Z, "library_lights", "light", Bt), $(Z, "library_geometries", "geometry", Jt), $(Z, "library_nodes", "node", Pe), $(Z, "library_visual_scenes", "visual_scene", kn), $(Z, "library_kinematics_models", "kinematics_model", Zt), $(Z, "library_physics_models", "physics_model", rn), $(Z, "scene", "instance_kinematics_scene", ln), ie(T.animations, q), ie(T.clips, W), ie(T.controllers, _), ie(T.images, A), ie(T.effects, De), ie(T.materials, Ve), ie(T.cameras, Je), ie(T.lights, Ke), ie(T.geometries, We), ie(T.visualScenes, nt), Tn(), hn();
2093
- const Me = An(R(Z, "scene")[0]);
2092
+ $(Q, "library_animations", "animation", be), $(Q, "library_animation_clips", "animation_clip", u), $(Q, "library_controllers", "controller", B), $(Q, "library_images", "image", f), $(Q, "library_effects", "effect", le), $(Q, "library_materials", "material", Ot), $(Q, "library_cameras", "camera", qt), $(Q, "library_lights", "light", Bt), $(Q, "library_geometries", "geometry", Jt), $(Q, "library_nodes", "node", Pe), $(Q, "library_visual_scenes", "visual_scene", kn), $(Q, "library_kinematics_models", "kinematics_model", Qt), $(Q, "library_physics_models", "physics_model", rn), $(Q, "scene", "instance_kinematics_scene", ln), ie(T.animations, q), ie(T.clips, K), ie(T.controllers, _), ie(T.images, A), ie(T.effects, ze), ie(T.materials, Ve), ie(T.cameras, Je), ie(T.lights, We), ie(T.geometries, Ke), ie(T.visualScenes, nt), Tn(), hn();
2093
+ const Me = An(R(Q, "scene")[0]);
2094
2094
  return Me.animations = Ie, ot.upAxis === "Z_UP" && (console.warn("THREE.ColladaLoader: You are loading an asset with a Z-UP coordinate system. The loader just rotates the asset to transform it into Y-UP. The vertex data are not converted, see #24289."), Me.rotation.set(-Math.PI / 2, 0, 0)), Me.scale.multiplyScalar(ot.unit), {
2095
2095
  get animations() {
2096
2096
  return console.warn("THREE.ColladaLoader: Please access animations over scene.animations now."), Ie;
@@ -2101,12 +2101,12 @@ class oi extends lt {
2101
2101
  };
2102
2102
  }
2103
2103
  }
2104
- const je = new Et(), kt = new si();
2104
+ const Ue = new Et(), kt = new si();
2105
2105
  function _e(ue) {
2106
2106
  return ue ? ue.trim().split(/\s+/g).map((O) => parseFloat(O)) : [0, 0, 0];
2107
2107
  }
2108
- function Nt(ue, O, Q = !1) {
2109
- Q || ue.rotation.set(0, 0, 0), kt.set(O[0], O[1], O[2], "ZYX"), je.setFromEuler(kt), je.multiply(ue.quaternion), ue.quaternion.copy(je);
2108
+ function Nt(ue, O, Z = !1) {
2109
+ Z || ue.rotation.set(0, 0, 0), kt.set(O[0], O[1], O[2], "ZYX"), Ue.setFromEuler(kt), Ue.multiply(ue.quaternion), ue.quaternion.copy(Ue);
2110
2110
  }
2111
2111
  class ci {
2112
2112
  constructor(O) {
@@ -2114,13 +2114,13 @@ class ci {
2114
2114
  }
2115
2115
  /* Public API */
2116
2116
  loadAsync(O) {
2117
- return new Promise((Q, R) => {
2118
- this.load(O, Q, null, R);
2117
+ return new Promise((Z, R) => {
2118
+ this.load(O, Z, null, R);
2119
2119
  });
2120
2120
  }
2121
2121
  // urdf: The path to the URDF within the package OR absolute
2122
2122
  // onComplete: Callback that is passed the model once loaded
2123
- load(O, Q, R, se) {
2123
+ load(O, Z, R, se) {
2124
2124
  const v = this.manager, oe = At.extractUrlBase(O), I = this.manager.resolveURL(O);
2125
2125
  v.itemStart(I), fetch(I, this.fetchOptions).then((Y) => {
2126
2126
  if (Y.ok)
@@ -2128,40 +2128,40 @@ class ci {
2128
2128
  throw new Error(`URDFLoader: Failed to load url '${I}' with error code ${Y.status} : ${Y.statusText}.`);
2129
2129
  }).then((Y) => {
2130
2130
  const ne = this.parse(Y, this.workingPath || oe);
2131
- Q(ne), v.itemEnd(I);
2131
+ Z(ne), v.itemEnd(I);
2132
2132
  }).catch((Y) => {
2133
2133
  se ? se(Y) : console.error("URDFLoader: Error loading file.", Y), v.itemError(I), v.itemEnd(I);
2134
2134
  });
2135
2135
  }
2136
- parse(O, Q = this.workingPath) {
2136
+ parse(O, Z = this.workingPath) {
2137
2137
  const R = this.packages, se = this.loadMeshCb, v = this.parseVisual, oe = this.parseCollision, I = this.manager, Y = {}, ne = {}, we = {};
2138
2138
  function ke(M) {
2139
2139
  if (!/^package:\/\//.test(M))
2140
- return Q ? Q + M : M;
2141
- const [q, F] = M.replace(/^package:\/\//, "").split(/\/(.+)/);
2140
+ return Z ? Z + M : M;
2141
+ const [q, j] = M.replace(/^package:\/\//, "").split(/\/(.+)/);
2142
2142
  if (typeof R == "string")
2143
- return R.endsWith(q) ? R + "/" + F : R + "/" + q + "/" + F;
2143
+ return R.endsWith(q) ? R + "/" + j : R + "/" + q + "/" + j;
2144
2144
  if (R instanceof Function)
2145
- return R(q) + "/" + F;
2145
+ return R(q) + "/" + j;
2146
2146
  if (typeof R == "object")
2147
- return q in R ? R[q] + "/" + F : (console.error(`URDFLoader : ${q} not found in provided package list.`), null);
2147
+ return q in R ? R[q] + "/" + j : (console.error(`URDFLoader : ${q} not found in provided package list.`), null);
2148
2148
  }
2149
2149
  function Ne(M) {
2150
2150
  let q;
2151
2151
  M instanceof Document ? q = [...M.children] : M instanceof Element ? q = [M] : q = [...new DOMParser().parseFromString(M, "text/xml").children];
2152
- const F = q.filter((E) => E.nodeName === "robot").pop();
2153
- return $(F);
2152
+ const j = q.filter((E) => E.nodeName === "robot").pop();
2153
+ return $(j);
2154
2154
  }
2155
2155
  function $(M) {
2156
- const q = [...M.children], F = q.filter((L) => L.nodeName.toLowerCase() === "link"), E = q.filter((L) => L.nodeName.toLowerCase() === "joint"), J = q.filter((L) => L.nodeName.toLowerCase() === "material"), S = new Xn();
2156
+ const q = [...M.children], j = q.filter((L) => L.nodeName.toLowerCase() === "link"), E = q.filter((L) => L.nodeName.toLowerCase() === "joint"), J = q.filter((L) => L.nodeName.toLowerCase() === "material"), S = new Xn();
2157
2157
  S.robotName = M.getAttribute("name"), S.urdfRobotNode = M, J.forEach((L) => {
2158
2158
  const k = L.getAttribute("name");
2159
2159
  we[k] = be(L);
2160
2160
  });
2161
2161
  const m = {}, h = {};
2162
- F.forEach((L) => {
2163
- const k = L.getAttribute("name"), U = M.querySelector(`child[link="${k}"]`) === null;
2164
- Y[k] = ee(L, m, h, U ? S : null);
2162
+ j.forEach((L) => {
2163
+ const k = L.getAttribute("name"), F = M.querySelector(`child[link="${k}"]`) === null;
2164
+ Y[k] = ee(L, m, h, F ? S : null);
2165
2165
  }), E.forEach((L) => {
2166
2166
  const k = L.getAttribute("name");
2167
2167
  ne[k] = ie(L);
@@ -2170,14 +2170,14 @@ class ci {
2170
2170
  return C.forEach((L) => {
2171
2171
  L instanceof yt && ne[L.mimicJoint].mimicJoints.push(L);
2172
2172
  }), C.forEach((L) => {
2173
- const k = /* @__PURE__ */ new Set(), U = (ae) => {
2173
+ const k = /* @__PURE__ */ new Set(), F = (ae) => {
2174
2174
  if (k.has(ae))
2175
2175
  throw new Error("URDFLoader: Detected an infinite loop of mimic joints.");
2176
2176
  k.add(ae), ae.mimicJoints.forEach((te) => {
2177
- U(te);
2177
+ F(te);
2178
2178
  });
2179
2179
  };
2180
- U(L);
2180
+ F(L);
2181
2181
  }), S.frames = {
2182
2182
  ...h,
2183
2183
  ...m,
@@ -2186,24 +2186,24 @@ class ci {
2186
2186
  }, S;
2187
2187
  }
2188
2188
  function ie(M) {
2189
- const q = [...M.children], F = M.getAttribute("type");
2189
+ const q = [...M.children], j = M.getAttribute("type");
2190
2190
  let E;
2191
2191
  const J = q.find((k) => k.nodeName.toLowerCase() === "mimic");
2192
- J ? (E = new yt(), E.mimicJoint = J.getAttribute("joint"), E.multiplier = parseFloat(J.getAttribute("multiplier") || 1), E.offset = parseFloat(J.getAttribute("offset") || 0)) : E = new $n(), E.urdfNode = M, E.name = M.getAttribute("name"), E.urdfName = E.name, E.jointType = F;
2192
+ J ? (E = new yt(), E.mimicJoint = J.getAttribute("joint"), E.multiplier = parseFloat(J.getAttribute("multiplier") || 1), E.offset = parseFloat(J.getAttribute("offset") || 0)) : E = new $n(), E.urdfNode = M, E.name = M.getAttribute("name"), E.urdfName = E.name, E.jointType = j;
2193
2193
  let S = null, m = null, h = [0, 0, 0], C = [0, 0, 0];
2194
2194
  q.forEach((k) => {
2195
- const U = k.nodeName.toLowerCase();
2196
- U === "origin" ? (h = _e(k.getAttribute("xyz")), C = _e(k.getAttribute("rpy"))) : U === "child" ? m = Y[k.getAttribute("link")] : U === "parent" ? S = Y[k.getAttribute("link")] : U === "limit" && (E.limit.lower = parseFloat(k.getAttribute("lower") || E.limit.lower), E.limit.upper = parseFloat(k.getAttribute("upper") || E.limit.upper));
2195
+ const F = k.nodeName.toLowerCase();
2196
+ F === "origin" ? (h = _e(k.getAttribute("xyz")), C = _e(k.getAttribute("rpy"))) : F === "child" ? m = Y[k.getAttribute("link")] : F === "parent" ? S = Y[k.getAttribute("link")] : F === "limit" && (E.limit.lower = parseFloat(k.getAttribute("lower") || E.limit.lower), E.limit.upper = parseFloat(k.getAttribute("upper") || E.limit.upper));
2197
2197
  }), S.add(E), E.add(m), Nt(E, C), E.position.set(h[0], h[1], h[2]);
2198
2198
  const L = q.filter((k) => k.nodeName.toLowerCase() === "axis")[0];
2199
2199
  if (L) {
2200
- const k = L.getAttribute("xyz").split(/\s+/g).map((U) => parseFloat(U));
2200
+ const k = L.getAttribute("xyz").split(/\s+/g).map((F) => parseFloat(F));
2201
2201
  E.axis = new pe(k[0], k[1], k[2]), E.axis.normalize();
2202
2202
  }
2203
2203
  return E;
2204
2204
  }
2205
- function ee(M, q, F, E = null) {
2206
- E === null && (E = new Zn());
2205
+ function ee(M, q, j, E = null) {
2206
+ E === null && (E = new Qn());
2207
2207
  const J = [...M.children];
2208
2208
  return E.name = M.getAttribute("name"), E.urdfName = E.name, E.urdfNode = M, v && J.filter((m) => m.nodeName.toLowerCase() === "visual").forEach((m) => {
2209
2209
  const h = ge(m, we);
@@ -2215,28 +2215,28 @@ class ci {
2215
2215
  const h = ge(m);
2216
2216
  if (E.add(h), m.hasAttribute("name")) {
2217
2217
  const C = m.getAttribute("name");
2218
- h.name = C, h.urdfName = C, F[C] = h;
2218
+ h.name = C, h.urdfName = C, j[C] = h;
2219
2219
  }
2220
2220
  }), E;
2221
2221
  }
2222
2222
  function be(M) {
2223
- const q = [...M.children], F = new ve();
2224
- return F.name = M.getAttribute("name") || "", q.forEach((E) => {
2223
+ const q = [...M.children], j = new ve();
2224
+ return j.name = M.getAttribute("name") || "", q.forEach((E) => {
2225
2225
  const J = E.nodeName.toLowerCase();
2226
2226
  if (J === "color") {
2227
2227
  const S = E.getAttribute("rgba").split(/\s/g).map((m) => parseFloat(m));
2228
- F.color.setRGB(S[0], S[1], S[2]), F.opacity = S[3], F.transparent = S[3] < 1, F.depthWrite = !F.transparent;
2228
+ j.color.setRGB(S[0], S[1], S[2]), j.opacity = S[3], j.transparent = S[3] < 1, j.depthWrite = !j.transparent;
2229
2229
  } else if (J === "texture") {
2230
2230
  const S = E.getAttribute("filename");
2231
2231
  if (S) {
2232
2232
  const m = new Tt(I), h = ke(S);
2233
- F.map = m.load(h), F.map.colorSpace = me;
2233
+ j.map = m.load(h), j.map.colorSpace = me;
2234
2234
  }
2235
2235
  }
2236
- }), F;
2236
+ }), j;
2237
2237
  }
2238
2238
  function ge(M, q = {}) {
2239
- const F = M.nodeName.toLowerCase() === "collision", E = [...M.children];
2239
+ const j = M.nodeName.toLowerCase() === "collision", E = [...M.children];
2240
2240
  let J = null;
2241
2241
  const S = E.filter((h) => h.nodeName.toLowerCase() === "material")[0];
2242
2242
  if (S) {
@@ -2244,38 +2244,38 @@ class ci {
2244
2244
  h && h in q ? J = q[h] : J = be(S);
2245
2245
  } else
2246
2246
  J = new ve();
2247
- const m = F ? new Qn() : new ei();
2247
+ const m = j ? new Zn() : new ei();
2248
2248
  return m.urdfNode = M, E.forEach((h) => {
2249
2249
  const C = h.nodeName.toLowerCase();
2250
2250
  if (C === "geometry") {
2251
2251
  const L = h.children[0].nodeName.toLowerCase();
2252
2252
  if (L === "mesh") {
2253
- const k = h.children[0].getAttribute("filename"), U = ke(k);
2254
- if (U !== null) {
2253
+ const k = h.children[0].getAttribute("filename"), F = ke(k);
2254
+ if (F !== null) {
2255
2255
  const ae = h.children[0].getAttribute("scale");
2256
2256
  if (ae) {
2257
2257
  const te = _e(ae);
2258
2258
  m.scale.set(te[0], te[1], te[2]);
2259
2259
  }
2260
- se(U, I, (te, u) => {
2260
+ se(F, I, (te, u) => {
2261
2261
  u ? console.error("URDFLoader: Error loading mesh.", u) : te && (te instanceof Ce && (te.material = J), te.position.set(0, 0, 0), te.quaternion.identity(), m.add(te));
2262
2262
  });
2263
2263
  }
2264
2264
  } else if (L === "box") {
2265
2265
  const k = new Ce();
2266
2266
  k.geometry = new ti(1, 1, 1), k.material = J;
2267
- const U = _e(h.children[0].getAttribute("size"));
2268
- k.scale.set(U[0], U[1], U[2]), m.add(k);
2267
+ const F = _e(h.children[0].getAttribute("size"));
2268
+ k.scale.set(F[0], F[1], F[2]), m.add(k);
2269
2269
  } else if (L === "sphere") {
2270
2270
  const k = new Ce();
2271
2271
  k.geometry = new ni(1, 30, 30), k.material = J;
2272
- const U = parseFloat(h.children[0].getAttribute("radius")) || 0;
2273
- k.scale.set(U, U, U), m.add(k);
2272
+ const F = parseFloat(h.children[0].getAttribute("radius")) || 0;
2273
+ k.scale.set(F, F, F), m.add(k);
2274
2274
  } else if (L === "cylinder") {
2275
2275
  const k = new Ce();
2276
2276
  k.geometry = new ii(1, 1, 1, 30), k.material = J;
2277
- const U = parseFloat(h.children[0].getAttribute("radius")) || 0, ae = parseFloat(h.children[0].getAttribute("length")) || 0;
2278
- k.scale.set(U, ae, U), k.rotation.set(Math.PI / 2, 0, 0), m.add(k);
2277
+ const F = parseFloat(h.children[0].getAttribute("radius")) || 0, ae = parseFloat(h.children[0].getAttribute("length")) || 0;
2278
+ k.scale.set(F, ae, F), k.rotation.set(Math.PI / 2, 0, 0), m.add(k);
2279
2279
  }
2280
2280
  } else if (C === "origin") {
2281
2281
  const L = _e(h.getAttribute("xyz")), k = _e(h.getAttribute("rpy"));
@@ -2286,11 +2286,11 @@ class ci {
2286
2286
  return Ne(O);
2287
2287
  }
2288
2288
  // Default mesh loading function
2289
- defaultMeshLoader(O, Q, R) {
2290
- /\.stl$/i.test(O) ? new Ln(Q).load(O, (v) => {
2289
+ defaultMeshLoader(O, Z, R) {
2290
+ /\.stl$/i.test(O) ? new Ln(Z).load(O, (v) => {
2291
2291
  const oe = new Ce(v, new ve());
2292
2292
  R(oe);
2293
- }) : /\.dae$/i.test(O) ? new oi(Q).load(O, (v) => R(v.scene)) : console.warn(`URDFLoader: Could not load model at ${O}.
2293
+ }) : /\.dae$/i.test(O) ? new oi(Z).load(O, (v) => R(v.scene)) : console.warn(`URDFLoader: Could not load model at ${O}.
2294
2294
  No loader available`);
2295
2295
  }
2296
2296
  }