@vincentt-xr/sdk 2.0.0-alpha.2 → 2.0.0-alpha.20

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 (730) hide show
  1. package/GROUNDING.md +6798 -84
  2. package/README.md +86 -52
  3. package/components.json +223 -0
  4. package/dist/CanonicalHeadFrame-CQe2YX9a.js +1506 -0
  5. package/dist/CanonicalHeadFrame-CZFvPzN_.cjs +1 -0
  6. package/dist/DebuggerUI-CKYrYmod.js +275 -0
  7. package/dist/DebuggerUI-Db-1VtQJ.cjs +1 -0
  8. package/dist/FaceRetouch-DHhn1nSV.cjs +134 -0
  9. package/dist/FaceRetouch-l7y4oZBu.js +1071 -0
  10. package/dist/FaceSurface-CHAMEeG1.cjs +1 -0
  11. package/dist/FaceSurface-DmP9AEeC.js +27 -0
  12. package/dist/Scenes--qAbN6iP.cjs +1 -0
  13. package/dist/Scenes-icIQpHtV.js +58 -0
  14. package/dist/SkeletonUtils-C2r90MtN.js +21 -0
  15. package/dist/SkeletonUtils-CddIup1F.cjs +1 -0
  16. package/dist/TextLabel-C-AibH5A.cjs +2 -0
  17. package/dist/TextLabel-fEF1o3wE.js +963 -0
  18. package/dist/assets/cache.d.ts +99 -0
  19. package/dist/assets/estimate.d.ts +11 -0
  20. package/dist/assets/gltfLoader.d.ts +16 -0
  21. package/dist/assets/index.d.ts +7 -0
  22. package/dist/assets/loaders.d.ts +43 -0
  23. package/dist/assets/react.d.ts +33 -0
  24. package/dist/assets/sdkModels.d.ts +22 -0
  25. package/dist/audio/AudioPlayer.d.ts +4 -1
  26. package/dist/body/__fixtures__/syntheticRig.d.ts +21 -0
  27. package/dist/body/bodyFlipGuard.d.ts +39 -0
  28. package/dist/body/bodyIdentity.d.ts +72 -0
  29. package/dist/body/bodyMask.d.ts +79 -0
  30. package/dist/body/bodyMaskMaterial.d.ts +15 -0
  31. package/dist/body/bodyPose.d.ts +58 -0
  32. package/dist/body/bodyRigFit.d.ts +148 -0
  33. package/dist/body/bodyRigSolver.d.ts +114 -0
  34. package/dist/body/bodySubject.d.ts +46 -0
  35. package/dist/body-pose/index.d.ts +521 -0
  36. package/dist/body-trigger/__fixtures__/syntheticBody.d.ts +83 -0
  37. package/dist/body-trigger/frame.d.ts +88 -0
  38. package/dist/body-trigger/index.d.ts +6 -0
  39. package/dist/body-trigger/moves.d.ts +235 -0
  40. package/dist/body-trigger/trigger.d.ts +75 -0
  41. package/dist/bodyMaskMaterial-BOdSJUEM.js +207 -0
  42. package/dist/bodyMaskMaterial-Q6rYywwW.cjs +68 -0
  43. package/dist/cache-DFqZYsHC.cjs +1 -0
  44. package/dist/cache-Mu-VO_6E.js +212 -0
  45. package/dist/calibration/calibration.d.ts +75 -0
  46. package/dist/calibration/index.d.ts +6 -0
  47. package/dist/calibration/storage.d.ts +13 -0
  48. package/dist/calibration/types.d.ts +53 -0
  49. package/dist/calibration/useXRCalibration.d.ts +46 -0
  50. package/dist/camera/CameraPermissionGate.d.ts +26 -0
  51. package/dist/camera/devices.d.ts +26 -0
  52. package/dist/camera/index.d.ts +8 -0
  53. package/dist/camera/permission.d.ts +86 -0
  54. package/dist/camera/useCameraPermission.d.ts +35 -0
  55. package/dist/canonicalFace-BHwyCx1c.js +9 -0
  56. package/dist/canonicalFace-C83I225R.cjs +1 -0
  57. package/dist/capabilities/detect.d.ts +45 -0
  58. package/dist/capabilities/index.d.ts +5 -0
  59. package/dist/capabilities/types.d.ts +120 -0
  60. package/dist/capabilities/useXRCapabilities.d.ts +18 -0
  61. package/dist/compat/environment.d.ts +5 -0
  62. package/dist/compat/index.d.ts +4 -0
  63. package/dist/compat/run.d.ts +18 -0
  64. package/dist/compat/scenarios.d.ts +10 -0
  65. package/dist/compat/types.d.ts +101 -0
  66. package/dist/components/BodyInstruction/BodyPoseHint.d.ts +63 -0
  67. package/dist/components/BodyInstruction/index.d.ts +76 -0
  68. package/dist/components/BodyInstruction/useBodyPose.d.ts +30 -0
  69. package/dist/components/BodyRig/BodyAttachment.d.ts +28 -0
  70. package/dist/components/BodyRig/BodyOccluder.d.ts +27 -0
  71. package/dist/components/BodyRig/bodyDepth.d.ts +57 -0
  72. package/dist/components/BodyRig/index.d.ts +129 -0
  73. package/dist/components/BodyRig/useBodyDepthTexture.d.ts +40 -0
  74. package/dist/components/BodyTracker/index.d.ts +26 -1
  75. package/dist/components/BodyTrigger/index.d.ts +56 -0
  76. package/dist/components/Button/index.d.ts +27 -0
  77. package/dist/components/Button/safeLink.d.ts +6 -0
  78. package/dist/components/Debugger/DebuggerProvider.d.ts +14 -1
  79. package/dist/components/Debugger/DebuggerUI.d.ts +3 -1
  80. package/dist/components/FaceAtlas/FaceAtlasLayer.d.ts +114 -0
  81. package/dist/components/FaceAtlas/MadeUpCamera.d.ts +80 -0
  82. package/dist/components/FaceAtlas/constants.d.ts +8 -0
  83. package/dist/components/FaceAtlas/index.d.ts +7 -0
  84. package/dist/components/FaceAtlas/useFaceAtlasSurface.d.ts +84 -0
  85. package/dist/components/FaceAtlas/useFaceSkin.d.ts +84 -0
  86. package/dist/components/FaceCharacter/ExternalFaceMesh.d.ts +109 -0
  87. package/dist/components/FaceCharacter/FaceExpressionController.d.ts +53 -0
  88. package/dist/components/FaceCharacter/FaceMorph.d.ts +71 -0
  89. package/dist/components/FaceCharacter/FacePiercing.d.ts +65 -0
  90. package/dist/components/FaceCharacter/FaceReprojection.d.ts +85 -0
  91. package/dist/components/FaceCharacter/FaceRig.d.ts +38 -0
  92. package/dist/components/FaceCharacter/FaceSurface.d.ts +49 -0
  93. package/dist/components/FaceCharacter/FaceSurfaceOccluder.d.ts +39 -0
  94. package/dist/components/FaceCharacter/PinToFaceMesh.d.ts +68 -0
  95. package/dist/components/FaceCharacter/index.d.ts +18 -0
  96. package/dist/components/FaceCharacter/useFaceReprojector.d.ts +10 -0
  97. package/dist/components/FaceInset/FaceInset.d.ts +68 -0
  98. package/dist/components/FaceInset/frame.d.ts +94 -0
  99. package/dist/components/FaceInset/index.d.ts +6 -0
  100. package/dist/components/FaceInset/material.d.ts +40 -0
  101. package/dist/components/FaceInset/useFaceInsetTexture.d.ts +37 -0
  102. package/dist/components/FaceInstruction/FaceExpressionHint.d.ts +43 -0
  103. package/dist/components/FaceInstruction/index.d.ts +56 -0
  104. package/dist/components/FaceInstruction/useFaceExpression.d.ts +20 -0
  105. package/dist/components/FaceLiquify/FaceLiquify.d.ts +49 -0
  106. package/dist/components/FaceLiquify/debug.d.ts +37 -0
  107. package/dist/components/FaceLiquify/frame.d.ts +55 -0
  108. package/dist/components/FaceLiquify/index.d.ts +10 -0
  109. package/dist/components/FaceLiquify/material.d.ts +39 -0
  110. package/dist/components/FaceLiquify/pass.d.ts +49 -0
  111. package/dist/components/FaceLiquify/presence.d.ts +25 -0
  112. package/dist/components/FaceLiquify/presets.d.ts +82 -0
  113. package/dist/components/FaceLiquify/selfTest.d.ts +66 -0
  114. package/dist/components/FaceLiquify/target.d.ts +85 -0
  115. package/dist/components/FaceLiquify/warp.d.ts +72 -0
  116. package/dist/components/FaceMesh/FaceMeshRenderer.d.ts +11 -3
  117. package/dist/components/FaceMesh/canonical/CanonicalFaceMeshRenderer.d.ts +51 -3
  118. package/dist/components/FaceMesh/canonical/geometryGroups.d.ts +22 -1
  119. package/dist/components/FaceMesh/canonical/parseCanonicalFaceModel.d.ts +22 -0
  120. package/dist/components/FaceMesh/canonical/shaders.d.ts +1 -1
  121. package/dist/components/FaceMesh/index.d.ts +3 -3
  122. package/dist/components/FaceRetouch/Background.d.ts +3 -1
  123. package/dist/components/FaceRetouch/FaceRetouch.d.ts +5 -0
  124. package/dist/components/FaceRetouch/renderState.d.ts +19 -0
  125. package/dist/components/FaceSwap/FaceMirror.d.ts +46 -0
  126. package/dist/components/FaceSwap/FaceSwap.d.ts +58 -0
  127. package/dist/components/FaceSwap/FaceTextureLayer.d.ts +72 -0
  128. package/dist/components/FaceSwap/faceSwapPlan.d.ts +91 -0
  129. package/dist/components/FaceSwap/index.d.ts +13 -0
  130. package/dist/components/FaceSwap/settings.d.ts +300 -0
  131. package/dist/components/FaceSwap/useFaceTexture.d.ts +35 -0
  132. package/dist/components/FaceSwap/useLiveFace.d.ts +38 -0
  133. package/dist/components/FaceSwap/useLiveFaceTexture.d.ts +31 -0
  134. package/dist/components/FaceWarp3D/FaceWarp3D.d.ts +50 -0
  135. package/dist/components/FaceWarp3D/index.d.ts +2 -3
  136. package/dist/components/Faceless/Faceless.d.ts +51 -0
  137. package/dist/components/Faceless/index.d.ts +2 -0
  138. package/dist/components/GestureListener/index.d.ts +11 -0
  139. package/dist/components/HairLock/HairLock.d.ts +39 -0
  140. package/dist/components/HairLock/index.d.ts +2 -0
  141. package/dist/components/HairLock/lockGeometry.d.ts +15 -0
  142. package/dist/components/HandCutout/index.d.ts +35 -0
  143. package/dist/components/HandEffect/index.d.ts +36 -0
  144. package/dist/components/HandInstruction/HandGestureHint.d.ts +70 -0
  145. package/dist/components/HandInstruction/index.d.ts +74 -0
  146. package/dist/components/HandInstruction/useHandGesture.d.ts +22 -0
  147. package/dist/components/HandRig/ForearmOccluder.d.ts +29 -0
  148. package/dist/components/HandRig/HandAttachment.d.ts +34 -0
  149. package/dist/components/HandRig/HandNails.d.ts +61 -0
  150. package/dist/components/HandRig/HandOccluder.d.ts +45 -0
  151. package/dist/components/HandRig/HandTattoo.d.ts +61 -0
  152. package/dist/components/HandRig/WristAttachment.d.ts +34 -0
  153. package/dist/components/HandRig/index.d.ts +127 -0
  154. package/dist/components/HandRig/useArmMask.d.ts +29 -0
  155. package/dist/components/HandRig/wristSolve.d.ts +96 -0
  156. package/dist/components/HandTouch/HandTouch.d.ts +62 -0
  157. package/dist/components/HandTouch/Touchable.d.ts +36 -0
  158. package/dist/components/HandTouch/index.d.ts +2 -0
  159. package/dist/components/HandTracker/index.d.ts +10 -0
  160. package/dist/components/HeadBinding/index.d.ts +14 -0
  161. package/dist/components/HeadOccluder/CanonicalHeadFrame.d.ts +22 -0
  162. package/dist/components/HeadOccluder/Earrings.d.ts +55 -0
  163. package/dist/components/HeadOccluder/HeadAttachment.d.ts +38 -0
  164. package/dist/components/HeadOccluder/NeckOccluder.d.ts +67 -0
  165. package/dist/components/HeadOccluder/earringPlacement.d.ts +31 -0
  166. package/dist/components/HeadOccluder/headAttachmentPoints.d.ts +69 -0
  167. package/dist/components/HeadOccluder/index.d.ts +57 -3
  168. package/dist/components/HeadOccluder/useCanonicalHeadFit.d.ts +36 -0
  169. package/dist/components/HeadOccluder/useLandmarkPoseFit.d.ts +80 -0
  170. package/dist/components/HolisticTracker/index.d.ts +69 -0
  171. package/dist/components/HolisticTracker/settings.d.ts +58 -0
  172. package/dist/components/HolisticTracker/signals.d.ts +49 -0
  173. package/dist/components/HtmlRegion/index.d.ts +8 -0
  174. package/dist/components/Instruction/HintStage.d.ts +29 -0
  175. package/dist/components/Instruction/InstructionCue.d.ts +126 -0
  176. package/dist/components/Instruction/gestureHold.d.ts +20 -0
  177. package/dist/components/Instruction/ghost.d.ts +129 -0
  178. package/dist/components/Instruction/hintBlend.d.ts +19 -0
  179. package/dist/components/Instruction/hintLook.d.ts +81 -0
  180. package/dist/components/Instruction/hintLoop.d.ts +36 -0
  181. package/dist/components/Instruction/index.d.ts +41 -0
  182. package/dist/components/Instruction/useGhostModel.d.ts +33 -0
  183. package/dist/components/Instruction/useInstructionHold.d.ts +72 -0
  184. package/dist/components/IrisEffect/IrisMaterial.d.ts +73 -0
  185. package/dist/components/IrisEffect/index.d.ts +51 -0
  186. package/dist/components/IrisEffect/settings.d.ts +117 -0
  187. package/dist/components/Light/index.d.ts +26 -0
  188. package/dist/components/LipEffect/LipEffect.d.ts +28 -0
  189. package/dist/components/LipEffect/LipEffectMaterial.d.ts +98 -0
  190. package/dist/components/LipEffect/LipEffects.d.ts +12 -0
  191. package/dist/components/LipEffect/defaults.d.ts +51 -0
  192. package/dist/components/LipEffect/index.d.ts +12 -0
  193. package/dist/components/LipEffect/lipShading.d.ts +73 -0
  194. package/dist/components/LipEffect/settings.d.ts +375 -0
  195. package/dist/components/LipEffect/shader.d.ts +39 -0
  196. package/dist/components/LipEffect/types.d.ts +141 -0
  197. package/dist/components/LipEffect/useLipDesignTextures.d.ts +17 -0
  198. package/dist/components/LipEffect/uvGuide.d.ts +74 -0
  199. package/dist/components/Makeup/Blush.d.ts +18 -0
  200. package/dist/components/Makeup/Brows.d.ts +20 -0
  201. package/dist/components/Makeup/Contour.d.ts +17 -0
  202. package/dist/components/Makeup/Eyeliner.d.ts +20 -0
  203. package/dist/components/Makeup/Eyeshadow.d.ts +20 -0
  204. package/dist/components/Makeup/Highlighter.d.ts +18 -0
  205. package/dist/components/Makeup/MakeupDesign.d.ts +37 -0
  206. package/dist/components/Makeup/MakeupRegion.d.ts +132 -0
  207. package/dist/components/Makeup/constants.d.ts +44 -0
  208. package/dist/components/Makeup/design.d.ts +106 -0
  209. package/dist/components/Makeup/designSamples.d.ts +42 -0
  210. package/dist/components/Makeup/eyes.d.ts +114 -0
  211. package/dist/components/Makeup/fields.d.ts +10 -0
  212. package/dist/components/Makeup/geometry.d.ts +106 -0
  213. package/dist/components/Makeup/index.d.ts +26 -0
  214. package/dist/components/Makeup/looks.d.ts +28 -0
  215. package/dist/components/Makeup/material.d.ts +239 -0
  216. package/dist/components/Makeup/settings.d.ts +54 -0
  217. package/dist/components/Makeup/shades.d.ts +143 -0
  218. package/dist/components/Makeup/shapes.d.ts +27 -0
  219. package/dist/components/Makeup/skinTone.d.ts +135 -0
  220. package/dist/components/Makeup/types.d.ts +110 -0
  221. package/dist/components/Makeup/useMakeupSkinTone.d.ts +40 -0
  222. package/dist/components/MeshRenderer/index.d.ts +8 -1
  223. package/dist/components/Model/index.d.ts +16 -0
  224. package/dist/components/Necklace/Necklace.d.ts +44 -0
  225. package/dist/components/Necklace/index.d.ts +1 -0
  226. package/dist/components/Object3D/index.d.ts +13 -0
  227. package/dist/components/PaintedFace/index.d.ts +24 -0
  228. package/dist/components/ParticleEmitter/ParticleEmitter.d.ts +69 -0
  229. package/dist/components/ParticleEmitter/index.d.ts +1 -0
  230. package/dist/components/PersonCutout/index.d.ts +46 -0
  231. package/dist/components/PersonCutout/personCutout.d.ts +16 -0
  232. package/dist/components/PersonCutout/personMask.d.ts +19 -0
  233. package/dist/components/PersonCutout/useBodyMaskTexture.d.ts +35 -0
  234. package/dist/components/SceneObjectRenderer/index.d.ts +9 -2
  235. package/dist/components/ScreenImage/ScreenImage.d.ts +4 -1
  236. package/dist/components/ScreenImage/components/ImageLoadFallback.d.ts +24 -0
  237. package/dist/components/ScreenImage/components/ScreenImageBody.d.ts +2 -1
  238. package/dist/components/ScreenImage/index.d.ts +3 -1
  239. package/dist/components/ScreenImage/liveEditable.d.ts +12 -0
  240. package/dist/components/ScreenImage/materials/ScreenImageBlendMaterial.d.ts +1 -1
  241. package/dist/components/ScreenImage/materials/ScreenImageMaskMaterial.d.ts +11 -0
  242. package/dist/components/ScreenImage/source.d.ts +9 -0
  243. package/dist/components/ScreenImage/types.d.ts +48 -3
  244. package/dist/components/ScreenShape/index.d.ts +4 -1
  245. package/dist/components/ScreenShape/types.d.ts +13 -0
  246. package/dist/components/ScreenSpaceUI/index.d.ts +1 -0
  247. package/dist/components/ScreenText/index.d.ts +4 -1
  248. package/dist/components/ScreenText/liveEditable.d.ts +6 -0
  249. package/dist/components/ScreenText/types.d.ts +2 -1
  250. package/dist/components/SegmentationOverlay/SegmentationOverlay.d.ts +37 -0
  251. package/dist/components/SegmentationOverlay/SegmentationOverlayMaterial.d.ts +31 -0
  252. package/dist/components/SegmentationOverlay/index.d.ts +9 -0
  253. package/dist/components/SegmentationOverlay/maskTexture.d.ts +23 -0
  254. package/dist/components/SegmentationOverlay/providers.d.ts +72 -0
  255. package/dist/components/SegmentationOverlay/settings.d.ts +65 -0
  256. package/dist/components/ShoulderOccluder/index.d.ts +46 -0
  257. package/dist/components/ShoulderOccluder/useCanonicalTorsoFit.d.ts +27 -0
  258. package/dist/components/SpringSwing/SpringSwing.d.ts +22 -0
  259. package/dist/components/SpringSwing/index.d.ts +1 -0
  260. package/dist/components/TextLabel/TextLabel.d.ts +1 -1
  261. package/dist/components/TextLabel/types.d.ts +150 -37
  262. package/dist/components/ThemeProvider/index.d.ts +24 -0
  263. package/dist/components/XRMediaSurface/index.d.ts +2 -1
  264. package/dist/components/XRProvider/index.d.ts +16 -2
  265. package/dist/components/XRScene/renderOutputTarget.d.ts +12 -0
  266. package/dist/components/XRViewport/hooks/useViewportExternalFaces.d.ts +1 -1
  267. package/dist/components/XRViewport/hooks/useViewportMediaSource.d.ts +1 -1
  268. package/dist/components/XRViewport/hooks/useViewportPipeline.d.ts +1 -1
  269. package/dist/components/index.d.ts +18 -0
  270. package/dist/components/occluder/skinnedOccluder.d.ts +39 -0
  271. package/dist/config/index.d.ts +1 -1
  272. package/dist/constants/index.d.ts +4 -1
  273. package/dist/context-DTxSQvp4.js +13 -0
  274. package/dist/context-hA0Rb2Xa.cjs +1 -0
  275. package/dist/contexts-CSz9stBV.cjs +1 -0
  276. package/dist/contexts-Cl-4dUOI.js +667 -0
  277. package/dist/coordinates/feed.d.ts +52 -0
  278. package/dist/coordinates/index.d.ts +7 -0
  279. package/dist/coordinates/side.d.ts +40 -0
  280. package/dist/coordinates/spaces.d.ts +49 -0
  281. package/dist/coordinates/viewport.d.ts +32 -0
  282. package/dist/coordinates/world.d.ts +15 -0
  283. package/dist/debug-ui/default-setting.cjs +2 -2
  284. package/dist/debug-ui/face-swap-settings/index.d.ts +22 -0
  285. package/dist/debug-ui/gesture-settings/index.d.ts +14 -0
  286. package/dist/debug-ui/hierarchy-panel/index.d.ts +3 -2
  287. package/dist/debug-ui/holistic-tracker-settings/index.d.ts +16 -0
  288. package/dist/debug-ui/index.d.ts +19 -4
  289. package/dist/debug-ui/iris-effect-settings/index.d.ts +12 -0
  290. package/dist/debug-ui/lip-effect-settings/index.d.ts +15 -0
  291. package/dist/debug-ui/media-source/index.d.ts +3 -3
  292. package/dist/debug-ui/media-source/media-preset.d.ts +12 -0
  293. package/dist/debug-ui/media-source/session.d.ts +30 -2
  294. package/dist/debug-ui/media-source.cjs +1 -1
  295. package/dist/debug-ui/media-source.js +7 -5
  296. package/dist/debug-ui/object-inspector-panel/index.d.ts +3 -2
  297. package/dist/debug-ui/product-hotspots/index.d.ts +25 -0
  298. package/dist/debug-ui/scene-editor/hierarchy-panel.d.ts +3 -1
  299. package/dist/debug-ui/scene-editor/inspector-panel.d.ts +3 -1
  300. package/dist/debug-ui/screen-image-settings/index.d.ts +3 -1
  301. package/dist/debug-ui/screen-text-settings/ScreenTextSettingsPanel.d.ts +1 -1
  302. package/dist/debug-ui/screen-text-settings/types.d.ts +2 -0
  303. package/dist/debug-ui/segmentation-overlay-settings/index.d.ts +12 -0
  304. package/dist/debug-ui/settings-panel/index.d.ts +6 -1
  305. package/dist/debug-ui/shared/debugWindow.d.ts +51 -0
  306. package/dist/debug-ui/xr-diagnostics/index.d.ts +26 -0
  307. package/dist/debug-ui.cjs +3 -3
  308. package/dist/debug-ui.js +2721 -2531
  309. package/dist/detector-K8aej4MB.js +59 -0
  310. package/dist/detector-ijypGtse.cjs +1 -0
  311. package/dist/drawNormalizedCrop-D606u5-F.js +135 -0
  312. package/dist/drawNormalizedCrop-DaGT5mZ5.cjs +1 -0
  313. package/dist/editor-defs/definitions.d.ts +2 -0
  314. package/dist/editor-defs/index.d.ts +3 -0
  315. package/dist/editor-defs/types.d.ts +57 -0
  316. package/dist/editor-sample/sample.d.ts +15 -0
  317. package/dist/editor-scenes.cjs +1 -0
  318. package/dist/editor-scenes.js +59 -0
  319. package/dist/entries/all.d.ts +3 -1
  320. package/dist/entries/core.d.ts +38 -4
  321. package/dist/entries/editor-scenes.d.ts +8 -0
  322. package/dist/entries/face-effects.d.ts +125 -7
  323. package/dist/entries/instructions.d.ts +48 -0
  324. package/dist/entries/internal.d.ts +4 -1
  325. package/dist/entries/low-level.d.ts +83 -2
  326. package/dist/entries/particles.d.ts +15 -0
  327. package/dist/entries/product.d.ts +11 -0
  328. package/dist/entries/tracking.d.ts +87 -2
  329. package/dist/face-atlas/attributes.d.ts +30 -0
  330. package/dist/face-atlas/eyes.d.ts +272 -0
  331. package/dist/face-atlas/faceAtlas.generated.d.ts +46 -0
  332. package/dist/face-atlas/glsl/atlasVertex.d.ts +46 -0
  333. package/dist/face-atlas/glsl/common.d.ts +55 -0
  334. package/dist/face-atlas/glsl/design.d.ts +49 -0
  335. package/dist/face-atlas/glsl/eyes.d.ts +73 -0
  336. package/dist/face-atlas/glsl/finish.d.ts +24 -0
  337. package/dist/face-atlas/glsl/format.d.ts +4 -0
  338. package/dist/face-atlas/glsl/index.d.ts +59 -0
  339. package/dist/face-atlas/glsl/shading.d.ts +15 -0
  340. package/dist/face-atlas/glsl/shapes.d.ts +66 -0
  341. package/dist/face-atlas/glsl/sparkle.d.ts +19 -0
  342. package/dist/face-atlas/glsl/uniforms.d.ts +106 -0
  343. package/dist/face-atlas/guide.d.ts +51 -0
  344. package/dist/face-atlas/index.d.ts +25 -0
  345. package/dist/face-atlas/lead.d.ts +117 -0
  346. package/dist/face-atlas/madeUpCamera.d.ts +125 -0
  347. package/dist/face-atlas/masks.d.ts +53 -0
  348. package/dist/face-atlas/obj.d.ts +69 -0
  349. package/dist/face-atlas/polylines.d.ts +63 -0
  350. package/dist/face-atlas/probe/FaceSkinProbe.d.ts +208 -0
  351. package/dist/face-atlas/probe/__fixtures__/emulate.d.ts +9 -0
  352. package/dist/face-atlas/probe/__fixtures__/face.d.ts +24 -0
  353. package/dist/face-atlas/probe/constants.d.ts +137 -0
  354. package/dist/face-atlas/probe/glsl.d.ts +43 -0
  355. package/dist/face-atlas/probe/lightFit.d.ts +108 -0
  356. package/dist/face-atlas/probe/schedule.d.ts +44 -0
  357. package/dist/face-atlas/probe/selfTest.d.ts +87 -0
  358. package/dist/face-atlas/probe/stats.d.ts +143 -0
  359. package/dist/face-atlas/probe/targets.d.ts +70 -0
  360. package/dist/face-atlas/probe/unwrap.d.ts +76 -0
  361. package/dist/face-atlas/quality.d.ts +28 -0
  362. package/dist/face-atlas/regions.d.ts +31 -0
  363. package/dist/face-atlas/registry.d.ts +252 -0
  364. package/dist/face-atlas/renderState.d.ts +86 -0
  365. package/dist/face-atlas/selfOcclusion.d.ts +62 -0
  366. package/dist/face-atlas/shading.d.ts +406 -0
  367. package/dist/face-atlas/shapes.d.ts +86 -0
  368. package/dist/face-atlas/sides.d.ts +41 -0
  369. package/dist/face-atlas/skinMask.d.ts +35 -0
  370. package/dist/face-atlas/surface.d.ts +155 -0
  371. package/dist/face-atlas/topology.d.ts +44 -0
  372. package/dist/face-character/__fixtures__/faceImageDetections.d.ts +25 -0
  373. package/dist/face-character/__fixtures__/faceNode.d.ts +22 -0
  374. package/dist/face-character/bindFaceModel.d.ts +106 -0
  375. package/dist/face-character/canonicalFace.d.ts +17 -0
  376. package/dist/face-character/canonicalFaceGeometry.d.ts +11 -0
  377. package/dist/face-character/canonicalFacePositions.d.ts +7 -0
  378. package/dist/face-character/driveFaceModel.d.ts +57 -0
  379. package/dist/face-character/expressionOutputs.d.ts +45 -0
  380. package/dist/face-character/faceExpressions.d.ts +104 -0
  381. package/dist/face-character/faceImageLandmarker.d.ts +93 -0
  382. package/dist/face-character/faceMeshBinding.d.ts +62 -0
  383. package/dist/face-character/faceMorph.d.ts +77 -0
  384. package/dist/face-character/faceMorphs.d.ts +46 -0
  385. package/dist/face-character/facePhoto.d.ts +138 -0
  386. package/dist/face-character/facePiercings.d.ts +116 -0
  387. package/dist/face-character/facePin.d.ts +131 -0
  388. package/dist/face-character/faceReprojection.d.ts +273 -0
  389. package/dist/face-character/faceReprojector.d.ts +171 -0
  390. package/dist/face-character/faceRig.d.ts +176 -0
  391. package/dist/face-character/faceSwapPresence.d.ts +85 -0
  392. package/dist/face-character/faceTexture.d.ts +169 -0
  393. package/dist/face-character/faceTextureBaker.d.ts +86 -0
  394. package/dist/face-character/faceTextureGuide.d.ts +106 -0
  395. package/dist/face-character/faceTextureStats.d.ts +298 -0
  396. package/dist/face-character/faceTransfer.d.ts +396 -0
  397. package/dist/face-character/faceTransferGeometry.d.ts +109 -0
  398. package/dist/face-character/faceTransferSelfTest.d.ts +94 -0
  399. package/dist/face-character/faceWarp3D.d.ts +101 -0
  400. package/dist/face-character/faceless.d.ts +79 -0
  401. package/dist/face-character/featureWarp.d.ts +28 -0
  402. package/dist/face-character/liveFaceRegistry.d.ts +370 -0
  403. package/dist/face-character/liveValue.d.ts +12 -0
  404. package/dist/face-character/memo.d.ts +15 -0
  405. package/dist/face-effects.cjs +2324 -1
  406. package/dist/face-effects.js +14244 -2170
  407. package/dist/face-expression/index.d.ts +182 -0
  408. package/dist/face-info/landmarks.d.ts +17 -3
  409. package/dist/face-info/types.d.ts +20 -3
  410. package/dist/footage-input/index.d.ts +46 -0
  411. package/dist/gestures/definitions.d.ts +98 -0
  412. package/dist/gestures/detector.d.ts +87 -0
  413. package/dist/gestures/index.d.ts +8 -0
  414. package/dist/gestures/measures.d.ts +114 -0
  415. package/dist/gestures/settings.d.ts +49 -0
  416. package/dist/getFaceInfo-BbcKq8PJ.cjs +1 -0
  417. package/dist/getFaceInfo-Mt44zlej.js +62 -0
  418. package/dist/hand/armFit.d.ts +46 -0
  419. package/dist/hand/armMask.d.ts +190 -0
  420. package/dist/hand/forearm.d.ts +114 -0
  421. package/dist/hand/handCutout.d.ts +23 -0
  422. package/dist/hand/handCutoutRegistry.d.ts +7 -0
  423. package/dist/hand/handEffect.d.ts +38 -0
  424. package/dist/hand/handGestures.d.ts +524 -0
  425. package/dist/hand/handNail.d.ts +73 -0
  426. package/dist/hand/handPose.d.ts +98 -0
  427. package/dist/hand/handRigSolver.d.ts +159 -0
  428. package/dist/hand/handTattoo.d.ts +81 -0
  429. package/dist/hand/handTouch.d.ts +240 -0
  430. package/dist/hand/nailImageMask.d.ts +40 -0
  431. package/dist/hand/nailMaskFingers.d.ts +23 -0
  432. package/dist/hand/nailTipRefine.d.ts +37 -0
  433. package/dist/hand/wrist.d.ts +44 -0
  434. package/dist/hand/wristFilter.d.ts +44 -0
  435. package/dist/hooks/selectors.d.ts +77 -4
  436. package/dist/hooks/useBodies.d.ts +39 -0
  437. package/dist/hooks/useCalibrationFaceTracker.d.ts +1 -1
  438. package/dist/hooks/useFaceInfo.d.ts +13 -1
  439. package/dist/hooks/useFaceInfos.d.ts +1 -1
  440. package/dist/hooks/useFaceModelAcquisition.d.ts +38 -0
  441. package/dist/hooks/useGesture.d.ts +39 -0
  442. package/dist/hooks/useIrisTracking.d.ts +45 -0
  443. package/dist/hooks/useTrackerContext.d.ts +12 -0
  444. package/dist/hooks/useXRDiagnostics.d.ts +81 -0
  445. package/dist/hooks/useXRModel.d.ts +12 -0
  446. package/dist/hooks/useXRSession/facade.d.ts +44 -2
  447. package/dist/hooks/useXRSession/index.d.ts +2 -2
  448. package/dist/hooks/useXRSession/reason.d.ts +21 -0
  449. package/dist/hooks/useXRSession/registry.d.ts +14 -0
  450. package/dist/hooks/useXRSession/store.d.ts +64 -7
  451. package/dist/index-B0EYdofX.js +442 -0
  452. package/dist/index-BDxJWWyy.js +3814 -0
  453. package/dist/index-BkjRuUdW.cjs +21 -0
  454. package/dist/index-Bn72laBn.js +188 -0
  455. package/dist/index-CM3jkleV.js +1204 -0
  456. package/dist/index-CbBCl2ZU.js +190 -0
  457. package/dist/index-CelqbDSR.cjs +1 -0
  458. package/dist/index-CicO_Tnw.js +240 -0
  459. package/dist/index-D5NbXaCn.js +1438 -0
  460. package/dist/index-DIYaENN3.cjs +1 -0
  461. package/dist/index-DzdKBXGE.cjs +1 -0
  462. package/dist/index-J3Qy6hi3.cjs +1 -0
  463. package/dist/index-LC2Xs08E.cjs +1 -0
  464. package/dist/index-fDwL47CM.cjs +46 -0
  465. package/dist/instructions.cjs +30 -0
  466. package/dist/instructions.js +1528 -0
  467. package/dist/{internal-DuMPpcbp.js → internal-BoFDq5hC.js} +138 -119
  468. package/dist/internal-DS8Pdlsm.cjs +1 -0
  469. package/dist/internal.cjs +1 -1
  470. package/dist/internal.js +16 -9
  471. package/dist/iris/compute.d.ts +27 -0
  472. package/dist/iris/index.d.ts +4 -0
  473. package/dist/iris/lead.d.ts +19 -0
  474. package/dist/iris/types.d.ts +89 -0
  475. package/dist/landmarkMask-CvN-L5NT.cjs +1 -0
  476. package/dist/landmarkMask-DHivVjJm.js +225 -0
  477. package/dist/landmarks-BP6RbRHN.cjs +1 -0
  478. package/dist/landmarks-C3LvDhMt.js +76 -0
  479. package/dist/low-level.cjs +1 -1
  480. package/dist/low-level.js +1295 -757
  481. package/dist/main.cjs +1 -1
  482. package/dist/main.js +1456 -483
  483. package/dist/models/Base/index.d.ts +49 -0
  484. package/dist/models/Body/index.d.ts +30 -1
  485. package/dist/models/Face/constants.d.ts +8 -0
  486. package/dist/models/Face/index.d.ts +4 -12
  487. package/dist/models/Face/rotation.d.ts +18 -3
  488. package/dist/models/Hand/GestureTracking.d.ts +1 -1
  489. package/dist/models/Hand/HandTracking.d.ts +17 -1
  490. package/dist/models/Holistic/index.d.ts +49 -0
  491. package/dist/models/Holistic/result.d.ts +68 -0
  492. package/dist/models/Segmentation/index.d.ts +6 -3
  493. package/dist/models/SemanticSegmentation/index.d.ts +31 -0
  494. package/dist/models/SemanticSegmentation/presets.d.ts +28 -0
  495. package/dist/models/index.d.ts +2 -0
  496. package/dist/models/nodeSource.d.ts +9 -0
  497. package/dist/particles/emission.d.ts +24 -0
  498. package/dist/particles/eyes.d.ts +24 -0
  499. package/dist/particles/glsl.d.ts +14 -0
  500. package/dist/particles/index.d.ts +10 -0
  501. package/dist/particles/motion.d.ts +42 -0
  502. package/dist/particles/presets.d.ts +12 -0
  503. package/dist/particles/ring.d.ts +58 -0
  504. package/dist/particles/selfTest.d.ts +53 -0
  505. package/dist/particles/settings.d.ts +127 -0
  506. package/dist/particles/shapes.d.ts +29 -0
  507. package/dist/particles/spawner.d.ts +71 -0
  508. package/dist/particles/system.d.ts +66 -0
  509. package/dist/particles.cjs +122 -0
  510. package/dist/particles.js +999 -0
  511. package/dist/product/ProductDimensions.d.ts +16 -0
  512. package/dist/product/ProductHotspot.d.ts +16 -0
  513. package/dist/product/ProductViewer.d.ts +9 -0
  514. package/dist/product/details.d.ts +53 -0
  515. package/dist/product/index.d.ts +14 -0
  516. package/dist/product/loadModelViewer.d.ts +4 -0
  517. package/dist/product/types.d.ts +71 -0
  518. package/dist/product/useProductAr.d.ts +37 -0
  519. package/dist/product/useProductDetails.d.ts +60 -0
  520. package/dist/product.cjs +1 -0
  521. package/dist/product.js +414 -0
  522. package/dist/providers-BRSbw214.cjs +62 -0
  523. package/dist/providers-Bxt_MfPK.js +424 -0
  524. package/dist/quality/XRQualityController.d.ts +25 -0
  525. package/dist/quality/controller.d.ts +33 -0
  526. package/dist/quality/index.d.ts +6 -0
  527. package/dist/quality/types.d.ts +100 -0
  528. package/dist/quality/useXRQuality.d.ts +28 -0
  529. package/dist/render/renderPasses.d.ts +8 -0
  530. package/dist/render/sceneBeforeRender.d.ts +12 -0
  531. package/dist/{renderGroups-Dvm1J4lW.cjs → renderGroups-B0N58SIA.cjs} +1 -1
  532. package/dist/{renderGroups-C9QJrAXu.js → renderGroups-uYPzUa66.js} +1 -1
  533. package/dist/renderPasses-Bt8k0dkm.cjs +158 -0
  534. package/dist/renderPasses-C0wu5Cwg.js +1290 -0
  535. package/dist/renderState-CJNmj5jz.js +39 -0
  536. package/dist/renderState-apSfg4eR.cjs +1 -0
  537. package/dist/scene-object.cjs +1 -1
  538. package/dist/scene-object.js +2 -2
  539. package/dist/scenes/Scenes.d.ts +47 -0
  540. package/dist/scenes/edit.d.ts +37 -0
  541. package/dist/scenes/navigate.d.ts +5 -0
  542. package/dist/screen2d/coordinates.d.ts +57 -0
  543. package/dist/screen2d/screenTransform.d.ts +13 -0
  544. package/dist/segmentation-Cz7oeNcS.cjs +1 -0
  545. package/dist/segmentation-DccvYBBO.js +1911 -0
  546. package/dist/segmentation2d/faceMemory.d.ts +28 -0
  547. package/dist/segmentation2d/faceRegions.d.ts +24 -0
  548. package/dist/segmentation2d/index.d.ts +9 -0
  549. package/dist/segmentation2d/maskUv.d.ts +23 -0
  550. package/dist/segmentation2d/rasterize.d.ts +14 -0
  551. package/dist/segmentation2d/types.d.ts +52 -0
  552. package/dist/selectors-Bq6tSgOY.cjs +1 -0
  553. package/dist/selectors-J06V0eDb.js +196 -0
  554. package/dist/session-3aCMNb8W.cjs +31 -0
  555. package/dist/session-CYiWfcvz.js +493 -0
  556. package/dist/settings-BJ7FMBsO.js +111 -0
  557. package/dist/settings-C63FMBlF.cjs +1 -0
  558. package/dist/similarityFit-BFqHND2e.cjs +1 -0
  559. package/dist/similarityFit-Bbz-R8AY.js +91 -0
  560. package/dist/spring/index.d.ts +2 -0
  561. package/dist/spring/spring.d.ts +69 -0
  562. package/dist/spring/swing.d.ts +54 -0
  563. package/dist/subjects/index.d.ts +2 -0
  564. package/dist/subjects/select.d.ts +70 -0
  565. package/dist/subjects/types.d.ts +59 -0
  566. package/dist/texture/animatedTexture.d.ts +2 -0
  567. package/dist/texture/gifReader.d.ts +17 -0
  568. package/dist/texture/gifTextureSource.d.ts +16 -0
  569. package/dist/textures-BVwo9Z7z.js +38 -0
  570. package/dist/textures-DAfc61zz.cjs +1 -0
  571. package/dist/tracking/coordinates.d.ts +5 -0
  572. package/dist/tracking-config/apply.d.ts +57 -0
  573. package/dist/tracking-config/index.d.ts +7 -0
  574. package/dist/tracking-config/resolve.d.ts +25 -0
  575. package/dist/tracking-config/storage.d.ts +8 -0
  576. package/dist/tracking-config/types.d.ts +106 -0
  577. package/dist/tracking-config/useXRTrackingConfig.d.ts +38 -0
  578. package/dist/tracking.cjs +10 -1
  579. package/dist/tracking.js +1439 -486
  580. package/dist/trigger-CQviD4xp.js +3726 -0
  581. package/dist/trigger-UjeJY5uh.cjs +147 -0
  582. package/dist/types/common.d.ts +11 -1
  583. package/dist/types/compositor.d.ts +21 -0
  584. package/dist/types/face.d.ts +20 -1
  585. package/dist/types/gesture-tracking.d.ts +2 -2
  586. package/dist/types/hand-tracking.d.ts +12 -3
  587. package/dist/types/holistic.d.ts +121 -0
  588. package/dist/types/index.d.ts +1 -0
  589. package/dist/types/model.d.ts +22 -2
  590. package/dist/types/nodes.d.ts +79 -5
  591. package/dist/types/segmentation.d.ts +26 -0
  592. package/dist/types/session.d.ts +48 -4
  593. package/dist/useBodies-CXomEo0i.cjs +1 -0
  594. package/dist/useBodies-DOuwRuew.js +75 -0
  595. package/dist/useEditOverrides-BBkK8cN2.js +41 -0
  596. package/dist/useEditOverrides-CgapHJzA.cjs +1 -0
  597. package/dist/useFaceInfo-BEMMiZxw.cjs +1 -0
  598. package/dist/useFaceInfo-XUGYTdfN.js +75 -0
  599. package/dist/useFaceResultReader-D8wXbF1L.js +61 -0
  600. package/dist/useFaceResultReader-D9qibKmm.cjs +1 -0
  601. package/dist/useInstructionHold-DOu-RpCM.js +53 -0
  602. package/dist/useInstructionHold-DwJY1Alr.cjs +1 -0
  603. package/dist/useIrisTracking-B0uLWgNE.js +6190 -0
  604. package/dist/useIrisTracking-DExhnhlt.cjs +35 -0
  605. package/dist/useLandmarkPoseFit-Bg-h9BPb.cjs +1 -0
  606. package/dist/useLandmarkPoseFit-Bmb3h6Mw.js +87 -0
  607. package/dist/useXRCapabilities-D-EhcDzM.cjs +1 -0
  608. package/dist/useXRCapabilities-DPUOvpdf.js +30 -0
  609. package/dist/utils/canonicalRigidLandmarks.d.ts +8 -0
  610. package/dist/utils/fns.d.ts +6 -3
  611. package/dist/utils/headOccluderFit.d.ts +42 -0
  612. package/dist/utils/integrity.d.ts +21 -1
  613. package/dist/utils/resolveNumFaces.d.ts +13 -0
  614. package/dist/utils/shoulderOccluderFit.d.ts +38 -0
  615. package/dist/utils/similarityFit.d.ts +23 -0
  616. package/dist/utils/updateThrottle.d.ts +2 -0
  617. package/dist/utils/useEditOverrides.d.ts +34 -0
  618. package/dist/utils/useStableUniforms.d.ts +18 -0
  619. package/dist/utils/visionWasm.d.ts +18 -0
  620. package/dist/uv-BMFt19bg.cjs +1 -0
  621. package/dist/{index-BgQAX8rs.js → uv-DJU_XfmN.js} +15 -244
  622. package/docs/SDK_DOCUMENTATION.md +4 -2
  623. package/docs/api/adaptive-quality.mdx +104 -0
  624. package/docs/api/asset-lifecycle.mdx +78 -0
  625. package/docs/api/body-instructions.mdx +287 -0
  626. package/docs/api/body-rig.mdx +384 -0
  627. package/docs/api/body-triggers.mdx +235 -0
  628. package/docs/api/camera-permission.mdx +142 -0
  629. package/docs/api/capture-recording.mdx +9 -1
  630. package/docs/api/coordinate-spaces.mdx +168 -0
  631. package/docs/api/cross-camera.mdx +89 -0
  632. package/docs/api/debug-ui-scene-editor.mdx +23 -2
  633. package/docs/api/diagnostics-calibration.mdx +97 -0
  634. package/docs/api/external-face-mesh.mdx +231 -0
  635. package/docs/api/face-actions.mdx +20 -16
  636. package/docs/api/face-attribute-expression.mdx +1 -1
  637. package/docs/api/face-binding-anchors.mdx +4 -2
  638. package/docs/api/face-character.mdx +157 -0
  639. package/docs/api/face-effects.mdx +9 -0
  640. package/docs/api/face-expression-controller.mdx +153 -0
  641. package/docs/api/face-info.mdx +18 -12
  642. package/docs/api/face-inset.mdx +204 -0
  643. package/docs/api/face-instructions.mdx +183 -0
  644. package/docs/api/face-liquify.mdx +196 -0
  645. package/docs/api/face-mesh.mdx +39 -7
  646. package/docs/api/face-morph.mdx +117 -0
  647. package/docs/api/face-painting.mdx +7 -0
  648. package/docs/api/face-reprojection.mdx +154 -0
  649. package/docs/api/face-retouching.mdx +18 -10
  650. package/docs/api/face-swap.mdx +350 -0
  651. package/docs/api/face-warp-3d.mdx +166 -0
  652. package/docs/api/faceless.mdx +143 -0
  653. package/docs/api/gestures.mdx +210 -0
  654. package/docs/api/hair.mdx +97 -0
  655. package/docs/api/hand-instructions.mdx +222 -0
  656. package/docs/api/hand-rig.mdx +661 -0
  657. package/docs/api/hand-touch.mdx +162 -0
  658. package/docs/api/head-occluder.mdx +563 -0
  659. package/docs/api/holistic-tracker.mdx +164 -0
  660. package/docs/api/instructions.mdx +323 -0
  661. package/docs/api/iris-tracking.mdx +247 -0
  662. package/docs/api/made-up-camera.mdx +131 -0
  663. package/docs/api/makeup-skin-tone.mdx +135 -0
  664. package/docs/api/makeup.mdx +353 -0
  665. package/docs/api/multi-subject.mdx +185 -0
  666. package/docs/api/particles.mdx +183 -0
  667. package/docs/api/person-cutout.mdx +171 -0
  668. package/docs/api/pin-to-face-mesh.mdx +274 -0
  669. package/docs/api/product-ar.mdx +114 -0
  670. package/docs/api/product-details.mdx +78 -0
  671. package/docs/api/runtime-3d.mdx +5 -0
  672. package/docs/api/screen-image.mdx +29 -3
  673. package/docs/api/screen-space-coordinates.mdx +43 -1
  674. package/docs/api/segmentation-overlay.mdx +301 -0
  675. package/docs/api/session-lifecycle.mdx +165 -0
  676. package/docs/api/texture-sources.mdx +25 -6
  677. package/docs/api/trackers.mdx +20 -1
  678. package/docs/api/tracking-config.mdx +108 -0
  679. package/docs/docs.json +52 -1
  680. package/docs/examples/lip-shaders.mdx +273 -0
  681. package/docs/guides/face-atlas-template.svg +1 -0
  682. package/docs/guides/face-atlas-textures.mdx +186 -0
  683. package/docs/guides/face-texture-template.svg +1 -0
  684. package/docs/guides/harness-debug-ui.mdx +4 -4
  685. package/docs/guides/lip-effect-textures.mdx +368 -0
  686. package/docs/guides/lip-uv-template.png +0 -0
  687. package/docs/guides/lip-uv-template.svg +1 -0
  688. package/docs/guides/makeup-design-textures.mdx +109 -0
  689. package/docs/introduction.mdx +1 -2
  690. package/docs/texture-api-consumer.md +26 -0
  691. package/package.json +44 -5
  692. package/settings.json +2152 -0
  693. package/dist/DebuggerUI-B45_Gb9d.cjs +0 -1
  694. package/dist/DebuggerUI-Cq28c18s.js +0 -269
  695. package/dist/FaceMeshRenderer-6t8OsQhK.js +0 -1195
  696. package/dist/FaceMeshRenderer-lQLhYIW-.cjs +0 -155
  697. package/dist/FaceRetouch-CDrL0pXg.js +0 -551
  698. package/dist/FaceRetouch-DtNl8-4e.cjs +0 -134
  699. package/dist/components/FaceWarp3D/FaceWarp3DHead.d.ts +0 -15
  700. package/dist/components/FaceWarp3D/defaults.d.ts +0 -37
  701. package/dist/components/FaceWarp3D/warp.d.ts +0 -13
  702. package/dist/contexts-BKvTIayr.cjs +0 -1
  703. package/dist/contexts-Bk5zz_VR.js +0 -214
  704. package/dist/debug-ui/face-warp-3d/index.d.ts +0 -6
  705. package/dist/drawNormalizedCrop-B-7zU-Xw.cjs +0 -1
  706. package/dist/drawNormalizedCrop-CRdIDyl1.js +0 -44
  707. package/dist/getFaceInfo-CyPAKh3h.cjs +0 -1
  708. package/dist/getFaceInfo-hUKMLFcr.js +0 -118
  709. package/dist/index-82aENaRq.cjs +0 -1
  710. package/dist/index-CEc1CAmB.cjs +0 -1
  711. package/dist/index-CTHeBQOs.js +0 -178
  712. package/dist/index-D4bLzBr6.cjs +0 -1
  713. package/dist/index-DSpzjuqd.cjs +0 -1
  714. package/dist/index-Di70KWuY.js +0 -2049
  715. package/dist/index-DzEzkBIH.cjs +0 -17
  716. package/dist/index-JygePOwo.js +0 -1398
  717. package/dist/index-UC0Ux38E.js +0 -111
  718. package/dist/internal-i2JkM85N.cjs +0 -1
  719. package/dist/renderLayers-lDtL0_43.cjs +0 -1
  720. package/dist/renderLayers-zrK2pv5O.js +0 -13
  721. package/dist/renderPasses-CT5iBwtg.cjs +0 -21
  722. package/dist/renderPasses-CjgG_6kQ.js +0 -1500
  723. package/dist/selectors-2QvO5RYY.cjs +0 -1
  724. package/dist/selectors-Dw3C-gSk.js +0 -59
  725. package/dist/session-BChR4TgK.cjs +0 -31
  726. package/dist/session-C1StwN0f.js +0 -363
  727. package/dist/useFaceInfo-C-WfMlYp.cjs +0 -1
  728. package/dist/useFaceInfo-CwsHZedC.js +0 -62
  729. package/dist/useFaceResults-CkFc1egZ.js +0 -19
  730. package/dist/useFaceResults-VcFdOUFV.cjs +0 -1
@@ -1,1195 +0,0 @@
1
- import { jsx as p, jsxs as _e, Fragment as Ve } from "react/jsx-runtime";
2
- import { useLoader as ce, useThree as Dt, useFrame as Pt } from "@react-three/fiber";
3
- import { useMemo as q, useRef as l, useState as We, useCallback as Ge, useEffect as Te } from "react";
4
- import * as g from "three";
5
- import { MathUtils as Xe, Color as Gt, Vector2 as ze } from "three";
6
- import { l as ne, f as zt, X as Nt } from "./index-JygePOwo.js";
7
- import { c as Ht, b as Bt } from "./selectors-Dw3C-gSk.js";
8
- import { t as Vt, p as Wt, b as Xt } from "./index-BgQAX8rs.js";
9
- import { TransformControls as jt } from "@react-three/drei";
10
- const Re = 8, K = {
11
- type: "linear",
12
- stops: [
13
- { offset: 0, color: "#38bdf8" },
14
- { offset: 1, color: "#a78bfa" }
15
- ],
16
- angle: 0,
17
- center: { x: 0.5, y: 0.5 },
18
- radius: 0.5
19
- }, Yt = (e) => {
20
- const n = e.slice(0, Re).map((t) => ({ ...t, offset: Xe.clamp(t.offset, 0, 1) })).sort((t, r) => t.offset - r.offset);
21
- return n.length >= 2 ? n : K.stops.map((t) => ({ ...t }));
22
- }, Kt = (e) => ({
23
- ...K,
24
- ...e,
25
- center: { ...K.center, ...e == null ? void 0 : e.center },
26
- radius: Math.max(0.01, (e == null ? void 0 : e.radius) ?? K.radius),
27
- stops: Yt((e == null ? void 0 : e.stops) ?? K.stops)
28
- }), $t = `
29
- varying vec2 vPosition;
30
- void main() {
31
- vPosition = position.xy;
32
- gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
33
- }
34
- `, Qt = `
35
- #define MAX_STOPS 8
36
- uniform vec3 stopColors[MAX_STOPS];
37
- uniform float stopOffsets[MAX_STOPS];
38
- uniform int stopCount;
39
- uniform int gradientType;
40
- uniform vec2 direction;
41
- uniform vec2 center;
42
- uniform float radius;
43
- uniform float angleOffset;
44
- uniform float opacity;
45
- varying vec2 vPosition;
46
-
47
- vec3 sampleGradient(float amount) {
48
- vec3 color = stopColors[0];
49
- for (int index = 1; index < MAX_STOPS; index++) {
50
- if (index >= stopCount) break;
51
- if (amount <= stopOffsets[index]) {
52
- float width = max(0.0001, stopOffsets[index] - stopOffsets[index - 1]);
53
- return mix(stopColors[index - 1], stopColors[index], clamp((amount - stopOffsets[index - 1]) / width, 0.0, 1.0));
54
- }
55
- color = stopColors[index];
56
- }
57
- return color;
58
- }
59
-
60
- void main() {
61
- vec2 delta = vPosition - center;
62
- float amount;
63
- if (gradientType == 1) {
64
- amount = clamp(length(delta) / radius, 0.0, 1.0);
65
- } else if (gradientType == 2) {
66
- amount = fract(atan(delta.y, delta.x) / 6.28318530718 + 0.5 + angleOffset);
67
- } else {
68
- amount = clamp(dot(delta, direction) + 0.5, 0.0, 1.0);
69
- }
70
- gl_FragColor = vec4(sampleGradient(amount), opacity);
71
- }
72
- `, qt = { linear: 0, radial: 1, angular: 2 }, Zt = ({ opacity: e = 1, value: n }) => {
73
- const t = q(() => {
74
- const r = Kt(n), a = Xe.degToRad(r.angle), o = r.stops.map((i) => new Gt(i.color)), s = r.stops.map((i) => i.offset);
75
- for (; o.length < Re; ) o.push(o[o.length - 1]);
76
- for (; s.length < Re; ) s.push(1);
77
- return {
78
- stopColors: { value: o },
79
- stopOffsets: { value: s },
80
- stopCount: { value: r.stops.length },
81
- gradientType: { value: qt[r.type] },
82
- direction: { value: new ze(Math.cos(a), Math.sin(a)) },
83
- center: { value: new ze(r.center.x - 0.5, 0.5 - r.center.y) },
84
- radius: { value: r.radius },
85
- angleOffset: { value: r.angle / 360 },
86
- opacity: { value: e }
87
- };
88
- }, [e, n]);
89
- return /* @__PURE__ */ p(
90
- "shaderMaterial",
91
- {
92
- uniforms: t,
93
- vertexShader: $t,
94
- fragmentShader: Qt,
95
- transparent: e < 1,
96
- depthTest: !1,
97
- depthWrite: !1,
98
- toneMapped: !1
99
- }
100
- );
101
- }, Jt = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO2YpZcAAAAASUVORK5CYII=", zn = {
102
- source: "solid",
103
- color: "#ffffff",
104
- opacity: 1,
105
- textureUrl: "",
106
- gradient: K
107
- }, je = (e) => ({
108
- ...K,
109
- stops: [
110
- { offset: 0, color: "#ffffff" },
111
- { offset: 1, color: e }
112
- ]
113
- }), en = ({
114
- depthTest: e,
115
- depthWrite: n,
116
- settings: t,
117
- side: r,
118
- toneMapped: a
119
- }) => {
120
- const o = ce(
121
- g.TextureLoader,
122
- t.textureUrl || Jt
123
- );
124
- return /* @__PURE__ */ p(
125
- "meshBasicMaterial",
126
- {
127
- color: t.color,
128
- map: o,
129
- transparent: !0,
130
- opacity: t.opacity,
131
- side: r,
132
- depthWrite: n,
133
- depthTest: e,
134
- toneMapped: a
135
- }
136
- );
137
- }, tn = ({
138
- depthTest: e = !1,
139
- depthWrite: n = !1,
140
- settings: t,
141
- side: r,
142
- toneMapped: a = !1
143
- }) => {
144
- const o = q(
145
- () => t.gradient ?? je(t.color),
146
- [t.color, t.gradient]
147
- );
148
- return t.source === "gradient" ? /* @__PURE__ */ p(Zt, { value: o, opacity: t.opacity }) : t.source === "texture" ? /* @__PURE__ */ p(
149
- en,
150
- {
151
- settings: t,
152
- side: r,
153
- depthTest: e,
154
- depthWrite: n,
155
- toneMapped: a
156
- }
157
- ) : /* @__PURE__ */ p(
158
- "meshBasicMaterial",
159
- {
160
- color: t.color,
161
- transparent: !0,
162
- opacity: t.opacity,
163
- side: r,
164
- depthWrite: n,
165
- depthTest: e,
166
- toneMapped: a
167
- }
168
- );
169
- }, be = Math.PI / 180, ge = 180 / Math.PI, G = (e) => Number(e.toFixed(6)), Ne = {
170
- enabled: !0,
171
- linked: {
172
- position: !1,
173
- rotation: !1,
174
- scale: !1
175
- },
176
- showTransformControls: !1,
177
- transformControlMode: "translate",
178
- transformControlSpace: "local",
179
- position: { x: 0, y: 0, z: 0 },
180
- rotation: { x: 0, y: 0, z: 0 },
181
- scale: { x: 1, y: 1, z: 1 },
182
- visible: !0
183
- }, Nn = ({ children: e, objectRef: n, onChange: t, value: r }) => {
184
- const a = l(null), o = l(n);
185
- o.current = n;
186
- const [s, i] = We(null), C = Ge((d) => {
187
- var S;
188
- a.current = d, i(d), (S = o.current) == null || S.call(o, d);
189
- }, []), E = Ge(() => {
190
- const d = a.current;
191
- !d || !t || t({
192
- ...r,
193
- position: {
194
- x: G(d.position.x),
195
- y: G(d.position.y),
196
- z: G(d.position.z)
197
- },
198
- rotation: {
199
- x: G(d.rotation.x * ge),
200
- y: G(d.rotation.y * ge),
201
- z: G(d.rotation.z * ge)
202
- },
203
- scale: {
204
- x: G(d.scale.x),
205
- y: G(d.scale.y),
206
- z: G(d.scale.z)
207
- }
208
- });
209
- }, [t, r]);
210
- return r.enabled ? /* @__PURE__ */ _e(Ve, { children: [
211
- /* @__PURE__ */ p(
212
- "group",
213
- {
214
- ref: C,
215
- position: [r.position.x, r.position.y, r.position.z],
216
- rotation: [
217
- r.rotation.x * be,
218
- r.rotation.y * be,
219
- r.rotation.z * be
220
- ],
221
- scale: [r.scale.x, r.scale.y, r.scale.z],
222
- visible: r.visible,
223
- children: e
224
- }
225
- ),
226
- s && r.showTransformControls && /* @__PURE__ */ p(
227
- jt,
228
- {
229
- object: s,
230
- mode: r.transformControlMode,
231
- space: r.transformControlSpace,
232
- size: 0.85,
233
- onMouseUp: E,
234
- onObjectChange: E
235
- }
236
- )
237
- ] }) : null;
238
- }, ee = (e) => Math.min(1, Math.max(0, e)), k = (e, n, t) => ee(1 - Math.abs(e - n) / t), nn = (e) => {
239
- let n = 1 / 0, t = -1 / 0, r = 1 / 0, a = -1 / 0;
240
- for (const i of e)
241
- n = Math.min(n, i.x), t = Math.max(t, i.x), r = Math.min(r, i.y), a = Math.max(a, i.y);
242
- const o = Math.max(t - n, 1e-3), s = Math.max(a - r, 1e-3);
243
- return {
244
- centerX: n + o * 0.5,
245
- centerY: r + s * 0.5,
246
- width: o,
247
- height: s
248
- };
249
- }, rn = (e) => e != null && e.enabled ? (e.strength ?? 1) !== 0 && Object.entries(e).some(
250
- ([n, t]) => n !== "enabled" && n !== "strength" && typeof t == "number" && t !== 0
251
- ) : !1, an = (e, n, t, r) => {
252
- const a = t.enabled ? t.strength ?? 1 : 0;
253
- if (a === 0)
254
- return r.x = e.x, r.y = e.y, r.z = e.z, r;
255
- const o = (e.x - n.centerX) / n.width, s = (e.y - n.centerY) / n.height, i = Math.abs(o), C = ee((-s + 0.42) / 0.55), E = k(s, -0.02, 0.34), d = k(s, -0.24, 0.16) * ee((i - 0.05) / 0.28), S = k(s, 0.02, 0.26) * k(i, 0, 0.18), _ = k(s, 0.29, 0.18) * k(i, 0, 0.36), O = ee((s - 0.16) / 0.36), A = E * k(i, 0.34, 0.22), h = C * k(i, 0, 0.48), v = k(s, -0.19, 0.1) * ee((i - 0.05) / 0.3), W = k(s, 0.48, 0.2) * k(i, 0, 0.26);
256
- let f = e.x, c = e.y, u = e.z;
257
- const M = (Y, w = 1) => {
258
- f += o * n.width * Y * a * w;
259
- }, y = (Y, w = 1) => {
260
- c += s * n.height * Y * a * w;
261
- };
262
- M(t.faceWidth ?? 0), y(t.faceHeight ?? 0), M(t.faceRoundness ?? 0, E * (1 - i)), c -= n.height * (t.midfaceHeight ?? 0) * a * E * 0.25, y(-(t.foreheadHeight ?? 0), h), M(t.foreheadWidth ?? 0, h), M(
263
- t.cheekboneWidth ?? 0,
264
- k(s, -0.06, 0.16) * k(i, 0.34, 0.2)
265
- ), M(t.cheekWidth ?? 0, A), M(t.jawWidth ?? 0, O), y(t.chinHeight ?? 0, W), c -= n.height * (t.scalpHeight ?? 0) * a * C * 0.3, u -= (t.midfaceDepth ?? 0) * a * E * 0.08, u += (t.cheekHollowness ?? 0) * a * A * 0.06, u -= (t.browDepth ?? 0) * a * v * 0.05, c -= n.height * (t.browHeight ?? 0) * a * v * 0.2, f += Math.sign(o || 1) * n.width * (t.browDistance ?? 0) * a * v * 0.16;
266
- const T = (t.headCurve ?? 0) * a * (s + 0.1);
267
- u -= T * T * 0.04 * Math.sign(t.headCurve ?? 0), f += n.width * (t.faceTwist ?? 0) * a * s * 0.18;
268
- const z = (t.faceSwirl ?? 0) * a * 0.22;
269
- f += -s * n.width * z, c += o * n.height * z;
270
- const X = o < 0 ? t.leftEyeSize ?? 0 : t.rightEyeSize ?? 0, L = ((t.eyeSize ?? 0) + X) * a * d;
271
- f += o * n.width * L * 0.45, c += (s + 0.24) * n.height * L * 0.7, f += Math.sign(o || 1) * n.width * (t.eyeDistance ?? 0) * a * d * 0.2, f += n.width * (o < 0 ? t.leftEyeX ?? 0 : t.rightEyeX ?? 0) * a * d * 0.15, c += n.height * (o < 0 ? t.leftEyeY ?? 0 : t.rightEyeY ?? 0) * a * d * 0.15;
272
- const j = (t.noseSize ?? 0) * a * S;
273
- return f += o * n.width * j * 0.7, c += (s - 0.02) * n.height * j * 0.5, c += n.height * (t.noseLength ?? 0) * a * S * Math.max(s + 0.08, 0) * 0.4, u -= (t.noseSize ?? 0) * a * S * 0.08, f += o * n.width * (t.mouthWidth ?? 0) * a * _, c += (s - 0.29) * n.height * (t.mouthHeight ?? 0) * a * _, r.x = f, r.y = c, r.z = u, r;
274
- }, Me = /* @__PURE__ */ new Set([
275
- 61,
276
- 146,
277
- 91,
278
- 181,
279
- 84,
280
- 17,
281
- 314,
282
- 405,
283
- 321,
284
- 375,
285
- 291,
286
- 78,
287
- 95,
288
- 88,
289
- 178,
290
- 87,
291
- 14,
292
- 317,
293
- 402,
294
- 318,
295
- 324,
296
- 308,
297
- 191,
298
- 80,
299
- 81,
300
- 82,
301
- 13,
302
- 312,
303
- 311,
304
- 310,
305
- 415
306
- ]), Ae = /* @__PURE__ */ new Set([
307
- 33,
308
- 7,
309
- 163,
310
- 144,
311
- 145,
312
- 153,
313
- 154,
314
- 155,
315
- 133,
316
- 173,
317
- 157,
318
- 158,
319
- 159,
320
- 160,
321
- 161,
322
- 246
323
- ]), ve = /* @__PURE__ */ new Set([
324
- 362,
325
- 382,
326
- 381,
327
- 380,
328
- 374,
329
- 373,
330
- 390,
331
- 249,
332
- 263,
333
- 466,
334
- 388,
335
- 387,
336
- 386,
337
- 385,
338
- 384,
339
- 398
340
- ]), on = /* @__PURE__ */ new Set([814, 815, 816, 817, 818, 819, 830, 831, 832, 833]), sn = (e, n, t) => {
341
- const r = Me.has(e) && Me.has(n) && Me.has(t), a = Ae.has(e) && Ae.has(n) && Ae.has(t), o = ve.has(e) && ve.has(n) && ve.has(t);
342
- return r ? "mouth" : a ? "leftEye" : o ? "rightEye" : "base";
343
- }, cn = (e) => {
344
- const n = [], t = [], r = [], a = [], o = [], s = [], i = [];
345
- let C = 0, E = 0;
346
- e.split(`
347
- `).forEach((A) => {
348
- const h = A.trim();
349
- if (!h) return;
350
- if (h.startsWith("v ")) {
351
- C += 1;
352
- return;
353
- }
354
- if (h.startsWith("vt ")) {
355
- const [, c, u] = h.split(/\s+/);
356
- s.push([Number(c), Number(u)]);
357
- return;
358
- }
359
- if (!h.startsWith("f ")) return;
360
- const v = E;
361
- E += 1;
362
- const [, ...W] = h.split(/\s+/), f = W.map((c) => {
363
- const [u, M] = c.split("/"), y = Number(u) - 1, T = Number(M) - 1;
364
- return T >= 0 && s[T] && !i[y] && (i[y] = s[T]), y;
365
- });
366
- if (!(f.length < 3))
367
- for (let c = 1; c < f.length - 1; c += 1) {
368
- const u = f[0], M = f[c], y = f[c + 1], T = sn(u, M, y);
369
- on.has(v) ? o.push(u, M, y) : T === "mouth" ? t.push(u, M, y) : T === "leftEye" ? r.push(u, M, y) : T === "rightEye" ? a.push(u, M, y) : n.push(u, M, y);
370
- }
371
- });
372
- const d = [];
373
- for (let A = 0; A < C; A += 1) {
374
- const [h, v] = i[A] ?? [0, 0];
375
- d.push(h, v);
376
- }
377
- const S = new Uint16Array(r), _ = new Uint16Array(a), O = new Uint16Array(r.length + a.length);
378
- return O.set(S), O.set(_, S.length), {
379
- baseIndices: new Uint16Array(n),
380
- mouthIndices: new Uint16Array(t),
381
- leftEyeIndices: S,
382
- rightEyeIndices: _,
383
- eyeIndices: O,
384
- noseIndices: new Uint16Array(o),
385
- uvs: new Float32Array(d),
386
- vertexCount: C
387
- };
388
- }, ln = "canonical_face_model.obj", dn = new TextDecoder("utf-8"), xe = /* @__PURE__ */ new Map(), fn = (e) => {
389
- const n = xe.get(e);
390
- if (n) return n;
391
- const t = zt(e).then((r) => cn(dn.decode(r))).catch((r) => {
392
- throw xe.delete(e), r;
393
- });
394
- return xe.set(e, t), t;
395
- }, un = (e) => {
396
- const { mesh: n, url: t } = e ?? {}, r = t ?? `${ne.sdkAssetsBaseUrl}/${ln}`, [a, o] = We(n ?? null);
397
- return Te(() => {
398
- if (n) {
399
- o(n);
400
- return;
401
- }
402
- let s = !1;
403
- return fn(r).then((i) => {
404
- s || o(i);
405
- }).catch((i) => {
406
- s || console.error(`${ne.loggerPrefix} canonical face mesh load failed`, i);
407
- }), () => {
408
- s = !0;
409
- };
410
- }, [n, r]), a;
411
- }, x = {
412
- basic: "basic",
413
- standard: "standard",
414
- physical: "physical",
415
- toon: "toon",
416
- normal: "normal",
417
- matcap: "matcap",
418
- wireframe: "wireframe",
419
- shader: "shader"
420
- }, B = {
421
- originalFace: "originalFace",
422
- composite: "composite"
423
- }, V = {
424
- none: "none",
425
- canonical: "canonical",
426
- style2: "style2"
427
- }, Z = {
428
- none: "none",
429
- canonical: "canonical"
430
- }, re = {
431
- solid: "solid",
432
- gradient: "gradient",
433
- imageUrl: "imageUrl",
434
- mediaUrl: "mediaUrl"
435
- }, te = {
436
- front: "front",
437
- back: "back",
438
- double: "double"
439
- }, Ye = {
440
- normal: "normal",
441
- add: "add",
442
- subtract: "subtract",
443
- multiply: "multiply",
444
- screen: "screen",
445
- overlay: "overlay",
446
- softLight: "softLight",
447
- hardLight: "hardLight",
448
- lighten: "lighten",
449
- darken: "darken",
450
- difference: "difference",
451
- exclusion: "exclusion"
452
- }, hn = {
453
- textureMap: V.canonical,
454
- alphaMap: Z.canonical,
455
- alphaOpacity: 1
456
- }, He = {
457
- ...hn,
458
- blendMode: Ye.hardLight,
459
- blendOpacity: 0.85,
460
- baseColor: "#ffffff",
461
- opacity: 1,
462
- compositeShading: !0
463
- }, I = {
464
- materialType: x.basic,
465
- shaderPreset: B.originalFace,
466
- textureMap: V.none,
467
- alphaMap: Z.none,
468
- alphaOpacity: 1,
469
- side: te.front,
470
- blendMode: Ye.normal,
471
- blendOpacity: 1,
472
- baseColor: "#38bdf8",
473
- opacity: 0.45,
474
- compositeShading: !1
475
- };
476
- x.shader, B.composite, te.front;
477
- const Ee = {
478
- mouth: !0,
479
- eyes: !0,
480
- nose: !0
481
- }, J = {
482
- textureSource: re.solid,
483
- color: "#111111",
484
- opacity: 0.5
485
- }, mn = 24, Ke = 10, Fe = (e, n, t) => e !== x.shader ? "none" : n === B.originalFace ? "originalFace" : n === B.composite ? t === V.none ? "originalFace" : "composite" : "none", Hn = (e, n) => e === x.basic || e === x.standard || e === x.physical || e === x.toon || e === x.shader && n === B.composite, Bn = (e, n, t = V.canonical) => Fe(e, n, t) === "composite", pn = (e, n, t) => Fe(e, n, t) === "originalFace", Ce = (e) => e === re.imageUrl || e === re.mediaUrl, yn = (e) => e === re.solid || e === re.gradient, Be = {
486
- normal: 0,
487
- add: 1,
488
- subtract: 2,
489
- multiply: 3,
490
- screen: 4,
491
- overlay: 5,
492
- softLight: 6,
493
- hardLight: 7,
494
- lighten: 8,
495
- darken: 9,
496
- difference: 10,
497
- exclusion: 11
498
- }, Se = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABCAQAAAC1HAwCAAAAC0lEQVR42mP8/x8AAwMCAO2YpZcAAAAASUVORK5CYII=", bn = () => {
499
- const e = new Uint8Array([
500
- 32,
501
- 32,
502
- 32,
503
- 255,
504
- 96,
505
- 96,
506
- 96,
507
- 255,
508
- 176,
509
- 176,
510
- 176,
511
- 255,
512
- 255,
513
- 255,
514
- 255,
515
- 255
516
- ]), n = new g.DataTexture(e, 4, 1, g.RGBAFormat);
517
- return n.minFilter = g.NearestFilter, n.magFilter = g.NearestFilter, n.generateMipmaps = !1, n.needsUpdate = !0, n;
518
- }, gn = () => {
519
- const e = document.createElement("canvas");
520
- e.width = 256, e.height = 256;
521
- const n = e.getContext("2d");
522
- if (!n)
523
- return new g.CanvasTexture(e);
524
- const t = n.createRadialGradient(96, 80, 10, 128, 128, 128);
525
- t.addColorStop(0, "#ffffff"), t.addColorStop(0.18, "#f7d794"), t.addColorStop(0.45, "#d97706"), t.addColorStop(0.72, "#78350f"), t.addColorStop(1, "#120701"), n.fillStyle = t, n.fillRect(0, 0, e.width, e.height);
526
- const r = new g.CanvasTexture(e);
527
- return r.needsUpdate = !0, r;
528
- }, Mn = `
529
- attribute vec2 faceUv;
530
- varying vec2 vUv;
531
- varying vec2 vFaceUv;
532
- varying vec3 vNormal;
533
-
534
- void main() {
535
- vUv = uv;
536
- vFaceUv = faceUv;
537
- vNormal = normalize(normalMatrix * normal);
538
- gl_Position = projectionMatrix * modelViewMatrix * vec4(position, 1.0);
539
- }
540
- `, An = `
541
- uniform sampler2D cameraTexture;
542
- uniform sampler2D canonicalTexture;
543
- uniform sampler2D alphaMask;
544
- uniform vec3 textureTint;
545
- uniform float opacity;
546
- uniform int blendMode;
547
- uniform float blendOpacity;
548
- uniform float useCanonicalTexture;
549
- uniform float useAlphaMask;
550
- uniform float alphaOpacity;
551
- uniform float compositeShading;
552
- uniform vec3 lightDirection;
553
- uniform float ambientStrength;
554
- uniform float directionalStrength;
555
- varying vec2 vUv;
556
- varying vec2 vFaceUv;
557
- varying vec3 vNormal;
558
-
559
- vec3 linearToSrgb(vec3 value) {
560
- vec3 low = value * 12.92;
561
- vec3 high = 1.055 * pow(max(value, vec3(0.0)), vec3(1.0 / 2.4)) - 0.055;
562
- return mix(high, low, step(value, vec3(0.0031308)));
563
- }
564
-
565
- vec3 srgbToLinear(vec3 value) {
566
- vec3 low = value / 12.92;
567
- vec3 high = pow(max((value + 0.055) / 1.055, vec3(0.0)), vec3(2.4));
568
- return mix(high, low, step(value, vec3(0.04045)));
569
- }
570
-
571
- float overlayChannel(float base, float blend) {
572
- return base < 0.5 ? 2.0 * base * blend : 1.0 - 2.0 * (1.0 - base) * (1.0 - blend);
573
- }
574
-
575
- float hardLightChannel(float base, float blend) {
576
- return blend < 0.5 ? 2.0 * base * blend : 1.0 - 2.0 * (1.0 - base) * (1.0 - blend);
577
- }
578
-
579
- float softLightChannel(float base, float blend) {
580
- if (blend <= 0.5) {
581
- return base - (1.0 - 2.0 * blend) * base * (1.0 - base);
582
- }
583
-
584
- float d = base <= 0.25
585
- ? ((16.0 * base - 12.0) * base + 4.0) * base
586
- : sqrt(base);
587
-
588
- return base + (2.0 * blend - 1.0) * (d - base);
589
- }
590
-
591
- vec3 applyBlendMode(vec3 base, vec3 blend, int mode) {
592
- if (mode == 0) return blend;
593
- if (mode == 1) return min(base + blend, 1.0);
594
- if (mode == 2) return max(base - blend, 0.0);
595
- if (mode == 3) return base * blend;
596
- if (mode == 4) return 1.0 - (1.0 - base) * (1.0 - blend);
597
- if (mode == 5) {
598
- return vec3(
599
- overlayChannel(base.r, blend.r),
600
- overlayChannel(base.g, blend.g),
601
- overlayChannel(base.b, blend.b)
602
- );
603
- }
604
- if (mode == 6) {
605
- return vec3(
606
- softLightChannel(base.r, blend.r),
607
- softLightChannel(base.g, blend.g),
608
- softLightChannel(base.b, blend.b)
609
- );
610
- }
611
- if (mode == 7) {
612
- return vec3(
613
- hardLightChannel(base.r, blend.r),
614
- hardLightChannel(base.g, blend.g),
615
- hardLightChannel(base.b, blend.b)
616
- );
617
- }
618
- if (mode == 8) return max(base, blend);
619
- if (mode == 9) return min(base, blend);
620
- if (mode == 10) return abs(base - blend);
621
- return base + blend - 2.0 * base * blend;
622
- }
623
-
624
- void main() {
625
- vec3 base = linearToSrgb(texture2D(cameraTexture, vFaceUv).rgb);
626
- vec4 textureSample = texture2D(canonicalTexture, vUv);
627
- vec3 blend = linearToSrgb(textureSample.rgb) * textureTint;
628
- float light = ambientStrength + max(dot(normalize(vNormal), normalize(lightDirection)), 0.0) * directionalStrength;
629
- blend *= mix(1.0, clamp(light, 0.35, 1.35), compositeShading);
630
- float maskSample = texture2D(alphaMask, vUv).r;
631
- float mask = useAlphaMask > 0.5 ? mix(1.0, maskSample, alphaOpacity) : 1.0;
632
- float textureAlpha = useCanonicalTexture > 0.5 ? textureSample.a : 1.0;
633
- vec3 blended = applyBlendMode(base, blend, blendMode);
634
- vec3 color = useCanonicalTexture > 0.5 ? mix(base, blended, blendOpacity) : base;
635
- gl_FragColor = vec4(srgbToLinear(color), opacity * mask * textureAlpha);
636
- }
637
- `, vn = ({
638
- alphaMap: e,
639
- alphaOpacity: n,
640
- blendMode: t,
641
- blendOpacity: r,
642
- cameraTexture: a,
643
- color: o,
644
- compositeShading: s,
645
- faceAlphaMaskUrl: i,
646
- faceTextureStyle2Url: C,
647
- faceTextureUrl: E,
648
- masked: d = !1,
649
- maskColor: S,
650
- maskOpacity: _,
651
- maskSourceUrl: O,
652
- maskTextureSource: A,
653
- materialType: h,
654
- opacity: v,
655
- shaderPreset: W,
656
- side: f,
657
- textureMap: c
658
- }) => {
659
- const u = ce(
660
- g.TextureLoader,
661
- E || Se
662
- ), M = ce(
663
- g.TextureLoader,
664
- C || E || Se
665
- ), y = ce(
666
- g.TextureLoader,
667
- i || Se
668
- ), T = q(() => bn(), []), z = q(() => gn(), []);
669
- Te(
670
- () => () => {
671
- T.dispose(), z.dispose();
672
- },
673
- [z, T]
674
- );
675
- const X = c === V.style2 ? M : u, L = c !== V.none, j = Fe(h, W, c), Y = [
676
- "composite-material",
677
- c,
678
- e,
679
- n,
680
- t,
681
- r,
682
- s ? "lit" : "flat",
683
- o,
684
- v,
685
- E,
686
- C,
687
- i
688
- ].join("|"), w = {
689
- side: f,
690
- transparent: !0,
691
- opacity: v,
692
- wireframe: !1
693
- }, le = q(
694
- () => ({
695
- source: Ce(A) ? "texture" : A,
696
- color: yn(A) ? S : "#ffffff",
697
- opacity: _,
698
- textureUrl: Ce(A) ? O : "",
699
- gradient: je(S)
700
- }),
701
- [S, _, O, A]
702
- ), R = q(
703
- () => ({
704
- cameraTexture: { value: null },
705
- canonicalTexture: { value: null },
706
- alphaMask: { value: null },
707
- textureTint: { value: new g.Color(o) },
708
- opacity: { value: v },
709
- blendMode: { value: Be[t] },
710
- blendOpacity: { value: r },
711
- useCanonicalTexture: { value: L ? 1 : 0 },
712
- useAlphaMask: { value: e === Z.canonical ? 1 : 0 },
713
- alphaOpacity: { value: n },
714
- compositeShading: { value: s ? 1 : 0 },
715
- lightDirection: { value: new g.Vector3(0.3, 0.65, 0.7).normalize() },
716
- ambientStrength: { value: 0.78 },
717
- directionalStrength: { value: 0.38 }
718
- }),
719
- [
720
- e,
721
- n,
722
- t,
723
- r,
724
- o,
725
- s,
726
- L,
727
- v
728
- ]
729
- );
730
- if (Te(() => {
731
- R.cameraTexture.value = a ?? u, R.canonicalTexture.value = X, R.alphaMask.value = y, R.textureTint.value.set(o), R.opacity.value = v, R.blendMode.value = Be[t], R.blendOpacity.value = r, R.useCanonicalTexture.value = L ? 1 : 0, R.useAlphaMask.value = e === Z.canonical ? 1 : 0, R.alphaOpacity.value = n, R.compositeShading.value = s ? 1 : 0;
732
- }, [
733
- e,
734
- y,
735
- n,
736
- t,
737
- r,
738
- a,
739
- o,
740
- s,
741
- R,
742
- u,
743
- L,
744
- v,
745
- X
746
- ]), d)
747
- return /* @__PURE__ */ p(
748
- tn,
749
- {
750
- settings: le,
751
- side: f
752
- },
753
- `masked-${A}-material`
754
- );
755
- if (h === x.wireframe)
756
- return /* @__PURE__ */ p(
757
- "meshBasicMaterial",
758
- {
759
- color: o,
760
- transparent: !0,
761
- opacity: v,
762
- side: f,
763
- depthWrite: !1,
764
- depthTest: !1,
765
- wireframe: !0,
766
- toneMapped: !1
767
- },
768
- "wireframe-material"
769
- );
770
- if (j === "originalFace" && a)
771
- return /* @__PURE__ */ p(
772
- "meshBasicMaterial",
773
- {
774
- map: a,
775
- alphaMap: y,
776
- transparent: !0,
777
- opacity: v,
778
- side: f,
779
- depthWrite: !1,
780
- depthTest: !0,
781
- toneMapped: !1
782
- },
783
- "use-original-face-material"
784
- );
785
- if (j === "composite" && a)
786
- return /* @__PURE__ */ p(
787
- "shaderMaterial",
788
- {
789
- uniforms: R,
790
- vertexShader: Mn,
791
- fragmentShader: An,
792
- transparent: !0,
793
- side: f,
794
- depthWrite: !1,
795
- depthTest: !0,
796
- toneMapped: !1
797
- },
798
- Y
799
- );
800
- const N = L ? X : null, $ = e === Z.canonical && n > 0 ? y : null, H = `${h}-${c}-${e}-${n > 0 ? "alpha-on" : "alpha-off"}`;
801
- return h === x.standard ? /* @__PURE__ */ p(
802
- "meshStandardMaterial",
803
- {
804
- ...w,
805
- color: o,
806
- map: N ?? void 0,
807
- alphaMap: $ ?? void 0,
808
- depthWrite: !0,
809
- depthTest: !0,
810
- metalness: 0.05,
811
- roughness: 0.72
812
- },
813
- H
814
- ) : h === x.physical ? /* @__PURE__ */ p(
815
- "meshPhysicalMaterial",
816
- {
817
- ...w,
818
- color: o,
819
- map: N ?? void 0,
820
- alphaMap: $ ?? void 0,
821
- depthWrite: !0,
822
- depthTest: !0,
823
- roughness: 0.58,
824
- metalness: 0.08,
825
- clearcoat: 0.35,
826
- clearcoatRoughness: 0.4
827
- },
828
- H
829
- ) : h === x.toon ? /* @__PURE__ */ p(
830
- "meshToonMaterial",
831
- {
832
- ...w,
833
- color: o,
834
- map: N ?? void 0,
835
- alphaMap: $ ?? void 0,
836
- gradientMap: T,
837
- depthWrite: !0,
838
- depthTest: !0
839
- },
840
- H
841
- ) : h === x.normal ? /* @__PURE__ */ p(
842
- "meshNormalMaterial",
843
- {
844
- ...w,
845
- depthWrite: !0,
846
- depthTest: !0,
847
- flatShading: !1
848
- },
849
- "normal-material"
850
- ) : h === x.matcap ? /* @__PURE__ */ p(
851
- "meshMatcapMaterial",
852
- {
853
- ...w,
854
- color: o,
855
- matcap: z,
856
- depthWrite: !0,
857
- depthTest: !0
858
- },
859
- "matcap-material"
860
- ) : /* @__PURE__ */ p(
861
- "meshBasicMaterial",
862
- {
863
- ...w,
864
- color: o,
865
- map: N ?? void 0,
866
- alphaMap: $ ?? void 0,
867
- depthWrite: !1,
868
- depthTest: c !== V.none || e !== Z.none,
869
- toneMapped: !1
870
- },
871
- H
872
- );
873
- }, xn = [
874
- {
875
- key: "base",
876
- getIndices: (e) => e.baseIndices,
877
- masked: !1,
878
- renderOrderOffset: 0
879
- },
880
- {
881
- key: "mouth",
882
- getIndices: (e) => e.mouthIndices,
883
- masked: !1,
884
- renderOrderOffset: 2
885
- },
886
- {
887
- key: "left-eye",
888
- getIndices: (e) => e.leftEyeIndices,
889
- masked: !1,
890
- renderOrderOffset: 2
891
- },
892
- {
893
- key: "right-eye",
894
- getIndices: (e) => e.rightEyeIndices,
895
- masked: !1,
896
- renderOrderOffset: 2
897
- },
898
- {
899
- key: "nose",
900
- getIndices: (e) => e.noseIndices,
901
- masked: !1,
902
- renderOrderOffset: 2
903
- },
904
- {
905
- key: "mouth-mask",
906
- getIndices: (e) => e.mouthIndices,
907
- masked: !0,
908
- renderOrderOffset: 3
909
- },
910
- {
911
- key: "left-eye-mask",
912
- getIndices: (e) => e.leftEyeIndices,
913
- masked: !0,
914
- renderOrderOffset: 3
915
- },
916
- {
917
- key: "right-eye-mask",
918
- getIndices: (e) => e.rightEyeIndices,
919
- masked: !0,
920
- renderOrderOffset: 3
921
- },
922
- {
923
- key: "nose-mask",
924
- getIndices: (e) => e.noseIndices,
925
- masked: !0,
926
- renderOrderOffset: 3
927
- }
928
- ], En = {
929
- [te.front]: g.FrontSide,
930
- [te.back]: g.BackSide,
931
- [te.double]: g.DoubleSide
932
- }, Sn = (e, n, t) => {
933
- e.setAttribute("position", n.position), e.setAttribute("uv", n.uv), e.setAttribute("faceUv", n.faceUv), e.setIndex(new g.BufferAttribute(t, 1));
934
- }, Tn = ({
935
- faceIndex: e = 0,
936
- baseColor: n,
937
- color: t = I.baseColor,
938
- opacity: r = I.opacity,
939
- materialType: a = I.materialType,
940
- shaderPreset: o = I.shaderPreset,
941
- textureMap: s = I.textureMap,
942
- alphaMap: i = I.alphaMap,
943
- alphaOpacity: C = I.alphaOpacity,
944
- side: E = I.side,
945
- blendMode: d = I.blendMode,
946
- blendOpacity: S = I.blendOpacity,
947
- showOverlayMask: _ = !1,
948
- showMouthMask: O = Ee.mouth,
949
- showEyeMask: A = Ee.eyes,
950
- showLeftEyeMask: h,
951
- showRightEyeMask: v,
952
- showNoseMask: W = Ee.nose,
953
- showEyeGeometry: f = !0,
954
- showLeftEyeGeometry: c,
955
- showRightEyeGeometry: u,
956
- showMouthGeometry: M = !0,
957
- showNoseGeometry: y = !0,
958
- maskTextureSource: T = J.textureSource,
959
- maskSourceUrl: z = "",
960
- maskColor: X = J.color,
961
- maskOpacity: L = J.opacity,
962
- faceTextureUrl: j = "",
963
- faceTextureStyle2Url: Y = "",
964
- faceAlphaMaskUrl: w = "",
965
- compositeShading: le = !1,
966
- faceWarp3D: R,
967
- transform: N,
968
- renderOrder: $ = Ke,
969
- externalScale: H = 1,
970
- mesh: $e,
971
- meshUrl: Qe
972
- }) => {
973
- const de = Ht(Nt.FACE_TRACKER), qe = Bt(), { camera: Ze } = Dt(), D = un({ mesh: $e, url: Qe }), ke = l(null), Je = l(null), et = l(null), tt = l(null), nt = l(null), rt = l(null), at = l(null), ot = l(null), st = l(null), it = l(null), ct = l(null), lt = l(null), dt = l(null), ft = l(null), ut = l(null), ht = l(null), mt = l(null), pt = l(null), fe = l(null), ue = l(null), he = l(null), we = l(null), yt = l(new g.Vector3()), bt = l({ x: 0, y: 0, z: 0 }), gt = l({ x: 0, y: 0, z: 0 }), Mt = l({ x: 0, y: 0, z: 0 }), ae = l(!1), At = En[E], vt = n ?? t, xt = c ?? f, Et = u ?? f, St = _ || (h ?? A), Tt = _ || (v ?? A), Rt = _ || O, Ct = _ || W, _t = {
974
- base: ke,
975
- mouth: Je,
976
- "left-eye": et,
977
- "right-eye": tt,
978
- nose: nt,
979
- "mouth-mask": rt,
980
- "left-eye-mask": at,
981
- "right-eye-mask": ot,
982
- "nose-mask": st
983
- }, Ft = {
984
- base: it,
985
- mouth: ct,
986
- "left-eye": lt,
987
- "right-eye": dt,
988
- nose: ft,
989
- "mouth-mask": ut,
990
- "left-eye-mask": ht,
991
- "right-eye-mask": mt,
992
- "nose-mask": pt
993
- }, kt = {
994
- base: !0,
995
- mouth: M,
996
- "left-eye": xt,
997
- "right-eye": Et,
998
- nose: y,
999
- "mouth-mask": Rt,
1000
- "left-eye-mask": St,
1001
- "right-eye-mask": Tt,
1002
- "nose-mask": Ct
1003
- }, wt = (b) => /* @__PURE__ */ p(
1004
- vn,
1005
- {
1006
- alphaMap: i,
1007
- alphaOpacity: C,
1008
- blendMode: d,
1009
- blendOpacity: S,
1010
- cameraTexture: qe,
1011
- color: vt,
1012
- compositeShading: le,
1013
- faceAlphaMaskUrl: w,
1014
- faceTextureStyle2Url: Y,
1015
- faceTextureUrl: j,
1016
- masked: b,
1017
- maskColor: X,
1018
- maskOpacity: L,
1019
- maskSourceUrl: z,
1020
- maskTextureSource: T,
1021
- materialType: a,
1022
- opacity: r,
1023
- shaderPreset: o,
1024
- side: At,
1025
- textureMap: s
1026
- }
1027
- ), Q = xn.map(
1028
- (b) => ({
1029
- ...b,
1030
- geometryRef: _t[b.key],
1031
- meshRef: Ft[b.key],
1032
- visible: kt[b.key]
1033
- })
1034
- ), Ut = (b) => Wt(b, Ze, yt.current);
1035
- return Pt(() => {
1036
- var Le, De;
1037
- const b = ke.current, P = (De = (Le = de == null ? void 0 : de.detectionResults) == null ? void 0 : Le.faceLandmarks) == null ? void 0 : De[e], It = Q.every(
1038
- (m) => m.geometryRef.current && m.meshRef.current
1039
- );
1040
- if (!D || !b || !It) return;
1041
- if (!P || P.length < D.vertexCount) {
1042
- Q.forEach((m) => {
1043
- m.meshRef.current.visible = !1;
1044
- });
1045
- return;
1046
- }
1047
- if (we.current !== D) {
1048
- fe.current = new Float32Array(D.vertexCount * 3), ue.current = new Float32Array(D.uvs), he.current = new Float32Array(D.vertexCount * 2);
1049
- const m = {
1050
- position: new g.BufferAttribute(fe.current, 3),
1051
- uv: new g.BufferAttribute(ue.current, 2),
1052
- faceUv: new g.BufferAttribute(he.current, 2)
1053
- };
1054
- Q.forEach((F) => {
1055
- Sn(F.geometryRef.current, m, F.getIndices(D));
1056
- }), m.uv.needsUpdate = !0, we.current = D, ae.current = !1;
1057
- }
1058
- const oe = fe.current, me = he.current, se = ue.current;
1059
- if (!oe || !me || !se) return;
1060
- const Ue = pn(a, o, s), Ie = rn(R), Oe = Ie ? nn(P) : null, U = N ? Mt.current : null;
1061
- if (U) {
1062
- U.x = 0, U.y = 0, U.z = 0;
1063
- for (let m = 0; m < P.length; m++) {
1064
- const F = P[m];
1065
- U.x += F.x, U.y += F.y, U.z += F.z;
1066
- }
1067
- U.x /= P.length, U.y /= P.length, U.z /= P.length;
1068
- }
1069
- const Ot = Math.min(P.length, D.vertexCount);
1070
- for (let m = 0; m < Ot; m++) {
1071
- const F = P[m], Pe = Ie && Oe ? an(F, Oe, R, bt.current) : F, Lt = N && U ? Vt(
1072
- Pe,
1073
- U,
1074
- N,
1075
- gt.current
1076
- ) : Pe, pe = m * 3, ie = m * 2, ye = Ut(Lt);
1077
- oe[pe] = ye.x, oe[pe + 1] = ye.y, oe[pe + 2] = ye.z, me[ie] = F.x, me[ie + 1] = 1 - F.y, Ue && (se[ie] = F.x, se[ie + 1] = 1 - F.y);
1078
- }
1079
- Ue ? (b.attributes.uv.needsUpdate = !0, ae.current = !0) : ae.current && (se.set(D.uvs), b.attributes.uv.needsUpdate = !0, ae.current = !1), Q.forEach((m) => {
1080
- m.meshRef.current.visible = m.visible;
1081
- }), b.attributes.position.needsUpdate = !0, b.attributes.faceUv.needsUpdate = !0, Q.forEach((m) => {
1082
- m.geometryRef.current.computeVertexNormals();
1083
- });
1084
- }), /* @__PURE__ */ p("group", { scale: [H, H, H], children: Q.map((b) => /* @__PURE__ */ _e(
1085
- "mesh",
1086
- {
1087
- ref: b.meshRef,
1088
- renderOrder: $ + b.renderOrderOffset,
1089
- frustumCulled: !1,
1090
- children: [
1091
- /* @__PURE__ */ p("bufferGeometry", { ref: b.geometryRef }),
1092
- wt(b.masked)
1093
- ]
1094
- },
1095
- b.key
1096
- )) });
1097
- }, Rn = `${ne.sdkAssetsBaseUrl}/Canonical_Face_Color.png`, Cn = `${ne.sdkAssetsBaseUrl}/Canonical_Face_Color_style_2.png`, _n = `${ne.sdkAssetsBaseUrl}/Canonical_Face_Color_Mask.png`, Fn = {
1098
- ...Ne,
1099
- position: { ...Ne.position, y: 1e-3 }
1100
- }, Vn = {
1101
- enabled: !0,
1102
- faceIndex: 0,
1103
- targetFps: mn,
1104
- ...I,
1105
- showLeftEyeGeometry: !0,
1106
- showRightEyeGeometry: !0,
1107
- showMouthGeometry: !0,
1108
- showNoseGeometry: !0,
1109
- externalScale: 1,
1110
- showOverlayMask: !1,
1111
- showMouthMask: !1,
1112
- showLeftEyeMask: !1,
1113
- showRightEyeMask: !1,
1114
- showNoseMask: !1,
1115
- maskTextureSource: J.textureSource,
1116
- maskSourceUrl: "",
1117
- maskColor: J.color,
1118
- maskOpacity: J.opacity,
1119
- faceTextureUrl: Rn,
1120
- faceTextureStyle2Url: Cn,
1121
- faceAlphaMaskUrl: _n,
1122
- renderOrder: Ke
1123
- }, kn = (e) => {
1124
- const { externalMeshUrl: n, ...t } = e;
1125
- return { ...t, color: t.baseColor, meshUrl: n };
1126
- }, Wn = (e, n) => {
1127
- const t = { ...e, ...n };
1128
- return n.maskTextureSource && !Ce(n.maskTextureSource) && (t.maskSourceUrl = ""), t.materialType === x.shader && n.shaderPreset === B.composite ? {
1129
- ...t,
1130
- ...He,
1131
- materialType: x.shader,
1132
- shaderPreset: B.composite
1133
- } : t.materialType === x.shader && t.shaderPreset === B.composite && t.textureMap === V.none ? {
1134
- ...t,
1135
- textureMap: He.textureMap
1136
- } : t;
1137
- }, Xn = ({
1138
- transform: e,
1139
- value: n
1140
- }) => n.enabled ? /* @__PURE__ */ _e(Ve, { children: [
1141
- /* @__PURE__ */ p(
1142
- Xt,
1143
- {
1144
- active: n.enabled,
1145
- faceIndex: n.faceIndex,
1146
- numFaces: n.faceIndex + 1,
1147
- targetFps: n.targetFps
1148
- }
1149
- ),
1150
- /* @__PURE__ */ p(
1151
- Tn,
1152
- {
1153
- ...kn(n),
1154
- transform: e ?? Fn
1155
- }
1156
- )
1157
- ] }) : null;
1158
- export {
1159
- Ne as A,
1160
- Re as B,
1161
- Tn as C,
1162
- I as D,
1163
- yn as E,
1164
- Z as F,
1165
- Ce as G,
1166
- tn as M,
1167
- Zt as S,
1168
- Nn as T,
1169
- Vn as a,
1170
- Be as b,
1171
- Fn as c,
1172
- Ee as d,
1173
- Ye as e,
1174
- re as f,
1175
- x as g,
1176
- B as h,
1177
- te as i,
1178
- V as j,
1179
- Bn as k,
1180
- vn as l,
1181
- Xn as m,
1182
- _n as n,
1183
- Cn as o,
1184
- Rn as p,
1185
- xn as q,
1186
- kn as r,
1187
- Hn as s,
1188
- Wn as t,
1189
- un as u,
1190
- cn as v,
1191
- K as w,
1192
- Kt as x,
1193
- zn as y,
1194
- je as z
1195
- };