@realsee/five 6.4.2 → 6.5.0-alpha.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (167) hide show
  1. package/docs/assets/navigation.js +1 -1
  2. package/docs/assets/search.js +1 -1
  3. package/docs/classes/five.BoxBoundingVolume.html +2 -2
  4. package/docs/classes/five.Camera.html +7 -7
  5. package/docs/classes/five.CullingVolume.html +2 -2
  6. package/docs/classes/five.Five.html +69 -81
  7. package/docs/classes/five.InternalWebGLRenderer.html +1 -1
  8. package/docs/classes/five.Model.html +55 -43
  9. package/docs/classes/five.ModelScene.html +38 -0
  10. package/docs/classes/five.Motion.html +17 -0
  11. package/docs/classes/five.PBMContainer.html +4 -12
  12. package/docs/classes/five.PBMCustomShader.html +11 -0
  13. package/docs/classes/five.PBMMaterial.html +2 -0
  14. package/docs/classes/five.PBMMesh.html +2 -4
  15. package/docs/classes/five.PBMMeshMaterial.html +27 -57
  16. package/docs/classes/five.PBMPointCloud.html +2 -3
  17. package/docs/classes/five.PBMPointCloudMaterial.html +15 -51
  18. package/docs/classes/five.PBMSkinnedMesh.html +2 -3
  19. package/docs/classes/five.Parameter.html +113 -0
  20. package/docs/classes/five.RegionBoundingVolume.html +2 -2
  21. package/docs/classes/five.Scene.html +6 -4
  22. package/docs/classes/five.SphereBoundingVolume.html +2 -2
  23. package/docs/classes/five.TextureLoader.html +2 -3
  24. package/docs/classes/five.Tile.html +2 -2
  25. package/docs/classes/five.Tile3DModel.html +55 -34
  26. package/docs/classes/five.TileNode.html +2 -2
  27. package/docs/classes/five.TileRequestScheduler.html +2 -2
  28. package/docs/classes/five.Tileset.html +4 -31
  29. package/docs/classes/five.Trajectory.html +2 -2
  30. package/docs/classes/five.TrajectoryNode.html +2 -2
  31. package/docs/classes/five.Work.html +17 -15
  32. package/docs/classes/gltf_loader.GLTFParser.html +1 -1
  33. package/docs/classes/sticker.Sticker.html +1 -1
  34. package/docs/functions/five.loadAt3d.html +1 -1
  35. package/docs/functions/five.loadB3dm.html +1 -1
  36. package/docs/functions/five.loadDome.html +1 -1
  37. package/docs/functions/five.loadDomez.html +1 -1
  38. package/docs/functions/five.loadFbx.html +1 -1
  39. package/docs/functions/five.loadGltf.html +1 -1
  40. package/docs/functions/five.loadPbm.html +1 -1
  41. package/docs/functions/five.loadPly.html +1 -1
  42. package/docs/functions/five.loadPnts.html +1 -1
  43. package/docs/functions/five.loadX3p.html +1 -1
  44. package/docs/functions/five.parseWork.html +1 -1
  45. package/docs/functions/react.useFiveCurrentObserver.html +2 -2
  46. package/docs/functions/react.withFive.html +1 -1
  47. package/docs/hierarchy.html +1 -1
  48. package/docs/interfaces/five.BaseEvent.html +1 -1
  49. package/docs/interfaces/five.BoundingVolume.html +2 -2
  50. package/docs/interfaces/five.CameraPose.html +2 -2
  51. package/docs/interfaces/five.EventCallback.html +3 -3
  52. package/docs/interfaces/five.FiveInitArgs.html +2 -2
  53. package/docs/interfaces/five.FiveLoadOptions.html +6 -6
  54. package/docs/interfaces/five.Intersection.html +2 -2
  55. package/docs/interfaces/five.LoosePanoWork.html +2 -2
  56. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +9 -9
  57. package/docs/interfaces/five.ModelLike.html +3 -0
  58. package/docs/interfaces/five.ModelSceneEvent.html +6 -0
  59. package/docs/interfaces/five.PBMClipperParameter.html +3 -0
  60. package/docs/interfaces/five.PBMCustomShaderInitArgs.html +6 -0
  61. package/docs/interfaces/five.PBMCustomShaderSlots.html +3 -0
  62. package/docs/interfaces/five.PBMMeshMaterialParameters.html +29 -0
  63. package/docs/interfaces/five.PBMPanoDepth.html +9 -0
  64. package/docs/interfaces/five.PBMPanoPicture.html +9 -7
  65. package/docs/interfaces/five.PBMPointCloudMaterialParameters.html +27 -0
  66. package/docs/interfaces/five.PBMRefinedScreen.html +6 -0
  67. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +10 -10
  68. package/docs/interfaces/five.ParameterMaterialValue.html +71 -0
  69. package/docs/interfaces/five.ParameterTilesetValue.html +32 -0
  70. package/docs/interfaces/five.ParameterValue.html +102 -0
  71. package/docs/interfaces/five.ResolvedParameterValue.html +103 -0
  72. package/docs/interfaces/five.Tile3DModelLoaderOptions.html +4 -4
  73. package/docs/interfaces/five.TileCubeNode.html +2 -2
  74. package/docs/interfaces/five.TileCubeTree.html +2 -2
  75. package/docs/interfaces/five.TilesetHeader.html +5 -4
  76. package/docs/interfaces/five.TilesetOptions.html +2 -2
  77. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +10 -10
  78. package/docs/interfaces/five.WorkCubeImage.html +7 -9
  79. package/docs/interfaces/five.WorkImage.html +10 -12
  80. package/docs/interfaces/five.WorkInitial.html +8 -8
  81. package/docs/interfaces/five.WorkModel.html +6 -6
  82. package/docs/interfaces/five.WorkModelLayer.html +2 -2
  83. package/docs/interfaces/five.WorkObserver.html +30 -20
  84. package/docs/interfaces/five.WorkResolvedObserver.html +22 -21
  85. package/docs/interfaces/five.WorkTile.html +16 -7
  86. package/docs/interfaces/five.WorkVideo.html +4 -4
  87. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +10 -10
  88. package/docs/interfaces/gltf_loader.DDS.html +2 -2
  89. package/docs/interfaces/gltf_loader.GLTFReference.html +2 -2
  90. package/docs/interfaces/react.FiveInjectionTypes.html +9 -8
  91. package/docs/modules/five.html +38 -17
  92. package/docs/types/five.EventTypes.html +3 -3
  93. package/docs/types/five.LoadResultType.html +1 -0
  94. package/docs/types/five.LooseWork.html +1 -1
  95. package/docs/types/five.LooseWorkInitial.html +1 -1
  96. package/docs/types/five.LooseWorkModel.html +1 -1
  97. package/docs/types/five.LooseWorkObserver.html +1 -1
  98. package/docs/types/five.LooseWorkPanorama.html +1 -1
  99. package/docs/types/five.LooseWorkWithExtrinsics.html +1 -1
  100. package/docs/types/five.Models.html +11 -14
  101. package/docs/types/five.MotionCircle.html +2 -0
  102. package/docs/types/five.MotionConfig.html +1 -0
  103. package/docs/types/five.MotionInitalValue.html +1 -0
  104. package/docs/types/five.PBMAlphaMode.html +1 -0
  105. package/docs/types/five.PBMColorStyle.html +1 -0
  106. package/docs/types/five.PBMFloorStyle.html +1 -0
  107. package/docs/types/five.PBMMeshShaderType.html +1 -0
  108. package/docs/types/five.PBMPointBack.html +1 -0
  109. package/docs/types/five.PBMPointCloudShaderType.html +1 -0
  110. package/docs/types/five.PBMPointShape.html +1 -0
  111. package/docs/types/five.PBMPointSize.html +1 -0
  112. package/docs/types/five.PBMTransition.html +1 -0
  113. package/docs/types/five.ParseWorkOptions.html +1 -1
  114. package/docs/types/five.PostProcessingType.html +1 -1
  115. package/docs/types/five.Tile3dOptions.html +1 -1
  116. package/docs/types/five.TileContentData.html +1 -1
  117. package/docs/types/five.TileDebug.html +1 -0
  118. package/docs/types/five.TileRequestOrder.html +1 -1
  119. package/docs/types/five.TilesetFrameState.html +1 -1
  120. package/docs/types/five.Works.html +1 -1
  121. package/five/index.d.ts +1079 -675
  122. package/five/index.js +208 -154
  123. package/five/index.mjs +9053 -8801
  124. package/gltf-loader/index.js +3 -3
  125. package/gltf-loader/index.mjs +146 -146
  126. package/line/index.js +3 -3
  127. package/line/index.mjs +10 -10
  128. package/package.json +1 -4
  129. package/plugins/index.js +2 -2
  130. package/plugins/index.mjs +2 -2
  131. package/react/index.d.ts +3 -2
  132. package/react/index.js +2 -2
  133. package/react/index.mjs +2 -2
  134. package/shader-lib/index.js +47 -25
  135. package/shader-lib/index.mjs +79 -57
  136. package/sticker/index.js +3 -3
  137. package/sticker/index.mjs +7 -7
  138. package/umd/five-gltf-loader.js +3 -3
  139. package/umd/five-line.js +3 -3
  140. package/umd/five-plugins.js +2 -2
  141. package/umd/five-react.js +2 -2
  142. package/umd/five-shader-lib.js +47 -25
  143. package/umd/five-sticker.js +3 -3
  144. package/umd/five-vfx.js +2 -2
  145. package/umd/five-vue.js +2 -2
  146. package/umd/five.js +208 -154
  147. package/vfx/index.js +2 -2
  148. package/vfx/index.mjs +2 -2
  149. package/vue/index.js +2 -2
  150. package/vue/index.mjs +2 -2
  151. package/work-downloader/index.js +2 -2
  152. package/work-downloader/index.mjs +2 -2
  153. package/docs/classes/five.CustomShader.html +0 -9
  154. package/docs/classes/five.ModelViewLayer.html +0 -17
  155. package/docs/classes/five.TileCubeTextureTarget.html +0 -12
  156. package/docs/interfaces/five.ClipperParameter.html +0 -3
  157. package/docs/interfaces/five.CustomShaderInitArgs.html +0 -6
  158. package/docs/interfaces/five.FragmentShaderChunks.html +0 -5
  159. package/docs/interfaces/five.ModelsEvent.html +0 -6
  160. package/docs/interfaces/five.PBMParameters.html +0 -58
  161. package/docs/interfaces/five.Tile3dLayerOptions.html +0 -31
  162. package/docs/interfaces/five.VertexShaderChunks.html +0 -4
  163. package/docs/types/five.Mirror.html +0 -1
  164. package/docs/types/five.ModelMaterialValues.html +0 -1
  165. package/docs/types/five.ParsedResultType.html +0 -1
  166. package/docs/variables/five.defaultPbmParameters.html +0 -1
  167. package/scripts/five-staticify.js +0 -207
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 6/20/2025
5
- * Version: 6.4.2
4
+ * Generated: 2025/7/4
5
+ * Version: 6.5.0-alpha.0
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -253,7 +253,7 @@
253
253
  * writing and signed by Realsee. You and Realsee hereto confirm that this
254
254
  * Agreement and all related documents shall be drafted in English.
255
255
  */import * as De from "three";
256
- import { Loader as ye, LoaderUtils as pe, FileLoader as _e, Color as re, SpotLight as or, PointLight as ir, DirectionalLight as ur, MeshBasicMaterial as he, MeshPhysicalMaterial as ke, Vector2 as Be, MeshStandardMaterial as ve, TangentSpaceNormalMap as fr, Interpolant as Ke, MeshPhongMaterial as lr, TextureLoader as cr, InterleavedBuffer as dr, InterleavedBufferAttribute as pr, BufferAttribute as Re, LinearFilter as Ve, LinearMipmapLinearFilter as je, RepeatWrapping as Pe, RGBFormat as Xe, PointsMaterial as hr, Material as ze, LineBasicMaterial as vr, DoubleSide as Tr, sRGBEncoding as We, BufferGeometry as Ze, SkinnedMesh as gr, Mesh as mr, LineSegments as Ar, Line as Sr, LineLoop as Er, Points as yr, Group as Ue, PerspectiveCamera as _r, MathUtils as Rr, OrthographicCamera as Lr, InterpolateLinear as Ye, AnimationClip as Mr, Bone as wr, Object3D as Ir, PropertyBinding as br, Matrix4 as qe, NearestFilter as xr, NearestMipmapNearestFilter as Cr, LinearMipmapNearestFilter as Or, NearestMipmapLinearFilter as Fr, ClampToEdgeWrapping as Dr, MirroredRepeatWrapping as Pr, InterpolateDiscrete as Ur, RGBAFormat as $e, FrontSide as Gr, TriangleFanDrawMode as Je, TriangleStripDrawMode as Nr, VectorKeyframeTrack as Hr, QuaternionKeyframeTrack as kr, NumberKeyframeTrack as Br, Skeleton as Kr, Box3 as Vr, Vector3 as Ee, Sphere as jr, CompressedTextureLoader as er, RGB_ETC1_Format as Xr, RGBA_S3TC_DXT5_Format as zr, RGBA_S3TC_DXT3_Format as Wr, RGB_S3TC_DXT1_Format as Yr } from "three";
256
+ import { Loader as ye, LoaderUtils as pe, FileLoader as _e, Color as re, SpotLight as or, PointLight as ir, DirectionalLight as ur, MeshBasicMaterial as he, MeshPhysicalMaterial as ke, Vector2 as Be, MeshStandardMaterial as ve, TangentSpaceNormalMap as lr, Interpolant as Ke, MeshPhongMaterial as fr, TextureLoader as cr, InterleavedBuffer as dr, InterleavedBufferAttribute as pr, BufferAttribute as Re, LinearFilter as Ve, LinearMipmapLinearFilter as je, RepeatWrapping as Pe, RGBFormat as Xe, PointsMaterial as hr, Material as ze, LineBasicMaterial as vr, DoubleSide as Tr, sRGBEncoding as We, BufferGeometry as Ze, SkinnedMesh as gr, Mesh as mr, LineSegments as Ar, Line as Sr, LineLoop as Er, Points as yr, Group as Ue, PerspectiveCamera as _r, MathUtils as Rr, OrthographicCamera as Lr, InterpolateLinear as Ye, AnimationClip as Mr, Bone as wr, Object3D as Ir, PropertyBinding as br, Matrix4 as qe, NearestFilter as xr, NearestMipmapNearestFilter as Cr, LinearMipmapNearestFilter as Or, NearestMipmapLinearFilter as Fr, ClampToEdgeWrapping as Dr, MirroredRepeatWrapping as Pr, InterpolateDiscrete as Ur, RGBAFormat as $e, FrontSide as Gr, TriangleFanDrawMode as Je, TriangleStripDrawMode as Nr, VectorKeyframeTrack as Hr, QuaternionKeyframeTrack as kr, NumberKeyframeTrack as Br, Skeleton as Kr, Box3 as Vr, Vector3 as Ee, Sphere as jr, CompressedTextureLoader as er, RGB_ETC1_Format as Xr, RGBA_S3TC_DXT5_Format as zr, RGBA_S3TC_DXT3_Format as Wr, RGB_S3TC_DXT1_Format as Yr } from "three";
257
257
  var Ge = function(p, T) {
258
258
  return Ge = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(u, m) {
259
259
  u.__proto__ = m;
@@ -279,16 +279,16 @@ var qr = function() {
279
279
  load: function(e, r, t, n) {
280
280
  var a = this, i;
281
281
  this.resourcePath !== "" ? i = this.resourcePath : this.path !== "" ? i = this.path : i = pe.extractUrlBase(e), a.manager.itemStart(e);
282
- var s = function(f) {
283
- n ? n(f) : console.error(f), a.manager.itemError(e), a.manager.itemEnd(e);
282
+ var s = function(l) {
283
+ n ? n(l) : console.error(l), a.manager.itemError(e), a.manager.itemEnd(e);
284
284
  }, o = new _e(a.manager);
285
- o.setPath(this.path), o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), a.crossOrigin === "use-credentials" && o.setWithCredentials(!0), o.load(e, function(f) {
285
+ o.setPath(this.path), o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), a.crossOrigin === "use-credentials" && o.setWithCredentials(!0), o.load(e, function(l) {
286
286
  try {
287
- a.parse(f, i, function(l) {
288
- r(l), a.manager.itemEnd(e);
287
+ a.parse(l, i, function(f) {
288
+ r(f), a.manager.itemEnd(e);
289
289
  }, s);
290
- } catch (l) {
291
- s(l);
290
+ } catch (f) {
291
+ s(f);
292
292
  }
293
293
  }, t, s);
294
294
  },
@@ -321,41 +321,41 @@ var qr = function() {
321
321
  return;
322
322
  }
323
323
  if (o.extensionsUsed)
324
- for (var f = 0; f < o.extensionsUsed.length; ++f) {
325
- var l = o.extensionsUsed[f], h = o.extensionsRequired || [];
326
- switch (l) {
324
+ for (var l = 0; l < o.extensionsUsed.length; ++l) {
325
+ var f = o.extensionsUsed[l], h = o.extensionsRequired || [];
326
+ switch (f) {
327
327
  case u.KHR_LIGHTS_PUNCTUAL:
328
- i[l] = new v(o);
328
+ i[f] = new v(o);
329
329
  break;
330
330
  case u.KHR_MATERIALS_CLEARCOAT:
331
- i[l] = new _();
331
+ i[f] = new _();
332
332
  break;
333
333
  case u.KHR_MATERIALS_TRANSMISSION:
334
- i[l] = new x();
334
+ i[f] = new x();
335
335
  break;
336
336
  case u.KHR_MATERIALS_UNLIT:
337
- i[l] = new g();
337
+ i[f] = new g();
338
338
  break;
339
339
  case u.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS:
340
- i[l] = new K();
340
+ i[f] = new K();
341
341
  break;
342
342
  case u.KHR_DRACO_MESH_COMPRESSION:
343
- i[l] = new b(o, this.dracoLoader);
343
+ i[f] = new b(o, this.dracoLoader);
344
344
  break;
345
345
  case u.MSFT_TEXTURE_DDS:
346
- i[l] = new m(this.ddsLoader);
346
+ i[f] = new m(this.ddsLoader);
347
347
  break;
348
348
  case u.KHR_TEXTURE_TRANSFORM:
349
- i[l] = new M();
349
+ i[f] = new M();
350
350
  break;
351
351
  case u.KHR_MESH_QUANTIZATION:
352
- i[l] = new ne();
352
+ i[f] = new ne();
353
353
  break;
354
354
  case u.REALSEE_MATERIALS_LIGHTMAP:
355
- i[l] = new J();
355
+ i[f] = new J();
356
356
  break;
357
357
  default:
358
- h.indexOf(l) >= 0 && console.warn('THREE.GLTFLoader: Unknown extension "' + l + '".');
358
+ h.indexOf(f) >= 0 && console.warn('THREE.GLTFLoader: Unknown extension "' + f + '".');
359
359
  }
360
360
  }
361
361
  var c = new C(o, i, {
@@ -499,16 +499,16 @@ var qr = function() {
499
499
  this.name = u.KHR_DRACO_MESH_COMPRESSION, this.json = e, this.dracoLoader = r, this.dracoLoader.preload();
500
500
  }
501
501
  b.prototype.decodePrimitive = function(e, r) {
502
- var t = this.json, n = this.dracoLoader, a = e.extensions[this.name].bufferView, i = e.extensions[this.name].attributes, s = {}, o = {}, f = {};
503
- for (var l in i) {
504
- var h = fe[l] || l.toLowerCase();
505
- s[h] = i[l];
502
+ var t = this.json, n = this.dracoLoader, a = e.extensions[this.name].bufferView, i = e.extensions[this.name].attributes, s = {}, o = {}, l = {};
503
+ for (var f in i) {
504
+ var h = le[f] || f.toLowerCase();
505
+ s[h] = i[f];
506
506
  }
507
- for (l in e.attributes) {
508
- var h = fe[l] || l.toLowerCase();
509
- if (i[l] !== void 0) {
510
- var c = t.accessors[e.attributes[l]], d = Q[c.componentType];
511
- f[h] = d, o[h] = c.normalized === !0;
507
+ for (f in e.attributes) {
508
+ var h = le[f] || f.toLowerCase();
509
+ if (i[f] !== void 0) {
510
+ var c = t.accessors[e.attributes[f]], d = Q[c.componentType];
511
+ l[h] = d, o[h] = c.normalized === !0;
512
512
  }
513
513
  }
514
514
  return r.getDependency("bufferView", a).then(function(A) {
@@ -519,7 +519,7 @@ var qr = function() {
519
519
  O !== void 0 && (L.normalized = O);
520
520
  }
521
521
  y(E);
522
- }, s, f);
522
+ }, s, l);
523
523
  });
524
524
  });
525
525
  };
@@ -575,8 +575,8 @@ var qr = function() {
575
575
  glossinessMap: { value: null }
576
576
  };
577
577
  this._extraUniforms = s, this.onBeforeCompile = function(o) {
578
- for (var f in s)
579
- o.uniforms[f] = s[f];
578
+ for (var l in s)
579
+ o.uniforms[l] = s[l];
580
580
  o.fragmentShader = o.fragmentShader.replace("uniform float roughness;", "uniform vec3 specular;"), o.fragmentShader = o.fragmentShader.replace("uniform float metalness;", "uniform float glossiness;"), o.fragmentShader = o.fragmentShader.replace("#include <roughnessmap_pars_fragment>", r), o.fragmentShader = o.fragmentShader.replace("#include <metalnessmap_pars_fragment>", t), o.fragmentShader = o.fragmentShader.replace("#include <roughnessmap_fragment>", n), o.fragmentShader = o.fragmentShader.replace("#include <metalnessmap_fragment>", a), o.fragmentShader = o.fragmentShader.replace("#include <lights_physical_fragment>", i);
581
581
  }, Object.defineProperties(
582
582
  this,
@@ -667,7 +667,7 @@ var qr = function() {
667
667
  },
668
668
  createMaterial: function(e) {
669
669
  var r = new w(e);
670
- return r.fog = !0, r.color = e.color, r.map = e.map === void 0 ? null : e.map, r.lightMap = null, r.lightMapIntensity = 1, r.aoMap = e.aoMap === void 0 ? null : e.aoMap, r.aoMapIntensity = 1, r.emissive = e.emissive, r.emissiveIntensity = 1, r.emissiveMap = e.emissiveMap === void 0 ? null : e.emissiveMap, r.bumpMap = e.bumpMap === void 0 ? null : e.bumpMap, r.bumpScale = 1, r.normalMap = e.normalMap === void 0 ? null : e.normalMap, r.normalMapType = fr, e.normalScale && (r.normalScale = e.normalScale), r.displacementMap = null, r.displacementScale = 1, r.displacementBias = 0, r.specularMap = e.specularMap === void 0 ? null : e.specularMap, r.specular = e.specular, r.glossinessMap = e.glossinessMap === void 0 ? null : e.glossinessMap, r.glossiness = e.glossiness, r.alphaMap = null, r.envMap = e.envMap === void 0 ? null : e.envMap, r.envMapIntensity = 1, r.refractionRatio = 0.98, r;
670
+ return r.fog = !0, r.color = e.color, r.map = e.map === void 0 ? null : e.map, r.lightMap = null, r.lightMapIntensity = 1, r.aoMap = e.aoMap === void 0 ? null : e.aoMap, r.aoMapIntensity = 1, r.emissive = e.emissive, r.emissiveIntensity = 1, r.emissiveMap = e.emissiveMap === void 0 ? null : e.emissiveMap, r.bumpMap = e.bumpMap === void 0 ? null : e.bumpMap, r.bumpScale = 1, r.normalMap = e.normalMap === void 0 ? null : e.normalMap, r.normalMapType = lr, e.normalScale && (r.normalScale = e.normalScale), r.displacementMap = null, r.displacementScale = 1, r.displacementBias = 0, r.specularMap = e.specularMap === void 0 ? null : e.specularMap, r.specular = e.specular, r.glossinessMap = e.glossinessMap === void 0 ? null : e.glossinessMap, r.glossiness = e.glossiness, r.alphaMap = null, r.envMap = e.envMap === void 0 ? null : e.envMap, r.envMapIntensity = 1, r.refractionRatio = 0.98, r;
671
671
  }
672
672
  };
673
673
  }
@@ -682,8 +682,8 @@ var qr = function() {
682
682
  r[i] = t[a + i];
683
683
  return r;
684
684
  }, D.prototype.beforeStart_ = D.prototype.copySampleValue_, D.prototype.afterEnd_ = D.prototype.copySampleValue_, D.prototype.interpolate_ = function(e, r, t, n) {
685
- for (var a = this.resultBuffer, i = this.sampleValues, s = this.valueSize, o = s * 2, f = s * 3, l = n - r, h = (t - r) / l, c = h * h, d = c * h, A = e * f, y = A - f, E = -2 * d + 3 * c, S = d - c, L = 1 - E, O = S - c + h, G = 0; G !== s; G++) {
686
- var te = i[y + G + s], ae = i[y + G + o] * l, $ = i[A + G + s], B = i[A + G] * l;
685
+ for (var a = this.resultBuffer, i = this.sampleValues, s = this.valueSize, o = s * 2, l = s * 3, f = n - r, h = (t - r) / f, c = h * h, d = c * h, A = e * l, y = A - l, E = -2 * d + 3 * c, S = d - c, L = 1 - E, O = S - c + h, G = 0; G !== s; G++) {
686
+ var te = i[y + G + s], ae = i[y + G + o] * f, $ = i[A + G + s], B = i[A + G] * f;
687
687
  a[G] = L * te + O * ae + E * $ + S * B;
688
688
  }
689
689
  return a;
@@ -692,7 +692,7 @@ var qr = function() {
692
692
  this.parser = e, this.name = u.REALSEE_MATERIALS_LIGHTMAP;
693
693
  }
694
694
  J.prototype.getMaterialType = function(e) {
695
- return lr;
695
+ return fr;
696
696
  }, J.prototype.extendParams = function(e, r, t) {
697
697
  if (!r.extensions || !r.extensions[this.name])
698
698
  return Promise.resolve();
@@ -745,7 +745,7 @@ var qr = function() {
745
745
  MAT2: 4,
746
746
  MAT3: 9,
747
747
  MAT4: 16
748
- }, fe = {
748
+ }, le = {
749
749
  POSITION: "position",
750
750
  NORMAL: "normal",
751
751
  TANGENT: "tangent",
@@ -765,7 +765,7 @@ var qr = function() {
765
765
  // keyframe track will be initialized with a default interpolation type, then modified.
766
766
  LINEAR: Ye,
767
767
  STEP: Ur
768
- }, le = {
768
+ }, fe = {
769
769
  OPAQUE: "OPAQUE",
770
770
  MASK: "MASK",
771
771
  BLEND: "BLEND"
@@ -800,20 +800,20 @@ var qr = function() {
800
800
  if (o.POSITION !== void 0 && (n = !0), o.NORMAL !== void 0 && (a = !0), n && a) break;
801
801
  }
802
802
  if (!n && !a) return Promise.resolve(e);
803
- for (var f = [], l = [], i = 0, s = r.length; i < s; i++) {
803
+ for (var l = [], f = [], i = 0, s = r.length; i < s; i++) {
804
804
  var o = r[i];
805
805
  if (n) {
806
806
  var h = o.POSITION !== void 0 ? t.getDependency("accessor", o.POSITION) : e.attributes.position;
807
- f.push(h);
807
+ l.push(h);
808
808
  }
809
809
  if (a) {
810
810
  var h = o.NORMAL !== void 0 ? t.getDependency("accessor", o.NORMAL) : e.attributes.normal;
811
- l.push(h);
811
+ f.push(h);
812
812
  }
813
813
  }
814
814
  return Promise.all([
815
- Promise.all(f),
816
- Promise.all(l)
815
+ Promise.all(l),
816
+ Promise.all(f)
817
817
  ]).then(function(c) {
818
818
  var d = c[0], A = c[1];
819
819
  return n && (e.morphAttributes.position = d), a && (e.morphAttributes.normal = A), e.morphTargetsRelative = !0, e;
@@ -865,8 +865,8 @@ var qr = function() {
865
865
  }).catch(r);
866
866
  }, C.prototype.markDefs = function() {
867
867
  for (var e = this.json.nodes || [], r = this.json.skins || [], t = this.json.meshes || [], n = {}, a = {}, i = 0, s = r.length; i < s; i++)
868
- for (var o = r[i].joints, f = 0, l = o.length; f < l; f++)
869
- e[o[f]].isBone = !0;
868
+ for (var o = r[i].joints, l = 0, f = o.length; l < f; l++)
869
+ e[o[l]].isBone = !0;
870
870
  for (var h = 0, c = e.length; h < c; h++) {
871
871
  var d = e[h];
872
872
  d.mesh !== void 0 && (n[d.mesh] === void 0 && (n[d.mesh] = a[d.mesh] = 0), n[d.mesh]++, d.skin !== void 0 && (t[d.mesh].isSkinnedMesh = !0));
@@ -951,14 +951,14 @@ var qr = function() {
951
951
  return Promise.resolve(null);
952
952
  var a = [];
953
953
  return n.bufferView !== void 0 ? a.push(this.getDependency("bufferView", n.bufferView)) : a.push(null), n.sparse !== void 0 && (a.push(this.getDependency("bufferView", n.sparse.indices.bufferView)), a.push(this.getDependency("bufferView", n.sparse.values.bufferView))), Promise.all(a).then(function(i) {
954
- var s = i[0], o = z[n.type], f = Q[n.componentType], l = f.BYTES_PER_ELEMENT, h = l * o, c = n.byteOffset || 0, d = n.bufferView !== void 0 ? t.bufferViews[n.bufferView].byteStride : void 0, A = n.normalized === !0, y, E;
954
+ var s = i[0], o = z[n.type], l = Q[n.componentType], f = l.BYTES_PER_ELEMENT, h = f * o, c = n.byteOffset || 0, d = n.bufferView !== void 0 ? t.bufferViews[n.bufferView].byteStride : void 0, A = n.normalized === !0, y, E;
955
955
  if (d && d !== h) {
956
956
  var S = Math.floor(c / d), L = "InterleavedBuffer:" + n.bufferView + ":" + n.componentType + ":" + S + ":" + n.count, O = r.cache.get(L);
957
- O || (y = new f(s, S * d, n.count * d / l), O = new dr(y, d / l), r.cache.add(L, O)), E = new pr(O, o, c % d / l, A);
957
+ O || (y = new l(s, S * d, n.count * d / f), O = new dr(y, d / f), r.cache.add(L, O)), E = new pr(O, o, c % d / f, A);
958
958
  } else
959
- s === null ? y = new f(n.count * o) : y = new f(s, c, n.count * o), E = new Re(y, o, A);
959
+ s === null ? y = new l(n.count * o) : y = new l(s, c, n.count * o), E = new Re(y, o, A);
960
960
  if (n.sparse !== void 0) {
961
- var G = z.SCALAR, te = Q[n.sparse.indices.componentType], ae = n.sparse.indices.byteOffset || 0, $ = n.sparse.values.byteOffset || 0, B = new te(i[1], ae, n.sparse.count * G), ue = new f(i[2], $, n.sparse.count * o);
961
+ var G = z.SCALAR, te = Q[n.sparse.indices.componentType], ae = n.sparse.indices.byteOffset || 0, $ = n.sparse.values.byteOffset || 0, B = new te(i[1], ae, n.sparse.count * G), ue = new l(i[2], $, n.sparse.count * o);
962
962
  s !== null && (E = new Re(E.array.slice(), E.itemSize, E.normalized));
963
963
  for (var N = 0, be = B.length; N < be; N++) {
964
964
  var se = B[N];
@@ -968,20 +968,20 @@ var qr = function() {
968
968
  return E;
969
969
  });
970
970
  }, C.prototype.loadTexture = function(e) {
971
- var r = this, t = this.json, n = this.options, a = this.textureLoader, i = self.URL || self.webkitURL, s = t.textures[e], o = s.extensions || {}, f;
972
- o[u.MSFT_TEXTURE_DDS] ? f = t.images[o[u.MSFT_TEXTURE_DDS].source] : f = t.images[s.source];
973
- var l = f.uri, h = !1;
974
- return f.bufferView !== void 0 && (l = r.getDependency("bufferView", f.bufferView).then(function(c) {
971
+ var r = this, t = this.json, n = this.options, a = this.textureLoader, i = self.URL || self.webkitURL, s = t.textures[e], o = s.extensions || {}, l;
972
+ o[u.MSFT_TEXTURE_DDS] ? l = t.images[o[u.MSFT_TEXTURE_DDS].source] : l = t.images[s.source];
973
+ var f = l.uri, h = !1;
974
+ return l.bufferView !== void 0 && (f = r.getDependency("bufferView", l.bufferView).then(function(c) {
975
975
  h = !0;
976
- var d = new Blob([c], { type: f.mimeType });
977
- return l = i.createObjectURL(d), l;
978
- })), Promise.resolve(l).then(function(c) {
976
+ var d = new Blob([c], { type: l.mimeType });
977
+ return f = i.createObjectURL(d), f;
978
+ })), Promise.resolve(f).then(function(c) {
979
979
  var d = n.manager.getHandler(c);
980
980
  return d || (d = o[u.MSFT_TEXTURE_DDS] ? r.extensions[u.MSFT_TEXTURE_DDS].ddsLoader : a), new Promise(function(A, y) {
981
981
  d.load(ge(c, n.path), A, void 0, y);
982
982
  });
983
983
  }).then(function(c) {
984
- h === !0 && i.revokeObjectURL(l), c.flipY = !1, s.name && (c.name = s.name), f.mimeType in Te && (c.format = Te[f.mimeType]);
984
+ h === !0 && i.revokeObjectURL(f), c.flipY = !1, s.name && (c.name = s.name), l.mimeType in Te && (c.format = Te[l.mimeType]);
985
985
  var d = t.samplers || {}, A = d[s.sampler] || {};
986
986
  return c.magFilter = Z[A.magFilter] || Ve, c.minFilter = Z[A.minFilter] || je, c.wrapS = X[A.wrapS] || Pe, c.wrapT = X[A.wrapT] || Pe, r.associations.set(c, {
987
987
  type: "textures",
@@ -1011,29 +1011,29 @@ var qr = function() {
1011
1011
  e[r] = a;
1012
1012
  });
1013
1013
  }, C.prototype.assignFinalMaterial = function(e) {
1014
- var r = e.geometry, t = e.material, n = r.attributes.tangent !== void 0, a = r.attributes.color !== void 0, i = r.attributes.normal === void 0, s = e.isSkinnedMesh === !0, o = Object.keys(r.morphAttributes).length > 0, f = o && r.morphAttributes.normal !== void 0;
1014
+ var r = e.geometry, t = e.material, n = r.attributes.tangent !== void 0, a = r.attributes.color !== void 0, i = r.attributes.normal === void 0, s = e.isSkinnedMesh === !0, o = Object.keys(r.morphAttributes).length > 0, l = o && r.morphAttributes.normal !== void 0;
1015
1015
  if (e.isPoints) {
1016
- var l = "PointsMaterial:" + t.uuid, h = this.cache.get(l);
1017
- h || (h = new hr(), ze.prototype.copy.call(h, t), h.color.copy(t.color), h.map = t.map, h.sizeAttenuation = !1, this.cache.add(l, h)), t = h;
1016
+ var f = "PointsMaterial:" + t.uuid, h = this.cache.get(f);
1017
+ h || (h = new hr(), ze.prototype.copy.call(h, t), h.color.copy(t.color), h.map = t.map, h.sizeAttenuation = !1, this.cache.add(f, h)), t = h;
1018
1018
  } else if (e.isLine) {
1019
- var l = "LineBasicMaterial:" + t.uuid, c = this.cache.get(l);
1020
- c || (c = new vr(), ze.prototype.copy.call(c, t), c.color.copy(t.color), this.cache.add(l, c)), t = c;
1019
+ var f = "LineBasicMaterial:" + t.uuid, c = this.cache.get(f);
1020
+ c || (c = new vr(), ze.prototype.copy.call(c, t), c.color.copy(t.color), this.cache.add(f, c)), t = c;
1021
1021
  }
1022
1022
  if (n || a || i || s || o) {
1023
- var l = "ClonedMaterial:" + t.uuid + ":";
1024
- t.isGLTFSpecularGlossinessMaterial && (l += "specular-glossiness:"), s && (l += "skinning:"), n && (l += "vertex-tangents:"), a && (l += "vertex-colors:"), i && (l += "flat-shading:"), o && (l += "morph-targets:"), f && (l += "morph-normals:");
1025
- var d = this.cache.get(l);
1026
- d || (d = t.clone(), s && (d.skinning = !0), n && (d.vertexTangents = !0), a && (d.vertexColors = !0), i && (d.flatShading = !0), o && (d.morphTargets = !0), f && (d.morphNormals = !0), this.cache.add(l, d), this.associations.set(d, this.associations.get(t))), t = d;
1023
+ var f = "ClonedMaterial:" + t.uuid + ":";
1024
+ t.isGLTFSpecularGlossinessMaterial && (f += "specular-glossiness:"), s && (f += "skinning:"), n && (f += "vertex-tangents:"), a && (f += "vertex-colors:"), i && (f += "flat-shading:"), o && (f += "morph-targets:"), l && (f += "morph-normals:");
1025
+ var d = this.cache.get(f);
1026
+ d || (d = t.clone(), s && (d.skinning = !0), n && (d.vertexTangents = !0), a && (d.vertexColors = !0), i && (d.flatShading = !0), o && (d.morphTargets = !0), l && (d.morphNormals = !0), this.cache.add(f, d), this.associations.set(d, this.associations.get(t))), t = d;
1027
1027
  }
1028
1028
  t.aoMap && r.attributes.uv2 === void 0 && r.attributes.uv !== void 0 && r.setAttribute("uv2", r.attributes.uv), t.normalScale && !n && (t.normalScale.y = -t.normalScale.y), t.clearcoatNormalScale && !n && (t.clearcoatNormalScale.y = -t.clearcoatNormalScale.y), e.material = t;
1029
1029
  }, C.prototype.loadMaterial = function(e) {
1030
- var r = this, t = this.json, n = this.extensions, a = t.materials[e], i, s = {}, o = a.extensions || {}, f = [];
1030
+ var r = this, t = this.json, n = this.extensions, a = t.materials[e], i, s = {}, o = a.extensions || {}, l = [];
1031
1031
  if (o[u.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS]) {
1032
- var l = n[u.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];
1033
- i = l.getMaterialType(), f.push(l.extendParams(s, a, r));
1032
+ var f = n[u.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS];
1033
+ i = f.getMaterialType(), l.push(f.extendParams(s, a, r));
1034
1034
  } else if (o[u.KHR_MATERIALS_UNLIT]) {
1035
1035
  var h = n[u.KHR_MATERIALS_UNLIT];
1036
- i = h.getMaterialType(), f.push(h.extendParams(s, a, r));
1036
+ i = h.getMaterialType(), l.push(h.extendParams(s, a, r));
1037
1037
  } else {
1038
1038
  i = ve;
1039
1039
  var c = a.pbrMetallicRoughness || {};
@@ -1041,23 +1041,23 @@ var qr = function() {
1041
1041
  var d = c.baseColorFactor;
1042
1042
  s.color.fromArray(d), s.opacity = d[3];
1043
1043
  }
1044
- c.baseColorTexture !== void 0 && f.push(r.assignTexture(s, "map", c.baseColorTexture)), s.metalness = c.metallicFactor !== void 0 ? c.metallicFactor : 1, s.roughness = c.roughnessFactor !== void 0 ? c.roughnessFactor : 1, c.metallicRoughnessTexture !== void 0 && (f.push(r.assignTexture(s, "metalnessMap", c.metallicRoughnessTexture)), f.push(r.assignTexture(s, "roughnessMap", c.metallicRoughnessTexture)));
1044
+ c.baseColorTexture !== void 0 && l.push(r.assignTexture(s, "map", c.baseColorTexture)), s.metalness = c.metallicFactor !== void 0 ? c.metallicFactor : 1, s.roughness = c.roughnessFactor !== void 0 ? c.roughnessFactor : 1, c.metallicRoughnessTexture !== void 0 && (l.push(r.assignTexture(s, "metalnessMap", c.metallicRoughnessTexture)), l.push(r.assignTexture(s, "roughnessMap", c.metallicRoughnessTexture)));
1045
1045
  }
1046
1046
  a.doubleSided === !0 && (s.side = Tr);
1047
- var A = a.alphaMode || le.OPAQUE;
1048
- if (A === le.BLEND ? (s.transparent = !0, s.depthWrite = !1) : (s.transparent = !1, A === le.MASK && (s.alphaTest = a.alphaCutoff !== void 0 ? a.alphaCutoff : 0.5)), a.normalTexture !== void 0 && i !== he && (f.push(r.assignTexture(s, "normalMap", a.normalTexture)), s.normalScale = new Be(1, 1), a.normalTexture.scale !== void 0 && s.normalScale.set(a.normalTexture.scale, a.normalTexture.scale)), a.occlusionTexture !== void 0 && i !== he && (f.push(r.assignTexture(s, "aoMap", a.occlusionTexture)), a.occlusionTexture.strength !== void 0 && (s.aoMapIntensity = a.occlusionTexture.strength)), a.emissiveFactor !== void 0 && i !== he && (s.emissive = new re().fromArray(a.emissiveFactor)), a.emissiveTexture !== void 0 && i !== he && f.push(r.assignTexture(s, "emissiveMap", a.emissiveTexture)), o[u.KHR_MATERIALS_CLEARCOAT]) {
1047
+ var A = a.alphaMode || fe.OPAQUE;
1048
+ if (A === fe.BLEND ? (s.transparent = !0, s.depthWrite = !1) : (s.transparent = !1, A === fe.MASK && (s.alphaTest = a.alphaCutoff !== void 0 ? a.alphaCutoff : 0.5)), a.normalTexture !== void 0 && i !== he && (l.push(r.assignTexture(s, "normalMap", a.normalTexture)), s.normalScale = new Be(1, 1), a.normalTexture.scale !== void 0 && s.normalScale.set(a.normalTexture.scale, a.normalTexture.scale)), a.occlusionTexture !== void 0 && i !== he && (l.push(r.assignTexture(s, "aoMap", a.occlusionTexture)), a.occlusionTexture.strength !== void 0 && (s.aoMapIntensity = a.occlusionTexture.strength)), a.emissiveFactor !== void 0 && i !== he && (s.emissive = new re().fromArray(a.emissiveFactor)), a.emissiveTexture !== void 0 && i !== he && l.push(r.assignTexture(s, "emissiveMap", a.emissiveTexture)), o[u.KHR_MATERIALS_CLEARCOAT]) {
1049
1049
  var y = n[u.KHR_MATERIALS_CLEARCOAT];
1050
- i = y.getMaterialType(), f.push(y.extendParams(s, { extensions: o }, r));
1050
+ i = y.getMaterialType(), l.push(y.extendParams(s, { extensions: o }, r));
1051
1051
  }
1052
1052
  if (o[u.KHR_MATERIALS_TRANSMISSION]) {
1053
1053
  var y = n[u.KHR_MATERIALS_TRANSMISSION];
1054
- i = y.getMaterialType(), f.push(y.extendParams(s, { extensions: o }, r));
1054
+ i = y.getMaterialType(), l.push(y.extendParams(s, { extensions: o }, r));
1055
1055
  }
1056
1056
  if (o[u.REALSEE_MATERIALS_LIGHTMAP]) {
1057
1057
  var E = n[u.REALSEE_MATERIALS_LIGHTMAP];
1058
- i = E.getMaterialType(), f.push(E.extendParams(s, { extensions: o }, r));
1058
+ i = E.getMaterialType(), l.push(E.extendParams(s, { extensions: o }, r));
1059
1059
  }
1060
- return Promise.all(f).then(function() {
1060
+ return Promise.all(l).then(function() {
1061
1061
  var S;
1062
1062
  return i === w ? S = n[u.KHR_MATERIALS_PBR_SPECULAR_GLOSSINESS].createMaterial(s) : S = new i(s), a.name && (S.name = a.name), S.map && (S.map.encoding = We), S.emissiveMap && (S.emissiveMap.encoding = We), W(S, a), r.associations.set(S, { type: "materials", index: e }), a.extensions && oe(n, S, a), S;
1063
1063
  });
@@ -1077,16 +1077,16 @@ var qr = function() {
1077
1077
  }
1078
1078
  } else
1079
1079
  return;
1080
- var f = r.targets;
1081
- if (f !== void 0) {
1082
- for (var l = new Ee(), h = new Ee(), c = 0, d = f.length; c < d; c++) {
1083
- var A = f[c];
1080
+ var l = r.targets;
1081
+ if (l !== void 0) {
1082
+ for (var f = new Ee(), h = new Ee(), c = 0, d = l.length; c < d; c++) {
1083
+ var A = l[c];
1084
1084
  if (A.POSITION !== void 0) {
1085
1085
  var i = t.json.accessors[A.POSITION], s = i.min, o = i.max;
1086
- s !== void 0 && o !== void 0 ? (h.setX(Math.max(Math.abs(s[0]), Math.abs(o[0]))), h.setY(Math.max(Math.abs(s[1]), Math.abs(o[1]))), h.setZ(Math.max(Math.abs(s[2]), Math.abs(o[2]))), l.max(h)) : console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");
1086
+ s !== void 0 && o !== void 0 ? (h.setX(Math.max(Math.abs(s[0]), Math.abs(o[0]))), h.setY(Math.max(Math.abs(s[1]), Math.abs(o[1]))), h.setZ(Math.max(Math.abs(s[2]), Math.abs(o[2]))), f.max(h)) : console.warn("THREE.GLTFLoader: Missing min/max properties for accessor POSITION.");
1087
1087
  }
1088
1088
  }
1089
- a.expandByVector(l);
1089
+ a.expandByVector(f);
1090
1090
  }
1091
1091
  e.boundingBox = a;
1092
1092
  var y = new jr();
@@ -1094,20 +1094,20 @@ var qr = function() {
1094
1094
  }
1095
1095
  function j(e, r, t) {
1096
1096
  var n = r.attributes, a = [];
1097
- function i(l, h) {
1098
- return t.getDependency("accessor", l).then(function(c) {
1097
+ function i(f, h) {
1098
+ return t.getDependency("accessor", f).then(function(c) {
1099
1099
  e.setAttribute(h, c);
1100
1100
  });
1101
1101
  }
1102
1102
  for (var s in n) {
1103
- var o = fe[s] || s.toLowerCase();
1103
+ var o = le[s] || s.toLowerCase();
1104
1104
  o in e.attributes || a.push(i(n[s], o));
1105
1105
  }
1106
1106
  if (r.indices !== void 0 && !e.index) {
1107
- var f = t.getDependency("accessor", r.indices).then(function(l) {
1108
- e.setIndex(l);
1107
+ var l = t.getDependency("accessor", r.indices).then(function(f) {
1108
+ e.setIndex(f);
1109
1109
  });
1110
- a.push(f);
1110
+ a.push(l);
1111
1111
  }
1112
1112
  return W(e, r), me(e, r, t), Promise.all(a).then(function() {
1113
1113
  return r.targets !== void 0 ? we(e, r.targets, t) : e;
@@ -1132,8 +1132,8 @@ var qr = function() {
1132
1132
  for (var i = 0; i < s; i++)
1133
1133
  i % 2 === 0 ? (o.push(t.getX(i)), o.push(t.getX(i + 1)), o.push(t.getX(i + 2))) : (o.push(t.getX(i + 2)), o.push(t.getX(i + 1)), o.push(t.getX(i)));
1134
1134
  o.length / 3 !== s && console.error("THREE.GLTFLoader.toTrianglesDrawMode(): Unable to generate correct amount of triangles.");
1135
- var f = e.clone();
1136
- return f.setIndex(o), f;
1135
+ var l = e.clone();
1136
+ return l.setIndex(o), l;
1137
1137
  }
1138
1138
  return C.prototype.loadGeometries = function(e) {
1139
1139
  var r = this, t = this.extensions, n = this.primitiveCache;
@@ -1143,22 +1143,22 @@ var qr = function() {
1143
1143
  });
1144
1144
  }
1145
1145
  for (var i = [], s = 0, o = e.length; s < o; s++) {
1146
- var f = e[s], l = U(f), h = n[l];
1146
+ var l = e[s], f = U(l), h = n[f];
1147
1147
  if (h)
1148
1148
  i.push(h.promise);
1149
1149
  else {
1150
1150
  var c;
1151
- f.extensions && f.extensions[u.KHR_DRACO_MESH_COMPRESSION] ? c = a(f) : c = j(new Ze(), f, r), n[l] = { primitive: f, promise: c }, i.push(c);
1151
+ l.extensions && l.extensions[u.KHR_DRACO_MESH_COMPRESSION] ? c = a(l) : c = j(new Ze(), l, r), n[f] = { primitive: l, promise: c }, i.push(c);
1152
1152
  }
1153
1153
  }
1154
1154
  return Promise.all(i);
1155
1155
  }, C.prototype.loadMesh = function(e) {
1156
1156
  for (var r = this, t = this.json, n = t.meshes[e], a = n.primitives, i = [], s = 0, o = a.length; s < o; s++) {
1157
- var f = a[s].material === void 0 ? Me(this.cache) : this.getDependency("material", a[s].material);
1158
- i.push(f);
1157
+ var l = a[s].material === void 0 ? Me(this.cache) : this.getDependency("material", a[s].material);
1158
+ i.push(l);
1159
1159
  }
1160
- return i.push(r.loadGeometries(a)), Promise.all(i).then(function(l) {
1161
- for (var h = l.slice(0, l.length - 1), c = l[l.length - 1], d = [], A = 0, y = c.length; A < y; A++) {
1160
+ return i.push(r.loadGeometries(a)), Promise.all(i).then(function(f) {
1161
+ for (var h = f.slice(0, f.length - 1), c = f[f.length - 1], d = [], A = 0, y = c.length; A < y; A++) {
1162
1162
  var E = c[A], S = a[A], L, O = h[A];
1163
1163
  if (S.mode === H.TRIANGLES || S.mode === H.TRIANGLE_STRIP || S.mode === H.TRIANGLE_FAN || S.mode === void 0)
1164
1164
  L = n.isSkinnedMesh === !0 ? new gr(E, O) : new mr(E, O), L.isSkinnedMesh === !0 && !L.geometry.attributes.skinWeight.normalized && L.normalizeSkinWeights(), S.mode === H.TRIANGLE_STRIP ? L.geometry = ie(L.geometry, Nr) : S.mode === H.TRIANGLE_FAN && (L.geometry = ie(L.geometry, Je));
@@ -1193,8 +1193,8 @@ var qr = function() {
1193
1193
  return t.inverseBindMatrices = n, t;
1194
1194
  });
1195
1195
  }, C.prototype.loadAnimation = function(e) {
1196
- for (var r = this.json, t = r.animations[e], n = [], a = [], i = [], s = [], o = [], f = 0, l = t.channels.length; f < l; f++) {
1197
- var h = t.channels[f], c = t.samplers[h.sampler], d = h.target, A = d.node !== void 0 ? d.node : d.id, y = t.parameters !== void 0 ? t.parameters[c.input] : c.input, E = t.parameters !== void 0 ? t.parameters[c.output] : c.output;
1196
+ for (var r = this.json, t = r.animations[e], n = [], a = [], i = [], s = [], o = [], l = 0, f = t.channels.length; l < f; l++) {
1197
+ var h = t.channels[l], c = t.samplers[h.sampler], d = h.target, A = d.node !== void 0 ? d.node : d.id, y = t.parameters !== void 0 ? t.parameters[c.input] : c.input, E = t.parameters !== void 0 ? t.parameters[c.output] : c.output;
1198
1198
  n.push(this.getDependency("node", A)), a.push(this.getDependency("accessor", y)), i.push(this.getDependency("accessor", E)), s.push(c), o.push(d);
1199
1199
  }
1200
1200
  return Promise.all([
@@ -1263,30 +1263,30 @@ var qr = function() {
1263
1263
  var r = this.json, t = this.extensions, n = this, a = r.meshReferences, i = r.meshUses, s = r.nodes[e];
1264
1264
  return function() {
1265
1265
  var o = [];
1266
- return s.mesh !== void 0 && o.push(n.getDependency("mesh", s.mesh).then(function(f) {
1267
- var l;
1266
+ return s.mesh !== void 0 && o.push(n.getDependency("mesh", s.mesh).then(function(l) {
1267
+ var f;
1268
1268
  if (a[s.mesh] > 1) {
1269
1269
  var h = i[s.mesh]++;
1270
- l = f.clone(), l.name += "_instance_" + h;
1270
+ f = l.clone(), f.name += "_instance_" + h;
1271
1271
  } else
1272
- l = f;
1273
- return s.weights !== void 0 && l.traverse(function(c) {
1272
+ f = l;
1273
+ return s.weights !== void 0 && f.traverse(function(c) {
1274
1274
  if (c.isMesh)
1275
1275
  for (var d = 0, A = s.weights.length; d < A; d++)
1276
1276
  c.morphTargetInfluences[d] = s.weights[d];
1277
- }), l;
1277
+ }), f;
1278
1278
  })), s.camera !== void 0 && o.push(n.getDependency("camera", s.camera)), s.extensions && s.extensions[u.KHR_LIGHTS_PUNCTUAL] && s.extensions[u.KHR_LIGHTS_PUNCTUAL].light !== void 0 && o.push(n.getDependency("light", s.extensions[u.KHR_LIGHTS_PUNCTUAL].light)), Promise.all(o);
1279
1279
  }().then(function(o) {
1280
- var f;
1281
- if (s.isBone === !0 ? f = new wr() : o.length > 1 ? f = new Ue() : o.length === 1 ? f = o[0] : f = new Ir(), f !== o[0])
1282
- for (var l = 0, h = o.length; l < h; l++)
1283
- f.add(o[l]);
1284
- if (s.name && (f.userData.name = s.name, f.name = br.sanitizeNodeName(s.name)), W(f, s), s.extensions && oe(t, f, s), s.matrix !== void 0) {
1280
+ var l;
1281
+ if (s.isBone === !0 ? l = new wr() : o.length > 1 ? l = new Ue() : o.length === 1 ? l = o[0] : l = new Ir(), l !== o[0])
1282
+ for (var f = 0, h = o.length; f < h; f++)
1283
+ l.add(o[f]);
1284
+ if (s.name && (l.userData.name = s.name, l.name = br.sanitizeNodeName(s.name)), W(l, s), s.extensions && oe(t, l, s), s.matrix !== void 0) {
1285
1285
  var c = new qe();
1286
- c.fromArray(s.matrix), f.applyMatrix4(c);
1286
+ c.fromArray(s.matrix), l.applyMatrix4(c);
1287
1287
  } else
1288
- s.translation !== void 0 && f.position.fromArray(s.translation), s.rotation !== void 0 && f.quaternion.fromArray(s.rotation), s.scale !== void 0 && f.scale.fromArray(s.scale);
1289
- return n.associations.set(f, { type: "nodes", index: e }), f;
1288
+ s.translation !== void 0 && l.position.fromArray(s.translation), s.rotation !== void 0 && l.quaternion.fromArray(s.rotation), s.scale !== void 0 && l.scale.fromArray(s.scale);
1289
+ return n.associations.set(l, { type: "nodes", index: e }), l;
1290
1290
  });
1291
1291
  }, C.prototype.loadScene = /* @__PURE__ */ function() {
1292
1292
  function e(r, t, n, a) {
@@ -1294,16 +1294,16 @@ var qr = function() {
1294
1294
  return a.getDependency("node", r).then(function(s) {
1295
1295
  if (i.skin === void 0) return s;
1296
1296
  var o;
1297
- return a.getDependency("skin", i.skin).then(function(f) {
1298
- o = f;
1299
- for (var l = [], h = 0, c = o.joints.length; h < c; h++)
1300
- l.push(a.getDependency("node", o.joints[h]));
1301
- return Promise.all(l);
1302
- }).then(function(f) {
1303
- return s.traverse(function(l) {
1304
- if (l.isMesh) {
1305
- for (var h = [], c = [], d = 0, A = f.length; d < A; d++) {
1306
- var y = f[d];
1297
+ return a.getDependency("skin", i.skin).then(function(l) {
1298
+ o = l;
1299
+ for (var f = [], h = 0, c = o.joints.length; h < c; h++)
1300
+ f.push(a.getDependency("node", o.joints[h]));
1301
+ return Promise.all(f);
1302
+ }).then(function(l) {
1303
+ return s.traverse(function(f) {
1304
+ if (f.isMesh) {
1305
+ for (var h = [], c = [], d = 0, A = l.length; d < A; d++) {
1306
+ var y = l[d];
1307
1307
  if (y) {
1308
1308
  h.push(y);
1309
1309
  var E = new qe();
@@ -1311,7 +1311,7 @@ var qr = function() {
1311
1311
  } else
1312
1312
  console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', o.joints[d]);
1313
1313
  }
1314
- l.bind(new Kr(h, c), l.matrixWorld);
1314
+ f.bind(new Kr(h, c), f.matrixWorld);
1315
1315
  }
1316
1316
  }), s;
1317
1317
  });
@@ -1319,8 +1319,8 @@ var qr = function() {
1319
1319
  t.add(s);
1320
1320
  var o = [];
1321
1321
  if (i.children)
1322
- for (var f = i.children, l = 0, h = f.length; l < h; l++) {
1323
- var c = f[l];
1322
+ for (var l = i.children, f = 0, h = l.length; f < h; f++) {
1323
+ var c = l[f];
1324
1324
  o.push(e(c, s, n, a));
1325
1325
  }
1326
1326
  return Promise.all(o);
@@ -1329,9 +1329,9 @@ var qr = function() {
1329
1329
  return function(t) {
1330
1330
  var n = this.json, a = this.extensions, i = this.json.scenes[t], s = this, o = new Ue();
1331
1331
  i.name && (o.name = i.name), W(o, i), i.extensions && oe(a, o, i);
1332
- for (var f = i.nodes || [], l = [], h = 0, c = f.length; h < c; h++)
1333
- l.push(e(f[h], o, n, s));
1334
- return Promise.all(l).then(function() {
1332
+ for (var l = i.nodes || [], f = [], h = 0, c = l.length; h < c; h++)
1333
+ f.push(e(l[h], o, n, s));
1334
+ return Promise.all(f).then(function() {
1335
1335
  return o;
1336
1336
  });
1337
1337
  };
@@ -1605,19 +1605,19 @@ Ne.prototype = Object.assign(Object.create(er.prototype), {
1605
1605
  constructor: Ne,
1606
1606
  parse: function(p, T) {
1607
1607
  var u = { mipmaps: [], width: 0, height: 0, format: null, mipmapCount: 1 }, m = 542327876, v = 131072, g = 512, _ = 1024, x = 2048, F = 4096, R = 8192, I = 16384, P = 32768, b = 4;
1608
- function M(f) {
1609
- return f.charCodeAt(0) + (f.charCodeAt(1) << 8) + (f.charCodeAt(2) << 16) + (f.charCodeAt(3) << 24);
1608
+ function M(l) {
1609
+ return l.charCodeAt(0) + (l.charCodeAt(1) << 8) + (l.charCodeAt(2) << 16) + (l.charCodeAt(3) << 24);
1610
1610
  }
1611
- function w(f) {
1611
+ function w(l) {
1612
1612
  return String.fromCharCode(
1613
- f & 255,
1614
- f >> 8 & 255,
1615
- f >> 16 & 255,
1616
- f >> 24 & 255
1613
+ l & 255,
1614
+ l >> 8 & 255,
1615
+ l >> 16 & 255,
1616
+ l >> 24 & 255
1617
1617
  );
1618
1618
  }
1619
- function K(f, l, h, c) {
1620
- for (var d = h * c * 4, A = new Uint8Array(f, l, d), y = new Uint8Array(d), E = 0, S = 0, L = 0; L < c; L++)
1619
+ function K(l, f, h, c) {
1620
+ for (var d = h * c * 4, A = new Uint8Array(l, f, d), y = new Uint8Array(d), E = 0, S = 0, L = 0; L < c; L++)
1621
1621
  for (var O = 0; O < h; O++) {
1622
1622
  var G = A[S];
1623
1623
  S++;
@@ -1630,10 +1630,10 @@ Ne.prototype = Object.assign(Object.create(er.prototype), {
1630
1630
  }
1631
1631
  return y;
1632
1632
  }
1633
- var ne = M("DXT1"), D = M("DXT3"), J = M("DXT5"), H = M("ETC1"), Q = 31, Z = 0, X = 1, z = 2, fe = 3, V = 4, Le = 7, le = 20, Te = 21, ge = 22, Me = 23, oe = 24, W = 25, we = 26, Ie = 28, U = new Int32Array(p, 0, Q);
1633
+ var ne = M("DXT1"), D = M("DXT3"), J = M("DXT5"), H = M("ETC1"), Q = 31, Z = 0, X = 1, z = 2, le = 3, V = 4, Le = 7, fe = 20, Te = 21, ge = 22, Me = 23, oe = 24, W = 25, we = 26, Ie = 28, U = new Int32Array(p, 0, Q);
1634
1634
  if (U[Z] !== m)
1635
1635
  return console.error("THREE.DDSLoader.parse: Invalid magic number in DDS header."), u;
1636
- if (!U[le] & b)
1636
+ if (!U[fe] & b)
1637
1637
  return console.error("THREE.DDSLoader.parse: Unsupported format, must contain a FourCC code."), u;
1638
1638
  var Y, C = U[Te], me = !1;
1639
1639
  switch (C) {
@@ -1659,7 +1659,7 @@ Ne.prototype = Object.assign(Object.create(er.prototype), {
1659
1659
  var j = U[Ie];
1660
1660
  if (u.isCubemap = !!(j & g), u.isCubemap && (!(j & _) || !(j & x) || !(j & F) || !(j & R) || !(j & I) || !(j & P)))
1661
1661
  return console.error("THREE.DDSLoader.parse: Incomplete cubemap faces"), u;
1662
- u.width = U[V], u.height = U[fe];
1662
+ u.width = U[V], u.height = U[le];
1663
1663
  for (var ie = U[X] + 4, e = u.isCubemap ? 6 : 1, r = 0; r < e; r++)
1664
1664
  for (var t = u.width, n = u.height, a = 0; a < u.mipmapCount; a++) {
1665
1665
  if (me)
@@ -1695,7 +1695,7 @@ var Qe = (
1695
1695
  }
1696
1696
  return Object.defineProperty(T, "version", {
1697
1697
  get: function() {
1698
- return "6.4.2";
1698
+ return "6.5.0-alpha.0";
1699
1699
  },
1700
1700
  enumerable: !1,
1701
1701
  configurable: !0