@realsee/five 6.0.0-alpha.111 → 6.0.0-alpha.112

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 (332) hide show
  1. package/docs/assets/icons.js +15 -0
  2. package/docs/assets/icons.svg +1 -0
  3. package/docs/assets/main.js +4 -4
  4. package/docs/assets/navigation.js +1 -1
  5. package/docs/assets/search.js +1 -1
  6. package/docs/assets/style.css +40 -22
  7. package/docs/classes/five.AnimationFrameLoop.html +13 -15
  8. package/docs/classes/five.BoxBoundingVolume.html +19 -19
  9. package/docs/classes/five.Camera.html +38 -38
  10. package/docs/classes/five.CullingVolume.html +13 -13
  11. package/docs/classes/five.Fetcher.html +5 -5
  12. package/docs/classes/five.Five.html +206 -212
  13. package/docs/classes/five.InternalWebGLRenderer.html +2 -2
  14. package/docs/classes/five.IntersectMesh.html +4 -4
  15. package/docs/classes/five.Model.html +60 -60
  16. package/docs/classes/five.ModelViewLayer.html +18 -18
  17. package/docs/classes/five.NetworkAbortError.html +2 -2
  18. package/docs/classes/five.NetworkFirbiddenError.html +2 -2
  19. package/docs/classes/five.NetworkResponseError.html +3 -3
  20. package/docs/classes/five.NetworkSubscribe.html +33 -37
  21. package/docs/classes/five.NetworkTimeoutError.html +2 -2
  22. package/docs/classes/five.PBMContainer.html +12 -12
  23. package/docs/classes/five.PBMGroup.html +3 -3
  24. package/docs/classes/five.PBMMesh.html +4 -4
  25. package/docs/classes/five.PBMMeshMaterial.html +80 -80
  26. package/docs/classes/five.PanoCircleMesh.html +20 -20
  27. package/docs/classes/five.PanoCircleMeshCustom.html +20 -20
  28. package/docs/classes/five.PanoCircleMeshSolid.html +20 -20
  29. package/docs/classes/five.RegionBoundingVolume.html +22 -22
  30. package/docs/classes/five.RequestScheduler.html +11 -11
  31. package/docs/classes/five.Scene.html +5 -5
  32. package/docs/classes/five.SphereBoundingVolume.html +18 -18
  33. package/docs/classes/five.Subscribe.html +34 -38
  34. package/docs/classes/five.TextureLoader.html +5 -5
  35. package/docs/classes/five.Tile.html +32 -32
  36. package/docs/classes/five.Tile3DModel.html +47 -47
  37. package/docs/classes/five.TileCubeTextureTarget.html +9 -9
  38. package/docs/classes/five.TileNode.html +5 -5
  39. package/docs/classes/five.Tileset.html +34 -34
  40. package/docs/classes/five.TilesetCache.html +8 -8
  41. package/docs/classes/five.TilesetTraverser.html +18 -18
  42. package/docs/classes/five.Work.html +31 -31
  43. package/docs/classes/five.XRButton.html +3 -3
  44. package/docs/classes/gltf_loader.DDSLoader.html +3 -3
  45. package/docs/classes/gltf_loader.DRACOLoader.html +8 -8
  46. package/docs/classes/gltf_loader.GLTFLoader.html +17 -17
  47. package/docs/classes/gltf_loader.GLTFObject.html +7 -7
  48. package/docs/classes/gltf_loader.GLTFParser.html +6 -6
  49. package/docs/classes/gltf_loader.THREEGLTFLoader.html +8 -8
  50. package/docs/classes/line.Line.html +10 -10
  51. package/docs/classes/line.LineGeometry.html +14 -14
  52. package/docs/classes/line.LineMaterial.html +8 -8
  53. package/docs/classes/line.LineSegmentsGeometry.html +12 -12
  54. package/docs/classes/line.THREE_Line2.html +4 -4
  55. package/docs/classes/line.THREE_LineSegments2.html +4 -4
  56. package/docs/classes/plugins.BasePlugin.Controller.html +34 -34
  57. package/docs/classes/plugins.ItemMaskController.html +37 -37
  58. package/docs/classes/plugins.OrientationPluginController.html +49 -49
  59. package/docs/classes/plugins.RoundedBoxGeometry.html +3 -3
  60. package/docs/classes/react.Store.html +19 -21
  61. package/docs/classes/sticker.Sticker.html +22 -22
  62. package/docs/classes/vfx.Airflow.html +8 -8
  63. package/docs/classes/vfx.Flame.html +10 -10
  64. package/docs/classes/vfx.Particle.html +74 -74
  65. package/docs/classes/vfx.SpotLight.html +7 -7
  66. package/docs/enums/five.VolumePlaneIntersect.html +4 -4
  67. package/docs/functions/five.defaultImageURLTransform.html +4 -4
  68. package/docs/functions/five.getViewportScale.html +1 -1
  69. package/docs/functions/five.imageSupport.html +1 -1
  70. package/docs/functions/five.isPanoId.html +1 -1
  71. package/docs/functions/five.loadAt3d.html +1 -1
  72. package/docs/functions/five.loadB3dm.html +1 -1
  73. package/docs/functions/five.loadDome.html +1 -1
  74. package/docs/functions/five.loadDomez.html +1 -1
  75. package/docs/functions/five.loadPbm.html +1 -1
  76. package/docs/functions/five.loadPnts.html +1 -1
  77. package/docs/functions/five.panoEqual.html +1 -1
  78. package/docs/functions/five.panoParse.html +1 -1
  79. package/docs/functions/five.panoStringify.html +1 -1
  80. package/docs/functions/five.parseWork.html +4 -4
  81. package/docs/functions/plugins.ItemMaskPlugin.html +1 -1
  82. package/docs/functions/plugins.OrientationPlugin.html +1 -1
  83. package/docs/functions/react.FiveCanvas.html +6 -0
  84. package/docs/functions/react.createFiveFeature.html +1 -1
  85. package/docs/functions/react.createFiveProvider.html +4 -4
  86. package/docs/functions/react.createStore.html +11 -13
  87. package/docs/functions/react.unsafe__useFiveInstance.html +2 -2
  88. package/docs/functions/react.useFiveAction.html +2 -2
  89. package/docs/functions/react.useFiveCameraDirection.html +3 -3
  90. package/docs/functions/react.useFiveCameraRaycaster.html +3 -3
  91. package/docs/functions/react.useFiveCurrentObserver.html +2 -2
  92. package/docs/functions/react.useFiveCurrentState.html +2 -2
  93. package/docs/functions/react.useFiveEventCallback.html +3 -3
  94. package/docs/functions/react.useFiveFloor.html +2 -2
  95. package/docs/functions/react.useFiveHelper.html +2 -2
  96. package/docs/functions/react.useFiveModelIntersectRaycaster.html +3 -3
  97. package/docs/functions/react.useFiveModelReadyState.html +2 -2
  98. package/docs/functions/react.useFiveProject2d.html +3 -3
  99. package/docs/functions/react.useFiveScene.html +2 -2
  100. package/docs/functions/react.useFiveSceneEffect.html +4 -4
  101. package/docs/functions/react.useFiveState.html +1 -1
  102. package/docs/functions/react.useFiveWork.html +3 -3
  103. package/docs/functions/react.withFive.html +1 -1
  104. package/docs/functions/vue.unsafe__useFiveInject.html +2 -2
  105. package/docs/functions/vue.useFiveAction.html +2 -2
  106. package/docs/functions/vue.useFiveCameraDirection.html +3 -3
  107. package/docs/functions/vue.useFiveCameraRaycaster.html +3 -3
  108. package/docs/functions/vue.useFiveCurrentObserver.html +3 -3
  109. package/docs/functions/vue.useFiveCurrentState.html +3 -3
  110. package/docs/functions/vue.useFiveEventCallback.html +3 -3
  111. package/docs/functions/vue.useFiveFloor.html +3 -3
  112. package/docs/functions/vue.useFiveHelper.html +3 -3
  113. package/docs/functions/vue.useFiveModel.html +2 -2
  114. package/docs/functions/vue.useFiveModelBounding.html +2 -2
  115. package/docs/functions/vue.useFiveModelIntersectRaycaster.html +2 -2
  116. package/docs/functions/vue.useFiveModelReadyState.html +3 -3
  117. package/docs/functions/vue.useFiveProject2d.html +2 -2
  118. package/docs/functions/vue.useFiveScene.html +2 -2
  119. package/docs/functions/vue.useFiveState.html +3 -3
  120. package/docs/functions/vue.useFiveWorks.html +3 -3
  121. package/docs/hierarchy.html +1 -0
  122. package/docs/index.html +2 -2
  123. package/docs/interfaces/five.AddableObject.html +9 -9
  124. package/docs/interfaces/five.AjaxOptions.html +11 -11
  125. package/docs/interfaces/five.AnimationFrame.html +5 -5
  126. package/docs/interfaces/five.BaseEvent.html +5 -5
  127. package/docs/interfaces/five.BoundingVolume.html +15 -15
  128. package/docs/interfaces/five.CameraPose.html +6 -6
  129. package/docs/interfaces/five.ClipperParameter.html +3 -3
  130. package/docs/interfaces/five.EventCallback.html +340 -340
  131. package/docs/interfaces/five.FiveInitArgs.html +54 -54
  132. package/docs/interfaces/five.FiveLoadOptions.html +25 -25
  133. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +17 -17
  134. package/docs/interfaces/five.GestureEvent.html +19 -19
  135. package/docs/interfaces/five.ImageOptions.html +16 -16
  136. package/docs/interfaces/five.ImageURLMappings.html +1 -1
  137. package/docs/interfaces/five.ImageURLOptions.html +15 -15
  138. package/docs/interfaces/five.IntersectEvent.html +8 -8
  139. package/docs/interfaces/five.IntersectMeshInterface.html +3 -3
  140. package/docs/interfaces/five.Intersection.html +5 -5
  141. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +15 -15
  142. package/docs/interfaces/five.ModeChangeEvent.html +9 -9
  143. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +17 -17
  144. package/docs/interfaces/five.ModelEvent.html +8 -8
  145. package/docs/interfaces/five.ModelsEvent.html +6 -6
  146. package/docs/interfaces/five.MotionKeyframe.html +4 -4
  147. package/docs/interfaces/five.MovePanoOptions.html +24 -24
  148. package/docs/interfaces/five.NetworkOptions.html +9 -9
  149. package/docs/interfaces/five.NetworkResourceEvent.html +9 -9
  150. package/docs/interfaces/five.ObjectEvent.html +6 -6
  151. package/docs/interfaces/five.PBMPanoPicture.html +9 -9
  152. package/docs/interfaces/five.PBMParameters.html +44 -44
  153. package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +9 -9
  154. package/docs/interfaces/five.PanoCircleMeshInterface.html +20 -20
  155. package/docs/interfaces/five.PanoCircleMeshOptions.html +3 -3
  156. package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +3 -3
  157. package/docs/interfaces/five.PanoEvent.html +11 -11
  158. package/docs/interfaces/five.PanoTextureEvent.html +9 -9
  159. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +28 -28
  160. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +17 -17
  161. package/docs/interfaces/five.Pose.html +12 -12
  162. package/docs/interfaces/five.RenderEvent.html +7 -7
  163. package/docs/interfaces/five.Scissor.html +10 -10
  164. package/docs/interfaces/five.State.html +18 -18
  165. package/docs/interfaces/five.StateEvent.html +7 -7
  166. package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -1
  167. package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -1
  168. package/docs/interfaces/five.SubscribeMixinType.off.html +1 -1
  169. package/docs/interfaces/five.SubscribeMixinType.on.html +1 -1
  170. package/docs/interfaces/five.SubscribeMixinType.once.html +1 -1
  171. package/docs/interfaces/five.SubscribeMixinType.waitUnitl.html +1 -1
  172. package/docs/interfaces/five.TextureOptions.html +18 -18
  173. package/docs/interfaces/five.Tile3DModelLoaderOptions.html +12 -12
  174. package/docs/interfaces/five.TileCubeNode.html +7 -7
  175. package/docs/interfaces/five.TileCubeTree.html +2 -2
  176. package/docs/interfaces/five.TileHeader.html +9 -9
  177. package/docs/interfaces/five.TilesetHeader.html +6 -6
  178. package/docs/interfaces/five.TilesetOptions.html +6 -6
  179. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +9 -9
  180. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +24 -24
  181. package/docs/interfaces/five.WebXRAxesParams.html +4 -4
  182. package/docs/interfaces/five.WebXRControllerParams.html +2 -2
  183. package/docs/interfaces/five.WorkCubeImage.html +15 -15
  184. package/docs/interfaces/five.WorkImage.html +20 -20
  185. package/docs/interfaces/five.WorkInitial.html +17 -17
  186. package/docs/interfaces/five.WorkModel.html +12 -12
  187. package/docs/interfaces/five.WorkObserver.html +40 -40
  188. package/docs/interfaces/five.WorkResolvedObserver.html +41 -41
  189. package/docs/interfaces/five.WorkTile.html +10 -10
  190. package/docs/interfaces/five.WorkVideo.html +8 -8
  191. package/docs/interfaces/five.WorksEvent.html +9 -9
  192. package/docs/interfaces/five.XRControllerEvent.html +8 -8
  193. package/docs/interfaces/five.XRGestureEvent.html +11 -11
  194. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +24 -24
  195. package/docs/interfaces/five.XRSessionEvent.html +7 -7
  196. package/docs/interfaces/gltf_loader.DDS.html +7 -7
  197. package/docs/interfaces/gltf_loader.GLTF.html +9 -9
  198. package/docs/interfaces/gltf_loader.GLTFReference.html +3 -3
  199. package/docs/interfaces/gltf_loader.THREEGLTF.html +8 -8
  200. package/docs/interfaces/plugins.BasePlugin.BaseOptions.html +3 -3
  201. package/docs/interfaces/plugins.BasePlugin.Config.html +5 -5
  202. package/docs/interfaces/plugins.BasePlugin.State.html +8 -8
  203. package/docs/interfaces/plugins.ItemMaskPluginType.Config.html +2 -2
  204. package/docs/interfaces/plugins.ItemMaskPluginType.EventMap.html +10 -10
  205. package/docs/interfaces/plugins.ItemMaskPluginType.ItemType.html +13 -13
  206. package/docs/interfaces/plugins.ItemMaskPluginType.MaskType.html +4 -4
  207. package/docs/interfaces/plugins.ItemMaskPluginType.Params.html +4 -4
  208. package/docs/interfaces/plugins.ItemMaskPluginType.State.html +14 -14
  209. package/docs/interfaces/plugins.OrientationPluginType.Config.html +3 -3
  210. package/docs/interfaces/plugins.OrientationPluginType.EventMap.html +10 -10
  211. package/docs/interfaces/plugins.OrientationPluginType.Params.html +4 -4
  212. package/docs/interfaces/plugins.OrientationPluginType.State.html +10 -10
  213. package/docs/interfaces/react.FiveActionReactCallbacks.html +24 -24
  214. package/docs/interfaces/react.FiveInjectionTypes.html +87 -91
  215. package/docs/interfaces/react.PropTypeOfFiveFeatures.html +2 -2
  216. package/docs/interfaces/sticker.IntersectionLike.html +6 -6
  217. package/docs/interfaces/vfx.ParticleArgs.html +62 -62
  218. package/docs/interfaces/vfx.ParticleTweenKeyframe.html +3 -3
  219. package/docs/interfaces/vue.FiveActionVueCallbacks.html +28 -28
  220. package/docs/modules/five.SubscribeMixinType.html +7 -7
  221. package/docs/modules/five.html +170 -170
  222. package/docs/modules/gltf_loader.html +11 -11
  223. package/docs/modules/line.html +8 -8
  224. package/docs/modules/plugins.BasePlugin.html +6 -6
  225. package/docs/modules/plugins.ItemMaskPluginType.html +9 -9
  226. package/docs/modules/plugins.OrientationPluginType.html +7 -7
  227. package/docs/modules/plugins.html +9 -9
  228. package/docs/modules/react.html +36 -37
  229. package/docs/modules/sticker.html +3 -3
  230. package/docs/modules/vfx.html +8 -8
  231. package/docs/modules/vue.html +24 -24
  232. package/docs/types/five.AjaxResponseType.html +1 -1
  233. package/docs/types/five.AjaxResponseTypeMapping.html +1 -1
  234. package/docs/types/five.BoundingVolumeJson.html +1 -1
  235. package/docs/types/five.BoxBoundingVolumeJson.html +1 -1
  236. package/docs/types/five.ControllerCustomInitTypes.html +1 -1
  237. package/docs/types/five.ControllerEventTypes.html +32 -32
  238. package/docs/types/five.EventTypes.html +24 -24
  239. package/docs/types/five.FivePlugin.html +4 -4
  240. package/docs/types/five.FivePluginInit.html +3 -3
  241. package/docs/types/five.FivePluginInstance.html +3 -3
  242. package/docs/types/five.GestureTypes.html +1 -1
  243. package/docs/types/five.LegacyEventType.html +176 -176
  244. package/docs/types/five.LooseWork.html +1 -1
  245. package/docs/types/five.LooseWorkInitial.html +1 -1
  246. package/docs/types/five.LooseWorkModel.html +1 -1
  247. package/docs/types/five.LooseWorkObserver.html +1 -1
  248. package/docs/types/five.LooseWorkPanorama.html +1 -1
  249. package/docs/types/five.LooseWorkVideo.html +1 -1
  250. package/docs/types/five.LooseWorkWithExtrinsics.html +2 -2
  251. package/docs/types/five.Mirror.html +1 -1
  252. package/docs/types/five.Mode.html +2 -2
  253. package/docs/types/five.ModelMaterialValues.html +1 -1
  254. package/docs/types/five.Models.html +6 -6
  255. package/docs/types/five.MotionValue.html +1 -1
  256. package/docs/types/five.MovePanoEffect.html +2 -2
  257. package/docs/types/five.NetWorkMeta.html +1 -1
  258. package/docs/types/five.NetworkError.html +1 -1
  259. package/docs/types/five.NetworkErrorCallback.html +1 -1
  260. package/docs/types/five.NetworkProgressCallback.html +1 -1
  261. package/docs/types/five.NetworkResponse.html +1 -1
  262. package/docs/types/five.NetworkState.html +1 -1
  263. package/docs/types/five.NetworkSuccessCallback.html +1 -1
  264. package/docs/types/five.NetworkType.html +1 -1
  265. package/docs/types/five.Pano.html +1 -1
  266. package/docs/types/five.PanoId.html +1 -1
  267. package/docs/types/five.ParseWorkOptions.html +4 -4
  268. package/docs/types/five.ParsedResultType.html +1 -1
  269. package/docs/types/five.PostProcessingType.html +1 -1
  270. package/docs/types/five.RegionBoundingVolumeJson.html +1 -1
  271. package/docs/types/five.RequestResult.html +1 -1
  272. package/docs/types/five.SphereBoundingVolumeJson.html +1 -1
  273. package/docs/types/five.SubscribeEventMap.html +1 -1
  274. package/docs/types/five.TileContentData.html +1 -1
  275. package/docs/types/five.TilesetFrameState.html +1 -1
  276. package/docs/types/five.WebXRControllerKey.html +1 -1
  277. package/docs/types/five.WebXRControllerType.html +1 -1
  278. package/docs/types/five.Works.html +1 -1
  279. package/docs/types/line.LineMaterialParameters.html +1 -1
  280. package/docs/types/plugins.BasePlugin.EventMap.html +6 -6
  281. package/docs/types/plugins.ItemMaskPluginType.PluginData.html +1 -1
  282. package/docs/types/plugins.ItemMaskPluginType.ServerData.html +1 -1
  283. package/docs/types/plugins.OrientationPluginType.PluginData.html +1 -1
  284. package/docs/types/plugins.OrientationPluginType.ServerData.html +1 -1
  285. package/docs/types/react.FiveInjectionActionFeature.html +1 -1
  286. package/docs/types/react.FiveInjectionDataFeature.html +1 -1
  287. package/docs/types/react.FiveInjectionFeature.html +1 -1
  288. package/docs/types/react.FiveProviderPropTypes.html +1 -1
  289. package/docs/types/react.FiveProviderType.html +1 -1
  290. package/docs/types/react.StoreActionMapHanlder.html +1 -1
  291. package/docs/types/react.StoreActionMapType.html +1 -1
  292. package/docs/types/react.StoreProviderType.html +1 -1
  293. package/docs/types/react.StoreValueMapType.html +1 -1
  294. package/docs/types/vfx.ParticleType.html +1 -1
  295. package/docs/types/vue.FiveModelIntersectRaycaster.html +1 -1
  296. package/docs/types/vue.FiveProviderComponent.html +1 -1
  297. package/docs/types/vue.Project2d.html +1 -1
  298. package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
  299. package/docs/variables/five.defaultPbmParameters.html +1 -1
  300. package/docs/variables/react.INJECTION_PROPNAME.html +1 -1
  301. package/docs/variables/vue.FiveCanvas.html +3 -3
  302. package/docs/variables/vue.FiveProvider.html +2 -2
  303. package/five/index.d.ts +0 -2
  304. package/five/index.js +64 -64
  305. package/five/index.mjs +2617 -2627
  306. package/gltf-loader/index.js +3 -3
  307. package/gltf-loader/index.mjs +10 -17
  308. package/line/index.js +3 -3
  309. package/line/index.mjs +6 -9
  310. package/package.json +1 -1
  311. package/plugins/index.js +9 -9
  312. package/plugins/index.mjs +357 -503
  313. package/react/index.d.ts +15 -15
  314. package/react/index.js +2 -2
  315. package/react/index.mjs +6 -9
  316. package/sticker/index.js +3 -3
  317. package/sticker/index.mjs +4 -5
  318. package/umd/five-gltf-loader.js +3 -3
  319. package/umd/five-line.js +3 -3
  320. package/umd/five-plugins.js +8 -8
  321. package/umd/five-react.js +2 -2
  322. package/umd/five-sticker.js +3 -3
  323. package/umd/five-vfx.js +2 -2
  324. package/umd/five-vue.js +2 -2
  325. package/umd/five.js +17 -17
  326. package/vfx/index.js +2 -2
  327. package/vfx/index.mjs +3 -4
  328. package/vue/index.d.ts +2 -4
  329. package/vue/index.js +2 -2
  330. package/vue/index.mjs +3 -4
  331. package/docs/functions/react.FiveCanvas-1.html +0 -6
  332. package/docs/modules/react.FiveCanvas.html +0 -8
package/plugins/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 7/15/2024
5
- * Version: 6.0.0-alpha.111
4
+ * Generated: 7/31/2024
5
+ * Version: 6.0.0-alpha.112
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -281,8 +281,7 @@ var ml = function(e, t) {
281
281
  return ml = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(n, r) {
282
282
  n.__proto__ = r;
283
283
  } || function(n, r) {
284
- for (var i in r)
285
- Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
284
+ for (var i in r) Object.prototype.hasOwnProperty.call(r, i) && (n[i] = r[i]);
286
285
  }, ml(e, t);
287
286
  };
288
287
  function gc(e, t) {
@@ -298,8 +297,7 @@ var Ut = function() {
298
297
  return Ut = Object.assign || function(t) {
299
298
  for (var n, r = 1, i = arguments.length; r < i; r++) {
300
299
  n = arguments[r];
301
- for (var a in n)
302
- Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
300
+ for (var a in n) Object.prototype.hasOwnProperty.call(n, a) && (t[a] = n[a]);
303
301
  }
304
302
  return t;
305
303
  }, Ut.apply(this, arguments);
@@ -333,8 +331,7 @@ function gl(e, t, n, r) {
333
331
  }
334
332
  function yl(e, t) {
335
333
  var n = { label: 0, sent: function() {
336
- if (a[0] & 1)
337
- throw a[1];
334
+ if (a[0] & 1) throw a[1];
338
335
  return a[1];
339
336
  }, trys: [], ops: [] }, r, i, a, o;
340
337
  return o = { next: s(0), throw: s(1), return: s(2) }, typeof Symbol == "function" && (o[Symbol.iterator] = function() {
@@ -346,60 +343,55 @@ function yl(e, t) {
346
343
  };
347
344
  }
348
345
  function c(l) {
349
- if (r)
350
- throw new TypeError("Generator is already executing.");
351
- for (; o && (o = 0, l[0] && (n = 0)), n; )
352
- try {
353
- if (r = 1, i && (a = l[0] & 2 ? i.return : l[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, l[1])).done)
354
- return a;
355
- switch (i = 0, a && (l = [l[0] & 2, a.value]), l[0]) {
356
- case 0:
357
- case 1:
358
- a = l;
359
- break;
360
- case 4:
361
- return n.label++, { value: l[1], done: !1 };
362
- case 5:
363
- n.label++, i = l[1], l = [0];
364
- continue;
365
- case 7:
366
- l = n.ops.pop(), n.trys.pop();
367
- continue;
368
- default:
369
- if (a = n.trys, !(a = a.length > 0 && a[a.length - 1]) && (l[0] === 6 || l[0] === 2)) {
370
- n = 0;
371
- continue;
372
- }
373
- if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
374
- n.label = l[1];
375
- break;
376
- }
377
- if (l[0] === 6 && n.label < a[1]) {
378
- n.label = a[1], a = l;
379
- break;
380
- }
381
- if (a && n.label < a[2]) {
382
- n.label = a[2], n.ops.push(l);
383
- break;
384
- }
385
- a[2] && n.ops.pop(), n.trys.pop();
346
+ if (r) throw new TypeError("Generator is already executing.");
347
+ for (; o && (o = 0, l[0] && (n = 0)), n; ) try {
348
+ if (r = 1, i && (a = l[0] & 2 ? i.return : l[0] ? i.throw || ((a = i.return) && a.call(i), 0) : i.next) && !(a = a.call(i, l[1])).done) return a;
349
+ switch (i = 0, a && (l = [l[0] & 2, a.value]), l[0]) {
350
+ case 0:
351
+ case 1:
352
+ a = l;
353
+ break;
354
+ case 4:
355
+ return n.label++, { value: l[1], done: !1 };
356
+ case 5:
357
+ n.label++, i = l[1], l = [0];
358
+ continue;
359
+ case 7:
360
+ l = n.ops.pop(), n.trys.pop();
361
+ continue;
362
+ default:
363
+ if (a = n.trys, !(a = a.length > 0 && a[a.length - 1]) && (l[0] === 6 || l[0] === 2)) {
364
+ n = 0;
386
365
  continue;
387
- }
388
- l = t.call(e, n);
389
- } catch (u) {
390
- l = [6, u], i = 0;
391
- } finally {
392
- r = a = 0;
366
+ }
367
+ if (l[0] === 3 && (!a || l[1] > a[0] && l[1] < a[3])) {
368
+ n.label = l[1];
369
+ break;
370
+ }
371
+ if (l[0] === 6 && n.label < a[1]) {
372
+ n.label = a[1], a = l;
373
+ break;
374
+ }
375
+ if (a && n.label < a[2]) {
376
+ n.label = a[2], n.ops.push(l);
377
+ break;
378
+ }
379
+ a[2] && n.ops.pop(), n.trys.pop();
380
+ continue;
393
381
  }
394
- if (l[0] & 5)
395
- throw l[1];
382
+ l = t.call(e, n);
383
+ } catch (u) {
384
+ l = [6, u], i = 0;
385
+ } finally {
386
+ r = a = 0;
387
+ }
388
+ if (l[0] & 5) throw l[1];
396
389
  return { value: l[0] ? l[1] : void 0, done: !0 };
397
390
  }
398
391
  }
399
392
  function Bc(e, t, n) {
400
- if (n || arguments.length === 2)
401
- for (var r = 0, i = t.length, a; r < i; r++)
402
- (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
393
+ if (n || arguments.length === 2) for (var r = 0, i = t.length, a; r < i; r++)
394
+ (a || !(r in t)) && (a || (a = Array.prototype.slice.call(t, 0, r)), a[r] = t[r]);
403
395
  return e.concat(a || Array.prototype.slice.call(t));
404
396
  }
405
397
  function Tf(e) {
@@ -820,8 +812,8 @@ var Ns = function(e, t, n, r) {
820
812
  ` + P + ` AT
821
813
  `;
822
814
  return function() {
823
- var Q = new Error("get-stack-trace"), pe = Q && Q.stack ? Q.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", Xe = e.console && (e.console.warn || e.console.log);
824
- return Xe && Xe.call(e.console, U, pe), w.apply(this, arguments);
815
+ var Q = new Error("get-stack-trace"), me = Q && Q.stack ? Q.stack.replace(/^[^\(]+?[\n$]/gm, "").replace(/^\s+at\s+/gm, "").replace(/^Object.<anonymous>\s*\(/gm, "{anonymous}()@") : "Unknown Stack Trace", Xe = e.console && (e.console.warn || e.console.log);
816
+ return Xe && Xe.call(e.console, U, me), w.apply(this, arguments);
825
817
  };
826
818
  }
827
819
  var m;
@@ -831,14 +823,14 @@ var Ns = function(e, t, n, r) {
831
823
  for (var P = Object(M), U = 1; U < arguments.length; U++) {
832
824
  var Q = arguments[U];
833
825
  if (Q !== r && Q !== null)
834
- for (var pe in Q)
835
- Q.hasOwnProperty(pe) && (P[pe] = Q[pe]);
826
+ for (var me in Q)
827
+ Q.hasOwnProperty(me) && (P[me] = Q[me]);
836
828
  }
837
829
  return P;
838
830
  } : m = Object.assign;
839
831
  var g = d(function(M, P, U) {
840
- for (var Q = Object.keys(P), pe = 0; pe < Q.length; )
841
- (!U || U && M[Q[pe]] === r) && (M[Q[pe]] = P[Q[pe]]), pe++;
832
+ for (var Q = Object.keys(P), me = 0; me < Q.length; )
833
+ (!U || U && M[Q[me]] === r) && (M[Q[me]] = P[Q[me]]), me++;
842
834
  return M;
843
835
  }, "extend", "Use `assign`."), y = d(function(M, P) {
844
836
  return g(M, P, !0);
@@ -896,19 +888,19 @@ var Ns = function(e, t, n, r) {
896
888
  return Array.prototype.slice.call(w, 0);
897
889
  }
898
890
  function B(w, M, P) {
899
- for (var U = [], Q = [], pe = 0; pe < w.length; ) {
900
- var Xe = M ? w[pe][M] : w[pe];
901
- J(Q, Xe) < 0 && U.push(w[pe]), Q[pe] = Xe, pe++;
891
+ for (var U = [], Q = [], me = 0; me < w.length; ) {
892
+ var Xe = w[me][M];
893
+ J(Q, Xe) < 0 && U.push(w[me]), Q[me] = Xe, me++;
902
894
  }
903
- return P && (M ? U = U.sort(function(Ht, pt) {
895
+ return U = U.sort(function(Ht, pt) {
904
896
  return Ht[M] > pt[M];
905
- }) : U = U.sort()), U;
897
+ }), U;
906
898
  }
907
899
  function V(w, M) {
908
- for (var P, U, Q = M[0].toUpperCase() + M.slice(1), pe = 0; pe < i.length; ) {
909
- if (P = i[pe], U = P ? P + Q : M, U in w)
900
+ for (var P, U, Q = M[0].toUpperCase() + M.slice(1), me = 0; me < i.length; ) {
901
+ if (P = i[me], U = P ? P + Q : M, U in w)
910
902
  return U;
911
- pe++;
903
+ me++;
912
904
  }
913
905
  return r;
914
906
  }
@@ -952,39 +944,39 @@ var Ns = function(e, t, n, r) {
952
944
  return P ? M = P : Z ? M = Ct : ee ? M = j : Y ? M = Ae : M = rt, new M(w, ye);
953
945
  }
954
946
  function ye(w, M, P) {
955
- var U = P.pointers.length, Q = P.changedPointers.length, pe = M & G && U - Q === 0, Xe = M & (xe | Te) && U - Q === 0;
956
- P.isFirst = !!pe, P.isFinal = !!Xe, pe && (w.session = {}), P.eventType = M, R(w, P), w.emit("hammer.input", P), w.recognize(P), w.session.prevInput = P;
947
+ var U = P.pointers.length, Q = P.changedPointers.length, me = M & G && U - Q === 0, Xe = M & (xe | Te) && U - Q === 0;
948
+ P.isFirst = !!me, P.isFinal = !!Xe, me && (w.session = {}), P.eventType = M, R(w, P), w.emit("hammer.input", P), w.recognize(P), w.session.prevInput = P;
957
949
  }
958
950
  function R(w, M) {
959
951
  var P = w.session, U = M.pointers, Q = U.length;
960
- P.firstInput || (P.firstInput = me(M)), Q > 1 && !P.firstMultiple ? P.firstMultiple = me(M) : Q === 1 && (P.firstMultiple = !1);
961
- var pe = P.firstInput, Xe = P.firstMultiple, Tt = Xe ? Xe.center : pe.center, Ht = M.center = ie(U);
962
- M.timeStamp = l(), M.deltaTime = M.timeStamp - pe.timeStamp, M.angle = I(Tt, Ht), M.distance = Re(Tt, Ht), he(P, M), M.offsetDirection = de(M.deltaX, M.deltaY);
952
+ P.firstInput || (P.firstInput = ve(M)), Q > 1 && !P.firstMultiple ? P.firstMultiple = ve(M) : Q === 1 && (P.firstMultiple = !1);
953
+ var me = P.firstInput, Xe = P.firstMultiple, Tt = Xe ? Xe.center : me.center, Ht = M.center = ie(U);
954
+ M.timeStamp = l(), M.deltaTime = M.timeStamp - me.timeStamp, M.angle = I(Tt, Ht), M.distance = Re(Tt, Ht), he(P, M), M.offsetDirection = de(M.deltaX, M.deltaY);
963
955
  var pt = Se(M.deltaTime, M.deltaX, M.deltaY);
964
956
  M.overallVelocityX = pt.x, M.overallVelocityY = pt.y, M.overallVelocity = c(pt.x) > c(pt.y) ? pt.x : pt.y, M.scale = Xe ? Me(Xe.pointers, U) : 1, M.rotation = Xe ? be(Xe.pointers, U) : 0, M.maxPointers = P.prevInput ? M.pointers.length > P.prevInput.maxPointers ? M.pointers.length : P.prevInput.maxPointers : M.pointers.length, fe(P, M);
965
957
  var gn = w.element;
966
958
  C(M.srcEvent.target, gn) && (gn = M.srcEvent.target), M.target = gn;
967
959
  }
968
960
  function he(w, M) {
969
- var P = M.center, U = w.offsetDelta || {}, Q = w.prevDelta || {}, pe = w.prevInput || {};
970
- (M.eventType === G || pe.eventType === xe) && (Q = w.prevDelta = {
971
- x: pe.deltaX || 0,
972
- y: pe.deltaY || 0
961
+ var P = M.center, U = w.offsetDelta || {}, Q = w.prevDelta || {}, me = w.prevInput || {};
962
+ (M.eventType === G || me.eventType === xe) && (Q = w.prevDelta = {
963
+ x: me.deltaX || 0,
964
+ y: me.deltaY || 0
973
965
  }, U = w.offsetDelta = {
974
966
  x: P.x,
975
967
  y: P.y
976
968
  }), M.deltaX = Q.x + (P.x - U.x), M.deltaY = Q.y + (P.y - U.y);
977
969
  }
978
970
  function fe(w, M) {
979
- var P = w.lastInterval || M, U = M.timeStamp - P.timeStamp, Q, pe, Xe, Tt;
971
+ var P = w.lastInterval || M, U = M.timeStamp - P.timeStamp, Q, me, Xe, Tt;
980
972
  if (M.eventType != Te && (U > re || P.velocity === r)) {
981
973
  var Ht = M.deltaX - P.deltaX, pt = M.deltaY - P.deltaY, gn = Se(U, Ht, pt);
982
- pe = gn.x, Xe = gn.y, Q = c(gn.x) > c(gn.y) ? gn.x : gn.y, Tt = de(Ht, pt), w.lastInterval = M;
974
+ me = gn.x, Xe = gn.y, Q = c(gn.x) > c(gn.y) ? gn.x : gn.y, Tt = de(Ht, pt), w.lastInterval = M;
983
975
  } else
984
- Q = P.velocity, pe = P.velocityX, Xe = P.velocityY, Tt = P.direction;
985
- M.velocity = Q, M.velocityX = pe, M.velocityY = Xe, M.direction = Tt;
976
+ Q = P.velocity, me = P.velocityX, Xe = P.velocityY, Tt = P.direction;
977
+ M.velocity = Q, M.velocityX = me, M.velocityY = Xe, M.direction = Tt;
986
978
  }
987
- function me(w) {
979
+ function ve(w) {
988
980
  for (var M = [], P = 0; P < w.pointers.length; )
989
981
  M[P] = {
990
982
  clientX: s(w.pointers[P].clientX),
@@ -1083,7 +1075,7 @@ var Ns = function(e, t, n, r) {
1083
1075
  * @param {Object} ev
1084
1076
  */
1085
1077
  handler: function(M) {
1086
- var P = this.store, U = !1, Q = !1, pe = M.type.toLowerCase().replace("ms", ""), Xe = dt[pe], Tt = Ft[M.pointerType] || M.pointerType, Ht = Tt == te, pt = J(P, M.pointerId, "pointerId");
1078
+ var P = this.store, U = !1, Q = !1, me = M.type.toLowerCase().replace("ms", ""), Xe = dt[me], Tt = Ft[M.pointerType] || M.pointerType, Ht = Tt == te, pt = J(P, M.pointerId, "pointerId");
1087
1079
  Xe & G && (M.button === 0 || M.button === 2 || Ht) ? pt < 0 && (P.push(M), pt = P.length - 1) : Xe & (xe | Te) ? U = !0 : !Ht && M.buttons === 0 && (U = !0, Q = !0, Xe = dt.pointerup), !(pt < 0) && (Q || (P[pt] = M), this.callback(this.manager, Xe, {
1088
1080
  pointers: P,
1089
1081
  changedPointers: [M],
@@ -1117,7 +1109,7 @@ var Ns = function(e, t, n, r) {
1117
1109
  });
1118
1110
  function S(w, M) {
1119
1111
  var P = F(w.touches), U = F(w.changedTouches);
1120
- return M & (xe | Te) && (P = B(P.concat(U), "identifier", !0)), [P, U];
1112
+ return M & (xe | Te) && (P = B(P.concat(U), "identifier")), [P, U];
1121
1113
  }
1122
1114
  var W = {
1123
1115
  touchstart: G,
@@ -1143,18 +1135,18 @@ var Ns = function(e, t, n, r) {
1143
1135
  var P = F(w.touches), U = this.targetIds;
1144
1136
  if (M & (G | Be) && P.length === 1)
1145
1137
  return U[P[0].identifier] = !0, [P, P];
1146
- var Q, pe, Xe = F(w.changedTouches), Tt = [], Ht = this.target;
1147
- if (pe = P.filter(function(pt) {
1138
+ var Q, me, Xe = F(w.changedTouches), Tt = [], Ht = this.target;
1139
+ if (me = P.filter(function(pt) {
1148
1140
  return C(pt.target, Ht);
1149
1141
  }), M === G)
1150
- for (Q = 0; Q < pe.length; )
1151
- U[pe[Q].identifier] = !0, Q++;
1142
+ for (Q = 0; Q < me.length; )
1143
+ U[me[Q].identifier] = !0, Q++;
1152
1144
  for (Q = 0; Q < Xe.length; )
1153
1145
  U[Xe[Q].identifier] && Tt.push(Xe[Q]), M & (xe | Te) && delete U[Xe[Q].identifier], Q++;
1154
1146
  if (Tt.length)
1155
1147
  return [
1156
1148
  // merge targetTouches with changedTargetTouches so it contains ALL touches, including 'end' and 'cancel'
1157
- B(pe.concat(Tt), "identifier", !0),
1149
+ B(me.concat(Tt), "identifier"),
1158
1150
  Tt
1159
1151
  ];
1160
1152
  }
@@ -1172,11 +1164,11 @@ var Ns = function(e, t, n, r) {
1172
1164
  * @param {Object} inputData
1173
1165
  */
1174
1166
  handler: function(M, P, U) {
1175
- var Q = U.pointerType == te, pe = U.pointerType == Pe;
1176
- if (!(pe && U.sourceCapabilities && U.sourceCapabilities.firesTouchEvents)) {
1167
+ var Q = U.pointerType == te, me = U.pointerType == Pe;
1168
+ if (!(me && U.sourceCapabilities && U.sourceCapabilities.firesTouchEvents)) {
1177
1169
  if (Q)
1178
1170
  Ue.call(this, P, U);
1179
- else if (pe && lt.call(this, U))
1171
+ else if (me && lt.call(this, U))
1180
1172
  return;
1181
1173
  this.callback(M, P, U);
1182
1174
  }
@@ -1197,16 +1189,16 @@ var Ns = function(e, t, n, r) {
1197
1189
  var P = { x: M.clientX, y: M.clientY };
1198
1190
  this.lastTouches.push(P);
1199
1191
  var U = this.lastTouches, Q = function() {
1200
- var pe = U.indexOf(P);
1201
- pe > -1 && U.splice(pe, 1);
1192
+ var me = U.indexOf(P);
1193
+ me > -1 && U.splice(me, 1);
1202
1194
  };
1203
1195
  setTimeout(Q, Ge);
1204
1196
  }
1205
1197
  }
1206
1198
  function lt(w) {
1207
1199
  for (var M = w.srcEvent.clientX, P = w.srcEvent.clientY, U = 0; U < this.lastTouches.length; U++) {
1208
- var Q = this.lastTouches[U], pe = Math.abs(M - Q.x), Xe = Math.abs(P - Q.y);
1209
- if (pe <= Oe && Xe <= Oe)
1200
+ var Q = this.lastTouches[U], me = Math.abs(M - Q.x), Xe = Math.abs(P - Q.y);
1201
+ if (me <= Oe && Xe <= Oe)
1210
1202
  return !0;
1211
1203
  }
1212
1204
  return !1;
@@ -1249,13 +1241,13 @@ var Ns = function(e, t, n, r) {
1249
1241
  M.preventDefault();
1250
1242
  return;
1251
1243
  }
1252
- var U = this.actions, Q = N(U, Et) && !st[Et], pe = N(U, an) && !st[an], Xe = N(U, gt) && !st[gt];
1244
+ var U = this.actions, Q = N(U, Et) && !st[Et], me = N(U, an) && !st[an], Xe = N(U, gt) && !st[gt];
1253
1245
  if (Q) {
1254
1246
  var Tt = w.pointers.length === 1, Ht = w.distance < 2, pt = w.deltaTime < 250;
1255
1247
  if (Tt && Ht && pt)
1256
1248
  return;
1257
1249
  }
1258
- if (!(Xe && pe) && (Q || pe && P & et || Xe && P & Ke))
1250
+ if (!(Xe && me) && (Q || me && P & et || Xe && P & Ke))
1259
1251
  return this.preventSrc(M);
1260
1252
  },
1261
1253
  /**
@@ -1492,8 +1484,8 @@ var Ns = function(e, t, n, r) {
1492
1484
  return w & et && M.push(an), w & Ke && M.push(gt), M;
1493
1485
  },
1494
1486
  directionTest: function(w) {
1495
- var M = this.options, P = !0, U = w.distance, Q = w.direction, pe = w.deltaX, Xe = w.deltaY;
1496
- return Q & M.direction || (M.direction & et ? (Q = pe === 0 ? ue : pe < 0 ? K : Ce, P = pe != this.pX, U = Math.abs(w.deltaX)) : (Q = Xe === 0 ? ue : Xe < 0 ? qe : Qe, P = Xe != this.pY, U = Math.abs(w.deltaY))), w.direction = Q, P && U > M.threshold && Q & M.direction;
1487
+ var M = this.options, P = !0, U = w.distance, Q = w.direction, me = w.deltaX, Xe = w.deltaY;
1488
+ return Q & M.direction || (M.direction & et ? (Q = me === 0 ? ue : me < 0 ? K : Ce, P = me != this.pX, U = Math.abs(w.deltaX)) : (Q = Xe === 0 ? ue : Xe < 0 ? qe : Qe, P = Xe != this.pY, U = Math.abs(w.deltaY))), w.direction = Q, P && U > M.threshold && Q & M.direction;
1497
1489
  },
1498
1490
  attrTest: function(w) {
1499
1491
  return on.prototype.attrTest.call(this, w) && (this.state & $t || !(this.state & $t) && this.directionTest(w));
@@ -1647,8 +1639,8 @@ var Ns = function(e, t, n, r) {
1647
1639
  if (U && Q && P) {
1648
1640
  if (w.eventType != xe)
1649
1641
  return this.failTimeout();
1650
- var pe = this.pTime ? w.timeStamp - this.pTime < M.interval : !0, Xe = !this.pCenter || Re(this.pCenter, w.center) < M.posThreshold;
1651
- this.pTime = w.timeStamp, this.pCenter = w.center, !Xe || !pe ? this.count = 1 : this.count += 1, this._input = w;
1642
+ var me = this.pTime ? w.timeStamp - this.pTime < M.interval : !0, Xe = !this.pCenter || Re(this.pCenter, w.center) < M.posThreshold;
1643
+ this.pTime = w.timeStamp, this.pCenter = w.center, !Xe || !me ? this.count = 1 : this.count += 1, this._input = w;
1652
1644
  var Tt = this.count % M.taps;
1653
1645
  if (Tt === 0)
1654
1646
  return this.hasRequireFailures() ? (this._timer = u(function() {
@@ -1805,10 +1797,10 @@ var Ns = function(e, t, n, r) {
1805
1797
  this.touchAction.preventDefaults(w);
1806
1798
  var P, U = this.recognizers, Q = M.curRecognizer;
1807
1799
  (!Q || Q && Q.state & Rn) && (Q = M.curRecognizer = null);
1808
- for (var pe = 0; pe < U.length; )
1809
- P = U[pe], M.stopped !== Nc && // 1
1800
+ for (var me = 0; me < U.length; )
1801
+ P = U[me], M.stopped !== Nc && // 1
1810
1802
  (!Q || P == Q || // 2
1811
- P.canRecognizeWith(Q)) ? P.recognize(w) : P.reset(), !Q && P.state & ($t | zr | qn) && (Q = M.curRecognizer = P), pe++;
1803
+ P.canRecognizeWith(Q)) ? P.recognize(w) : P.reset(), !Q && P.state & ($t | zr | qn) && (Q = M.curRecognizer = P), me++;
1812
1804
  }
1813
1805
  },
1814
1806
  /**
@@ -1906,8 +1898,8 @@ var Ns = function(e, t, n, r) {
1906
1898
  var P = w.element;
1907
1899
  if (P.style) {
1908
1900
  var U;
1909
- f(w.options.cssProps, function(Q, pe) {
1910
- U = V(P.style, pe), M ? (w.oldCssProps[U] = P.style[U], P.style[U] = Q) : P.style[U] = w.oldCssProps[U] || "";
1901
+ f(w.options.cssProps, function(Q, me) {
1902
+ U = V(P.style, me), M ? (w.oldCssProps[U] = P.style[U], P.style[U] = Q) : P.style[U] = w.oldCssProps[U] || "";
1911
1903
  }), M || (w.oldCssProps = {});
1912
1904
  }
1913
1905
  }
@@ -1996,8 +1988,7 @@ Object.assign(vn.prototype, {
1996
1988
  n[e] === void 0 && (n[e] = []), n[e].indexOf(t) === -1 && n[e].push(t);
1997
1989
  },
1998
1990
  hasEventListener: function(e, t) {
1999
- if (this._listeners === void 0)
2000
- return !1;
1991
+ if (this._listeners === void 0) return !1;
2001
1992
  var n = this._listeners;
2002
1993
  return n[e] !== void 0 && n[e].indexOf(t) !== -1;
2003
1994
  },
@@ -2377,8 +2368,7 @@ Object.assign(zt.prototype, {
2377
2368
  getInverse: function(e, t) {
2378
2369
  t !== void 0 && console.warn("THREE.Matrix3: .getInverse() can no longer be configured to throw on degenerate.");
2379
2370
  var n = e.elements, r = this.elements, i = n[0], a = n[1], o = n[2], s = n[3], c = n[4], l = n[5], u = n[6], h = n[7], f = n[8], d = f * c - l * h, m = l * u - f * s, g = h * s - c * u, y = i * d + a * m + o * g;
2380
- if (y === 0)
2381
- return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0);
2371
+ if (y === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0);
2382
2372
  var p = 1 / y;
2383
2373
  return r[0] = d * p, r[1] = (o * h - f * a) * p, r[2] = (l * a - o * c) * p, r[3] = m * p, r[4] = (f * i - o * u) * p, r[5] = (o * s - l * i) * p, r[6] = g * p, r[7] = (a * u - h * i) * p, r[8] = (c * i - a * s) * p, this;
2384
2374
  },
@@ -2421,8 +2411,7 @@ Object.assign(zt.prototype, {
2421
2411
  },
2422
2412
  equals: function(e) {
2423
2413
  for (var t = this.elements, n = e.elements, r = 0; r < 9; r++)
2424
- if (t[r] !== n[r])
2425
- return !1;
2414
+ if (t[r] !== n[r]) return !1;
2426
2415
  return !0;
2427
2416
  },
2428
2417
  fromArray: function(e, t) {
@@ -2520,8 +2509,7 @@ ot.prototype = Object.assign(Object.create(vn.prototype), {
2520
2509
  this.dispatchEvent({ type: "dispose" });
2521
2510
  },
2522
2511
  transformUv: function(e) {
2523
- if (this.mapping !== yc)
2524
- return e;
2512
+ if (this.mapping !== yc) return e;
2525
2513
  if (e.applyMatrix3(this.matrix), e.x < 0 || e.x > 1)
2526
2514
  switch (this.wrapS) {
2527
2515
  case Bo:
@@ -2900,8 +2888,7 @@ Object.assign(wt.prototype, {
2900
2888
  },
2901
2889
  rotateTowards: function(e, t) {
2902
2890
  var n = this.angleTo(e);
2903
- if (n === 0)
2904
- return this;
2891
+ if (n === 0) return this;
2905
2892
  var r = Math.min(1, t / n);
2906
2893
  return this.slerp(e, r), this;
2907
2894
  },
@@ -2935,10 +2922,8 @@ Object.assign(wt.prototype, {
2935
2922
  return this._x = n * l + a * o + r * c - i * s, this._y = r * l + a * s + i * o - n * c, this._z = i * l + a * c + n * s - r * o, this._w = a * l - n * o - r * s - i * c, this._onChangeCallback(), this;
2936
2923
  },
2937
2924
  slerp: function(e, t) {
2938
- if (t === 0)
2939
- return this;
2940
- if (t === 1)
2941
- return this.copy(e);
2925
+ if (t === 0) return this;
2926
+ if (t === 1) return this.copy(e);
2942
2927
  var n = this._x, r = this._y, i = this._z, a = this._w, o = a * e._w + n * e._x + r * e._y + i * e._z;
2943
2928
  if (o < 0 ? (this._w = -e._w, this._x = -e._x, this._y = -e._y, this._z = -e._z, o = -o) : this.copy(e), o >= 1)
2944
2929
  return this._w = a, this._x = n, this._y = r, this._z = i, this;
@@ -3155,8 +3140,7 @@ Object.assign(E.prototype, {
3155
3140
  },
3156
3141
  projectOnVector: function(e) {
3157
3142
  var t = e.lengthSq();
3158
- if (t === 0)
3159
- return this.set(0, 0, 0);
3143
+ if (t === 0) return this.set(0, 0, 0);
3160
3144
  var n = e.dot(this) / t;
3161
3145
  return this.copy(e).multiplyScalar(n);
3162
3146
  },
@@ -3168,8 +3152,7 @@ Object.assign(E.prototype, {
3168
3152
  },
3169
3153
  angleTo: function(e) {
3170
3154
  var t = Math.sqrt(this.lengthSq() * e.lengthSq());
3171
- if (t === 0)
3172
- return Math.PI / 2;
3155
+ if (t === 0) return Math.PI / 2;
3173
3156
  var n = this.dot(e) / t;
3174
3157
  return Math.acos(ke.clamp(n, -1, 1));
3175
3158
  },
@@ -3371,8 +3354,7 @@ Object.assign(We.prototype, {
3371
3354
  getInverse: function(e, t) {
3372
3355
  t !== void 0 && console.warn("THREE.Matrix4: .getInverse() can no longer be configured to throw on degenerate.");
3373
3356
  var n = this.elements, r = e.elements, i = r[0], a = r[1], o = r[2], s = r[3], c = r[4], l = r[5], u = r[6], h = r[7], f = r[8], d = r[9], m = r[10], g = r[11], y = r[12], p = r[13], v = r[14], _ = r[15], x = d * v * h - p * m * h + p * u * g - l * v * g - d * u * _ + l * m * _, b = y * m * h - f * v * h - y * u * g + c * v * g + f * u * _ - c * m * _, T = f * p * h - y * d * h + y * l * g - c * p * g - f * l * _ + c * d * _, C = y * d * u - f * p * u - y * l * m + c * p * m + f * l * v - c * d * v, N = i * x + a * b + o * T + s * C;
3374
- if (N === 0)
3375
- return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
3357
+ if (N === 0) return this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0);
3376
3358
  var O = 1 / N;
3377
3359
  return n[0] = x * O, n[1] = (p * m * s - d * v * s - p * o * g + a * v * g + d * o * _ - a * m * _) * O, n[2] = (l * v * s - p * u * s + p * o * h - a * v * h - l * o * _ + a * u * _) * O, n[3] = (d * u * s - l * m * s - d * o * h + a * m * h + l * o * g - a * u * g) * O, n[4] = b * O, n[5] = (f * v * s - y * m * s + y * o * g - i * v * g - f * o * _ + i * m * _) * O, n[6] = (y * u * s - c * v * s - y * o * h + i * v * h + c * o * _ - i * u * _) * O, n[7] = (c * m * s - f * u * s + f * o * h - i * m * h - c * o * g + i * u * g) * O, n[8] = T * O, n[9] = (y * d * s - f * p * s - y * a * g + i * p * g + f * a * _ - i * d * _) * O, n[10] = (c * p * s - y * l * s + y * a * h - i * p * h - c * a * _ + i * l * _) * O, n[11] = (f * l * s - c * d * s - f * a * h + i * d * h + c * a * g - i * l * g) * O, n[12] = C * O, n[13] = (f * p * o - y * d * o + y * a * m - i * p * m - f * a * v + i * d * v) * O, n[14] = (y * l * o - c * p * o - y * a * u + i * p * u + c * a * v - i * l * v) * O, n[15] = (c * d * o - f * l * o + f * a * u - i * d * u - c * a * m + i * l * m) * O, this;
3378
3360
  },
@@ -3549,8 +3531,7 @@ Object.assign(We.prototype, {
3549
3531
  },
3550
3532
  equals: function(e) {
3551
3533
  for (var t = this.elements, n = e.elements, r = 0; r < 16; r++)
3552
- if (t[r] !== n[r])
3553
- return !1;
3534
+ if (t[r] !== n[r]) return !1;
3554
3535
  return !0;
3555
3536
  },
3556
3537
  fromArray: function(e, t) {
@@ -3827,8 +3808,7 @@ se.prototype = Object.assign(Object.create(vn.prototype), {
3827
3808
  return this.getObjectByProperty("name", e);
3828
3809
  },
3829
3810
  getObjectByProperty: function(e, t) {
3830
- if (this[e] === t)
3831
- return this;
3811
+ if (this[e] === t) return this;
3832
3812
  for (var n = 0, r = this.children.length; n < r; n++) {
3833
3813
  var i = this.children[n], a = i.getObjectByProperty(e, t);
3834
3814
  if (a !== void 0)
@@ -4259,8 +4239,7 @@ Object.assign(Ni.prototype, {
4259
4239
  intersectSphere: function(e, t) {
4260
4240
  Nn.subVectors(e.center, this.origin);
4261
4241
  var n = Nn.dot(this.direction), r = Nn.dot(Nn) - n * n, i = e.radius * e.radius;
4262
- if (r > i)
4263
- return null;
4242
+ if (r > i) return null;
4264
4243
  var a = Math.sqrt(i - r), o = n - a, s = n + a;
4265
4244
  return o < 0 && s < 0 ? null : o < 0 ? this.at(s, t) : this.at(o, t);
4266
4245
  },
@@ -4296,8 +4275,7 @@ Object.assign(Ni.prototype, {
4296
4275
  Vs.subVectors(t, e), Ka.subVectors(n, e), ks.crossVectors(Vs, Ka);
4297
4276
  var a = this.direction.dot(ks), o;
4298
4277
  if (a > 0) {
4299
- if (r)
4300
- return null;
4278
+ if (r) return null;
4301
4279
  o = 1;
4302
4280
  } else if (a < 0)
4303
4281
  o = -1, a = -a;
@@ -4645,7 +4623,7 @@ var Dh = {
4645
4623
  yellow: 16776960,
4646
4624
  yellowgreen: 10145074
4647
4625
  }, ln = { h: 0, s: 0, l: 0 }, eo = { h: 0, s: 0, l: 0 };
4648
- function ve(e, t, n) {
4626
+ function pe(e, t, n) {
4649
4627
  return t === void 0 && n === void 0 ? this.set(e) : this.setRGB(e, t, n);
4650
4628
  }
4651
4629
  function Zs(e, t, n) {
@@ -4657,7 +4635,7 @@ function Js(e) {
4657
4635
  function Qs(e) {
4658
4636
  return e < 31308e-7 ? e * 12.92 : 1.055 * Math.pow(e, 0.41666) - 0.055;
4659
4637
  }
4660
- Object.assign(ve.prototype, {
4638
+ Object.assign(pe.prototype, {
4661
4639
  isColor: !0,
4662
4640
  r: 1,
4663
4641
  g: 1,
@@ -4824,9 +4802,9 @@ Object.assign(ve.prototype, {
4824
4802
  return this.getHex();
4825
4803
  }
4826
4804
  });
4827
- ve.NAMES = Dh;
4805
+ pe.NAMES = Dh;
4828
4806
  function ko(e, t, n, r, i, a) {
4829
- this.a = e, this.b = t, this.c = n, this.normal = r && r.isVector3 ? r : new E(), this.vertexNormals = Array.isArray(r) ? r : [], this.color = i && i.isColor ? i : new ve(), this.vertexColors = Array.isArray(i) ? i : [], this.materialIndex = a !== void 0 ? a : 0;
4807
+ this.a = e, this.b = t, this.c = n, this.normal = r && r.isVector3 ? r : new E(), this.vertexNormals = Array.isArray(r) ? r : [], this.color = i && i.isColor ? i : new pe(), this.vertexColors = Array.isArray(i) ? i : [], this.materialIndex = a !== void 0 ? a : 0;
4830
4808
  }
4831
4809
  Object.assign(ko.prototype, {
4832
4810
  clone: function() {
@@ -4922,7 +4900,7 @@ Object.defineProperty(Ie.prototype, "needsUpdate", {
4922
4900
  }
4923
4901
  });
4924
4902
  function pn(e) {
4925
- Ie.call(this), this.type = "MeshBasicMaterial", this.color = new ve(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ms, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.setValues(e);
4903
+ Ie.call(this), this.type = "MeshBasicMaterial", this.color = new pe(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ms, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.setValues(e);
4926
4904
  }
4927
4905
  pn.prototype = Object.create(Ie.prototype);
4928
4906
  pn.prototype.constructor = pn;
@@ -4963,7 +4941,7 @@ Object.assign(De.prototype, {
4963
4941
  copyColorsArray: function(e) {
4964
4942
  for (var t = this.array, n = 0, r = 0, i = e.length; r < i; r++) {
4965
4943
  var a = e[r];
4966
- a === void 0 && (console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined", r), a = new ve()), t[n++] = a.r, t[n++] = a.g, t[n++] = a.b;
4944
+ a === void 0 && (console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined", r), a = new pe()), t[n++] = a.r, t[n++] = a.g, t[n++] = a.b;
4967
4945
  }
4968
4946
  return this;
4969
4947
  },
@@ -5180,8 +5158,7 @@ Object.assign(Ih.prototype, {
5180
5158
  }
5181
5159
  });
5182
5160
  function Nh(e) {
5183
- if (e.length === 0)
5184
- return -1 / 0;
5161
+ if (e.length === 0) return -1 / 0;
5185
5162
  let t = e[0];
5186
5163
  for (let n = 1, r = e.length; n < r; ++n)
5187
5164
  e[n] > t && (t = e[n]);
@@ -5263,8 +5240,7 @@ ge.prototype = Object.assign(Object.create(vn.prototype), {
5263
5240
  this.setAttribute("lineDistance", i.copyArray(t.lineDistances));
5264
5241
  }
5265
5242
  t.boundingSphere !== null && (this.boundingSphere = t.boundingSphere.clone()), t.boundingBox !== null && (this.boundingBox = t.boundingBox.clone());
5266
- } else
5267
- e.isMesh && t && t.isGeometry && this.fromGeometry(t);
5243
+ } else e.isMesh && t && t.isGeometry && this.fromGeometry(t);
5268
5244
  return this;
5269
5245
  },
5270
5246
  setFromPoints: function(e) {
@@ -5574,8 +5550,7 @@ ft.prototype = Object.assign(Object.create(se.prototype), {
5574
5550
  });
5575
5551
  function Fh(e, t, n, r, i, a, o, s) {
5576
5552
  var c;
5577
- if (t.side === Pt ? c = r.intersectTriangle(o, a, i, !0, s) : c = r.intersectTriangle(i, a, o, t.side !== ws, s), c === null)
5578
- return null;
5553
+ if (t.side === Pt ? c = r.intersectTriangle(o, a, i, !0, s) : c = r.intersectTriangle(i, a, o, t.side !== ws, s), c === null) return null;
5579
5554
  io.copy(s), io.applyMatrix4(e.matrixWorld);
5580
5555
  var l = n.ray.origin.distanceTo(io);
5581
5556
  return l < n.near || l > n.far ? null : {
@@ -5649,7 +5624,7 @@ Fe.prototype = Object.assign(Object.create(vn.prototype), {
5649
5624
  var i = r.position.array, a = r.normal !== void 0 ? r.normal.array : void 0, o = r.color !== void 0 ? r.color.array : void 0, s = r.uv !== void 0 ? r.uv.array : void 0, c = r.uv2 !== void 0 ? r.uv2.array : void 0;
5650
5625
  c !== void 0 && (this.faceVertexUvs[1] = []);
5651
5626
  for (var l = 0; l < i.length; l += 3)
5652
- t.vertices.push(new E().fromArray(i, l)), o !== void 0 && t.colors.push(new ve().fromArray(o, l));
5627
+ t.vertices.push(new E().fromArray(i, l)), o !== void 0 && t.colors.push(new pe().fromArray(o, l));
5653
5628
  function u(p, v, _, x) {
5654
5629
  var b = o === void 0 ? [] : [
5655
5630
  t.colors[p].clone(),
@@ -6393,7 +6368,7 @@ Object.assign(Wa.prototype, {
6393
6368
  });
6394
6369
  var le = {
6395
6370
  common: {
6396
- diffuse: { value: new ve(15658734) },
6371
+ diffuse: { value: new pe(15658734) },
6397
6372
  opacity: { value: 1 },
6398
6373
  map: { value: null },
6399
6374
  uvTransform: { value: new zt() },
@@ -6447,7 +6422,7 @@ var le = {
6447
6422
  fogDensity: { value: 25e-5 },
6448
6423
  fogNear: { value: 1 },
6449
6424
  fogFar: { value: 2e3 },
6450
- fogColor: { value: new ve(16777215) }
6425
+ fogColor: { value: new pe(16777215) }
6451
6426
  },
6452
6427
  lights: {
6453
6428
  ambientLightColor: { value: [] },
@@ -6508,7 +6483,7 @@ var le = {
6508
6483
  } }
6509
6484
  },
6510
6485
  points: {
6511
- diffuse: { value: new ve(15658734) },
6486
+ diffuse: { value: new pe(15658734) },
6512
6487
  opacity: { value: 1 },
6513
6488
  size: { value: 1 },
6514
6489
  scale: { value: 1 },
@@ -6517,7 +6492,7 @@ var le = {
6517
6492
  uvTransform: { value: new zt() }
6518
6493
  },
6519
6494
  sprite: {
6520
- diffuse: { value: new ve(15658734) },
6495
+ diffuse: { value: new pe(15658734) },
6521
6496
  opacity: { value: 1 },
6522
6497
  center: { value: new X(0.5, 0.5) },
6523
6498
  rotation: { value: 0 },
@@ -9480,7 +9455,7 @@ void main() {
9480
9455
  le.fog,
9481
9456
  le.lights,
9482
9457
  {
9483
- emissive: { value: new ve(0) }
9458
+ emissive: { value: new pe(0) }
9484
9459
  }
9485
9460
  ]),
9486
9461
  vertexShader: Ye.meshlambert_vert,
@@ -9500,8 +9475,8 @@ void main() {
9500
9475
  le.fog,
9501
9476
  le.lights,
9502
9477
  {
9503
- emissive: { value: new ve(0) },
9504
- specular: { value: new ve(1118481) },
9478
+ emissive: { value: new pe(0) },
9479
+ specular: { value: new pe(1118481) },
9505
9480
  shininess: { value: 30 }
9506
9481
  }
9507
9482
  ]),
@@ -9523,7 +9498,7 @@ void main() {
9523
9498
  le.fog,
9524
9499
  le.lights,
9525
9500
  {
9526
- emissive: { value: new ve(0) },
9501
+ emissive: { value: new pe(0) },
9527
9502
  roughness: { value: 1 },
9528
9503
  metalness: { value: 0 },
9529
9504
  envMapIntensity: { value: 1 }
@@ -9547,8 +9522,8 @@ void main() {
9547
9522
  le.fog,
9548
9523
  le.lights,
9549
9524
  {
9550
- emissive: { value: new ve(0) },
9551
- specular: { value: new ve(1118481) },
9525
+ emissive: { value: new pe(0) },
9526
+ specular: { value: new pe(1118481) },
9552
9527
  shininess: { value: 30 }
9553
9528
  }
9554
9529
  ]),
@@ -9665,7 +9640,7 @@ void main() {
9665
9640
  le.lights,
9666
9641
  le.fog,
9667
9642
  {
9668
- color: { value: new ve(0) },
9643
+ color: { value: new pe(0) },
9669
9644
  opacity: { value: 1 }
9670
9645
  }
9671
9646
  ]),
@@ -9683,7 +9658,7 @@ Un.physical = {
9683
9658
  clearcoatRoughnessMap: { value: null },
9684
9659
  clearcoatNormalScale: { value: new X(1, 1) },
9685
9660
  clearcoatNormalMap: { value: null },
9686
- sheen: { value: new ve(0) },
9661
+ sheen: { value: new pe(0) },
9687
9662
  transparency: { value: 0 }
9688
9663
  }
9689
9664
  ]),
@@ -9691,7 +9666,7 @@ Un.physical = {
9691
9666
  fragmentShader: Ye.meshphysical_frag
9692
9667
  };
9693
9668
  function Jm(e, t, n, r) {
9694
- var i = new ve(0), a = 0, o, s, c = null, l = 0, u = null;
9669
+ var i = new pe(0), a = 0, o, s, c = null, l = 0, u = null;
9695
9670
  function h(d, m, g, y) {
9696
9671
  var p = m.background, v = e.xr, _ = v.getSession && v.getSession();
9697
9672
  if (_ && _.environmentBlendMode === "additive" && (p = null), p === null ? f(i, a) : p && p.isColor && (f(p, 1), y = !0), (e.autoClear || y) && e.clear(e.autoClearColor, e.autoClearDepth, e.autoClearStencil), p && (p.isCubeTexture || p.isWebGLCubeRenderTarget || p.mapping === Va)) {
@@ -9716,24 +9691,23 @@ function Jm(e, t, n, r) {
9716
9691
  }), n.update(s));
9717
9692
  var x = p.isWebGLCubeRenderTarget ? p.texture : p;
9718
9693
  s.material.uniforms.envMap.value = x, s.material.uniforms.flipEnvMap.value = x.isCubeTexture ? -1 : 1, (c !== p || l !== x.version || u !== e.toneMapping) && (s.material.needsUpdate = !0, c = p, l = x.version, u = e.toneMapping), d.unshift(s, s.geometry, s.material, 0, 0, null);
9719
- } else
9720
- p && p.isTexture && (o === void 0 && (o = new ft(
9721
- new mi(2, 2),
9722
- new Wt({
9723
- type: "BackgroundMaterial",
9724
- uniforms: pi(Un.background.uniforms),
9725
- vertexShader: Un.background.vertexShader,
9726
- fragmentShader: Un.background.fragmentShader,
9727
- side: Ha,
9728
- depthTest: !1,
9729
- depthWrite: !1,
9730
- fog: !1
9731
- })
9732
- ), o.geometry.deleteAttribute("normal"), Object.defineProperty(o.material, "map", {
9733
- get: function() {
9734
- return this.uniforms.t2D.value;
9735
- }
9736
- }), n.update(o)), o.material.uniforms.t2D.value = p, p.matrixAutoUpdate === !0 && p.updateMatrix(), o.material.uniforms.uvTransform.value.copy(p.matrix), (c !== p || l !== p.version || u !== e.toneMapping) && (o.material.needsUpdate = !0, c = p, l = p.version, u = e.toneMapping), d.unshift(o, o.geometry, o.material, 0, 0, null));
9694
+ } else p && p.isTexture && (o === void 0 && (o = new ft(
9695
+ new mi(2, 2),
9696
+ new Wt({
9697
+ type: "BackgroundMaterial",
9698
+ uniforms: pi(Un.background.uniforms),
9699
+ vertexShader: Un.background.vertexShader,
9700
+ fragmentShader: Un.background.fragmentShader,
9701
+ side: Ha,
9702
+ depthTest: !1,
9703
+ depthWrite: !1,
9704
+ fog: !1
9705
+ })
9706
+ ), o.geometry.deleteAttribute("normal"), Object.defineProperty(o.material, "map", {
9707
+ get: function() {
9708
+ return this.uniforms.t2D.value;
9709
+ }
9710
+ }), n.update(o)), o.material.uniforms.t2D.value = p, p.matrixAutoUpdate === !0 && p.updateMatrix(), o.material.uniforms.uvTransform.value.copy(p.matrix), (c !== p || l !== p.version || u !== e.toneMapping) && (o.material.needsUpdate = !0, c = p, l = p.version, u = e.toneMapping), d.unshift(o, o.geometry, o.material, 0, 0, null));
9737
9711
  }
9738
9712
  function f(d, m) {
9739
9713
  t.buffers.color.setClear(d.r, d.g, d.b, m, r);
@@ -9779,8 +9753,7 @@ function Qm(e, t, n, r) {
9779
9753
  function $m(e, t, n) {
9780
9754
  var r;
9781
9755
  function i() {
9782
- if (r !== void 0)
9783
- return r;
9756
+ if (r !== void 0) return r;
9784
9757
  var T = t.get("EXT_texture_filter_anisotropic");
9785
9758
  return T !== null ? r = e.getParameter(T.MAX_TEXTURE_MAX_ANISOTROPY_EXT) : r = 0, r;
9786
9759
  }
@@ -10097,8 +10070,7 @@ pa.prototype.isDataTexture3D = !0;
10097
10070
  var Uh = new ot(), sg = new da(), lg = new pa(), zh = new hr(), hu = [], fu = [], du = new Float32Array(16), pu = new Float32Array(9), vu = new Float32Array(4);
10098
10071
  function Fi(e, t, n) {
10099
10072
  var r = e[0];
10100
- if (r <= 0 || r > 0)
10101
- return e;
10073
+ if (r <= 0 || r > 0) return e;
10102
10074
  var i = t * n, a = hu[i];
10103
10075
  if (a === void 0 && (a = new Float32Array(i), hu[i] = a), t !== 0) {
10104
10076
  r.toArray(a, 0);
@@ -10108,11 +10080,9 @@ function Fi(e, t, n) {
10108
10080
  return a;
10109
10081
  }
10110
10082
  function tn(e, t) {
10111
- if (e.length !== t.length)
10112
- return !1;
10083
+ if (e.length !== t.length) return !1;
10113
10084
  for (var n = 0, r = e.length; n < r; n++)
10114
- if (e[n] !== t[n])
10115
- return !1;
10085
+ if (e[n] !== t[n]) return !1;
10116
10086
  return !0;
10117
10087
  }
10118
10088
  function qt(e, t) {
@@ -10135,8 +10105,7 @@ function ug(e, t) {
10135
10105
  if (t.x !== void 0)
10136
10106
  (n[0] !== t.x || n[1] !== t.y) && (e.uniform2f(this.addr, t.x, t.y), n[0] = t.x, n[1] = t.y);
10137
10107
  else {
10138
- if (tn(n, t))
10139
- return;
10108
+ if (tn(n, t)) return;
10140
10109
  e.uniform2fv(this.addr, t), qt(n, t);
10141
10110
  }
10142
10111
  }
@@ -10147,8 +10116,7 @@ function hg(e, t) {
10147
10116
  else if (t.r !== void 0)
10148
10117
  (n[0] !== t.r || n[1] !== t.g || n[2] !== t.b) && (e.uniform3f(this.addr, t.r, t.g, t.b), n[0] = t.r, n[1] = t.g, n[2] = t.b);
10149
10118
  else {
10150
- if (tn(n, t))
10151
- return;
10119
+ if (tn(n, t)) return;
10152
10120
  e.uniform3fv(this.addr, t), qt(n, t);
10153
10121
  }
10154
10122
  }
@@ -10157,44 +10125,37 @@ function fg(e, t) {
10157
10125
  if (t.x !== void 0)
10158
10126
  (n[0] !== t.x || n[1] !== t.y || n[2] !== t.z || n[3] !== t.w) && (e.uniform4f(this.addr, t.x, t.y, t.z, t.w), n[0] = t.x, n[1] = t.y, n[2] = t.z, n[3] = t.w);
10159
10127
  else {
10160
- if (tn(n, t))
10161
- return;
10128
+ if (tn(n, t)) return;
10162
10129
  e.uniform4fv(this.addr, t), qt(n, t);
10163
10130
  }
10164
10131
  }
10165
10132
  function dg(e, t) {
10166
10133
  var n = this.cache, r = t.elements;
10167
10134
  if (r === void 0) {
10168
- if (tn(n, t))
10169
- return;
10135
+ if (tn(n, t)) return;
10170
10136
  e.uniformMatrix2fv(this.addr, !1, t), qt(n, t);
10171
10137
  } else {
10172
- if (tn(n, r))
10173
- return;
10138
+ if (tn(n, r)) return;
10174
10139
  vu.set(r), e.uniformMatrix2fv(this.addr, !1, vu), qt(n, r);
10175
10140
  }
10176
10141
  }
10177
10142
  function pg(e, t) {
10178
10143
  var n = this.cache, r = t.elements;
10179
10144
  if (r === void 0) {
10180
- if (tn(n, t))
10181
- return;
10145
+ if (tn(n, t)) return;
10182
10146
  e.uniformMatrix3fv(this.addr, !1, t), qt(n, t);
10183
10147
  } else {
10184
- if (tn(n, r))
10185
- return;
10148
+ if (tn(n, r)) return;
10186
10149
  pu.set(r), e.uniformMatrix3fv(this.addr, !1, pu), qt(n, r);
10187
10150
  }
10188
10151
  }
10189
10152
  function vg(e, t) {
10190
10153
  var n = this.cache, r = t.elements;
10191
10154
  if (r === void 0) {
10192
- if (tn(n, t))
10193
- return;
10155
+ if (tn(n, t)) return;
10194
10156
  e.uniformMatrix4fv(this.addr, !1, t), qt(n, t);
10195
10157
  } else {
10196
- if (tn(n, r))
10197
- return;
10158
+ if (tn(n, r)) return;
10198
10159
  du.set(r), e.uniformMatrix4fv(this.addr, !1, du), qt(n, r);
10199
10160
  }
10200
10161
  }
@@ -10478,8 +10439,7 @@ function kh(e) {
10478
10439
  }
10479
10440
  function yu(e, t, n) {
10480
10441
  var r = e.getShaderParameter(t, 35713), i = e.getShaderInfoLog(t).trim();
10481
- if (r && i === "")
10482
- return "";
10442
+ if (r && i === "") return "";
10483
10443
  var a = e.getShaderSource(t);
10484
10444
  return "THREE.WebGLShader: gl.getShaderInfoLog() " + n + `
10485
10445
  ` + i + kg(a);
@@ -10834,8 +10794,7 @@ function iy(e, t, n) {
10834
10794
  J = !1;
10835
10795
  var B = yu(r, b, "vertex"), V = yu(r, T, "fragment");
10836
10796
  console.error("THREE.WebGLProgram: shader error: ", r.getError(), "35715", r.getProgramParameter(m, 35715), "gl.getProgramInfoLog", C, B, V);
10837
- } else
10838
- C !== "" ? console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()", C) : (N === "" || O === "") && (F = !1);
10797
+ } else C !== "" ? console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()", C) : (N === "" || O === "") && (F = !1);
10839
10798
  F && (this.diagnostics = {
10840
10799
  runnable: J,
10841
10800
  programLog: C,
@@ -11163,8 +11122,7 @@ function Mu() {
11163
11122
  function u() {
11164
11123
  for (var h = t, f = e.length; h < f; h++) {
11165
11124
  var d = e[h];
11166
- if (d.id === null)
11167
- break;
11125
+ if (d.id === null) break;
11168
11126
  d.id = null, d.object = null, d.geometry = null, d.material = null, d.program = null, d.group = null;
11169
11127
  }
11170
11128
  }
@@ -11207,14 +11165,14 @@ function uy() {
11207
11165
  case "DirectionalLight":
11208
11166
  n = {
11209
11167
  direction: new E(),
11210
- color: new ve()
11168
+ color: new pe()
11211
11169
  };
11212
11170
  break;
11213
11171
  case "SpotLight":
11214
11172
  n = {
11215
11173
  position: new E(),
11216
11174
  direction: new E(),
11217
- color: new ve(),
11175
+ color: new pe(),
11218
11176
  distance: 0,
11219
11177
  coneCos: 0,
11220
11178
  penumbraCos: 0,
@@ -11224,7 +11182,7 @@ function uy() {
11224
11182
  case "PointLight":
11225
11183
  n = {
11226
11184
  position: new E(),
11227
- color: new ve(),
11185
+ color: new pe(),
11228
11186
  distance: 0,
11229
11187
  decay: 0
11230
11188
  };
@@ -11232,13 +11190,13 @@ function uy() {
11232
11190
  case "HemisphereLight":
11233
11191
  n = {
11234
11192
  direction: new E(),
11235
- skyColor: new ve(),
11236
- groundColor: new ve()
11193
+ skyColor: new pe(),
11194
+ groundColor: new pe()
11237
11195
  };
11238
11196
  break;
11239
11197
  case "RectAreaLight":
11240
11198
  n = {
11241
- color: new ve(),
11199
+ color: new pe(),
11242
11200
  position: new E(),
11243
11201
  halfWidth: new E(),
11244
11202
  halfHeight: new E()
@@ -11318,12 +11276,10 @@ function py() {
11318
11276
  pointShadowMap: [],
11319
11277
  pointShadowMatrix: [],
11320
11278
  hemi: []
11321
- }, r = 0; r < 9; r++)
11322
- n.probe.push(new E());
11279
+ }, r = 0; r < 9; r++) n.probe.push(new E());
11323
11280
  var i = new E(), a = new We(), o = new We();
11324
11281
  function s(c, l, u) {
11325
- for (var h = 0, f = 0, d = 0, m = 0; m < 9; m++)
11326
- n.probe[m].set(0, 0, 0);
11282
+ for (var h = 0, f = 0, d = 0, m = 0; m < 9; m++) n.probe[m].set(0, 0, 0);
11327
11283
  var g = 0, y = 0, p = 0, v = 0, _ = 0, x = 0, b = 0, T = 0, C = u.matrixWorldInverse;
11328
11284
  c.sort(dy);
11329
11285
  for (var m = 0, N = c.length; m < N; m++) {
@@ -11837,7 +11793,7 @@ function yy(e, t, n) {
11837
11793
  console.error("THREE.WebGLState:", I);
11838
11794
  }
11839
11795
  }
11840
- function me() {
11796
+ function ve() {
11841
11797
  try {
11842
11798
  e.texImage2D.apply(e, arguments);
11843
11799
  } catch (I) {
@@ -11887,7 +11843,7 @@ function yy(e, t, n) {
11887
11843
  bindTexture: R,
11888
11844
  unbindTexture: he,
11889
11845
  compressedTexImage2D: fe,
11890
- texImage2D: me,
11846
+ texImage2D: ve,
11891
11847
  texImage3D: ie,
11892
11848
  scissor: Se,
11893
11849
  viewport: de,
@@ -11911,8 +11867,8 @@ function xy(e, t, n, r, i, a, o) {
11911
11867
  d === void 0 && (d = g(R, he));
11912
11868
  var fe = ne ? g(R, he) : d;
11913
11869
  fe.width = R, fe.height = he;
11914
- var me = fe.getContext("2d");
11915
- return me.drawImage(A, 0, 0, R, he), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + A.width + "x" + A.height + ") to (" + R + "x" + he + ")."), fe;
11870
+ var ve = fe.getContext("2d");
11871
+ return ve.drawImage(A, 0, 0, R, he), console.warn("THREE.WebGLRenderer: Texture has been resized from (" + A.width + "x" + A.height + ") to (" + R + "x" + he + ")."), fe;
11916
11872
  } else
11917
11873
  return "data" in A && console.warn("THREE.WebGLRenderer: Image in DataTexture is too big (" + A.width + "x" + A.height + ")."), A;
11918
11874
  return A;
@@ -11932,11 +11888,9 @@ function xy(e, t, n, r, i, a, o) {
11932
11888
  Ne.__maxMipLevel = Math.log(Math.max(ne, $)) * Math.LOG2E;
11933
11889
  }
11934
11890
  function b(A, L, ne) {
11935
- if (s === !1)
11936
- return L;
11891
+ if (s === !1) return L;
11937
11892
  if (A !== null) {
11938
- if (e[A] !== void 0)
11939
- return e[A];
11893
+ if (e[A] !== void 0) return e[A];
11940
11894
  console.warn("THREE.WebGLRenderer: Attempt to use non-existing WebGL internal format '" + A + "'");
11941
11895
  }
11942
11896
  var $ = L;
@@ -12014,7 +11968,7 @@ function xy(e, t, n, r, i, a, o) {
12014
11968
  ae(ne, A), n.activeTexture(33984 + L), n.bindTexture(34067, ne.__webglTexture), e.pixelStorei(37440, A.flipY);
12015
11969
  for (var $ = A && (A.isCompressedTexture || A.image[0].isCompressedTexture), Ne = A.image[0] && A.image[0].isDataTexture, ye = [], R = 0; R < 6; R++)
12016
11970
  !$ && !Ne ? ye[R] = y(A.image[R], !1, !0, l) : ye[R] = Ne ? A.image[R].image : A.image[R];
12017
- var he = ye[0], fe = p(he) || s, me = a.convert(A.format), ie = a.convert(A.type), Se = b(A.internalFormat, me, ie);
11971
+ var he = ye[0], fe = p(he) || s, ve = a.convert(A.format), ie = a.convert(A.type), Se = b(A.internalFormat, ve, ie);
12018
11972
  te(34067, A, fe);
12019
11973
  var de;
12020
11974
  if ($) {
@@ -12022,7 +11976,7 @@ function xy(e, t, n, r, i, a, o) {
12022
11976
  de = ye[R].mipmaps;
12023
11977
  for (var Re = 0; Re < de.length; Re++) {
12024
11978
  var I = de[Re];
12025
- A.format !== fn && A.format !== Ar ? me !== null ? n.compressedTexImage2D(34069 + R, Re, Se, I.width, I.height, 0, I.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : n.texImage2D(34069 + R, Re, Se, I.width, I.height, 0, me, ie, I.data);
11979
+ A.format !== fn && A.format !== Ar ? ve !== null ? n.compressedTexImage2D(34069 + R, Re, Se, I.width, I.height, 0, I.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()") : n.texImage2D(34069 + R, Re, Se, I.width, I.height, 0, ve, ie, I.data);
12026
11980
  }
12027
11981
  }
12028
11982
  ne.__maxMipLevel = de.length - 1;
@@ -12030,16 +11984,16 @@ function xy(e, t, n, r, i, a, o) {
12030
11984
  de = A.mipmaps;
12031
11985
  for (var R = 0; R < 6; R++)
12032
11986
  if (Ne) {
12033
- n.texImage2D(34069 + R, 0, Se, ye[R].width, ye[R].height, 0, me, ie, ye[R].data);
11987
+ n.texImage2D(34069 + R, 0, Se, ye[R].width, ye[R].height, 0, ve, ie, ye[R].data);
12034
11988
  for (var Re = 0; Re < de.length; Re++) {
12035
11989
  var I = de[Re], be = I.image[R].image;
12036
- n.texImage2D(34069 + R, Re + 1, Se, be.width, be.height, 0, me, ie, be.data);
11990
+ n.texImage2D(34069 + R, Re + 1, Se, be.width, be.height, 0, ve, ie, be.data);
12037
11991
  }
12038
11992
  } else {
12039
- n.texImage2D(34069 + R, 0, Se, me, ie, ye[R]);
11993
+ n.texImage2D(34069 + R, 0, Se, ve, ie, ye[R]);
12040
11994
  for (var Re = 0; Re < de.length; Re++) {
12041
11995
  var I = de[Re];
12042
- n.texImage2D(34069 + R, Re + 1, Se, me, ie, I.image[R]);
11996
+ n.texImage2D(34069 + R, Re + 1, Se, ve, ie, I.image[R]);
12043
11997
  }
12044
11998
  }
12045
11999
  ne.__maxMipLevel = de.length;
@@ -12068,8 +12022,7 @@ function xy(e, t, n, r, i, a, o) {
12068
12022
  ne ? (e.texParameteri(A, 10242, Z[L.wrapS]), e.texParameteri(A, 10243, Z[L.wrapT]), (A === 32879 || A === 35866) && e.texParameteri(A, 32882, Z[L.wrapR]), e.texParameteri(A, 10240, ee[L.magFilter]), e.texParameteri(A, 10241, ee[L.minFilter])) : (e.texParameteri(A, 10242, 33071), e.texParameteri(A, 10243, 33071), (A === 32879 || A === 35866) && e.texParameteri(A, 32882, 33071), (L.wrapS !== Vt || L.wrapT !== Vt) && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."), e.texParameteri(A, 10240, T(L.magFilter)), e.texParameteri(A, 10241, T(L.minFilter)), L.minFilter !== bt && L.minFilter !== It && console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter."));
12069
12023
  var $ = t.get("EXT_texture_filter_anisotropic");
12070
12024
  if ($) {
12071
- if (L.type === ar && t.get("OES_texture_float_linear") === null || L.type === Go && (s || t.get("OES_texture_half_float_linear")) === null)
12072
- return;
12025
+ if (L.type === ar && t.get("OES_texture_float_linear") === null || L.type === Go && (s || t.get("OES_texture_half_float_linear")) === null) return;
12073
12026
  (L.anisotropy > 1 || r.get(L).__currentAnisotropy) && (e.texParameterf(A, $.TEXTURE_MAX_ANISOTROPY_EXT, Math.min(L.anisotropy, i.getMaxAnisotropy())), r.get(L).__currentAnisotropy = L.anisotropy);
12074
12027
  }
12075
12028
  }
@@ -12079,32 +12032,32 @@ function xy(e, t, n, r, i, a, o) {
12079
12032
  function Pe(A, L, ne) {
12080
12033
  var $ = 3553;
12081
12034
  L.isDataTexture2DArray && ($ = 35866), L.isDataTexture3D && ($ = 32879), ae(A, L), n.activeTexture(33984 + ne), n.bindTexture($, A.__webglTexture), e.pixelStorei(37440, L.flipY), e.pixelStorei(37441, L.premultiplyAlpha), e.pixelStorei(3317, L.unpackAlignment);
12082
- var Ne = v(L) && p(L.image) === !1, ye = y(L.image, Ne, !1, u), R = p(ye) || s, he = a.convert(L.format), fe = a.convert(L.type), me = b(L.internalFormat, he, fe);
12035
+ var Ne = v(L) && p(L.image) === !1, ye = y(L.image, Ne, !1, u), R = p(ye) || s, he = a.convert(L.format), fe = a.convert(L.type), ve = b(L.internalFormat, he, fe);
12083
12036
  te($, L, R);
12084
12037
  var ie, Se = L.mipmaps;
12085
12038
  if (L.isDepthTexture)
12086
- me = 6402, s ? L.type === ar ? me = 36012 : L.type === Do ? me = 33190 : L.type === na ? me = 35056 : me = 33189 : L.type === ar && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), L.format === hi && me === 6402 && L.type !== zo && L.type !== Do && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), L.type = zo, fe = a.convert(L.type)), L.format === oa && me === 6402 && (me = 34041, L.type !== na && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), L.type = na, fe = a.convert(L.type))), n.texImage2D(3553, 0, me, ye.width, ye.height, 0, he, fe, null);
12039
+ ve = 6402, s ? L.type === ar ? ve = 36012 : L.type === Do ? ve = 33190 : L.type === na ? ve = 35056 : ve = 33189 : L.type === ar && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), L.format === hi && ve === 6402 && L.type !== zo && L.type !== Do && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), L.type = zo, fe = a.convert(L.type)), L.format === oa && ve === 6402 && (ve = 34041, L.type !== na && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), L.type = na, fe = a.convert(L.type))), n.texImage2D(3553, 0, ve, ye.width, ye.height, 0, he, fe, null);
12087
12040
  else if (L.isDataTexture)
12088
12041
  if (Se.length > 0 && R) {
12089
12042
  for (var de = 0, Re = Se.length; de < Re; de++)
12090
- ie = Se[de], n.texImage2D(3553, de, me, ie.width, ie.height, 0, he, fe, ie.data);
12043
+ ie = Se[de], n.texImage2D(3553, de, ve, ie.width, ie.height, 0, he, fe, ie.data);
12091
12044
  L.generateMipmaps = !1, A.__maxMipLevel = Se.length - 1;
12092
12045
  } else
12093
- n.texImage2D(3553, 0, me, ye.width, ye.height, 0, he, fe, ye.data), A.__maxMipLevel = 0;
12046
+ n.texImage2D(3553, 0, ve, ye.width, ye.height, 0, he, fe, ye.data), A.__maxMipLevel = 0;
12094
12047
  else if (L.isCompressedTexture) {
12095
12048
  for (var de = 0, Re = Se.length; de < Re; de++)
12096
- ie = Se[de], L.format !== fn && L.format !== Ar ? he !== null ? n.compressedTexImage2D(3553, de, me, ie.width, ie.height, 0, ie.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : n.texImage2D(3553, de, me, ie.width, ie.height, 0, he, fe, ie.data);
12049
+ ie = Se[de], L.format !== fn && L.format !== Ar ? he !== null ? n.compressedTexImage2D(3553, de, ve, ie.width, ie.height, 0, ie.data) : console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()") : n.texImage2D(3553, de, ve, ie.width, ie.height, 0, he, fe, ie.data);
12097
12050
  A.__maxMipLevel = Se.length - 1;
12098
12051
  } else if (L.isDataTexture2DArray)
12099
- n.texImage3D(35866, 0, me, ye.width, ye.height, ye.depth, 0, he, fe, ye.data), A.__maxMipLevel = 0;
12052
+ n.texImage3D(35866, 0, ve, ye.width, ye.height, ye.depth, 0, he, fe, ye.data), A.__maxMipLevel = 0;
12100
12053
  else if (L.isDataTexture3D)
12101
- n.texImage3D(32879, 0, me, ye.width, ye.height, ye.depth, 0, he, fe, ye.data), A.__maxMipLevel = 0;
12054
+ n.texImage3D(32879, 0, ve, ye.width, ye.height, ye.depth, 0, he, fe, ye.data), A.__maxMipLevel = 0;
12102
12055
  else if (Se.length > 0 && R) {
12103
12056
  for (var de = 0, Re = Se.length; de < Re; de++)
12104
- ie = Se[de], n.texImage2D(3553, de, me, he, fe, ie);
12057
+ ie = Se[de], n.texImage2D(3553, de, ve, he, fe, ie);
12105
12058
  L.generateMipmaps = !1, A.__maxMipLevel = Se.length - 1;
12106
12059
  } else
12107
- n.texImage2D(3553, 0, me, he, fe, ye), A.__maxMipLevel = 0;
12060
+ n.texImage2D(3553, 0, ve, he, fe, ye), A.__maxMipLevel = 0;
12108
12061
  _(L, R) && x($, L, ye.width, ye.height), A.__version = L.version, L.onUpdate && L.onUpdate(L);
12109
12062
  }
12110
12063
  function _e(A, L, ne, $) {
@@ -12141,8 +12094,7 @@ function xy(e, t, n, r, i, a, o) {
12141
12094
  }
12142
12095
  function G(A, L) {
12143
12096
  var ne = L && L.isWebGLCubeRenderTarget;
12144
- if (ne)
12145
- throw new Error("Depth Texture with cube render targets is not supported");
12097
+ if (ne) throw new Error("Depth Texture with cube render targets is not supported");
12146
12098
  if (e.bindFramebuffer(36160, A), !(L.depthTexture && L.depthTexture.isDepthTexture))
12147
12099
  throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");
12148
12100
  (!r.get(L.depthTexture).__webglTexture || L.depthTexture.image.width !== L.width || L.depthTexture.image.height !== L.height) && (L.depthTexture.image.width = L.width, L.depthTexture.image.height = L.height, L.depthTexture.needsUpdate = !0), q(L.depthTexture, 0);
@@ -12157,8 +12109,7 @@ function xy(e, t, n, r, i, a, o) {
12157
12109
  function Be(A) {
12158
12110
  var L = r.get(A), ne = A.isWebGLCubeRenderTarget === !0;
12159
12111
  if (A.depthTexture) {
12160
- if (ne)
12161
- throw new Error("target.depthTexture not supported in Cube render targets");
12112
+ if (ne) throw new Error("target.depthTexture not supported in Cube render targets");
12162
12113
  G(L.__webglFramebuffer, A);
12163
12114
  } else if (ne) {
12164
12115
  L.__webglDepthbuffer = [];
@@ -12179,8 +12130,8 @@ function xy(e, t, n, r, i, a, o) {
12179
12130
  } else if (L.__webglFramebuffer = e.createFramebuffer(), Ne)
12180
12131
  if (s) {
12181
12132
  L.__webglMultisampledFramebuffer = e.createFramebuffer(), L.__webglColorRenderbuffer = e.createRenderbuffer(), e.bindRenderbuffer(36161, L.__webglColorRenderbuffer);
12182
- var he = a.convert(A.texture.format), fe = a.convert(A.texture.type), me = b(A.texture.internalFormat, he, fe), ie = K(A);
12183
- e.renderbufferStorageMultisample(36161, ie, me, A.width, A.height), e.bindFramebuffer(36160, L.__webglMultisampledFramebuffer), e.framebufferRenderbuffer(36160, 36064, 36161, L.__webglColorRenderbuffer), e.bindRenderbuffer(36161, null), A.depthBuffer && (L.__webglDepthRenderbuffer = e.createRenderbuffer(), re(L.__webglDepthRenderbuffer, A, !0)), e.bindFramebuffer(36160, null);
12133
+ var he = a.convert(A.texture.format), fe = a.convert(A.texture.type), ve = b(A.texture.internalFormat, he, fe), ie = K(A);
12134
+ e.renderbufferStorageMultisample(36161, ie, ve, A.width, A.height), e.bindFramebuffer(36160, L.__webglMultisampledFramebuffer), e.framebufferRenderbuffer(36160, 36064, 36161, L.__webglColorRenderbuffer), e.bindRenderbuffer(36161, null), A.depthBuffer && (L.__webglDepthRenderbuffer = e.createRenderbuffer(), re(L.__webglDepthRenderbuffer, A, !0)), e.bindFramebuffer(36160, null);
12184
12135
  } else
12185
12136
  console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");
12186
12137
  if ($) {
@@ -12229,85 +12180,52 @@ function _y(e, t, n) {
12229
12180
  var r = n.isWebGL2;
12230
12181
  function i(a) {
12231
12182
  var o;
12232
- if (a === ka)
12233
- return 5121;
12234
- if (a === pd)
12235
- return 32819;
12236
- if (a === vd)
12237
- return 32820;
12238
- if (a === md)
12239
- return 33635;
12240
- if (a === hd)
12241
- return 5120;
12242
- if (a === fd)
12243
- return 5122;
12244
- if (a === zo)
12245
- return 5123;
12246
- if (a === dd)
12247
- return 5124;
12248
- if (a === Do)
12249
- return 5125;
12250
- if (a === ar)
12251
- return 5126;
12183
+ if (a === ka) return 5121;
12184
+ if (a === pd) return 32819;
12185
+ if (a === vd) return 32820;
12186
+ if (a === md) return 33635;
12187
+ if (a === hd) return 5120;
12188
+ if (a === fd) return 5122;
12189
+ if (a === zo) return 5123;
12190
+ if (a === dd) return 5124;
12191
+ if (a === Do) return 5125;
12192
+ if (a === ar) return 5126;
12252
12193
  if (a === Go)
12253
12194
  return r ? 5131 : (o = t.get("OES_texture_half_float"), o !== null ? o.HALF_FLOAT_OES : null);
12254
- if (a === gd)
12255
- return 6406;
12256
- if (a === Ar)
12257
- return 6407;
12258
- if (a === fn)
12259
- return 6408;
12260
- if (a === yd)
12261
- return 6409;
12262
- if (a === xd)
12263
- return 6410;
12264
- if (a === hi)
12265
- return 6402;
12266
- if (a === oa)
12267
- return 34041;
12268
- if (a === bd)
12269
- return 6403;
12270
- if (a === wd)
12271
- return 36244;
12272
- if (a === Md)
12273
- return 33319;
12274
- if (a === Ed)
12275
- return 33320;
12276
- if (a === Td)
12277
- return 36248;
12278
- if (a === Sd)
12279
- return 36249;
12195
+ if (a === gd) return 6406;
12196
+ if (a === Ar) return 6407;
12197
+ if (a === fn) return 6408;
12198
+ if (a === yd) return 6409;
12199
+ if (a === xd) return 6410;
12200
+ if (a === hi) return 6402;
12201
+ if (a === oa) return 34041;
12202
+ if (a === bd) return 6403;
12203
+ if (a === wd) return 36244;
12204
+ if (a === Md) return 33319;
12205
+ if (a === Ed) return 33320;
12206
+ if (a === Td) return 36248;
12207
+ if (a === Sd) return 36249;
12280
12208
  if (a === Xc || a === jc || a === Yc || a === qc)
12281
12209
  if (o = t.get("WEBGL_compressed_texture_s3tc"), o !== null) {
12282
- if (a === Xc)
12283
- return o.COMPRESSED_RGB_S3TC_DXT1_EXT;
12284
- if (a === jc)
12285
- return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;
12286
- if (a === Yc)
12287
- return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;
12288
- if (a === qc)
12289
- return o.COMPRESSED_RGBA_S3TC_DXT5_EXT;
12210
+ if (a === Xc) return o.COMPRESSED_RGB_S3TC_DXT1_EXT;
12211
+ if (a === jc) return o.COMPRESSED_RGBA_S3TC_DXT1_EXT;
12212
+ if (a === Yc) return o.COMPRESSED_RGBA_S3TC_DXT3_EXT;
12213
+ if (a === qc) return o.COMPRESSED_RGBA_S3TC_DXT5_EXT;
12290
12214
  } else
12291
12215
  return null;
12292
12216
  if (a === Zc || a === Jc || a === Qc || a === $c)
12293
12217
  if (o = t.get("WEBGL_compressed_texture_pvrtc"), o !== null) {
12294
- if (a === Zc)
12295
- return o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
12296
- if (a === Jc)
12297
- return o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
12298
- if (a === Qc)
12299
- return o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
12300
- if (a === $c)
12301
- return o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
12218
+ if (a === Zc) return o.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;
12219
+ if (a === Jc) return o.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;
12220
+ if (a === Qc) return o.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;
12221
+ if (a === $c) return o.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG;
12302
12222
  } else
12303
12223
  return null;
12304
12224
  if (a === Ad)
12305
12225
  return o = t.get("WEBGL_compressed_texture_etc1"), o !== null ? o.COMPRESSED_RGB_ETC1_WEBGL : null;
12306
12226
  if ((a === Kc || a === eu) && (o = t.get("WEBGL_compressed_texture_etc"), o !== null)) {
12307
- if (a === Kc)
12308
- return o.COMPRESSED_RGB8_ETC2;
12309
- if (a === eu)
12310
- return o.COMPRESSED_RGBA8_ETC2_EAC;
12227
+ if (a === Kc) return o.COMPRESSED_RGB8_ETC2;
12228
+ if (a === eu) return o.COMPRESSED_RGBA8_ETC2_EAC;
12311
12229
  }
12312
12230
  if (a === Ld || a === Pd || a === Cd || a === Rd || a === Od || a === Dd || a === Id || a === Nd || a === Fd || a === Bd || a === Ud || a === zd || a === Gd || a === Hd || a === kd || a === Wd || a === Xd || a === jd || a === Yd || a === qd || a === Zd || a === Jd || a === Qd || a === $d || a === Kd || a === ep || a === tp || a === np)
12313
12231
  return o = t.get("WEBGL_compressed_texture_astc"), o !== null ? a : null;
@@ -12569,10 +12487,10 @@ function Yh(e) {
12569
12487
  throw console.error("THREE.WebGLRenderer: " + S.message), S;
12570
12488
  }
12571
12489
  var xe, Te, ue, K, Ce, qe, Qe, et, Ke, A, L, ne, $, Ne, ye, R, he, fe;
12572
- function me() {
12490
+ function ve() {
12573
12491
  xe = new eg(G), Te = new $m(G, xe, e), Te.isWebGL2 === !1 && (xe.get("WEBGL_depth_texture"), xe.get("OES_texture_float"), xe.get("OES_texture_half_float"), xe.get("OES_texture_half_float_linear"), xe.get("OES_standard_derivatives"), xe.get("OES_element_index_uint"), xe.get("ANGLE_instanced_arrays")), xe.get("OES_texture_float_linear"), fe = new _y(G, xe, Te), ue = new yy(G, xe, Te), ue.scissor(O.copy(k).multiplyScalar(V).floor()), ue.viewport(N.copy(z).multiplyScalar(V).floor()), K = new rg(), Ce = new oy(), qe = new xy(G, xe, ue, Ce, Te, fe, K), Qe = new Cp(G, Te), et = new tg(G, Qe, K), Ke = new og(G, et, Qe, K), ye = new ag(G), A = new ay(d, xe, Te), L = new by(Ce), ne = new cy(), $ = new vy(), Ne = new Jm(d, ue, Ke, s), R = new Qm(G, xe, K, Te), he = new ng(G, xe, K, Te), K.programs = A.programs, d.capabilities = Te, d.extensions = xe, d.properties = Ce, d.renderLists = ne, d.state = ue, d.info = K;
12574
12492
  }
12575
- me();
12493
+ ve();
12576
12494
  var ie = new jh(d, G);
12577
12495
  this.xr = ie;
12578
12496
  var Se = new Xh(d, Ke, Te.maxTextureSize);
@@ -12644,7 +12562,7 @@ function Yh(e) {
12644
12562
  S.preventDefault(), console.log("THREE.WebGLRenderer: Context Lost."), m = !0;
12645
12563
  }
12646
12564
  function Re() {
12647
- console.log("THREE.WebGLRenderer: Context Restored."), m = !1, me();
12565
+ console.log("THREE.WebGLRenderer: Context Restored."), m = !1, ve();
12648
12566
  }
12649
12567
  function I(S) {
12650
12568
  var W = S.target;
@@ -12678,8 +12596,7 @@ function Yh(e) {
12678
12596
  (b.geometry !== H.id || b.program !== Ae.id || b.wireframe !== (j.wireframe === !0)) && (b.geometry = H.id, b.program = Ae.id, b.wireframe = j.wireframe === !0, Ue = !0), (j.morphTargets || j.morphNormals) && (ye.update(oe, H, j, Ae), Ue = !0), oe.isInstancedMesh === !0 && (Ue = !0);
12679
12597
  var He = H.index, lt = H.attributes.position;
12680
12598
  if (He === null) {
12681
- if (lt === void 0 || lt.count === 0)
12682
- return;
12599
+ if (lt === void 0 || lt.count === 0) return;
12683
12600
  } else if (He.count === 0)
12684
12601
  return;
12685
12602
  var $e = 1;
@@ -12693,8 +12610,7 @@ function Yh(e) {
12693
12610
  else if (oe.isLine) {
12694
12611
  var Bi = j.linewidth;
12695
12612
  Bi === void 0 && (Bi = 1), ue.setLineWidth(Bi * re()), oe.isLineSegments ? ze.setMode(1) : oe.isLineLoop ? ze.setMode(2) : ze.setMode(3);
12696
- } else
12697
- oe.isPoints ? ze.setMode(0) : oe.isSprite && ze.setMode(4);
12613
+ } else oe.isPoints ? ze.setMode(0) : oe.isSprite && ze.setMode(4);
12698
12614
  if (oe.isInstancedMesh)
12699
12615
  ze.renderInstances(H, st, Yn, oe.count);
12700
12616
  else if (H.isInstancedBufferGeometry) {
@@ -12714,8 +12630,7 @@ function Yh(e) {
12714
12630
  var He = oe[Ae];
12715
12631
  if (He !== void 0) {
12716
12632
  var lt = He.normalized, $e = He.itemSize, Je = Qe.get(He);
12717
- if (Je === void 0)
12718
- continue;
12633
+ if (Je === void 0) continue;
12719
12634
  var ze = Je.buffer, je = Je.type, mt = Je.bytesPerElement;
12720
12635
  if (He.isInterleavedBufferAttribute) {
12721
12636
  var Et = He.data, gt = Et.stride, an = He.offset;
@@ -12724,8 +12639,7 @@ function Yh(e) {
12724
12639
  He.isInstancedBufferAttribute ? (ue.enableAttributeAndDivisor(Ue, He.meshPerAttribute), W._maxInstanceCount === void 0 && (W._maxInstanceCount = He.meshPerAttribute * He.count)) : ue.enableAttribute(Ue), G.bindBuffer(34962, ze), ue.vertexAttribPointer(Ue, $e, je, lt, 0, 0);
12725
12640
  } else if (Ae === "instanceMatrix") {
12726
12641
  var Je = Qe.get(S.instanceMatrix);
12727
- if (Je === void 0)
12728
- continue;
12642
+ if (Je === void 0) continue;
12729
12643
  var ze = Je.buffer, je = Je.type;
12730
12644
  ue.enableAttributeAndDivisor(Ue + 0, 1), ue.enableAttributeAndDivisor(Ue + 1, 1), ue.enableAttributeAndDivisor(Ue + 2, 1), ue.enableAttributeAndDivisor(Ue + 3, 1), G.bindBuffer(34962, ze), G.vertexAttribPointer(Ue + 0, 4, je, !1, 64, 0), G.vertexAttribPointer(Ue + 1, 4, je, !1, 64, 16), G.vertexAttribPointer(Ue + 2, 4, je, !1, 64, 32), G.vertexAttribPointer(Ue + 3, 4, je, !1, 64, 48);
12731
12645
  } else if (Oe !== void 0) {
@@ -12763,8 +12677,7 @@ function Yh(e) {
12763
12677
  let Oe = oe[Ge];
12764
12678
  Oe.uuid in H || (Xt(Oe, S, j), H[Oe.uuid] = !0);
12765
12679
  }
12766
- else
12767
- oe.uuid in H || (Xt(oe, S, j), H[oe.uuid] = !0);
12680
+ else oe.uuid in H || (Xt(oe, S, j), H[oe.uuid] = !0);
12768
12681
  });
12769
12682
  };
12770
12683
  var rt = null;
@@ -12819,8 +12732,7 @@ function Yh(e) {
12819
12732
  var lt = Ae[Ue], $e = Oe[lt.materialIndex];
12820
12733
  $e && $e.visible && h.push(S, Ge, $e, H, _e.z, lt);
12821
12734
  }
12822
- else
12823
- Oe.visible && h.push(S, Ge, Oe, H, _e.z, null);
12735
+ else Oe.visible && h.push(S, Ge, Oe, H, _e.z, null);
12824
12736
  }
12825
12737
  }
12826
12738
  for (var Je = S.children, Ue = 0, He = Je.length; Ue < He; Ue++)
@@ -12994,7 +12906,7 @@ function Yh(e) {
12994
12906
  }, typeof __THREE_DEVTOOLS__ != "undefined" && __THREE_DEVTOOLS__.dispatchEvent(new CustomEvent("observe", { detail: this }));
12995
12907
  }
12996
12908
  function Cl(e, t) {
12997
- this.name = "", this.color = new ve(e), this.density = t !== void 0 ? t : 25e-5;
12909
+ this.name = "", this.color = new pe(e), this.density = t !== void 0 ? t : 25e-5;
12998
12910
  }
12999
12911
  Object.assign(Cl.prototype, {
13000
12912
  isFogExp2: !0,
@@ -13010,7 +12922,7 @@ Object.assign(Cl.prototype, {
13010
12922
  }
13011
12923
  });
13012
12924
  function Rl(e, t, n) {
13013
- this.name = "", this.color = new ve(e), this.near = t !== void 0 ? t : 1, this.far = n !== void 0 ? n : 1e3;
12925
+ this.name = "", this.color = new pe(e), this.near = t !== void 0 ? t : 1, this.far = n !== void 0 ? n : 1e3;
13014
12926
  }
13015
12927
  Object.assign(Rl.prototype, {
13016
12928
  isFog: !0,
@@ -13137,7 +13049,7 @@ Object.assign(jo.prototype, {
13137
13049
  }
13138
13050
  });
13139
13051
  function Or(e) {
13140
- Ie.call(this), this.type = "SpriteMaterial", this.color = new ve(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.setValues(e);
13052
+ Ie.call(this), this.type = "SpriteMaterial", this.color = new pe(16777215), this.map = null, this.alphaMap = null, this.rotation = 0, this.sizeAttenuation = !0, this.transparent = !0, this.setValues(e);
13141
13053
  }
13142
13054
  Or.prototype = Object.create(Ie.prototype);
13143
13055
  Or.prototype.constructor = Or;
@@ -13402,7 +13314,7 @@ Nl.prototype = Object.assign(Object.create(ft.prototype), {
13402
13314
  }
13403
13315
  });
13404
13316
  function xt(e) {
13405
- Ie.call(this), this.type = "LineBasicMaterial", this.color = new ve(16777215), this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.morphTargets = !1, this.setValues(e);
13317
+ Ie.call(this), this.type = "LineBasicMaterial", this.color = new pe(16777215), this.linewidth = 1, this.linecap = "round", this.linejoin = "round", this.morphTargets = !1, this.setValues(e);
13406
13318
  }
13407
13319
  xt.prototype = Object.create(Ie.prototype);
13408
13320
  xt.prototype.constructor = xt;
@@ -13549,7 +13461,7 @@ Fl.prototype = Object.assign(Object.create(nn.prototype), {
13549
13461
  isLineLoop: !0
13550
13462
  });
13551
13463
  function Dr(e) {
13552
- Ie.call(this), this.type = "PointsMaterial", this.color = new ve(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.morphTargets = !1, this.setValues(e);
13464
+ Ie.call(this), this.type = "PointsMaterial", this.color = new pe(16777215), this.map = null, this.alphaMap = null, this.size = 1, this.sizeAttenuation = !0, this.morphTargets = !1, this.setValues(e);
13553
13465
  }
13554
13466
  Dr.prototype = Object.create(Ie.prototype);
13555
13467
  Dr.prototype.constructor = Dr;
@@ -13609,8 +13521,7 @@ function ol(e, t, n, r, i, a, o) {
13609
13521
  var c = new E();
13610
13522
  Bl.closestPointToPoint(e, c), c.applyMatrix4(r);
13611
13523
  var l = i.ray.origin.distanceTo(c);
13612
- if (l < i.near || l > i.far)
13613
- return;
13524
+ if (l < i.near || l > i.far) return;
13614
13525
  a.push({
13615
13526
  distance: l,
13616
13527
  distanceToRay: Math.sqrt(s),
@@ -14344,8 +14255,7 @@ var My = {
14344
14255
  triangulate: function(e, t, n) {
14345
14256
  n = n || 2;
14346
14257
  var r = t && t.length, i = r ? t[0] * n : e.length, a = Zh(e, 0, i, n, !0), o = [];
14347
- if (!a || a.next === a.prev)
14348
- return o;
14258
+ if (!a || a.next === a.prev) return o;
14349
14259
  var s, c, l, u, h, f, d;
14350
14260
  if (r && (a = Ly(e, t, a, n)), e.length > 80 * n) {
14351
14261
  s = l = e[0], c = u = e[1];
@@ -14359,22 +14269,18 @@ var My = {
14359
14269
  function Zh(e, t, n, r, i) {
14360
14270
  var a, o;
14361
14271
  if (i === zy(e, t, n, r) > 0)
14362
- for (a = t; a < n; a += r)
14363
- o = Bu(a, e[a], e[a + 1], o);
14272
+ for (a = t; a < n; a += r) o = Bu(a, e[a], e[a + 1], o);
14364
14273
  else
14365
- for (a = n - r; a >= t; a -= r)
14366
- o = Bu(a, e[a], e[a + 1], o);
14274
+ for (a = n - r; a >= t; a -= r) o = Bu(a, e[a], e[a + 1], o);
14367
14275
  return o && Ls(o, o.next) && (Ta(o), o = o.next), o;
14368
14276
  }
14369
14277
  function dr(e, t) {
14370
- if (!e)
14371
- return e;
14278
+ if (!e) return e;
14372
14279
  t || (t = e);
14373
14280
  var n = e, r;
14374
14281
  do
14375
14282
  if (r = !1, !n.steiner && (Ls(n, n.next) || ht(n.prev, n, n.next) === 0)) {
14376
- if (Ta(n), n = t = n.prev, n === n.next)
14377
- break;
14283
+ if (Ta(n), n = t = n.prev, n === n.next) break;
14378
14284
  r = !0;
14379
14285
  } else
14380
14286
  n = n.next;
@@ -14398,32 +14304,26 @@ function Ma(e, t, n, r, i, a, o) {
14398
14304
  }
14399
14305
  function Ey(e) {
14400
14306
  var t = e.prev, n = e, r = e.next;
14401
- if (ht(t, n, r) >= 0)
14402
- return !1;
14307
+ if (ht(t, n, r) >= 0) return !1;
14403
14308
  for (var i = e.next.next; i !== e.prev; ) {
14404
- if (ui(t.x, t.y, n.x, n.y, r.x, r.y, i.x, i.y) && ht(i.prev, i, i.next) >= 0)
14405
- return !1;
14309
+ if (ui(t.x, t.y, n.x, n.y, r.x, r.y, i.x, i.y) && ht(i.prev, i, i.next) >= 0) return !1;
14406
14310
  i = i.next;
14407
14311
  }
14408
14312
  return !0;
14409
14313
  }
14410
14314
  function Ty(e, t, n, r) {
14411
14315
  var i = e.prev, a = e, o = e.next;
14412
- if (ht(i, a, o) >= 0)
14413
- return !1;
14316
+ if (ht(i, a, o) >= 0) return !1;
14414
14317
  for (var s = i.x < a.x ? i.x < o.x ? i.x : o.x : a.x < o.x ? a.x : o.x, c = i.y < a.y ? i.y < o.y ? i.y : o.y : a.y < o.y ? a.y : o.y, l = i.x > a.x ? i.x > o.x ? i.x : o.x : a.x > o.x ? a.x : o.x, u = i.y > a.y ? i.y > o.y ? i.y : o.y : a.y > o.y ? a.y : o.y, h = zl(s, c, t, n, r), f = zl(l, u, t, n, r), d = e.prevZ, m = e.nextZ; d && d.z >= h && m && m.z <= f; ) {
14415
- if (d !== e.prev && d !== e.next && ui(i.x, i.y, a.x, a.y, o.x, o.y, d.x, d.y) && ht(d.prev, d, d.next) >= 0 || (d = d.prevZ, m !== e.prev && m !== e.next && ui(i.x, i.y, a.x, a.y, o.x, o.y, m.x, m.y) && ht(m.prev, m, m.next) >= 0))
14416
- return !1;
14318
+ if (d !== e.prev && d !== e.next && ui(i.x, i.y, a.x, a.y, o.x, o.y, d.x, d.y) && ht(d.prev, d, d.next) >= 0 || (d = d.prevZ, m !== e.prev && m !== e.next && ui(i.x, i.y, a.x, a.y, o.x, o.y, m.x, m.y) && ht(m.prev, m, m.next) >= 0)) return !1;
14417
14319
  m = m.nextZ;
14418
14320
  }
14419
14321
  for (; d && d.z >= h; ) {
14420
- if (d !== e.prev && d !== e.next && ui(i.x, i.y, a.x, a.y, o.x, o.y, d.x, d.y) && ht(d.prev, d, d.next) >= 0)
14421
- return !1;
14322
+ if (d !== e.prev && d !== e.next && ui(i.x, i.y, a.x, a.y, o.x, o.y, d.x, d.y) && ht(d.prev, d, d.next) >= 0) return !1;
14422
14323
  d = d.prevZ;
14423
14324
  }
14424
14325
  for (; m && m.z <= f; ) {
14425
- if (m !== e.prev && m !== e.next && ui(i.x, i.y, a.x, a.y, o.x, o.y, m.x, m.y) && ht(m.prev, m, m.next) >= 0)
14426
- return !1;
14326
+ if (m !== e.prev && m !== e.next && ui(i.x, i.y, a.x, a.y, o.x, o.y, m.x, m.y) && ht(m.prev, m, m.next) >= 0) return !1;
14427
14327
  m = m.nextZ;
14428
14328
  }
14429
14329
  return !0;
@@ -14474,20 +14374,16 @@ function Ry(e, t) {
14474
14374
  var s = n.x + (i - n.y) * (n.next.x - n.x) / (n.next.y - n.y);
14475
14375
  if (s <= r && s > a) {
14476
14376
  if (a = s, s === r) {
14477
- if (i === n.y)
14478
- return n;
14479
- if (i === n.next.y)
14480
- return n.next;
14377
+ if (i === n.y) return n;
14378
+ if (i === n.next.y) return n.next;
14481
14379
  }
14482
14380
  o = n.x < n.next.x ? n : n.next;
14483
14381
  }
14484
14382
  }
14485
14383
  n = n.next;
14486
14384
  } while (n !== t);
14487
- if (!o)
14488
- return null;
14489
- if (r === a)
14490
- return o;
14385
+ if (!o) return null;
14386
+ if (r === a) return o;
14491
14387
  var c = o, l = o.x, u = o.y, h = 1 / 0, f;
14492
14388
  n = o;
14493
14389
  do
@@ -14557,8 +14453,7 @@ function bo(e) {
14557
14453
  function By(e, t) {
14558
14454
  var n = e;
14559
14455
  do {
14560
- if (n.i !== e.i && n.next.i !== e.i && n.i !== t.i && n.next.i !== t.i && Jh(n, n.next, e, t))
14561
- return !0;
14456
+ if (n.i !== e.i && n.next.i !== e.i && n.i !== t.i && n.next.i !== t.i && Jh(n, n.next, e, t)) return !0;
14562
14457
  n = n.next;
14563
14458
  } while (n !== e);
14564
14459
  return !1;
@@ -14743,17 +14638,17 @@ function Gn(e, t) {
14743
14638
  function R(ie, Se, de) {
14744
14639
  fe(ie), fe(Se), fe(de);
14745
14640
  var Re = r.length / 3, I = x.generateTopUV(n, r, Re - 3, Re - 2, Re - 1);
14746
- me(I[0]), me(I[1]), me(I[2]);
14641
+ ve(I[0]), ve(I[1]), ve(I[2]);
14747
14642
  }
14748
14643
  function he(ie, Se, de, Re) {
14749
14644
  fe(ie), fe(Se), fe(Re), fe(Se), fe(de), fe(Re);
14750
14645
  var I = r.length / 3, be = x.generateSideWallUV(n, r, I - 6, I - 3, I - 2, I - 1);
14751
- me(be[0]), me(be[1]), me(be[3]), me(be[1]), me(be[2]), me(be[3]);
14646
+ ve(be[0]), ve(be[1]), ve(be[3]), ve(be[1]), ve(be[2]), ve(be[3]);
14752
14647
  }
14753
14648
  function fe(ie) {
14754
14649
  r.push(u[ie * 3 + 0]), r.push(u[ie * 3 + 1]), r.push(u[ie * 3 + 2]);
14755
14650
  }
14756
- function me(ie) {
14651
+ function ve(ie) {
14757
14652
  i.push(ie.x), i.push(ie.y);
14758
14653
  }
14759
14654
  }
@@ -15173,7 +15068,7 @@ var Bt = /* @__PURE__ */ Object.freeze({
15173
15068
  BoxBufferGeometry: As
15174
15069
  });
15175
15070
  function Ei(e) {
15176
- Ie.call(this), this.type = "ShadowMaterial", this.color = new ve(0), this.transparent = !0, this.setValues(e);
15071
+ Ie.call(this), this.type = "ShadowMaterial", this.color = new pe(0), this.transparent = !0, this.setValues(e);
15177
15072
  }
15178
15073
  Ei.prototype = Object.create(Ie.prototype);
15179
15074
  Ei.prototype.constructor = Ei;
@@ -15188,7 +15083,7 @@ vr.prototype = Object.create(Wt.prototype);
15188
15083
  vr.prototype.constructor = vr;
15189
15084
  vr.prototype.isRawShaderMaterial = !0;
15190
15085
  function Hn(e) {
15191
- Ie.call(this), this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new ve(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ve(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Di, this.normalScale = new X(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapIntensity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.vertexTangents = !1, this.setValues(e);
15086
+ Ie.call(this), this.defines = { STANDARD: "" }, this.type = "MeshStandardMaterial", this.color = new pe(16777215), this.roughness = 1, this.metalness = 0, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new pe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Di, this.normalScale = new X(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.roughnessMap = null, this.metalnessMap = null, this.alphaMap = null, this.envMap = null, this.envMapIntensity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.vertexTangents = !1, this.setValues(e);
15192
15087
  }
15193
15088
  Hn.prototype = Object.create(Ie.prototype);
15194
15089
  Hn.prototype.constructor = Hn;
@@ -15209,10 +15104,10 @@ Ti.prototype.copy = function(e) {
15209
15104
  return Hn.prototype.copy.call(this, e), this.defines = {
15210
15105
  STANDARD: "",
15211
15106
  PHYSICAL: ""
15212
- }, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.reflectivity = e.reflectivity, e.sheen ? this.sheen = (this.sheen || new ve()).copy(e.sheen) : this.sheen = null, this.transparency = e.transparency, this;
15107
+ }, this.clearcoat = e.clearcoat, this.clearcoatMap = e.clearcoatMap, this.clearcoatRoughness = e.clearcoatRoughness, this.clearcoatRoughnessMap = e.clearcoatRoughnessMap, this.clearcoatNormalMap = e.clearcoatNormalMap, this.clearcoatNormalScale.copy(e.clearcoatNormalScale), this.reflectivity = e.reflectivity, e.sheen ? this.sheen = (this.sheen || new pe()).copy(e.sheen) : this.sheen = null, this.transparency = e.transparency, this;
15213
15108
  };
15214
15109
  function Ir(e) {
15215
- Ie.call(this), this.type = "MeshPhongMaterial", this.color = new ve(16777215), this.specular = new ve(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ve(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Di, this.normalScale = new X(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ms, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15110
+ Ie.call(this), this.type = "MeshPhongMaterial", this.color = new pe(16777215), this.specular = new pe(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new pe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Di, this.normalScale = new X(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ms, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15216
15111
  }
15217
15112
  Ir.prototype = Object.create(Ie.prototype);
15218
15113
  Ir.prototype.constructor = Ir;
@@ -15221,7 +15116,7 @@ Ir.prototype.copy = function(e) {
15221
15116
  return Ie.prototype.copy.call(this, e), this.color.copy(e.color), this.specular.copy(e.specular), this.shininess = e.shininess, this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15222
15117
  };
15223
15118
  function Si(e) {
15224
- Ie.call(this), this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new ve(16777215), this.specular = new ve(1118481), this.shininess = 30, this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ve(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Di, this.normalScale = new X(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15119
+ Ie.call(this), this.defines = { TOON: "" }, this.type = "MeshToonMaterial", this.color = new pe(16777215), this.specular = new pe(1118481), this.shininess = 30, this.map = null, this.gradientMap = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new pe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Di, this.normalScale = new X(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15225
15120
  }
15226
15121
  Si.prototype = Object.create(Ie.prototype);
15227
15122
  Si.prototype.constructor = Si;
@@ -15239,7 +15134,7 @@ Ai.prototype.copy = function(e) {
15239
15134
  return Ie.prototype.copy.call(this, e), this.bumpMap = e.bumpMap, this.bumpScale = e.bumpScale, this.normalMap = e.normalMap, this.normalMapType = e.normalMapType, this.normalScale.copy(e.normalScale), this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15240
15135
  };
15241
15136
  function Li(e) {
15242
- Ie.call(this), this.type = "MeshLambertMaterial", this.color = new ve(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new ve(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ms, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15137
+ Ie.call(this), this.type = "MeshLambertMaterial", this.color = new pe(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new pe(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ms, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15243
15138
  }
15244
15139
  Li.prototype = Object.create(Ie.prototype);
15245
15140
  Li.prototype.constructor = Li;
@@ -15248,7 +15143,7 @@ Li.prototype.copy = function(e) {
15248
15143
  return Ie.prototype.copy.call(this, e), this.color.copy(e.color), this.map = e.map, this.lightMap = e.lightMap, this.lightMapIntensity = e.lightMapIntensity, this.aoMap = e.aoMap, this.aoMapIntensity = e.aoMapIntensity, this.emissive.copy(e.emissive), this.emissiveMap = e.emissiveMap, this.emissiveIntensity = e.emissiveIntensity, this.specularMap = e.specularMap, this.alphaMap = e.alphaMap, this.envMap = e.envMap, this.combine = e.combine, this.reflectivity = e.reflectivity, this.refractionRatio = e.refractionRatio, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.wireframeLinecap = e.wireframeLinecap, this.wireframeLinejoin = e.wireframeLinejoin, this.skinning = e.skinning, this.morphTargets = e.morphTargets, this.morphNormals = e.morphNormals, this;
15249
15144
  };
15250
15145
  function Pi(e) {
15251
- Ie.call(this), this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new ve(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Di, this.normalScale = new X(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15146
+ Ie.call(this), this.defines = { MATCAP: "" }, this.type = "MeshMatcapMaterial", this.color = new pe(16777215), this.matcap = null, this.map = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = Di, this.normalScale = new X(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.alphaMap = null, this.skinning = !1, this.morphTargets = !1, this.morphNormals = !1, this.setValues(e);
15252
15147
  }
15253
15148
  Pi.prototype = Object.create(Ie.prototype);
15254
15149
  Pi.prototype.constructor = Pi;
@@ -15303,8 +15198,7 @@ var Hy = /* @__PURE__ */ Object.freeze({
15303
15198
  function t(a, o) {
15304
15199
  return e[a] - e[o];
15305
15200
  }
15306
- for (var n = e.length, r = new Array(n), i = 0; i !== n; ++i)
15307
- r[i] = i;
15201
+ for (var n = e.length, r = new Array(n), i = 0; i !== n; ++i) r[i] = i;
15308
15202
  return r.sort(t), r;
15309
15203
  },
15310
15204
  // uses the array previously returned by 'getKeyframeOrder' to sort data
@@ -15416,30 +15310,26 @@ Object.assign(en.prototype, {
15416
15310
  t: {
15417
15311
  var a;
15418
15312
  n: {
15419
- r:
15420
- if (!(e < r)) {
15421
- for (var o = n + 2; ; ) {
15422
- if (r === void 0) {
15423
- if (e < i)
15424
- break r;
15425
- return n = t.length, this._cachedIndex = n, this.afterEnd_(n - 1, e, i);
15426
- }
15427
- if (n === o)
15428
- break;
15429
- if (i = r, r = t[++n], e < r)
15430
- break t;
15313
+ r: if (!(e < r)) {
15314
+ for (var o = n + 2; ; ) {
15315
+ if (r === void 0) {
15316
+ if (e < i) break r;
15317
+ return n = t.length, this._cachedIndex = n, this.afterEnd_(n - 1, e, i);
15431
15318
  }
15432
- a = t.length;
15433
- break n;
15319
+ if (n === o) break;
15320
+ if (i = r, r = t[++n], e < r)
15321
+ break t;
15434
15322
  }
15323
+ a = t.length;
15324
+ break n;
15325
+ }
15435
15326
  if (!(e >= i)) {
15436
15327
  var s = t[1];
15437
15328
  e < s && (n = 2, i = s);
15438
15329
  for (var o = n - 2; ; ) {
15439
15330
  if (i === void 0)
15440
15331
  return this._cachedIndex = 0, this.beforeStart_(0, e, r);
15441
- if (n === o)
15442
- break;
15332
+ if (n === o) break;
15443
15333
  if (r = i, i = t[--n - 1], e >= i)
15444
15334
  break t;
15445
15335
  }
@@ -15550,10 +15440,8 @@ Vl.prototype = Object.assign(Object.create(en.prototype), {
15550
15440
  }
15551
15441
  });
15552
15442
  function Nt(e, t, n, r) {
15553
- if (e === void 0)
15554
- throw new Error("THREE.KeyframeTrack: track name is undefined");
15555
- if (t === void 0 || t.length === 0)
15556
- throw new Error("THREE.KeyframeTrack: no keyframes in track named " + e);
15443
+ if (e === void 0) throw new Error("THREE.KeyframeTrack: track name is undefined");
15444
+ if (t === void 0 || t.length === 0) throw new Error("THREE.KeyframeTrack: no keyframes in track named " + e);
15557
15445
  this.name = e, this.times = ut.convertArray(t, this.TimeBufferType), this.values = ut.convertArray(n, this.ValueBufferType), this.setInterpolation(r || this.DefaultInterpolation);
15558
15446
  }
15559
15447
  Object.assign(Nt, {
@@ -16419,10 +16307,8 @@ rn.prototype = Object.create(Le.prototype);
16419
16307
  rn.prototype.constructor = rn;
16420
16308
  rn.prototype.isEllipseCurve = !0;
16421
16309
  rn.prototype.getPoint = function(e, t) {
16422
- for (var n = t || new X(), r = Math.PI * 2, i = this.aEndAngle - this.aStartAngle, a = Math.abs(i) < Number.EPSILON; i < 0; )
16423
- i += r;
16424
- for (; i > r; )
16425
- i -= r;
16310
+ for (var n = t || new X(), r = Math.PI * 2, i = this.aEndAngle - this.aStartAngle, a = Math.abs(i) < Number.EPSILON; i < 0; ) i += r;
16311
+ for (; i > r; ) i -= r;
16426
16312
  i < Number.EPSILON && (a ? i = 0 : i = r), this.aClockwise === !0 && !a && (i === r ? i = -r : i = i - r);
16427
16313
  var o = this.aStartAngle + e * i, s = this.aX + this.xRadius * Math.cos(o), c = this.aY + this.yRadius * Math.sin(o);
16428
16314
  if (this.aRotation !== 0) {
@@ -16480,8 +16366,7 @@ Jt.prototype.getPoint = function(e, t) {
16480
16366
  if (this.closed || o > 0 ? c = r[(o - 1) % i] : (wo.subVectors(r[0], r[1]).add(r[0]), c = wo), l = r[o % i], u = r[(o + 1) % i], this.closed || o + 2 < i ? h = r[(o + 2) % i] : (wo.subVectors(r[i - 1], r[i - 2]).add(r[i - 1]), h = wo), this.curveType === "centripetal" || this.curveType === "chordal") {
16481
16367
  var f = this.curveType === "chordal" ? 0.5 : 0.25, d = Math.pow(c.distanceToSquared(l), f), m = Math.pow(l.distanceToSquared(u), f), g = Math.pow(u.distanceToSquared(h), f);
16482
16368
  m < 1e-4 && (m = 1), d < 1e-4 && (d = m), g < 1e-4 && (g = m), sl.initNonuniformCatmullRom(c.x, l.x, u.x, h.x, d, m, g), ll.initNonuniformCatmullRom(c.y, l.y, u.y, h.y, d, m, g), cl.initNonuniformCatmullRom(c.z, l.z, u.z, h.z, d, m, g);
16483
- } else
16484
- this.curveType === "catmullrom" && (sl.initCatmullRom(c.x, l.x, u.x, h.x, this.tension), ll.initCatmullRom(c.y, l.y, u.y, h.y, this.tension), cl.initCatmullRom(c.z, l.z, u.z, h.z, this.tension));
16369
+ } else this.curveType === "catmullrom" && (sl.initCatmullRom(c.x, l.x, u.x, h.x, this.tension), ll.initCatmullRom(c.y, l.y, u.y, h.y, this.tension), cl.initCatmullRom(c.z, l.z, u.z, h.z, this.tension));
16485
16370
  return n.set(
16486
16371
  sl.calc(s),
16487
16372
  ll.calc(s),
@@ -16954,7 +16839,7 @@ Lr.prototype = Object.assign(Object.create(wn.prototype), {
16954
16839
  }
16955
16840
  });
16956
16841
  function ct(e, t) {
16957
- se.call(this), this.type = "Light", this.color = new ve(e), this.intensity = t !== void 0 ? t : 1, this.receiveShadow = void 0;
16842
+ se.call(this), this.type = "Light", this.color = new pe(e), this.intensity = t !== void 0 ? t : 1, this.receiveShadow = void 0;
16958
16843
  }
16959
16844
  ct.prototype = Object.assign(Object.create(se.prototype), {
16960
16845
  constructor: ct,
@@ -16968,7 +16853,7 @@ ct.prototype = Object.assign(Object.create(se.prototype), {
16968
16853
  }
16969
16854
  });
16970
16855
  function Jl(e, t, n) {
16971
- ct.call(this, e, n), this.type = "HemisphereLight", this.castShadow = void 0, this.position.copy(se.DefaultUp), this.updateMatrix(), this.groundColor = new ve(t);
16856
+ ct.call(this, e, n), this.type = "HemisphereLight", this.castShadow = void 0, this.position.copy(se.DefaultUp), this.updateMatrix(), this.groundColor = new pe(t);
16972
16857
  }
16973
16858
  Jl.prototype = Object.assign(Object.create(ct.prototype), {
16974
16859
  constructor: Jl,
@@ -17324,7 +17209,7 @@ ac.prototype = Object.assign(Object.create(nt.prototype), {
17324
17209
  return t[c] === void 0 && console.warn("THREE.MaterialLoader: Undefined texture", c), t[c];
17325
17210
  }
17326
17211
  var r = new Hy[e.type]();
17327
- if (e.uuid !== void 0 && (r.uuid = e.uuid), e.name !== void 0 && (r.name = e.name), e.color !== void 0 && r.color.setHex(e.color), e.roughness !== void 0 && (r.roughness = e.roughness), e.metalness !== void 0 && (r.metalness = e.metalness), e.sheen !== void 0 && (r.sheen = new ve().setHex(e.sheen)), e.emissive !== void 0 && r.emissive.setHex(e.emissive), e.specular !== void 0 && r.specular.setHex(e.specular), e.shininess !== void 0 && (r.shininess = e.shininess), e.clearcoat !== void 0 && (r.clearcoat = e.clearcoat), e.clearcoatRoughness !== void 0 && (r.clearcoatRoughness = e.clearcoatRoughness), e.fog !== void 0 && (r.fog = e.fog), e.flatShading !== void 0 && (r.flatShading = e.flatShading), e.blending !== void 0 && (r.blending = e.blending), e.combine !== void 0 && (r.combine = e.combine), e.side !== void 0 && (r.side = e.side), e.opacity !== void 0 && (r.opacity = e.opacity), e.transparent !== void 0 && (r.transparent = e.transparent), e.alphaTest !== void 0 && (r.alphaTest = e.alphaTest), e.depthTest !== void 0 && (r.depthTest = e.depthTest), e.depthWrite !== void 0 && (r.depthWrite = e.depthWrite), e.colorWrite !== void 0 && (r.colorWrite = e.colorWrite), e.stencilWrite !== void 0 && (r.stencilWrite = e.stencilWrite), e.stencilWriteMask !== void 0 && (r.stencilWriteMask = e.stencilWriteMask), e.stencilFunc !== void 0 && (r.stencilFunc = e.stencilFunc), e.stencilRef !== void 0 && (r.stencilRef = e.stencilRef), e.stencilFuncMask !== void 0 && (r.stencilFuncMask = e.stencilFuncMask), e.stencilFail !== void 0 && (r.stencilFail = e.stencilFail), e.stencilZFail !== void 0 && (r.stencilZFail = e.stencilZFail), e.stencilZPass !== void 0 && (r.stencilZPass = e.stencilZPass), e.wireframe !== void 0 && (r.wireframe = e.wireframe), e.wireframeLinewidth !== void 0 && (r.wireframeLinewidth = e.wireframeLinewidth), e.wireframeLinecap !== void 0 && (r.wireframeLinecap = e.wireframeLinecap), e.wireframeLinejoin !== void 0 && (r.wireframeLinejoin = e.wireframeLinejoin), e.rotation !== void 0 && (r.rotation = e.rotation), e.linewidth !== 1 && (r.linewidth = e.linewidth), e.dashSize !== void 0 && (r.dashSize = e.dashSize), e.gapSize !== void 0 && (r.gapSize = e.gapSize), e.scale !== void 0 && (r.scale = e.scale), e.polygonOffset !== void 0 && (r.polygonOffset = e.polygonOffset), e.polygonOffsetFactor !== void 0 && (r.polygonOffsetFactor = e.polygonOffsetFactor), e.polygonOffsetUnits !== void 0 && (r.polygonOffsetUnits = e.polygonOffsetUnits), e.skinning !== void 0 && (r.skinning = e.skinning), e.morphTargets !== void 0 && (r.morphTargets = e.morphTargets), e.morphNormals !== void 0 && (r.morphNormals = e.morphNormals), e.dithering !== void 0 && (r.dithering = e.dithering), e.vertexTangents !== void 0 && (r.vertexTangents = e.vertexTangents), e.visible !== void 0 && (r.visible = e.visible), e.toneMapped !== void 0 && (r.toneMapped = e.toneMapped), e.userData !== void 0 && (r.userData = e.userData), e.vertexColors !== void 0 && (typeof e.vertexColors == "number" ? r.vertexColors = e.vertexColors > 0 : r.vertexColors = e.vertexColors), e.uniforms !== void 0)
17212
+ if (e.uuid !== void 0 && (r.uuid = e.uuid), e.name !== void 0 && (r.name = e.name), e.color !== void 0 && r.color.setHex(e.color), e.roughness !== void 0 && (r.roughness = e.roughness), e.metalness !== void 0 && (r.metalness = e.metalness), e.sheen !== void 0 && (r.sheen = new pe().setHex(e.sheen)), e.emissive !== void 0 && r.emissive.setHex(e.emissive), e.specular !== void 0 && r.specular.setHex(e.specular), e.shininess !== void 0 && (r.shininess = e.shininess), e.clearcoat !== void 0 && (r.clearcoat = e.clearcoat), e.clearcoatRoughness !== void 0 && (r.clearcoatRoughness = e.clearcoatRoughness), e.fog !== void 0 && (r.fog = e.fog), e.flatShading !== void 0 && (r.flatShading = e.flatShading), e.blending !== void 0 && (r.blending = e.blending), e.combine !== void 0 && (r.combine = e.combine), e.side !== void 0 && (r.side = e.side), e.opacity !== void 0 && (r.opacity = e.opacity), e.transparent !== void 0 && (r.transparent = e.transparent), e.alphaTest !== void 0 && (r.alphaTest = e.alphaTest), e.depthTest !== void 0 && (r.depthTest = e.depthTest), e.depthWrite !== void 0 && (r.depthWrite = e.depthWrite), e.colorWrite !== void 0 && (r.colorWrite = e.colorWrite), e.stencilWrite !== void 0 && (r.stencilWrite = e.stencilWrite), e.stencilWriteMask !== void 0 && (r.stencilWriteMask = e.stencilWriteMask), e.stencilFunc !== void 0 && (r.stencilFunc = e.stencilFunc), e.stencilRef !== void 0 && (r.stencilRef = e.stencilRef), e.stencilFuncMask !== void 0 && (r.stencilFuncMask = e.stencilFuncMask), e.stencilFail !== void 0 && (r.stencilFail = e.stencilFail), e.stencilZFail !== void 0 && (r.stencilZFail = e.stencilZFail), e.stencilZPass !== void 0 && (r.stencilZPass = e.stencilZPass), e.wireframe !== void 0 && (r.wireframe = e.wireframe), e.wireframeLinewidth !== void 0 && (r.wireframeLinewidth = e.wireframeLinewidth), e.wireframeLinecap !== void 0 && (r.wireframeLinecap = e.wireframeLinecap), e.wireframeLinejoin !== void 0 && (r.wireframeLinejoin = e.wireframeLinejoin), e.rotation !== void 0 && (r.rotation = e.rotation), e.linewidth !== 1 && (r.linewidth = e.linewidth), e.dashSize !== void 0 && (r.dashSize = e.dashSize), e.gapSize !== void 0 && (r.gapSize = e.gapSize), e.scale !== void 0 && (r.scale = e.scale), e.polygonOffset !== void 0 && (r.polygonOffset = e.polygonOffset), e.polygonOffsetFactor !== void 0 && (r.polygonOffsetFactor = e.polygonOffsetFactor), e.polygonOffsetUnits !== void 0 && (r.polygonOffsetUnits = e.polygonOffsetUnits), e.skinning !== void 0 && (r.skinning = e.skinning), e.morphTargets !== void 0 && (r.morphTargets = e.morphTargets), e.morphNormals !== void 0 && (r.morphNormals = e.morphNormals), e.dithering !== void 0 && (r.dithering = e.dithering), e.vertexTangents !== void 0 && (r.vertexTangents = e.vertexTangents), e.visible !== void 0 && (r.visible = e.visible), e.toneMapped !== void 0 && (r.toneMapped = e.toneMapped), e.userData !== void 0 && (r.userData = e.userData), e.vertexColors !== void 0 && (typeof e.vertexColors == "number" ? r.vertexColors = e.vertexColors > 0 : r.vertexColors = e.vertexColors), e.uniforms !== void 0)
17328
17213
  for (var i in e.uniforms) {
17329
17214
  var a = e.uniforms[i];
17330
17215
  switch (r.uniforms[i] = {}, a.type) {
@@ -17332,7 +17217,7 @@ ac.prototype = Object.assign(Object.create(nt.prototype), {
17332
17217
  r.uniforms[i].value = n(a.value);
17333
17218
  break;
17334
17219
  case "c":
17335
- r.uniforms[i].value = new ve().setHex(a.value);
17220
+ r.uniforms[i].value = new pe().setHex(a.value);
17336
17221
  break;
17337
17222
  case "v2":
17338
17223
  r.uniforms[i].value = new X().fromArray(a.value);
@@ -17787,7 +17672,7 @@ lc.prototype = Object.assign(Object.create(nt.prototype), {
17787
17672
  }
17788
17673
  switch (e.type) {
17789
17674
  case "Scene":
17790
- r = new la(), e.background !== void 0 && Number.isInteger(e.background) && (r.background = new ve(e.background)), e.fog !== void 0 && (e.fog.type === "Fog" ? r.fog = new Rl(e.fog.color, e.fog.near, e.fog.far) : e.fog.type === "FogExp2" && (r.fog = new Cl(e.fog.color, e.fog.density)));
17675
+ r = new la(), e.background !== void 0 && Number.isInteger(e.background) && (r.background = new pe(e.background)), e.fog !== void 0 && (e.fog.type === "Fog" ? r.fog = new Rl(e.fog.color, e.fog.near, e.fog.far) : e.fog.type === "FogExp2" && (r.fog = new Cl(e.fog.color, e.fog.density)));
17791
17676
  break;
17792
17677
  case "PerspectiveCamera":
17793
17678
  r = new St(e.fov, e.aspect, e.near, e.far), e.focus !== void 0 && (r.focus = e.focus), e.zoom !== void 0 && (r.zoom = e.zoom), e.filmGauge !== void 0 && (r.filmGauge = e.filmGauge), e.filmOffset !== void 0 && (r.filmOffset = e.filmOffset), e.view !== void 0 && (r.view = Object.assign({}, e.view));
@@ -17912,7 +17797,7 @@ ju.prototype = Object.assign(Object.create(nt.prototype), {
17912
17797
  }
17913
17798
  });
17914
17799
  function nf() {
17915
- this.type = "ShapePath", this.color = new ve(), this.subPaths = [], this.currentPath = null;
17800
+ this.type = "ShapePath", this.color = new pe(), this.subPaths = [], this.currentPath = null;
17916
17801
  }
17917
17802
  Object.assign(nf.prototype, {
17918
17803
  moveTo: function(e, t) {
@@ -17942,33 +17827,25 @@ Object.assign(nf.prototype, {
17942
17827
  for (var k = z.length, Y = !1, Z = k - 1, ee = 0; ee < k; Z = ee++) {
17943
17828
  var te = z[Z], ae = z[ee], Pe = ae.x - te.x, _e = ae.y - te.y;
17944
17829
  if (Math.abs(_e) > Number.EPSILON) {
17945
- if (_e < 0 && (te = z[ee], Pe = -Pe, ae = z[Z], _e = -_e), D.y < te.y || D.y > ae.y)
17946
- continue;
17830
+ if (_e < 0 && (te = z[ee], Pe = -Pe, ae = z[Z], _e = -_e), D.y < te.y || D.y > ae.y) continue;
17947
17831
  if (D.y === te.y) {
17948
- if (D.x === te.x)
17949
- return !0;
17832
+ if (D.x === te.x) return !0;
17950
17833
  } else {
17951
17834
  var re = _e * (D.x - te.x) - Pe * (D.y - te.y);
17952
- if (re === 0)
17953
- return !0;
17954
- if (re < 0)
17955
- continue;
17835
+ if (re === 0) return !0;
17836
+ if (re < 0) continue;
17956
17837
  Y = !Y;
17957
17838
  }
17958
17839
  } else {
17959
- if (D.y !== te.y)
17960
- continue;
17961
- if (ae.x <= D.x && D.x <= te.x || te.x <= D.x && D.x <= ae.x)
17962
- return !0;
17840
+ if (D.y !== te.y) continue;
17841
+ if (ae.x <= D.x && D.x <= te.x || te.x <= D.x && D.x <= ae.x) return !0;
17963
17842
  }
17964
17843
  }
17965
17844
  return Y;
17966
17845
  }
17967
17846
  var i = cr.isClockWise, a = this.subPaths;
17968
- if (a.length === 0)
17969
- return [];
17970
- if (t === !0)
17971
- return n(a);
17847
+ if (a.length === 0) return [];
17848
+ if (t === !0) return n(a);
17972
17849
  var o, s, c, l = [];
17973
17850
  if (a.length === 1)
17974
17851
  return s = a[0], c = new Lr(), c.curves = s.curves, l.push(c), l;
@@ -17978,8 +17855,7 @@ Object.assign(nf.prototype, {
17978
17855
  f[m] = void 0, d[m] = [];
17979
17856
  for (var y = 0, p = a.length; y < p; y++)
17980
17857
  s = a[y], g = s.getPoints(), o = i(g), o = e ? !o : o, o ? (!u && f[m] && m++, f[m] = { s: new Lr(), p: g }, f[m].s.curves = s.curves, u && m++, d[m] = []) : d[m].push({ h: s, p: g[0] });
17981
- if (!f[0])
17982
- return n(a);
17858
+ if (!f[0]) return n(a);
17983
17859
  if (f.length > 1) {
17984
17860
  for (var v = !1, _ = [], x = 0, b = f.length; x < b; x++)
17985
17861
  h[x] = [];
@@ -18102,7 +17978,7 @@ cc.prototype = Object.assign(Object.create(nt.prototype), {
18102
17978
  });
18103
17979
  function qu(e, t, n) {
18104
17980
  dn.call(this, void 0, n);
18105
- var r = new ve().set(e), i = new ve().set(t), a = new E(r.r, r.g, r.b), o = new E(i.r, i.g, i.b), s = Math.sqrt(Math.PI), c = s * Math.sqrt(0.75);
17981
+ var r = new pe().set(e), i = new pe().set(t), a = new E(r.r, r.g, r.b), o = new E(i.r, i.g, i.b), s = Math.sqrt(Math.PI), c = s * Math.sqrt(0.75);
18106
17982
  this.sh.coefficients[0].copy(a).add(o).multiplyScalar(s), this.sh.coefficients[1].copy(a).sub(o).multiplyScalar(c);
18107
17983
  }
18108
17984
  qu.prototype = Object.assign(Object.create(dn.prototype), {
@@ -18118,7 +17994,7 @@ qu.prototype = Object.assign(Object.create(dn.prototype), {
18118
17994
  });
18119
17995
  function Zu(e, t) {
18120
17996
  dn.call(this, void 0, t);
18121
- var n = new ve().set(e);
17997
+ var n = new pe().set(e);
18122
17998
  this.sh.coefficients[0].set(n.r, n.g, n.b).multiplyScalar(2 * Math.sqrt(Math.PI));
18123
17999
  }
18124
18000
  Zu.prototype = Object.assign(Object.create(dn.prototype), {
@@ -18582,8 +18458,7 @@ Object.assign(Gt, {
18582
18458
  if (s.name === t || s.uuid === t)
18583
18459
  return s;
18584
18460
  var c = r(s.children);
18585
- if (c)
18586
- return c;
18461
+ if (c) return c;
18587
18462
  }
18588
18463
  return null;
18589
18464
  }, i = r(e.children);
@@ -18762,8 +18637,7 @@ Object.assign(Gt.prototype, {
18762
18637
  }
18763
18638
  }
18764
18639
  u = this.BindingType.ArrayElement, this.resolvedProperty = s, this.propertyIndex = i;
18765
- } else
18766
- s.fromArray !== void 0 && s.toArray !== void 0 ? (u = this.BindingType.HasFromToArray, this.resolvedProperty = s) : Array.isArray(s) ? (u = this.BindingType.EntireArray, this.resolvedProperty = s) : this.propertyName = r;
18640
+ } else s.fromArray !== void 0 && s.toArray !== void 0 ? (u = this.BindingType.HasFromToArray, this.resolvedProperty = s) : Array.isArray(s) ? (u = this.BindingType.EntireArray, this.resolvedProperty = s) : this.propertyName = r;
18767
18641
  this.getValue = this.GetterByBindingType[u], this.setValue = this.SetterByBindingTypeAndVersioning[u][l];
18768
18642
  },
18769
18643
  unbind: function() {
@@ -18814,8 +18688,7 @@ Object.assign(f0.prototype, {
18814
18688
  var v = o[m], _ = v[y], x = v[d];
18815
18689
  v[d] = _, x === void 0 && (x = new Gt(h, i[m], a[m])), v[y] = x;
18816
18690
  }
18817
- } else
18818
- e[d] !== c && console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.");
18691
+ } else e[d] !== c && console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.");
18819
18692
  }
18820
18693
  this.nCachedObjects_ = n;
18821
18694
  },
@@ -18859,8 +18732,7 @@ Object.assign(f0.prototype, {
18859
18732
  // Internal interface used by befriended PropertyBinding.Composite:
18860
18733
  subscribe_: function(e, t) {
18861
18734
  var n = this._bindingsIndicesByPath, r = n[e], i = this._bindings;
18862
- if (r !== void 0)
18863
- return i[r];
18735
+ if (r !== void 0) return i[r];
18864
18736
  var a = this._paths, o = this._parsedPaths, s = this._objects, c = s.length, l = this.nCachedObjects_, u = new Array(c);
18865
18737
  r = i.length, n[e] = r, a.push(e), o.push(t), i.push(u);
18866
18738
  for (var h = l, f = s.length; h !== f; ++h) {
@@ -19264,8 +19136,7 @@ nh.prototype = Object.assign(Object.create(vn.prototype), {
19264
19136
  return l;
19265
19137
  c = s.knownActions[0], a === null && (a = c._clip);
19266
19138
  }
19267
- if (a === null)
19268
- return null;
19139
+ if (a === null) return null;
19269
19140
  var u = new uf(this, a, t, n);
19270
19141
  return this._bindAction(u, c), this._addInactiveAction(u, o, i), u;
19271
19142
  },
@@ -19639,7 +19510,7 @@ function pf(e) {
19639
19510
  return t;
19640
19511
  }
19641
19512
  function Oi(e) {
19642
- for (var t = pf(e), n = new ge(), r = [], i = [], a = new ve(0, 0, 1), o = new ve(0, 1, 0), s = 0; s < t.length; s++) {
19513
+ for (var t = pf(e), n = new ge(), r = [], i = [], a = new pe(0, 0, 1), o = new pe(0, 1, 0), s = 0; s < t.length; s++) {
19643
19514
  var c = t[s];
19644
19515
  c.parent && c.parent.isBone && (r.push(0, 0, 0), r.push(0, 0, 0), i.push(a.r, a.g, a.b), i.push(o.r, o.g, o.b));
19645
19516
  }
@@ -19672,7 +19543,7 @@ Ba.prototype.dispose = function() {
19672
19543
  Ba.prototype.update = function() {
19673
19544
  this.color !== void 0 ? this.material.color.set(this.color) : this.material.color.copy(this.light.color);
19674
19545
  };
19675
- var p0 = new E(), lh = new ve(), ch = new ve();
19546
+ var p0 = new E(), lh = new pe(), ch = new pe();
19676
19547
  function Ua(e, t, n) {
19677
19548
  se.call(this), this.light = e, this.light.updateMatrixWorld(), this.matrix = e.matrixWorld, this.matrixAutoUpdate = !1, this.color = n;
19678
19549
  var r = new gi(t);
@@ -19701,7 +19572,7 @@ Ua.prototype.update = function() {
19701
19572
  e.lookAt(p0.setFromMatrixPosition(this.light.matrixWorld).negate());
19702
19573
  };
19703
19574
  function dc(e, t, n, r) {
19704
- e = e || 10, t = t || 10, n = new ve(n !== void 0 ? n : 4473924), r = new ve(r !== void 0 ? r : 8947848);
19575
+ e = e || 10, t = t || 10, n = new pe(n !== void 0 ? n : 4473924), r = new pe(r !== void 0 ? r : 8947848);
19705
19576
  for (var i = t / 2, a = e / t, o = e / 2, s = [], c = [], l = 0, u = 0, h = -o; l <= t; l++, h += a) {
19706
19577
  s.push(-o, 0, h, o, 0, h), s.push(h, 0, -o, h, 0, o);
19707
19578
  var f = l === i ? n : r;
@@ -19722,7 +19593,7 @@ dc.prototype = Object.assign(Object.create(Mt.prototype), {
19722
19593
  }
19723
19594
  });
19724
19595
  function pc(e, t, n, r, i, a) {
19725
- e = e || 10, t = t || 16, n = n || 8, r = r || 64, i = new ve(i !== void 0 ? i : 4473924), a = new ve(a !== void 0 ? a : 8947848);
19596
+ e = e || 10, t = t || 16, n = n || 8, r = r || 64, i = new pe(i !== void 0 ? i : 4473924), a = new pe(a !== void 0 ? a : 8947848);
19726
19597
  var o = [], s = [], c, l, u, h, f, d, m;
19727
19598
  for (h = 0; h <= t; h++)
19728
19599
  u = h / t * (Math.PI * 2), c = Math.sin(u) * e, l = Math.cos(u) * e, o.push(0, 0, 0), o.push(c, 0, l), m = h & 1 ? i : a, s.push(m.r, m.g, m.b), s.push(m.r, m.g, m.b);
@@ -19770,7 +19641,7 @@ za.prototype.update = function() {
19770
19641
  };
19771
19642
  var Ao = new E(), vt = new zn();
19772
19643
  function ys(e) {
19773
- var t = new ge(), n = new xt({ color: 16777215, vertexColors: !0, toneMapped: !1 }), r = [], i = [], a = {}, o = new ve(16755200), s = new ve(16711680), c = new ve(43775), l = new ve(16777215), u = new ve(3355443);
19644
+ var t = new ge(), n = new xt({ color: 16777215, vertexColors: !0, toneMapped: !1 }), r = [], i = [], a = {}, o = new pe(16755200), s = new pe(16711680), c = new pe(43775), l = new pe(16777215), u = new pe(3355443);
19774
19645
  h("n1", "n2", o), h("n2", "n4", o), h("n4", "n3", o), h("n3", "n1", o), h("f1", "f2", o), h("f2", "f4", o), h("f4", "f3", o), h("f3", "f1", o), h("n1", "f1", o), h("n2", "f2", o), h("n3", "f3", o), h("n4", "f4", o), h("p", "n1", s), h("p", "n2", s), h("p", "n3", s), h("p", "n4", s), h("u1", "u2", c), h("u2", "u3", c), h("u3", "u1", c), h("c", "t", l), h("p", "c", u), h("cn1", "cn2", u), h("cn3", "cn4", u), h("cf1", "cf2", u), h("cf3", "cf4", u);
19775
19646
  function h(d, m, g) {
19776
19647
  f(d, g), f(m, g);
@@ -20965,7 +20836,7 @@ Object.defineProperties(Ie.prototype, {
20965
20836
  },
20966
20837
  wrapRGB: {
20967
20838
  get: function() {
20968
- return console.warn("THREE.Material: .wrapRGB has been removed."), new ve();
20839
+ return console.warn("THREE.Material: .wrapRGB has been removed."), new pe();
20969
20840
  }
20970
20841
  },
20971
20842
  shading: {
@@ -21298,10 +21169,10 @@ var Ga = function(e, t) {
21298
21169
  }, this.reset = function() {
21299
21170
  n.target.copy(n.target0), n.object.position.copy(n.position0), n.object.zoom = n.zoom0, n.object.updateProjectionMatrix(), n.dispatchEvent(r), n.update(), s = o.NONE;
21300
21171
  }, this.update = function() {
21301
- var R = new E(), he = new wt().setFromUnitVectors(e.up, new E(0, 1, 0)), fe = he.clone().inverse(), me = new E(), ie = new wt();
21172
+ var R = new E(), he = new wt().setFromUnitVectors(e.up, new E(0, 1, 0)), fe = he.clone().inverse(), ve = new E(), ie = new wt();
21302
21173
  return function() {
21303
21174
  var de = n.object.position;
21304
- return R.copy(de).sub(n.target), R.applyQuaternion(he), l.setFromVector3(R), n.autoRotate && s === o.NONE && O(C()), n.enableDamping ? (l.theta += u.theta * n.dampingFactor, l.phi += u.phi * n.dampingFactor) : (l.theta += u.theta, l.phi += u.phi), l.theta = Math.max(n.minAzimuthAngle, Math.min(n.maxAzimuthAngle, l.theta)), l.phi = Math.max(n.minPolarAngle, Math.min(n.maxPolarAngle, l.phi)), l.makeSafe(), l.radius *= h, l.radius = Math.max(n.minDistance, Math.min(n.maxDistance, l.radius)), n.enableDamping === !0 ? n.target.addScaledVector(f, n.dampingFactor) : n.target.add(f), R.setFromSpherical(l), R.applyQuaternion(fe), de.copy(n.target).add(R), n.object.lookAt(n.target), n.enableDamping === !0 ? (u.theta *= 1 - n.dampingFactor, u.phi *= 1 - n.dampingFactor, f.multiplyScalar(1 - n.dampingFactor)) : (u.set(0, 0, 0), f.set(0, 0, 0)), h = 1, d || me.distanceToSquared(n.object.position) > c || 8 * (1 - ie.dot(n.object.quaternion)) > c ? (n.dispatchEvent(r), me.copy(n.object.position), ie.copy(n.object.quaternion), d = !1, !0) : !1;
21175
+ return R.copy(de).sub(n.target), R.applyQuaternion(he), l.setFromVector3(R), n.autoRotate && s === o.NONE && O(C()), n.enableDamping ? (l.theta += u.theta * n.dampingFactor, l.phi += u.phi * n.dampingFactor) : (l.theta += u.theta, l.phi += u.phi), l.theta = Math.max(n.minAzimuthAngle, Math.min(n.maxAzimuthAngle, l.theta)), l.phi = Math.max(n.minPolarAngle, Math.min(n.maxPolarAngle, l.phi)), l.makeSafe(), l.radius *= h, l.radius = Math.max(n.minDistance, Math.min(n.maxDistance, l.radius)), n.enableDamping === !0 ? n.target.addScaledVector(f, n.dampingFactor) : n.target.add(f), R.setFromSpherical(l), R.applyQuaternion(fe), de.copy(n.target).add(R), n.object.lookAt(n.target), n.enableDamping === !0 ? (u.theta *= 1 - n.dampingFactor, u.phi *= 1 - n.dampingFactor, f.multiplyScalar(1 - n.dampingFactor)) : (u.set(0, 0, 0), f.set(0, 0, 0)), h = 1, d || ve.distanceToSquared(n.object.position) > c || 8 * (1 - ie.dot(n.object.quaternion)) > c ? (n.dispatchEvent(r), ve.copy(n.object.position), ie.copy(n.object.quaternion), d = !1, !0) : !1;
21305
21176
  };
21306
21177
  }(), this.dispose = function() {
21307
21178
  n.domElement.removeEventListener("contextmenu", ye, !1), n.domElement.removeEventListener("mousedown", Qe, !1), n.domElement.removeEventListener("wheel", A, !1), n.domElement.removeEventListener("touchstart", ne, !1), n.domElement.removeEventListener("touchend", Ne, !1), n.domElement.removeEventListener("touchmove", $, !1), document.removeEventListener("mousemove", et, !1), document.removeEventListener("mouseup", Ke, !1), n.domElement.removeEventListener("keydown", L, !1);
@@ -21330,25 +21201,24 @@ var Ga = function(e, t) {
21330
21201
  }
21331
21202
  var F = function() {
21332
21203
  var R = new E();
21333
- return function(fe, me) {
21334
- R.setFromMatrixColumn(me, 0), R.multiplyScalar(-fe), f.add(R);
21204
+ return function(fe, ve) {
21205
+ R.setFromMatrixColumn(ve, 0), R.multiplyScalar(-fe), f.add(R);
21335
21206
  };
21336
21207
  }(), B = function() {
21337
21208
  var R = new E();
21338
- return function(fe, me) {
21339
- n.screenSpacePanning === !0 ? R.setFromMatrixColumn(me, 1) : (R.setFromMatrixColumn(me, 0), R.crossVectors(n.object.up, R)), R.multiplyScalar(fe), f.add(R);
21209
+ return function(fe, ve) {
21210
+ n.screenSpacePanning === !0 ? R.setFromMatrixColumn(ve, 1) : (R.setFromMatrixColumn(ve, 0), R.crossVectors(n.object.up, R)), R.multiplyScalar(fe), f.add(R);
21340
21211
  };
21341
21212
  }(), V = function() {
21342
21213
  var R = new E();
21343
- return function(fe, me) {
21214
+ return function(fe, ve) {
21344
21215
  var ie = n.domElement;
21345
21216
  if (n.object.isPerspectiveCamera) {
21346
21217
  var Se = n.object.position;
21347
21218
  R.copy(Se).sub(n.target);
21348
21219
  var de = R.length();
21349
- de *= Math.tan(n.object.fov / 2 * Math.PI / 180), F(2 * fe * de / ie.clientHeight, n.object.matrix), B(2 * me * de / ie.clientHeight, n.object.matrix);
21350
- } else
21351
- n.object.isOrthographicCamera ? (F(fe * (n.object.right - n.object.left) / n.object.zoom / ie.clientWidth, n.object.matrix), B(me * (n.object.top - n.object.bottom) / n.object.zoom / ie.clientHeight, n.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), n.enablePan = !1);
21220
+ de *= Math.tan(n.object.fov / 2 * Math.PI / 180), F(2 * fe * de / ie.clientHeight, n.object.matrix), B(2 * ve * de / ie.clientHeight, n.object.matrix);
21221
+ } else n.object.isOrthographicCamera ? (F(fe * (n.object.right - n.object.left) / n.object.zoom / ie.clientWidth, n.object.matrix), B(ve * (n.object.top - n.object.bottom) / n.object.zoom / ie.clientHeight, n.object.matrix)) : (console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."), n.enablePan = !1);
21352
21222
  };
21353
21223
  }();
21354
21224
  function q(R) {
@@ -21415,8 +21285,8 @@ var Ga = function(e, t) {
21415
21285
  }
21416
21286
  }
21417
21287
  function G(R) {
21418
- var he = R.touches[0].pageX - R.touches[1].pageX, fe = R.touches[0].pageY - R.touches[1].pageY, me = Math.sqrt(he * he + fe * fe);
21419
- x.set(0, me);
21288
+ var he = R.touches[0].pageX - R.touches[1].pageX, fe = R.touches[0].pageY - R.touches[1].pageY, ve = Math.sqrt(he * he + fe * fe);
21289
+ x.set(0, ve);
21420
21290
  }
21421
21291
  function Be(R) {
21422
21292
  n.enableZoom && G(R), n.enablePan && re(R);
@@ -21432,8 +21302,8 @@ var Ga = function(e, t) {
21432
21302
  g.set(he, fe);
21433
21303
  }
21434
21304
  y.subVectors(g, m).multiplyScalar(n.rotateSpeed);
21435
- var me = n.domElement;
21436
- O(2 * Math.PI * y.x / me.clientHeight), J(2 * Math.PI * y.y / me.clientHeight), m.copy(g);
21305
+ var ve = n.domElement;
21306
+ O(2 * Math.PI * y.x / ve.clientHeight), J(2 * Math.PI * y.y / ve.clientHeight), m.copy(g);
21437
21307
  }
21438
21308
  function ue(R) {
21439
21309
  if (R.touches.length == 1)
@@ -21445,8 +21315,8 @@ var Ga = function(e, t) {
21445
21315
  _.subVectors(v, p).multiplyScalar(n.panSpeed), V(_.x, _.y), p.copy(v);
21446
21316
  }
21447
21317
  function K(R) {
21448
- var he = R.touches[0].pageX - R.touches[1].pageX, fe = R.touches[0].pageY - R.touches[1].pageY, me = Math.sqrt(he * he + fe * fe);
21449
- b.set(0, me), T.set(0, Math.pow(b.y / x.y, n.zoomSpeed)), q(T.y), x.copy(b);
21318
+ var he = R.touches[0].pageX - R.touches[1].pageX, fe = R.touches[0].pageY - R.touches[1].pageY, ve = Math.sqrt(he * he + fe * fe);
21319
+ b.set(0, ve), T.set(0, Math.pow(b.y / x.y, n.zoomSpeed)), q(T.y), x.copy(b);
21450
21320
  }
21451
21321
  function Ce(R) {
21452
21322
  n.enableZoom && K(R), n.enablePan && ue(R);
@@ -21473,29 +21343,24 @@ var Ga = function(e, t) {
21473
21343
  }
21474
21344
  switch (he) {
21475
21345
  case rr.DOLLY:
21476
- if (n.enableZoom === !1)
21477
- return;
21346
+ if (n.enableZoom === !1) return;
21478
21347
  k(R), s = o.DOLLY;
21479
21348
  break;
21480
21349
  case rr.ROTATE:
21481
21350
  if (R.ctrlKey || R.metaKey || R.shiftKey) {
21482
- if (n.enablePan === !1)
21483
- return;
21351
+ if (n.enablePan === !1) return;
21484
21352
  Y(R), s = o.PAN;
21485
21353
  } else {
21486
- if (n.enableRotate === !1)
21487
- return;
21354
+ if (n.enableRotate === !1) return;
21488
21355
  z(R), s = o.ROTATE;
21489
21356
  }
21490
21357
  break;
21491
21358
  case rr.PAN:
21492
21359
  if (R.ctrlKey || R.metaKey || R.shiftKey) {
21493
- if (n.enableRotate === !1)
21494
- return;
21360
+ if (n.enableRotate === !1) return;
21495
21361
  z(R), s = o.ROTATE;
21496
21362
  } else {
21497
- if (n.enablePan === !1)
21498
- return;
21363
+ if (n.enablePan === !1) return;
21499
21364
  Y(R), s = o.PAN;
21500
21365
  }
21501
21366
  break;
@@ -21509,18 +21374,15 @@ var Ga = function(e, t) {
21509
21374
  if (n.enabled !== !1)
21510
21375
  switch (R.preventDefault(), s) {
21511
21376
  case o.ROTATE:
21512
- if (n.enableRotate === !1)
21513
- return;
21377
+ if (n.enableRotate === !1) return;
21514
21378
  Z(R);
21515
21379
  break;
21516
21380
  case o.DOLLY:
21517
- if (n.enableZoom === !1)
21518
- return;
21381
+ if (n.enableZoom === !1) return;
21519
21382
  ee(R);
21520
21383
  break;
21521
21384
  case o.PAN:
21522
- if (n.enablePan === !1)
21523
- return;
21385
+ if (n.enablePan === !1) return;
21524
21386
  te(R);
21525
21387
  break;
21526
21388
  }
@@ -21540,13 +21402,11 @@ var Ga = function(e, t) {
21540
21402
  case 1:
21541
21403
  switch (n.touches.ONE) {
21542
21404
  case ir.ROTATE:
21543
- if (n.enableRotate === !1)
21544
- return;
21405
+ if (n.enableRotate === !1) return;
21545
21406
  _e(R), s = o.TOUCH_ROTATE;
21546
21407
  break;
21547
21408
  case ir.PAN:
21548
- if (n.enablePan === !1)
21549
- return;
21409
+ if (n.enablePan === !1) return;
21550
21410
  re(R), s = o.TOUCH_PAN;
21551
21411
  break;
21552
21412
  default:
@@ -21556,13 +21416,11 @@ var Ga = function(e, t) {
21556
21416
  case 2:
21557
21417
  switch (n.touches.TWO) {
21558
21418
  case ir.DOLLY_PAN:
21559
- if (n.enableZoom === !1 && n.enablePan === !1)
21560
- return;
21419
+ if (n.enableZoom === !1 && n.enablePan === !1) return;
21561
21420
  Be(R), s = o.TOUCH_DOLLY_PAN;
21562
21421
  break;
21563
21422
  case ir.DOLLY_ROTATE:
21564
- if (n.enableZoom === !1 && n.enableRotate === !1)
21565
- return;
21423
+ if (n.enableZoom === !1 && n.enableRotate === !1) return;
21566
21424
  xe(R), s = o.TOUCH_DOLLY_ROTATE;
21567
21425
  break;
21568
21426
  default:
@@ -21579,23 +21437,19 @@ var Ga = function(e, t) {
21579
21437
  if (n.enabled !== !1)
21580
21438
  switch (R.preventDefault(), R.stopPropagation(), s) {
21581
21439
  case o.TOUCH_ROTATE:
21582
- if (n.enableRotate === !1)
21583
- return;
21440
+ if (n.enableRotate === !1) return;
21584
21441
  Te(R), n.update();
21585
21442
  break;
21586
21443
  case o.TOUCH_PAN:
21587
- if (n.enablePan === !1)
21588
- return;
21444
+ if (n.enablePan === !1) return;
21589
21445
  ue(R), n.update();
21590
21446
  break;
21591
21447
  case o.TOUCH_DOLLY_PAN:
21592
- if (n.enableZoom === !1 && n.enablePan === !1)
21593
- return;
21448
+ if (n.enableZoom === !1 && n.enablePan === !1) return;
21594
21449
  Ce(R), n.update();
21595
21450
  break;
21596
21451
  case o.TOUCH_DOLLY_ROTATE:
21597
- if (n.enableZoom === !1 && n.enableRotate === !1)
21598
- return;
21452
+ if (n.enableZoom === !1 && n.enableRotate === !1) return;
21599
21453
  qe(R), n.update();
21600
21454
  break;
21601
21455
  default:
@@ -21704,7 +21558,7 @@ var y0 = function() {
21704
21558
  };
21705
21559
  function xh(e, t, n) {
21706
21560
  var r = t.getBoundingClientRect(), i = r.top, a = r.left, o = r.width, s = r.height;
21707
- return n && (a = a + o * n.left, i = i + s * (1 - n.bottom - n.height), o = o * n.width, s = s * n.height), new we.Vector2((e.x - a) / o * 2 - 1, -(e.y - i) / s * 2 + 1);
21561
+ return new we.Vector2((e.x - a) / o * 2 - 1, -(e.y - i) / s * 2 + 1);
21708
21562
  }
21709
21563
  var x0 = (
21710
21564
  /** @class */