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

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 +1479 -499
  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
package/dist/low-level.js CHANGED
@@ -1,27 +1,32 @@
1
- var ce = Object.defineProperty;
2
- var de = (e, t, r) => t in e ? ce(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var X = (e, t, r) => de(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { u as ue, X as te } from "./index-JygePOwo.js";
5
- import { u as he } from "./index-BgQAX8rs.js";
6
- import { H as Ct, a as St } from "./index-BgQAX8rs.js";
7
- import { c as pe } from "./selectors-Dw3C-gSk.js";
8
- import { b as Et, a as It, e as Mt, u as Tt, d as Ft } from "./selectors-Dw3C-gSk.js";
9
- import { useEffect as F, useState as S, useRef as L, useCallback as fe, useLayoutEffect as me, useMemo as q, Children as ge, isValidElement as be } from "react";
10
- import { c as we } from "./getFaceInfo-hUKMLFcr.js";
11
- import { d as Lt, e as zt } from "./getFaceInfo-hUKMLFcr.js";
12
- import { jsx as g, jsxs as z, Fragment as P } from "react/jsx-runtime";
1
+ import { u as oe, j as N, z as he, a2 as P, m as ge, d as be, a3 as ye, s as Se, w as ee } from "./index-BDxJWWyy.js";
2
+ import { aj as Ft, ap as Ot, ak as Dt, E as kt, a7 as Bt, aq as Lt, am as Nt, an as Ht, ar as Gt, a5 as Pt, a9 as Xt, F as Wt, ah as zt, ao as Yt, aa as Vt, l as $t, a4 as Ut, a8 as qt, ab as Kt, b as jt, ac as Jt, al as Qt, ad as Zt, ae as ea, ai as ta, a as aa, af as ra, ag as sa, a6 as na } from "./index-BDxJWWyy.js";
3
+ import { H as ia, u as la } from "./index-CbBCl2ZU.js";
4
+ import { u as Re } from "./landmarks-C3LvDhMt.js";
5
+ import { b as we } from "./selectors-J06V0eDb.js";
6
+ import { m as ca, l as ua, c as ma, e as pa, g as fa, p as ha, h as ga, f as ba, i as ya, n as Sa, q as Ra, a as wa, u as _a, d as Ea, o as va, k as Ia, j as Ta } from "./selectors-J06V0eDb.js";
7
+ import { useEffect as F, useState as T, useRef as D, useCallback as _e, useLayoutEffect as Ee, useMemo as $, Children as ve, isValidElement as Ie } from "react";
8
+ import { c as Te } from "./getFaceInfo-Mt44zlej.js";
9
+ import { a as Aa, b as Ca } from "./getFaceInfo-Mt44zlej.js";
10
+ import { jsx as S, jsxs as k, Fragment as W } from "react/jsx-runtime";
13
11
  import { PerspectiveCamera as xe } from "@react-three/drei";
14
- import { S as Dt, g as Vt, c as At, d as Bt, u as Wt } from "./index-CTHeBQOs.js";
15
- import { u as re } from "./useFaceResults-CkFc1egZ.js";
16
- import { h as Ht } from "./hasFullUnitUVBounds-BGvcFsQM.js";
17
- import { X as ve, a as ye, b as Ce } from "./contexts-Bk5zz_VR.js";
18
- import { c as $t, d as qt, u as Nt } from "./contexts-Bk5zz_VR.js";
19
- import * as V from "three";
20
- const W = ({
12
+ import { g as Fa, a as Oa, b as Da } from "./index-Bn72laBn.js";
13
+ import { ag as ie } from "./trigger-CQviD4xp.js";
14
+ import { bP as Ba, bL as La, bQ as Na, bc as Ha, bd as Ga, b5 as Pa, am as Xa, as as Wa, aF as za, aG as Ya, aH as Va, at as $a, au as Ua, aI as qa, aJ as Ka, av as ja, aK as Ja, aw as Qa, aL as Za, aM as er, aN as tr, aO as ar, aP as rr, ax as sr, ay as nr, az as or, aQ as ir, aR as lr, b6 as dr, bs as cr, by as ur, bz as mr, bA as pr, bB as fr, ah as hr, bm as gr, bn as br, bW as yr, ar as Sr, bf as Rr, H as wr, bX as _r, bY as Er, e as vr, O as Ir, ai as Tr, S as xr, an as Ar, c0 as Cr, b_ as Mr, bC as Fr, b$ as Or, aS as Dr, aT as kr, aA as Br, bM as Lr, bv as Nr, aB as Hr, bb as Gr, d as Pr, aU as Xr, aV as Wr, aW as zr, aY as Yr, aZ as Vr, a_ as $r, aX as Ur, a$ as qr, b0 as Kr, b1 as jr, b2 as Jr, t as Qr, bD as Zr, c as es, v as ts, n as as, bw as rs, b9 as ss, bk as ns, b7 as os, c1 as is, bK as ls, bR as ds, bZ as cs, aj as us, bS as ms, bE as ps, bF as fs, bG as hs, bT as gs, bg as bs, bH as ys, bo as Ss, bp as Rs, bq as ws, bh as _s, bi as Es, bj as vs, bI as Is, aC as Ts, bN as xs, f as As, h as Cs, k as Ms, i as Fs, j as Os, l as Ds, m as ks, g as Bs, bt as Ls, be as Ns, ba as Hs, b8 as Gs, b3 as Ps, b4 as Xs, br as Ws, r as zs, aD as Ys, ao as Vs, ap as $s, bU as Us, p as qs, bl as Ks, bu as js, aq as Js, s as Qs, aE as Zs, q as en, ak as tn, al as an, c2 as rn, c3 as sn, bO as nn, u as on, bV as ln, bJ as dn, bx as cn } from "./trigger-CQviD4xp.js";
15
+ import { h as mn } from "./hasFullUnitUVBounds-BGvcFsQM.js";
16
+ import { X as Ae, a as Ce, b as Me } from "./contexts-Cl-4dUOI.js";
17
+ import { B as fn, M as hn, h as gn, i as bn, T as yn, c as Sn, j as Rn, k as wn, g as _n, e as En, f as vn, r as In, t as Tn, d as xn, u as An } from "./contexts-Cl-4dUOI.js";
18
+ import { H as Mn, p as Fn, q as On, t as Dn, u as kn, v as Bn, w as Ln, b as Nn, l as Hn, x as Gn, y as Pn, s as Xn, z as Wn } from "./index-B0EYdofX.js";
19
+ import { b as Yn, r as Vn } from "./useBodies-DOuwRuew.js";
20
+ import { B as Un, d as qn, e as Kn, f as jn, g as Jn, b as Qn, h as Zn, a as eo, c as to, p as ao, s as ro, i as so } from "./bodyMaskMaterial-BOdSJUEM.js";
21
+ import { c as oo, g as io, s as lo, a as co } from "./detector-K8aej4MB.js";
22
+ import { F as mo, g as po, I as fo, M as ho, j as go, k as bo, h as yo, v as So, i as Ro, c as wo, l as _o, p as Eo, w as vo, r as Io, t as To, m as xo, u as Ao, n as Co, q as Mo, o as Fo, s as Oo } from "./providers-Bxt_MfPK.js";
23
+ import { S as ko, u as Bo } from "./context-DTxSQvp4.js";
24
+ import * as L from "three";
25
+ const X = ({
21
26
  children: e,
22
27
  config: t,
23
28
  style: r
24
- }) => /* @__PURE__ */ g(
29
+ }) => /* @__PURE__ */ S(
25
30
  "div",
26
31
  {
27
32
  "data-render-target": t.name,
@@ -37,79 +42,84 @@ const W = ({
37
42
  },
38
43
  children: e
39
44
  }
40
- ), N = ({
45
+ ), U = ({
41
46
  canvas: e,
42
47
  layout: t,
43
48
  media: r,
44
- mirrored: n,
45
- filter: o
49
+ mirrored: a,
50
+ filter: s
46
51
  }) => {
47
- const i = Math.round(t.destination.width), a = Math.round(t.destination.height);
48
- e.width !== i && (e.width = i), e.height !== a && (e.height = a);
49
- const s = e.getContext("2d");
50
- s && (s.setTransform(1, 0, 0, 1, 0, 0), s.clearRect(0, 0, i, a), n && (s.translate(i, 0), s.scale(-1, 1)), o && (s.filter = o), s.drawImage(r, t.offsetX, t.offsetY, t.drawWidth, t.drawHeight), o && (s.filter = "none"), s.setTransform(1, 0, 0, 1, 0, 0));
51
- }, ne = ({
52
+ const d = Math.round(t.destination.width), u = Math.round(t.destination.height);
53
+ e.width !== d && (e.width = d), e.height !== u && (e.height = u);
54
+ const c = e.getContext("2d");
55
+ c && (c.setTransform(1, 0, 0, 1, 0, 0), c.clearRect(0, 0, d, u), a && (c.translate(d, 0), c.scale(-1, 1)), s && (c.filter = s), c.drawImage(r, t.offsetX, t.offsetY, t.drawWidth, t.drawHeight), s && (c.filter = "none"), c.setTransform(1, 0, 0, 1, 0, 0));
56
+ }, le = ({
52
57
  canvasRef: e,
53
58
  enabled: t = !0,
54
59
  fps: r = 30,
55
- imageRef: n,
56
- layout: o,
57
- mirrored: i,
58
- sourceKind: a,
59
- videoRef: s
60
+ imageRef: a,
61
+ layout: s,
62
+ mirrored: d,
63
+ sourceKind: u,
64
+ videoRef: c
60
65
  }) => {
61
66
  F(() => {
62
67
  if (!t) {
63
- const b = e.current, f = b == null ? void 0 : b.getContext("2d");
64
- b && f && f.clearRect(0, 0, b.width, b.height);
68
+ const f = e.current, g = f == null ? void 0 : f.getContext("2d");
69
+ f && g && g.clearRect(0, 0, f.width, f.height);
65
70
  return;
66
71
  }
67
- let l = 0, c = 0;
68
- const d = r > 0 ? 1e3 / r : 0, h = (b) => {
69
- if (l = requestAnimationFrame(h), d > 0 && b - c < d) return;
70
- c = b;
71
- const f = e.current;
72
- if (!f || !o) return;
73
- if (a === "image") {
74
- const m = n.current;
75
- if (!m || !m.complete || m.naturalWidth <= 0 || m.naturalHeight <= 0)
72
+ let o = 0, p = 0;
73
+ const h = r > 0 ? 1e3 / r : 0, n = (f) => {
74
+ if (o = requestAnimationFrame(n), h > 0 && f - p < h) return;
75
+ p = f;
76
+ const g = e.current;
77
+ if (!g || !s) return;
78
+ if (u === "image") {
79
+ const l = a.current;
80
+ if (!l || !l.complete || l.naturalWidth <= 0 || l.naturalHeight <= 0)
76
81
  return;
77
- N({
78
- canvas: f,
79
- layout: o,
80
- media: m,
81
- mirrored: i
82
+ U({
83
+ canvas: g,
84
+ layout: s,
85
+ media: l,
86
+ mirrored: d
82
87
  });
83
88
  return;
84
89
  }
85
- const w = s.current;
86
- !w || w.readyState < 2 || w.videoWidth <= 0 || w.videoHeight <= 0 || N({
87
- canvas: f,
88
- layout: o,
89
- media: w,
90
- mirrored: i
90
+ const i = c.current;
91
+ !i || i.readyState < 2 || i.videoWidth <= 0 || i.videoHeight <= 0 || U({
92
+ canvas: g,
93
+ layout: s,
94
+ media: i,
95
+ mirrored: d
91
96
  });
92
97
  };
93
- return l = requestAnimationFrame(h), () => {
94
- cancelAnimationFrame(l);
98
+ return o = requestAnimationFrame(n), () => {
99
+ cancelAnimationFrame(o);
95
100
  };
96
- }, [e, t, r, n, o, i, a, s]);
97
- }, Se = ({
101
+ }, [e, t, r, a, s, d, u, c]);
102
+ }, Fe = ({
98
103
  canvasRef: e,
99
104
  imageRef: t,
100
105
  layer: r,
101
- layout: n,
102
- mirrored: o,
103
- sourceKind: i,
104
- videoRef: a
105
- }) => (ne({
106
+ layout: a,
107
+ mirrored: s,
108
+ onCaptureTarget: d,
109
+ sourceKind: u,
110
+ videoRef: c
111
+ }) => (le({
106
112
  canvasRef: e,
107
113
  imageRef: t,
108
- layout: n,
109
- mirrored: o,
110
- sourceKind: i,
111
- videoRef: a
112
- }), /* @__PURE__ */ g(W, { config: r, children: /* @__PURE__ */ g(
114
+ layout: a,
115
+ mirrored: s,
116
+ sourceKind: u,
117
+ videoRef: c
118
+ }), F(() => {
119
+ const o = e.current;
120
+ if (o)
121
+ return d == null || d(o), () => d == null ? void 0 : d(void 0);
122
+ }, [e, d]), /* @__PURE__ */ S(X, { config: r, children: /* @__PURE__ */ S(
113
123
  "canvas",
114
124
  {
115
125
  ref: e,
@@ -122,41 +132,41 @@ const W = ({
122
132
  background: "#000"
123
133
  }
124
134
  }
125
- ) })), lt = ({
135
+ ) })), Rt = ({
126
136
  canvasRef: e,
127
137
  controlInsetTop: t,
128
138
  debugVisible: r,
129
- fps: n = 15,
130
- imageRef: o,
131
- layer: i,
132
- layout: a,
133
- mirrored: s,
134
- sourceKind: l,
135
- videoRef: c,
136
- viewportSize: d
139
+ fps: a = 15,
140
+ imageRef: s,
141
+ layer: d,
142
+ layout: u,
143
+ mirrored: c,
144
+ sourceKind: o,
145
+ videoRef: p,
146
+ viewportSize: h
137
147
  }) => {
138
- ne({
148
+ le({
139
149
  canvasRef: e,
140
150
  enabled: r,
141
- fps: n,
142
- imageRef: o,
143
- layout: a,
144
- mirrored: s,
145
- sourceKind: l,
146
- videoRef: c
151
+ fps: a,
152
+ imageRef: s,
153
+ layout: u,
154
+ mirrored: c,
155
+ sourceKind: o,
156
+ videoRef: p
147
157
  });
148
- const h = Math.min(220, Math.max(120, d.width * 0.22)), b = d.width > 0 && d.height > 0 ? d.width / d.height : 1, f = Math.min(d.height - 24, Math.max(t ?? 16, 16));
149
- return /* @__PURE__ */ g(W, { config: i, children: /* @__PURE__ */ g(
158
+ const n = Math.min(220, Math.max(120, h.width * 0.22)), f = h.width > 0 && h.height > 0 ? h.width / h.height : 1, g = Math.min(h.height - 24, Math.max(t ?? 16, 16));
159
+ return /* @__PURE__ */ S(X, { config: d, children: /* @__PURE__ */ S(
150
160
  "canvas",
151
161
  {
152
162
  ref: e,
153
163
  style: {
154
164
  position: "absolute",
155
165
  left: 16,
156
- top: f,
157
- width: r ? h : 1,
166
+ top: g,
167
+ width: r ? n : 1,
158
168
  height: r ? "auto" : 1,
159
- aspectRatio: `${b}`,
169
+ aspectRatio: `${f}`,
160
170
  opacity: r ? 0.85 : 0,
161
171
  borderRadius: 10,
162
172
  border: r ? "1px solid rgba(255,255,255,0.16)" : "none",
@@ -166,37 +176,37 @@ const W = ({
166
176
  }
167
177
  }
168
178
  ) });
169
- }, Re = {
179
+ }, Oe = {
170
180
  audio: !1,
171
181
  video: {
172
182
  facingMode: "user",
173
183
  frameRate: { ideal: 30, max: 60 }
174
184
  }
175
- }, Ee = {
185
+ }, De = {
176
186
  name: "viewport-live",
177
187
  clearColor: "#000000",
178
188
  pointerEvents: "none",
179
189
  zIndex: 0
180
- }, Ie = {
190
+ }, ke = {
181
191
  name: "viewport-ui",
182
192
  clearColor: "transparent",
183
193
  pointerEvents: "auto",
184
194
  zIndex: 5
185
- }, Me = {
195
+ }, Be = {
186
196
  name: "viewport-scene",
187
197
  clearColor: "transparent",
188
198
  pointerEvents: "auto",
189
199
  zIndex: 1
190
- }, D = {
200
+ }, B = {
191
201
  webcam: { icon: "◉", label: "Webcam" },
192
202
  image: { icon: "▣", label: "Images" },
193
203
  video: { icon: "▶", label: "Videos" }
194
- }, Te = ({
204
+ }, Le = ({
195
205
  imageRef: e,
196
206
  selectedSource: t,
197
207
  videoRef: r
198
- }) => /* @__PURE__ */ z(P, { children: [
199
- /* @__PURE__ */ g(
208
+ }) => /* @__PURE__ */ k(W, { children: [
209
+ /* @__PURE__ */ S(
200
210
  "video",
201
211
  {
202
212
  ref: r,
@@ -209,7 +219,7 @@ const W = ({
209
219
  }
210
220
  }
211
221
  ),
212
- /* @__PURE__ */ g(
222
+ /* @__PURE__ */ S(
213
223
  "img",
214
224
  {
215
225
  ref: e,
@@ -223,13 +233,13 @@ const W = ({
223
233
  }
224
234
  }
225
235
  )
226
- ] }), J = ({
236
+ ] }), te = ({
227
237
  dock: e,
228
238
  label: t,
229
239
  onChange: r,
230
- options: n,
231
- value: o
232
- }) => /* @__PURE__ */ g(
240
+ options: a,
241
+ value: s
242
+ }) => /* @__PURE__ */ S(
233
243
  "div",
234
244
  {
235
245
  style: {
@@ -246,7 +256,7 @@ const W = ({
246
256
  boxShadow: "0 12px 30px rgba(0,0,0,0.18)",
247
257
  backdropFilter: "blur(10px)"
248
258
  },
249
- children: /* @__PURE__ */ z(
259
+ children: /* @__PURE__ */ k(
250
260
  "label",
251
261
  {
252
262
  style: {
@@ -257,12 +267,12 @@ const W = ({
257
267
  fontWeight: 700
258
268
  },
259
269
  children: [
260
- /* @__PURE__ */ g("span", { children: t }),
261
- /* @__PURE__ */ g(
270
+ /* @__PURE__ */ S("span", { children: t }),
271
+ /* @__PURE__ */ S(
262
272
  "select",
263
273
  {
264
- value: o,
265
- onChange: (i) => r(i.target.value),
274
+ value: s,
275
+ onChange: (d) => r(d.target.value),
266
276
  style: {
267
277
  minWidth: 180,
268
278
  maxWidth: "calc(100vw - 52px)",
@@ -273,31 +283,31 @@ const W = ({
273
283
  color: "#e5eefb",
274
284
  padding: "0 10px"
275
285
  },
276
- children: n.map((i) => /* @__PURE__ */ g("option", { value: i.id, style: { color: "#111827" }, children: i.label }, i.id))
286
+ children: a.map((d) => /* @__PURE__ */ S("option", { value: d.id, style: { color: "#111827" }, children: d.label }, d.id))
277
287
  }
278
288
  )
279
289
  ]
280
290
  }
281
291
  )
282
292
  }
283
- ), Fe = ({
293
+ ), Ne = ({
284
294
  dock: e,
285
295
  imageOptions: t,
286
296
  selectedImageId: r,
287
- selectedSource: n,
288
- selectedVideoId: o,
289
- setSelectedImageId: i,
290
- setSelectedSource: a,
291
- setSelectedVideoId: s,
292
- showMediaControls: l,
293
- videoOptions: c
297
+ selectedSource: a,
298
+ selectedVideoId: s,
299
+ setSelectedImageId: d,
300
+ setSelectedSource: u,
301
+ setSelectedVideoId: c,
302
+ showMediaControls: o,
303
+ videoOptions: p
294
304
  }) => {
295
- const [d, h] = S(!1), b = ["webcam", "image", "video"].filter((f) => f === "image" ? t.length > 0 : f === "video" ? c.length > 0 : !0);
296
- return l ? d ? /* @__PURE__ */ g(
305
+ const [h, n] = T(!1), f = ["webcam", "image", "video"].filter((g) => g === "image" ? t.length > 0 : g === "video" ? p.length > 0 : !0);
306
+ return o ? h ? /* @__PURE__ */ S(
297
307
  "button",
298
308
  {
299
309
  type: "button",
300
- onClick: () => h(!1),
310
+ onClick: () => n(!1),
301
311
  "aria-label": "Open media controls",
302
312
  title: "Open media controls",
303
313
  style: {
@@ -318,8 +328,8 @@ const W = ({
318
328
  },
319
329
  children: "≡"
320
330
  }
321
- ) : /* @__PURE__ */ z(P, { children: [
322
- /* @__PURE__ */ z(
331
+ ) : /* @__PURE__ */ k(W, { children: [
332
+ /* @__PURE__ */ k(
323
333
  "div",
324
334
  {
325
335
  style: {
@@ -334,7 +344,7 @@ const W = ({
334
344
  maxWidth: "calc(100vw - 32px)"
335
345
  },
336
346
  children: [
337
- /* @__PURE__ */ g(
347
+ /* @__PURE__ */ S(
338
348
  "div",
339
349
  {
340
350
  style: {
@@ -349,15 +359,15 @@ const W = ({
349
359
  backdropFilter: "blur(10px)",
350
360
  overflowX: "auto"
351
361
  },
352
- children: b.map((f) => {
353
- const w = f === n;
354
- return /* @__PURE__ */ z(
362
+ children: f.map((g) => {
363
+ const i = g === a;
364
+ return /* @__PURE__ */ k(
355
365
  "button",
356
366
  {
357
367
  type: "button",
358
- onClick: () => a(f),
359
- "aria-pressed": w,
360
- title: D[f].label,
368
+ onClick: () => u(g),
369
+ "aria-pressed": i,
370
+ title: B[g].label,
361
371
  style: {
362
372
  border: "none",
363
373
  borderRadius: 999,
@@ -368,26 +378,26 @@ const W = ({
368
378
  alignItems: "center",
369
379
  justifyContent: "center",
370
380
  gap: 8,
371
- background: w ? "rgba(56, 189, 248, 0.18)" : "rgba(255,255,255,0.04)",
372
- color: w ? "#e0f2fe" : "rgba(229,238,251,0.82)",
381
+ background: i ? "rgba(56, 189, 248, 0.18)" : "rgba(255,255,255,0.04)",
382
+ color: i ? "#e0f2fe" : "rgba(229,238,251,0.82)",
373
383
  cursor: "pointer",
374
384
  flex: "0 0 auto"
375
385
  },
376
386
  children: [
377
- /* @__PURE__ */ g("span", { style: { fontSize: 14, lineHeight: 1 }, children: D[f].icon }),
378
- /* @__PURE__ */ g("span", { style: { fontSize: 12, fontWeight: 700, letterSpacing: "0.01em" }, children: D[f].label })
387
+ /* @__PURE__ */ S("span", { style: { fontSize: 14, lineHeight: 1 }, children: B[g].icon }),
388
+ /* @__PURE__ */ S("span", { style: { fontSize: 12, fontWeight: 700, letterSpacing: "0.01em" }, children: B[g].label })
379
389
  ]
380
390
  },
381
- f
391
+ g
382
392
  );
383
393
  })
384
394
  }
385
395
  ),
386
- /* @__PURE__ */ g(
396
+ /* @__PURE__ */ S(
387
397
  "button",
388
398
  {
389
399
  type: "button",
390
- onClick: () => h(!0),
400
+ onClick: () => n(!0),
391
401
  "aria-label": "Close media controls",
392
402
  title: "Close media controls",
393
403
  style: {
@@ -408,642 +418,643 @@ const W = ({
408
418
  ]
409
419
  }
410
420
  ),
411
- n === "image" && t.length > 0 && /* @__PURE__ */ g(
412
- J,
421
+ a === "image" && t.length > 0 && /* @__PURE__ */ S(
422
+ te,
413
423
  {
414
424
  dock: e,
415
425
  label: "Image Asset",
416
426
  options: t,
417
427
  value: r,
418
- onChange: i
428
+ onChange: d
419
429
  }
420
430
  ),
421
- n === "video" && c.length > 0 && /* @__PURE__ */ g(
422
- J,
431
+ a === "video" && p.length > 0 && /* @__PURE__ */ S(
432
+ te,
423
433
  {
424
434
  dock: e,
425
435
  label: "Video Asset",
426
- options: c,
427
- value: o,
428
- onChange: s
436
+ options: p,
437
+ value: s,
438
+ onChange: c
429
439
  }
430
440
  )
431
441
  ] }) : null;
432
- }, ke = ({
442
+ }, He = ({
433
443
  containerRef: e,
434
444
  displayCanvasRef: t,
435
445
  imageOptions: r,
436
- imageRef: n,
437
- layout: o,
438
- managesOwnMedia: i,
439
- mediaDock: a,
440
- mode: s,
441
- overlayContent: l,
442
- renderOutputs: c,
443
- sceneContent: d,
444
- selectedImageId: h,
445
- selectedSource: b,
446
- selectedVideoId: f,
447
- setSceneRenderOutputs: w,
448
- setSelectedImageId: m,
449
- setSelectedSource: p,
446
+ imageRef: a,
447
+ layout: s,
448
+ managesOwnMedia: d,
449
+ mediaDock: u,
450
+ mode: c,
451
+ overlayContent: o,
452
+ renderOutputs: p,
453
+ sceneContent: h,
454
+ selectedImageId: n,
455
+ selectedSource: f,
456
+ selectedVideoId: g,
457
+ setSceneRenderOutputs: i,
458
+ setSelectedImageId: l,
459
+ setSelectedSource: m,
450
460
  setSelectedVideoId: y,
451
- showMediaControls: T,
452
- style: R,
453
- videoOptions: v,
454
- videoRef: E,
455
- viewportSize: x,
456
- mirrored: u
457
- }) => /* @__PURE__ */ z(
458
- "div",
459
- {
460
- ref: e,
461
- style: {
462
- position: "fixed",
463
- inset: 0,
464
- overflow: "hidden",
465
- background: "#000",
466
- ...R
467
- },
468
- children: [
469
- /* @__PURE__ */ g(Te, { imageRef: n, selectedSource: b, videoRef: E }),
470
- s === "dom" && i && /* @__PURE__ */ g(
471
- Se,
472
- {
473
- canvasRef: t,
474
- imageRef: n,
475
- videoRef: E,
476
- layer: Ee,
477
- layout: o,
478
- mirrored: u,
479
- sourceKind: b === "image" ? "image" : "video"
480
- }
481
- ),
482
- (s === "r3f" || s === "hybrid") && /* @__PURE__ */ g(W, { config: Me, children: /* @__PURE__ */ g(
483
- ve,
484
- {
485
- onRenderOutputs: w,
486
- renderOutputs: {
487
- sceneColor: c.sceneColor || c.finalColor,
488
- sceneDepth: c.sceneDepth
489
- },
490
- renderTargetSize: x,
491
- style: { width: "100%", height: "100%" },
492
- children: d
493
- }
494
- ) }),
495
- /* @__PURE__ */ z(W, { config: Ie, children: [
496
- i && /* @__PURE__ */ g(
461
+ showMediaControls: R,
462
+ style: E,
463
+ videoOptions: _,
464
+ videoRef: I,
465
+ viewportSize: w,
466
+ mirrored: b
467
+ }) => {
468
+ const { session: x } = oe();
469
+ return /* @__PURE__ */ k(
470
+ "div",
471
+ {
472
+ ref: e,
473
+ style: {
474
+ position: "fixed",
475
+ inset: 0,
476
+ overflow: "hidden",
477
+ background: "#000",
478
+ ...E
479
+ },
480
+ children: [
481
+ /* @__PURE__ */ S(Le, { imageRef: a, selectedSource: f, videoRef: I }),
482
+ c === "dom" && d && /* @__PURE__ */ S(
497
483
  Fe,
498
484
  {
499
- dock: a,
500
- imageOptions: r,
501
- selectedImageId: h,
502
- selectedSource: b,
503
- selectedVideoId: f,
504
- setSelectedImageId: m,
505
- setSelectedSource: p,
506
- setSelectedVideoId: y,
507
- showMediaControls: T,
508
- videoOptions: v
485
+ canvasRef: t,
486
+ imageRef: a,
487
+ videoRef: I,
488
+ layer: De,
489
+ layout: s,
490
+ mirrored: b,
491
+ onCaptureTarget: x._setCaptureTarget,
492
+ sourceKind: f === "image" ? "image" : "video"
509
493
  }
510
494
  ),
511
- l
512
- ] })
513
- ]
514
- }
515
- ), Le = 5, ze = 1, Xe = (e, t) => t, De = "brightness(2.2) contrast(1.5) saturate(1.25)", Ve = ({
495
+ (c === "r3f" || c === "hybrid") && /* @__PURE__ */ S(X, { config: Be, children: /* @__PURE__ */ S(
496
+ Ae,
497
+ {
498
+ onRenderOutputs: i,
499
+ renderOutputs: {
500
+ sceneColor: p.sceneColor || p.finalColor,
501
+ sceneDepth: p.sceneDepth
502
+ },
503
+ renderTargetSize: w,
504
+ style: { width: "100%", height: "100%" },
505
+ children: h
506
+ }
507
+ ) }),
508
+ /* @__PURE__ */ k(X, { config: ke, children: [
509
+ d && /* @__PURE__ */ S(
510
+ Ne,
511
+ {
512
+ dock: u,
513
+ imageOptions: r,
514
+ selectedImageId: n,
515
+ selectedSource: f,
516
+ selectedVideoId: g,
517
+ setSelectedImageId: l,
518
+ setSelectedSource: m,
519
+ setSelectedVideoId: y,
520
+ showMediaControls: R,
521
+ videoOptions: _
522
+ }
523
+ ),
524
+ o
525
+ ] })
526
+ ]
527
+ }
528
+ );
529
+ }, Ge = 5, Pe = 1, Xe = (e, t) => t, We = "brightness(2.2) contrast(1.5) saturate(1.25)", ze = ({
516
530
  enabled: e,
517
531
  displayMirrored: t,
518
532
  imageRef: r,
519
- layout: n,
520
- mode: o,
521
- numFaces: i,
522
- selectedSource: a,
523
- sourceStream: s,
524
- videoRef: l
533
+ layout: a,
534
+ mode: s,
535
+ numFaces: d,
536
+ selectedSource: u,
537
+ sourceStream: c,
538
+ videoRef: o
525
539
  }) => {
526
- const { session: c } = ue(), d = L(null), h = L(!1), b = L(document.createElement("canvas")), {
527
- ready: f,
528
- node: w,
529
- error: m
530
- } = he(te.FACE_TRACKER, {
531
- numFaces: i ?? (o === "head-binding" ? ze : Le)
532
- }), [p, y] = S("idle"), [T, R] = S(null), v = e && f && !!w, E = re({
533
- node: v ? w : null,
534
- enabled: v,
535
- selectedSource: a,
536
- onFrame: fe(() => {
537
- R(null), y("ready");
540
+ const { session: p } = oe(), h = D(null), n = D(!1), f = D(document.createElement("canvas")), {
541
+ ready: g,
542
+ node: i,
543
+ error: l
544
+ } = Re(N.FACE_TRACKER, {
545
+ numFaces: d ?? (s === "head-binding" ? Pe : Ge)
546
+ }), [m, y] = T("idle"), [R, E] = T(null), _ = e && g && !!i, I = ie({
547
+ node: _ ? i : null,
548
+ enabled: _,
549
+ selectedSource: u,
550
+ onFrame: _e(() => {
551
+ E(null), y("ready");
538
552
  }, [])
539
553
  });
540
554
  return F(() => {
541
- if (!e || !n) return;
542
- const x = () => {
543
- const C = a === "image" ? r.current : l.current;
544
- if (C) {
545
- if (C instanceof HTMLImageElement) {
546
- if (!C.complete || C.naturalWidth <= 0 || C.naturalHeight <= 0) return;
547
- } else if (C.readyState < 2 || C.videoWidth <= 0 || C.videoHeight <= 0)
555
+ if (!e || !a) return;
556
+ const w = () => {
557
+ const v = u === "image" ? r.current : o.current;
558
+ if (v) {
559
+ if (v instanceof HTMLImageElement) {
560
+ if (!v.complete || v.naturalWidth <= 0 || v.naturalHeight <= 0) return;
561
+ } else if (v.readyState < 2 || v.videoWidth <= 0 || v.videoHeight <= 0)
548
562
  return;
549
- N({
550
- canvas: b.current,
551
- layout: n,
552
- media: C,
563
+ U({
564
+ canvas: f.current,
565
+ layout: a,
566
+ media: v,
553
567
  mirrored: t,
554
- filter: a === "webcam" ? De : void 0
568
+ filter: u === "webcam" ? We : void 0
555
569
  });
556
570
  }
557
571
  };
558
- if (a === "image") {
559
- x();
572
+ if (u === "image") {
573
+ w();
560
574
  return;
561
575
  }
562
- let u = 0;
563
- const I = () => {
564
- u = requestAnimationFrame(I), x();
576
+ let b = 0;
577
+ const x = () => {
578
+ b = requestAnimationFrame(x), w();
565
579
  };
566
- return u = requestAnimationFrame(I), () => cancelAnimationFrame(u);
567
- }, [t, e, r, n, a, l]), F(() => {
568
- var A;
580
+ return b = requestAnimationFrame(x), () => cancelAnimationFrame(b);
581
+ }, [t, e, r, a, u, o]), F(() => {
582
+ var H;
569
583
  if (!e) {
570
- y("idle"), R(null), h.current = !1, d.current = null;
584
+ y("idle"), E(null), n.current = !1, h.current = null;
571
585
  return;
572
586
  }
573
- if (!n) {
587
+ if (!a) {
574
588
  y("initializing");
575
589
  return;
576
590
  }
577
- const x = (s == null ? void 0 : s.id) ?? (((A = l.current) == null ? void 0 : A.srcObject) instanceof MediaStream ? l.current.srcObject.id : "none"), I = a === "webcam" ? `webcam:${x}` : a;
578
- d.current !== I && (h.current = !1, d.current = I);
579
- let C = !1;
591
+ const w = (c == null ? void 0 : c.id) ?? (((H = o.current) == null ? void 0 : H.srcObject) instanceof MediaStream ? o.current.srcObject.id : "none"), x = u === "webcam" ? `webcam:${w}` : u;
592
+ h.current !== x && (n.current = !1, h.current = x);
593
+ let v = !1;
580
594
  return (async () => {
581
595
  try {
582
- if (y("initializing"), h.current || (await c.setFrameSource({
583
- canvas: b.current,
584
- sourceKind: a
585
- }), await c.start(), h.current = !0), C) return;
586
- R(null), y("initializing");
587
- } catch (k) {
588
- if (C) return;
589
- y("error"), R(k instanceof Error ? k.message : "Failed to initialize SDK face tracking");
596
+ y("initializing");
597
+ const M = !n.current;
598
+ if (M && await p.setFrameSource({
599
+ canvas: f.current,
600
+ sourceKind: u
601
+ }), await p._setRenderSize(
602
+ Math.round(a.destination.width),
603
+ Math.round(a.destination.height)
604
+ ), M && (await p.start(), n.current = !0), v) return;
605
+ E(null), y("initializing");
606
+ } catch (M) {
607
+ if (v) return;
608
+ y("error"), E(M instanceof Error ? M.message : "Failed to initialize SDK face tracking");
590
609
  }
591
610
  })(), () => {
592
- C = !0;
611
+ v = !0;
593
612
  };
594
- }, [e, n, a, c, s, l]), F(() => {
595
- !v && e && !m && y("initializing");
596
- }, [v, e, m]), F(() => {
597
- m && (y("error"), R(m.message));
598
- }, [m]), F(() => () => {
599
- h.current = !1, c.stop();
600
- }, [c]), {
613
+ }, [e, a, u, p, c, o]), F(() => {
614
+ !_ && e && !l && y("initializing");
615
+ }, [_, e, l]), F(() => {
616
+ l && (y("error"), E(l.message));
617
+ }, [l]), F(() => () => {
618
+ n.current = !1, p.stop();
619
+ }, [p]), {
601
620
  activeDelegate: "GPU",
602
- faces: E,
603
- status: p,
604
- error: T
621
+ faces: I,
622
+ status: m,
623
+ error: R
605
624
  };
606
- }, Ae = (e, t) => e === "auto" ? t === "webcam" ? "cover" : "contain" : e, Be = ({
625
+ }, Ye = (e, t) => e === "auto" ? t === "webcam" ? "cover" : "contain" : e, Ve = ({
607
626
  imageOptions: e,
608
627
  initialImageId: t,
609
628
  initialSource: r,
610
- initialVideoId: n,
611
- source: o,
612
- videoOptions: i
629
+ initialVideoId: a,
630
+ source: s,
631
+ videoOptions: d
613
632
  }) => {
614
- var l, c, d, h;
615
- const a = (o == null ? void 0 : o.kind) ?? r ?? "webcam";
633
+ var o, p, h, n;
634
+ const u = (s == null ? void 0 : s.kind) ?? r ?? "webcam";
616
635
  return {
617
- selectedSource: a === "image" && e.length === 0 || a === "video" && i.length === 0 ? "webcam" : a,
618
- selectedImageId: (o == null ? void 0 : o.kind) === "image" ? o.assetId ?? ((l = e[0]) == null ? void 0 : l.id) ?? "" : t ?? ((c = e[0]) == null ? void 0 : c.id) ?? "",
619
- selectedVideoId: (o == null ? void 0 : o.kind) === "video" ? o.assetId ?? ((d = i[0]) == null ? void 0 : d.id) ?? "" : n ?? ((h = i[0]) == null ? void 0 : h.id) ?? ""
636
+ selectedSource: u === "image" && e.length === 0 || u === "video" && d.length === 0 ? "webcam" : u,
637
+ selectedImageId: (s == null ? void 0 : s.kind) === "image" ? s.assetId ?? ((o = e[0]) == null ? void 0 : o.id) ?? "" : t ?? ((p = e[0]) == null ? void 0 : p.id) ?? "",
638
+ selectedVideoId: (s == null ? void 0 : s.kind) === "video" ? s.assetId ?? ((h = d[0]) == null ? void 0 : h.id) ?? "" : a ?? ((n = d[0]) == null ? void 0 : n.id) ?? ""
620
639
  };
621
- }, We = (e, t, r) => {
640
+ }, $e = (e, t, r) => {
622
641
  if (e.width <= 0 || e.height <= 0 || t.width <= 0 || t.height <= 0)
623
642
  return null;
624
- const n = r === "contain" ? Math.min(t.width / e.width, t.height / e.height) : Math.max(t.width / e.width, t.height / e.height), o = e.width * n, i = e.height * n;
625
- return {
626
- source: e,
627
- destination: t,
628
- drawWidth: o,
629
- drawHeight: i,
630
- offsetX: (t.width - o) * 0.5,
631
- offsetY: (t.height - i) * 0.5,
632
- scale: n
633
- };
634
- }, Pe = (e) => {
643
+ const a = he(e, t, r);
644
+ return a ? { source: e, destination: t, ...a } : null;
645
+ }, Ue = (e) => {
635
646
  if (!e) return { width: 0, height: 0 };
636
647
  const t = e.getBoundingClientRect();
637
648
  return {
638
649
  width: t.width || e.clientWidth,
639
650
  height: t.height || e.clientHeight
640
651
  };
641
- }, He = (e) => {
642
- const [t, r] = S({ width: 0, height: 0 });
643
- return me(() => {
644
- const n = e.current;
645
- if (!n) return;
646
- let o = 0;
647
- const i = () => {
648
- const c = Pe(n);
652
+ }, qe = (e) => {
653
+ const [t, r] = T({ width: 0, height: 0 });
654
+ return Ee(() => {
655
+ const a = e.current;
656
+ if (!a) return;
657
+ let s = 0;
658
+ const d = () => {
659
+ const p = Ue(a);
649
660
  r(
650
- (d) => d.width === c.width && d.height === c.height ? d : c
661
+ (h) => h.width === p.width && h.height === p.height ? h : p
651
662
  );
652
- }, a = () => {
653
- i(), o && cancelAnimationFrame(o), o = requestAnimationFrame(i);
663
+ }, u = () => {
664
+ d(), s && cancelAnimationFrame(s), s = requestAnimationFrame(d);
654
665
  };
655
- a();
656
- const s = new ResizeObserver(a);
657
- s.observe(n);
658
- const l = window.visualViewport;
659
- return window.addEventListener("resize", a), window.addEventListener("orientationchange", a), l == null || l.addEventListener("resize", a), l == null || l.addEventListener("scroll", a), () => {
660
- o && cancelAnimationFrame(o), s.disconnect(), window.removeEventListener("resize", a), window.removeEventListener("orientationchange", a), l == null || l.removeEventListener("resize", a), l == null || l.removeEventListener("scroll", a);
666
+ u();
667
+ const c = new ResizeObserver(u);
668
+ c.observe(a);
669
+ const o = window.visualViewport;
670
+ return window.addEventListener("resize", u), window.addEventListener("orientationchange", u), o == null || o.addEventListener("resize", u), o == null || o.addEventListener("scroll", u), () => {
671
+ s && cancelAnimationFrame(s), c.disconnect(), window.removeEventListener("resize", u), window.removeEventListener("orientationchange", u), o == null || o.removeEventListener("resize", u), o == null || o.removeEventListener("scroll", u);
661
672
  };
662
673
  }, [e]), t;
663
- }, _e = ({
674
+ }, Ke = ({
664
675
  enabled: e,
665
676
  selectedSource: t
666
677
  }) => {
667
- const r = pe(te.FACE_TRACKER);
678
+ const r = we(N.FACE_TRACKER);
668
679
  return {
669
- faces: re({ node: r, enabled: e, selectedSource: t }),
680
+ faces: ie({ node: r, enabled: e, selectedSource: t }),
670
681
  trackerStatus: r ? "ready" : "idle"
671
682
  };
672
- }, O = (e) => {
683
+ }, ae = (e) => {
673
684
  e && (e.pause(), e.removeAttribute("src"), e.srcObject = null, e.load());
674
- }, Q = (e) => {
685
+ }, re = (e) => {
675
686
  e && e.removeAttribute("src");
676
- }, $e = ({
687
+ }, je = ({
677
688
  enabled: e,
678
689
  imageAsset: t,
679
690
  selectedSource: r,
680
- videoAsset: n
691
+ videoAsset: a
681
692
  }) => {
682
- const o = L(null), i = L(null), [a, s] = S(null), [l, c] = S({ width: 0, height: 0 }), [d, h] = S("idle"), [b, f] = S(null);
693
+ const s = D(null), d = D(null), [u, c] = T(null), [o, p] = T({ width: 0, height: 0 }), [h, n] = T("idle"), [f, g] = T(null);
683
694
  return F(() => {
684
695
  if (!e) {
685
- O(o.current), Q(i.current), s(null), c({ width: 0, height: 0 }), h("idle"), f(null);
696
+ ae(s.current), re(d.current), c(null), p({ width: 0, height: 0 }), n("idle"), g(null);
686
697
  return;
687
698
  }
688
- let w = !1, m = null;
689
- const p = (x, u) => {
690
- w || (c({ width: x, height: u }), h("ready"), f(null));
699
+ let i = !1, l = null;
700
+ const m = (w, b) => {
701
+ i || (p({ width: w, height: b }), n("ready"), g(null));
691
702
  }, y = () => {
692
- O(o.current), Q(i.current), m == null || m.getTracks().forEach((x) => x.stop()), m = null, s(null);
693
- }, T = async () => {
694
- h("requesting");
695
- const x = await navigator.mediaDevices.getUserMedia(Re);
696
- if (w) {
697
- x.getTracks().forEach((I) => I.stop());
703
+ ae(s.current), re(d.current), l == null || l.getTracks().forEach((w) => w.stop()), l = null, c(null);
704
+ }, R = async () => {
705
+ n("requesting");
706
+ const w = await navigator.mediaDevices.getUserMedia(Oe);
707
+ if (i) {
708
+ w.getTracks().forEach((x) => x.stop());
698
709
  return;
699
710
  }
700
- m = x, s(x);
701
- const u = o.current;
702
- u && (u.srcObject = x, u.muted = !0, u.playsInline = !0, u.autoplay = !0, await u.play(), p(u.videoWidth, u.videoHeight));
703
- }, R = async (x) => {
704
- h("requesting"), s(null);
705
- const u = o.current;
706
- u && (u.src = x, u.muted = !0, u.loop = !0, u.playsInline = !0, u.autoplay = !0, u.crossOrigin = "anonymous", await u.play(), p(u.videoWidth, u.videoHeight));
707
- }, v = async (x) => {
708
- h("requesting"), s(null);
709
- const u = i.current;
710
- u && (await new Promise((I, C) => {
711
- u.onload = () => I(), u.onerror = () => C(new Error("Unable to load image")), u.src = x;
712
- }), p(u.naturalWidth, u.naturalHeight));
711
+ l = w, c(w);
712
+ const b = s.current;
713
+ b && (b.srcObject = w, b.muted = !0, b.playsInline = !0, b.autoplay = !0, await b.play(), m(b.videoWidth, b.videoHeight));
714
+ }, E = async (w) => {
715
+ n("requesting"), c(null);
716
+ const b = s.current;
717
+ b && (b.src = w, b.muted = !0, b.loop = !0, b.playsInline = !0, b.autoplay = !0, b.crossOrigin = "anonymous", await b.play(), m(b.videoWidth, b.videoHeight));
718
+ }, _ = async (w) => {
719
+ n("requesting"), c(null);
720
+ const b = d.current;
721
+ b && (await new Promise((x, v) => {
722
+ b.onload = () => x(), b.onerror = () => v(new Error("Unable to load image")), b.src = w;
723
+ }), m(b.naturalWidth, b.naturalHeight));
713
724
  };
714
725
  return y(), (async () => {
715
726
  try {
716
727
  if (r === "webcam") {
717
- await T();
728
+ await R();
718
729
  return;
719
730
  }
720
731
  if (r === "video") {
721
- if (!(n != null && n.src)) throw new Error("Missing video source");
722
- await R(n.src);
732
+ if (!(a != null && a.src)) throw new Error("Missing video source");
733
+ await E(a.src);
723
734
  return;
724
735
  }
725
736
  if (!(t != null && t.src)) throw new Error("Missing image source");
726
- await v(t.src);
727
- } catch (x) {
728
- if (w) return;
729
- h("error"), f(x instanceof Error ? x.message : `Unable to initialize ${r}`);
737
+ await _(t.src);
738
+ } catch (w) {
739
+ if (i) return;
740
+ n("error"), g(w instanceof Error ? w.message : `Unable to initialize ${r}`);
730
741
  }
731
742
  })(), () => {
732
- w = !0, y();
743
+ i = !0, y();
733
744
  };
734
- }, [e, t, r, n]), {
735
- videoRef: o,
736
- imageRef: i,
737
- stream: a,
738
- mediaSize: l,
739
- status: d,
740
- error: b
745
+ }, [e, t, r, a]), {
746
+ videoRef: s,
747
+ imageRef: d,
748
+ stream: u,
749
+ mediaSize: o,
750
+ status: h,
751
+ error: f
741
752
  };
742
- }, qe = ({
753
+ }, Je = ({
743
754
  enabled: e,
744
755
  imageRef: t,
745
756
  selectedSource: r,
746
- status: n,
747
- videoRef: o
757
+ status: a,
758
+ videoRef: s
748
759
  }) => {
749
- const [i, a] = S(null);
760
+ const [d, u] = T(null);
750
761
  return F(() => {
751
- if (!e || n !== "ready") {
752
- a((c) => (c == null || c.dispose(), null));
762
+ if (!e || a !== "ready") {
763
+ u((p) => (p == null || p.dispose(), null));
753
764
  return;
754
765
  }
755
- const s = r === "image" ? t.current : o.current;
756
- if (!s) return;
757
- const l = r === "image" ? new V.Texture(s) : new V.VideoTexture(s);
758
- return l.colorSpace = V.SRGBColorSpace, l.minFilter = V.LinearFilter, l.magFilter = V.LinearFilter, l.generateMipmaps = !1, l.needsUpdate = !0, a((c) => (c == null || c.dispose(), l)), () => {
759
- l.dispose();
766
+ const c = r === "image" ? t.current : s.current;
767
+ if (!c) return;
768
+ const o = r === "image" ? new L.Texture(c) : new L.VideoTexture(c);
769
+ return o.colorSpace = L.SRGBColorSpace, o.minFilter = L.LinearFilter, o.magFilter = L.LinearFilter, o.generateMipmaps = !1, o.needsUpdate = !0, u((p) => (p == null || p.dispose(), o)), () => {
770
+ o.dispose();
760
771
  };
761
- }, [e, t, r, n, o]), i;
762
- }, Ne = ({
772
+ }, [e, t, r, a, s]), d;
773
+ }, Qe = ({
763
774
  externalTracker: e,
764
775
  imageOptions: t,
765
776
  layout: r,
766
- managesOwnMedia: n,
767
- mediaError: o,
768
- mediaFitMode: i,
769
- mediaSize: a,
770
- mediaStatus: s,
771
- mirrored: l,
772
- selectedImage: c,
773
- selectedImageId: d,
774
- selectedSource: h,
775
- selectedVideo: b,
776
- selectedVideoId: f,
777
- setMirrored: w,
778
- setSelectedImageId: m,
779
- setSelectedSource: p,
777
+ managesOwnMedia: a,
778
+ mediaError: s,
779
+ mediaFitMode: d,
780
+ mediaSize: u,
781
+ mediaStatus: c,
782
+ mirrored: o,
783
+ selectedImage: p,
784
+ selectedImageId: h,
785
+ selectedSource: n,
786
+ selectedVideo: f,
787
+ selectedVideoId: g,
788
+ setMirrored: i,
789
+ setSelectedImageId: l,
790
+ setSelectedSource: m,
780
791
  setSelectedVideoId: y,
781
- setShowMediaControls: T,
782
- showMediaControls: R,
783
- tracker: v,
784
- videoOptions: E,
785
- viewportSize: x
792
+ setShowMediaControls: R,
793
+ showMediaControls: E,
794
+ tracker: _,
795
+ videoOptions: I,
796
+ viewportSize: w
786
797
  }) => {
787
- const u = h === "image" ? `${D.image.label}: ${(c == null ? void 0 : c.label) ?? ""}` : h === "video" ? `${D.video.label}: ${(b == null ? void 0 : b.label) ?? ""}` : D.webcam.label;
798
+ const b = n === "image" ? `${B.image.label}: ${(p == null ? void 0 : p.label) ?? ""}` : n === "video" ? `${B.video.label}: ${(f == null ? void 0 : f.label) ?? ""}` : B.webcam.label;
788
799
  return {
789
- activeDelegate: n ? v.activeDelegate : null,
790
- faces: n ? v.faces : e.faces,
800
+ activeDelegate: a ? _.activeDelegate : null,
801
+ faces: a ? _.faces : e.faces,
791
802
  imageOptions: t,
792
803
  layout: r,
793
- mediaError: o,
794
- mediaFitMode: i,
795
- mediaLabel: u,
796
- mediaStatus: s,
797
- mirrored: l,
798
- selectedImageId: d,
799
- selectedSource: h,
800
- selectedVideoId: f,
801
- setMirrored: w,
802
- setSelectedImageId: m,
803
- setSelectedSource: p,
804
+ mediaError: s,
805
+ mediaFitMode: d,
806
+ mediaLabel: b,
807
+ mediaStatus: c,
808
+ mirrored: o,
809
+ selectedImageId: h,
810
+ selectedSource: n,
811
+ selectedVideoId: g,
812
+ setMirrored: i,
813
+ setSelectedImageId: l,
814
+ setSelectedSource: m,
804
815
  setSelectedVideoId: y,
805
- setShowMediaControls: T,
806
- showMediaControls: R,
807
- trackerError: n ? v.error : null,
808
- trackerStatus: n ? v.status : e.trackerStatus,
809
- videoOptions: E,
810
- viewportSize: x,
811
- mediaSize: a
816
+ setShowMediaControls: R,
817
+ showMediaControls: E,
818
+ trackerError: a ? _.error : null,
819
+ trackerStatus: a ? _.status : e.trackerStatus,
820
+ videoOptions: I,
821
+ viewportSize: w,
822
+ mediaSize: u
812
823
  };
813
- }, Ue = ({
824
+ }, Ze = ({
814
825
  mediaTexture: e,
815
826
  previewMode: t,
816
827
  renderOutputs: r,
817
- sceneRenderOutputs: n
818
- }) => q(
828
+ sceneRenderOutputs: a
829
+ }) => $(
819
830
  () => ({
820
831
  requested: r,
821
832
  previewMode: t,
822
833
  mediaColorTexture: e,
823
- sceneColorTexture: n.sceneColorTexture,
824
- finalColorTexture: r.finalColor ? n.sceneColorTexture : null,
825
- sceneDepthTexture: n.sceneDepthTexture,
834
+ sceneColorTexture: a.sceneColorTexture,
835
+ finalColorTexture: r.finalColor ? a.sceneColorTexture : null,
836
+ sceneDepthTexture: a.sceneDepthTexture,
826
837
  estimatedDepthTexture: null,
827
838
  available: {
828
839
  mediaColor: e !== null,
829
- sceneColor: n.sceneColorTexture !== null,
830
- finalColor: !!(r.finalColor && n.sceneColorTexture),
831
- sceneDepth: n.sceneDepthTexture !== null,
840
+ sceneColor: a.sceneColorTexture !== null,
841
+ finalColor: !!(r.finalColor && a.sceneColorTexture),
842
+ sceneDepth: a.sceneDepthTexture !== null,
832
843
  estimatedDepth: !1
833
844
  }
834
845
  }),
835
- [e, t, r, n]
836
- ), je = ({
846
+ [e, t, r, a]
847
+ ), et = ({
837
848
  fitMode: e,
838
849
  imageOptions: t,
839
850
  initialImageId: r,
840
- initialMirrored: n,
841
- initialSource: o,
842
- initialVideoId: i,
843
- mediaStrategy: a,
844
- previewMode: s,
845
- renderOutputs: l,
846
- showMediaControlsByDefault: c,
847
- source: d,
848
- videoOptions: h
851
+ initialMirrored: a,
852
+ initialSource: s,
853
+ initialVideoId: d,
854
+ mediaStrategy: u,
855
+ previewMode: c,
856
+ renderOutputs: o,
857
+ showMediaControlsByDefault: p,
858
+ source: h,
859
+ videoOptions: n
849
860
  }) => {
850
- const b = L(null), f = L(null), w = He(b), m = q(
851
- () => Be({
861
+ const f = D(null), g = D(null), i = qe(f), l = $(
862
+ () => Ve({
852
863
  imageOptions: t,
853
864
  initialImageId: r,
854
- initialSource: o,
855
- initialVideoId: i,
856
- source: d,
857
- videoOptions: h
865
+ initialSource: s,
866
+ initialVideoId: d,
867
+ source: h,
868
+ videoOptions: n
858
869
  }),
859
- [t, r, o, i, d, h]
860
- ), [p, y] = S(n), [T, R] = S(c), [v, E] = S(
861
- m.selectedSource
862
- ), [x, u] = S(m.selectedImageId), [I, C] = S(m.selectedVideoId), [K, A] = S({
870
+ [t, r, s, d, h, n]
871
+ ), [m, y] = T(a), [R, E] = T(p), [_, I] = T(
872
+ l.selectedSource
873
+ ), [w, b] = T(l.selectedImageId), [x, v] = T(l.selectedVideoId), [J, H] = T({
863
874
  sceneColorTexture: null,
864
875
  sceneDepthTexture: null
865
- }), k = a === "internal";
876
+ }), M = u === "internal";
866
877
  F(() => {
867
- d && (E(m.selectedSource), u(m.selectedImageId), C(m.selectedVideoId));
868
- }, [m, d]);
869
- const G = t.find(($) => $.id === x) ?? t[0], Y = h.find(($) => $.id === I) ?? h[0], M = $e({
870
- enabled: k,
871
- imageAsset: G,
872
- selectedSource: v,
873
- videoAsset: Y
874
- }), H = Ae(e, v), B = q(
875
- () => We(M.mediaSize, w, H),
876
- [M.mediaSize, H, w]
877
- ), oe = qe({
878
- enabled: !!(l.mediaColor || l.finalColor),
879
- imageRef: M.imageRef,
880
- selectedSource: v,
881
- status: M.status,
882
- videoRef: M.videoRef
883
- }), _ = Xe(v, p), ie = Ve({
884
- displayMirrored: _,
885
- enabled: k && M.status === "ready" && B !== null,
886
- imageRef: M.imageRef,
887
- layout: B,
888
- selectedSource: v,
889
- sourceStream: M.stream,
890
- videoRef: M.videoRef
891
- }), ae = _e({
892
- enabled: !k,
893
- selectedSource: v
894
- }), se = Ne({
895
- externalTracker: ae,
878
+ h && (I(l.selectedSource), b(l.selectedImageId), v(l.selectedVideoId));
879
+ }, [l, h]);
880
+ const Q = t.find((V) => V.id === w) ?? t[0], Z = n.find((V) => V.id === x) ?? n[0], A = je({
881
+ enabled: M,
882
+ imageAsset: Q,
883
+ selectedSource: _,
884
+ videoAsset: Z
885
+ }), z = Ye(e, _), G = $(
886
+ () => $e(A.mediaSize, i, z),
887
+ [A.mediaSize, z, i]
888
+ ), ce = Je({
889
+ enabled: !!(o.mediaColor || o.finalColor),
890
+ imageRef: A.imageRef,
891
+ selectedSource: _,
892
+ status: A.status,
893
+ videoRef: A.videoRef
894
+ }), Y = Xe(_, m), ue = ze({
895
+ displayMirrored: Y,
896
+ enabled: M && A.status === "ready" && G !== null,
897
+ imageRef: A.imageRef,
898
+ layout: G,
899
+ selectedSource: _,
900
+ sourceStream: A.stream,
901
+ videoRef: A.videoRef
902
+ }), me = Ke({
903
+ enabled: !M,
904
+ selectedSource: _
905
+ }), pe = Qe({
906
+ externalTracker: me,
896
907
  imageOptions: t,
897
- layout: B,
898
- managesOwnMedia: k,
899
- mediaError: M.error,
900
- mediaFitMode: H,
901
- mediaSize: M.mediaSize,
902
- mediaStatus: M.status,
903
- mirrored: _,
904
- selectedImage: G,
905
- selectedImageId: x,
906
- selectedSource: v,
907
- selectedVideo: Y,
908
- selectedVideoId: I,
908
+ layout: G,
909
+ managesOwnMedia: M,
910
+ mediaError: A.error,
911
+ mediaFitMode: z,
912
+ mediaSize: A.mediaSize,
913
+ mediaStatus: A.status,
914
+ mirrored: Y,
915
+ selectedImage: Q,
916
+ selectedImageId: w,
917
+ selectedSource: _,
918
+ selectedVideo: Z,
919
+ selectedVideoId: x,
909
920
  setMirrored: y,
910
- setSelectedImageId: u,
911
- setSelectedSource: E,
912
- setSelectedVideoId: C,
913
- setShowMediaControls: R,
914
- showMediaControls: T,
915
- tracker: ie,
916
- videoOptions: h,
917
- viewportSize: w
918
- }), le = Ue({
919
- mediaTexture: oe,
920
- previewMode: s,
921
- renderOutputs: l,
922
- sceneRenderOutputs: K
921
+ setSelectedImageId: b,
922
+ setSelectedSource: I,
923
+ setSelectedVideoId: v,
924
+ setShowMediaControls: E,
925
+ showMediaControls: R,
926
+ tracker: ue,
927
+ videoOptions: n,
928
+ viewportSize: i
929
+ }), fe = Ze({
930
+ mediaTexture: ce,
931
+ previewMode: c,
932
+ renderOutputs: o,
933
+ sceneRenderOutputs: J
923
934
  });
924
935
  return {
925
- containerRef: b,
926
- displayCanvasRef: f,
927
- displayMirrored: _,
928
- layout: B,
929
- managesOwnMedia: k,
930
- media: M,
931
- renderOutputState: le,
932
- renderState: se,
933
- selectedImageId: x,
934
- selectedSource: v,
935
- selectedVideoId: I,
936
- setSceneRenderOutputs: A,
937
- setSelectedImageId: u,
938
- setSelectedSource: E,
939
- setSelectedVideoId: C,
940
- showMediaControls: T,
941
- viewportSize: w
936
+ containerRef: f,
937
+ displayCanvasRef: g,
938
+ displayMirrored: Y,
939
+ layout: G,
940
+ managesOwnMedia: M,
941
+ media: A,
942
+ renderOutputState: fe,
943
+ renderState: pe,
944
+ selectedImageId: w,
945
+ selectedSource: _,
946
+ selectedVideoId: x,
947
+ setSceneRenderOutputs: H,
948
+ setSelectedImageId: b,
949
+ setSelectedSource: I,
950
+ setSelectedVideoId: v,
951
+ showMediaControls: R,
952
+ viewportSize: i
942
953
  };
943
- }, U = ({ children: e }) => /* @__PURE__ */ g(P, { children: e });
944
- U.displayName = "XRViewport.Scene";
945
- const j = ({ children: e }) => /* @__PURE__ */ g(P, { children: e });
954
+ }, K = ({ children: e }) => /* @__PURE__ */ S(W, { children: e });
955
+ K.displayName = "XRViewport.Scene";
956
+ const j = ({ children: e }) => /* @__PURE__ */ S(W, { children: e });
946
957
  j.displayName = "XRViewport.Overlay";
947
- const Ke = (e, t) => {
958
+ const tt = (e, t) => {
948
959
  if (e === "dom")
949
960
  return {
950
961
  sceneContent: null,
951
962
  overlayContent: t
952
963
  };
953
- let r = null, n = null;
954
- const o = [];
955
- return ge.forEach(t, (i) => {
956
- var s;
957
- if (!be(i)) {
958
- i != null && o.push(i);
964
+ let r = null, a = null;
965
+ const s = [];
966
+ return ve.forEach(t, (d) => {
967
+ var c;
968
+ if (!Ie(d)) {
969
+ d != null && s.push(d);
959
970
  return;
960
971
  }
961
- const a = (s = i.type) == null ? void 0 : s.displayName;
962
- if (a === U.displayName) {
963
- r = i.props.children;
972
+ const u = (c = d.type) == null ? void 0 : c.displayName;
973
+ if (u === K.displayName) {
974
+ r = d.props.children;
964
975
  return;
965
976
  }
966
- if (a === j.displayName) {
967
- n = i.props.children;
977
+ if (u === j.displayName) {
978
+ a = d.props.children;
968
979
  return;
969
980
  }
970
- o.push(i);
971
- }), !n && o.length > 0 && (n = o), {
981
+ s.push(d);
982
+ }), !a && s.length > 0 && (a = s), {
972
983
  sceneContent: r,
973
- overlayContent: n
984
+ overlayContent: a
974
985
  };
975
- }, Z = (e, t) => typeof e == "function" ? e(t) : e;
976
- function Ge(e) {
977
- return e.Scene = U, e.Overlay = j, e;
986
+ }, se = (e, t) => typeof e == "function" ? e(t) : e;
987
+ function at(e) {
988
+ return e.Scene = K, e.Overlay = j, e;
978
989
  }
979
- const ct = Ge(({
990
+ const wt = at(({
980
991
  children: e,
981
992
  fitMode: t = "auto",
982
993
  imageOptions: r = [],
983
- initialImageId: n,
984
- initialMirrored: o = !0,
985
- initialSource: i = "webcam",
986
- initialVideoId: a,
987
- mediaStrategy: s = "internal",
988
- mediaDock: l = "bottom-left",
989
- mode: c = "dom",
990
- previewMode: d = "finalColor",
991
- renderOutputs: h = {},
992
- showMediaControlsByDefault: b = !0,
993
- source: f,
994
- style: w,
995
- videoOptions: m = []
994
+ initialImageId: a,
995
+ initialMirrored: s = !0,
996
+ initialSource: d = "webcam",
997
+ initialVideoId: u,
998
+ mediaStrategy: c = "internal",
999
+ mediaDock: o = "bottom-left",
1000
+ mode: p = "dom",
1001
+ previewMode: h = "finalColor",
1002
+ renderOutputs: n = {},
1003
+ showMediaControlsByDefault: f = !0,
1004
+ source: g,
1005
+ style: i,
1006
+ videoOptions: l = []
996
1007
  }) => {
997
- const p = je({
1008
+ const m = et({
998
1009
  fitMode: t,
999
1010
  imageOptions: r,
1000
- initialImageId: n,
1001
- initialMirrored: o,
1002
- initialSource: i,
1003
- initialVideoId: a,
1004
- mediaStrategy: s,
1005
- previewMode: d,
1006
- renderOutputs: h,
1007
- showMediaControlsByDefault: b,
1008
- source: f,
1009
- videoOptions: m
1010
- }), y = typeof e == "function" ? e(p.renderState) : e, { sceneContent: T, overlayContent: R } = Ke(c, y), v = Z(
1011
- T,
1012
- p.renderState
1013
- ), E = Z(
1011
+ initialImageId: a,
1012
+ initialMirrored: s,
1013
+ initialSource: d,
1014
+ initialVideoId: u,
1015
+ mediaStrategy: c,
1016
+ previewMode: h,
1017
+ renderOutputs: n,
1018
+ showMediaControlsByDefault: f,
1019
+ source: g,
1020
+ videoOptions: l
1021
+ }), y = typeof e == "function" ? e(m.renderState) : e, { sceneContent: R, overlayContent: E } = tt(p, y), _ = se(
1014
1022
  R,
1015
- p.renderState
1023
+ m.renderState
1024
+ ), I = se(
1025
+ E,
1026
+ m.renderState
1016
1027
  );
1017
- return /* @__PURE__ */ g(ye.Provider, { value: p.renderState, children: /* @__PURE__ */ g(Ce.Provider, { value: p.renderOutputState, children: /* @__PURE__ */ g(
1018
- ke,
1028
+ return /* @__PURE__ */ S(Ce.Provider, { value: m.renderState, children: /* @__PURE__ */ S(Me.Provider, { value: m.renderOutputState, children: /* @__PURE__ */ S(
1029
+ He,
1019
1030
  {
1020
- containerRef: p.containerRef,
1021
- displayCanvasRef: p.displayCanvasRef,
1031
+ containerRef: m.containerRef,
1032
+ displayCanvasRef: m.displayCanvasRef,
1022
1033
  imageOptions: r,
1023
- imageRef: p.media.imageRef,
1024
- layout: p.layout,
1025
- managesOwnMedia: p.managesOwnMedia,
1026
- mediaDock: l,
1027
- mirrored: p.displayMirrored,
1028
- mode: c,
1029
- overlayContent: E,
1030
- renderOutputs: h,
1031
- sceneContent: v,
1032
- selectedImageId: p.selectedImageId,
1033
- selectedSource: p.selectedSource,
1034
- selectedVideoId: p.selectedVideoId,
1035
- setSceneRenderOutputs: p.setSceneRenderOutputs,
1036
- setSelectedImageId: p.setSelectedImageId,
1037
- setSelectedSource: p.setSelectedSource,
1038
- setSelectedVideoId: p.setSelectedVideoId,
1039
- showMediaControls: p.showMediaControls,
1040
- style: w,
1041
- videoOptions: m,
1042
- videoRef: p.media.videoRef,
1043
- viewportSize: p.viewportSize
1034
+ imageRef: m.media.imageRef,
1035
+ layout: m.layout,
1036
+ managesOwnMedia: m.managesOwnMedia,
1037
+ mediaDock: o,
1038
+ mirrored: m.displayMirrored,
1039
+ mode: p,
1040
+ overlayContent: I,
1041
+ renderOutputs: n,
1042
+ sceneContent: _,
1043
+ selectedImageId: m.selectedImageId,
1044
+ selectedSource: m.selectedSource,
1045
+ selectedVideoId: m.selectedVideoId,
1046
+ setSceneRenderOutputs: m.setSceneRenderOutputs,
1047
+ setSelectedImageId: m.setSelectedImageId,
1048
+ setSelectedSource: m.setSelectedSource,
1049
+ setSelectedVideoId: m.setSelectedVideoId,
1050
+ showMediaControls: m.showMediaControls,
1051
+ style: i,
1052
+ videoOptions: l,
1053
+ videoRef: m.media.videoRef,
1054
+ viewportSize: m.viewportSize
1044
1055
  }
1045
1056
  ) }) });
1046
- }), Ye = {
1057
+ }), rt = {
1047
1058
  position: "absolute",
1048
1059
  top: -28,
1049
1060
  left: 0,
@@ -1054,13 +1065,13 @@ const ct = Ge(({
1054
1065
  fontWeight: 700,
1055
1066
  padding: "4px 8px",
1056
1067
  whiteSpace: "nowrap"
1057
- }, dt = ({
1068
+ }, _t = ({
1058
1069
  boundingBox: e,
1059
1070
  label: t = "face bounding box",
1060
1071
  color: r = "#22c55e",
1061
- style: n,
1062
- labelStyle: o
1063
- }) => /* @__PURE__ */ g(
1072
+ style: a,
1073
+ labelStyle: s
1074
+ }) => /* @__PURE__ */ S(
1064
1075
  "div",
1065
1076
  {
1066
1077
  style: {
@@ -1073,39 +1084,412 @@ const ct = Ge(({
1073
1084
  boxSizing: "border-box",
1074
1085
  pointerEvents: "none",
1075
1086
  zIndex: 20,
1076
- ...n
1087
+ ...a
1077
1088
  },
1078
- children: t !== null && /* @__PURE__ */ g("div", { style: { ...Ye, ...o }, children: t })
1089
+ children: t !== null && /* @__PURE__ */ S("div", { style: { ...rt, ...s }, children: t })
1079
1090
  }
1080
- ), ut = (e) => {
1081
- const [t, r] = S(null);
1091
+ ), q = [
1092
+ {
1093
+ id: "capabilities",
1094
+ title: "Capability report",
1095
+ steps: "Run detectXRCapabilities with model probes.",
1096
+ expect: "Rendering supported (WebGL, OffscreenCanvas, WebAssembly); camera not unsupported; model assets reachable.",
1097
+ mode: "automated",
1098
+ layer: "capability"
1099
+ },
1100
+ {
1101
+ id: "session-start",
1102
+ title: "Session binds and starts",
1103
+ steps: "setMediaSource (webcam or the supplied stream) and start().",
1104
+ expect: "Lifecycle reaches running within the timeout; feed frames advance.",
1105
+ mode: "automated",
1106
+ layer: "lifecycle"
1107
+ },
1108
+ {
1109
+ id: "model-ready",
1110
+ title: "Tracker models initialize",
1111
+ steps: "Acquire each requested model and wait for ready.",
1112
+ expect: "Every model reaches ready; none errors.",
1113
+ mode: "automated",
1114
+ layer: "model"
1115
+ },
1116
+ {
1117
+ id: "model-detects",
1118
+ title: "Trackers run inference",
1119
+ steps: "Sample diagnostics while running.",
1120
+ expect: "Each ready model reports inferences > 0 (detection itself needs a subject in frame).",
1121
+ mode: "automated",
1122
+ layer: "model"
1123
+ },
1124
+ {
1125
+ id: "pause-resume",
1126
+ title: "Pause and resume",
1127
+ steps: "session.pause(), then resume().",
1128
+ expect: "Lifecycle paused then running; feed resumes.",
1129
+ mode: "automated",
1130
+ layer: "lifecycle"
1131
+ },
1132
+ {
1133
+ id: "stop-start",
1134
+ title: "Stop and rebind",
1135
+ steps: "session.stop(), then setMediaSource + start() again.",
1136
+ expect: "Lifecycle stopped then running on the same source.",
1137
+ mode: "automated",
1138
+ layer: "lifecycle"
1139
+ },
1140
+ {
1141
+ id: "performance",
1142
+ title: "Performance sample",
1143
+ steps: "Measure frame rate and tracker inference over the window.",
1144
+ expect: "Frame rate ≥ 20 fps and total inference ≤ 50 ms while running.",
1145
+ mode: "automated",
1146
+ layer: "performance"
1147
+ }
1148
+ ], st = [
1149
+ {
1150
+ id: "permission-prompt",
1151
+ title: "First-visit permission prompt",
1152
+ steps: "Open the app in a fresh profile; tap Allow on the prompt.",
1153
+ expect: "Camera starts; no second prompt on reload.",
1154
+ mode: "manual",
1155
+ layer: "capability"
1156
+ },
1157
+ {
1158
+ id: "permission-blocked",
1159
+ title: "Blocked camera recovers",
1160
+ steps: "Block the camera in site settings, reload, then allow it from the address bar.",
1161
+ expect: "Gate shows blocked with instructions; allowing flips it without a reload.",
1162
+ mode: "manual",
1163
+ layer: "capability"
1164
+ },
1165
+ {
1166
+ id: "rear-camera",
1167
+ title: "Rear camera",
1168
+ steps: "Switch front → rear on /camera.",
1169
+ expect: "Rear feed is straight (text readable); tracking stays aligned.",
1170
+ mode: "manual",
1171
+ layer: "lifecycle"
1172
+ },
1173
+ {
1174
+ id: "orientation",
1175
+ title: "Rotate the device",
1176
+ steps: "Rotate portrait ↔ landscape while tracking a face.",
1177
+ expect: "Anchored content stays on the face; no stretched feed.",
1178
+ mode: "manual",
1179
+ layer: "lifecycle"
1180
+ },
1181
+ {
1182
+ id: "background-foreground",
1183
+ title: "Background and return",
1184
+ steps: "Switch apps / lock the screen for 10 s and come back.",
1185
+ expect: "Feed resumes by itself; no frozen frame; trackers continue.",
1186
+ mode: "manual",
1187
+ layer: "lifecycle"
1188
+ },
1189
+ {
1190
+ id: "camera-interrupted",
1191
+ title: "Camera taken by another app",
1192
+ steps: "Take a call or open the native camera, then return.",
1193
+ expect: "Session reports camera-lost and recovers on retry.",
1194
+ mode: "manual",
1195
+ layer: "lifecycle"
1196
+ },
1197
+ {
1198
+ id: "thermal",
1199
+ title: "Sustained use",
1200
+ steps: "Run face + body tracking for 5 minutes.",
1201
+ expect: "Adaptive quality steps down before the frame rate collapses; no crash.",
1202
+ mode: "manual",
1203
+ layer: "performance"
1204
+ },
1205
+ {
1206
+ id: "low-end",
1207
+ title: "Low-end device",
1208
+ steps: "Run the automated set on the slowest supported device.",
1209
+ expect: "All pass; performance may land on the low tier.",
1210
+ mode: "manual",
1211
+ layer: "performance"
1212
+ }
1213
+ ], Et = (e) => q.find((t) => t.id === e) ?? st.find((t) => t.id === e), C = (e, t) => {
1214
+ const r = e.match(t);
1215
+ return r ? r[1] : "";
1216
+ }, nt = (e) => {
1217
+ const t = /iPhone|iPad|iPod/.test(e) || /Macintosh/.test(e) && /Mobile/.test(e), r = /Android/.test(e);
1218
+ let a = { name: "unknown", version: "" };
1219
+ /Edg\//.test(e) ? a = { name: "Edge", version: C(e, /Edg\/(\d+)/) } : /OPR\//.test(e) ? a = { name: "Opera", version: C(e, /OPR\/(\d+)/) } : /SamsungBrowser\//.test(e) ? a = { name: "Samsung Internet", version: C(e, /SamsungBrowser\/(\d+)/) } : /CriOS\//.test(e) ? a = { name: "Chrome iOS", version: C(e, /CriOS\/(\d+)/) } : /FxiOS\//.test(e) ? a = { name: "Firefox iOS", version: C(e, /FxiOS\/(\d+)/) } : /Firefox\//.test(e) ? a = { name: "Firefox", version: C(e, /Firefox\/(\d+)/) } : /Chrome\//.test(e) ? a = { name: "Chrome", version: C(e, /Chrome\/(\d+)/) } : /Safari\//.test(e) && (a = { name: "Safari", version: C(e, /Version\/(\d+)/) });
1220
+ let s = { name: "unknown", version: "" };
1221
+ return t ? s = { name: "iOS", version: C(e, /OS (\d+[._]\d+)/).replace("_", ".") } : r ? s = { name: "Android", version: C(e, /Android (\d+(?:\.\d+)?)/) } : /Mac OS X/.test(e) ? s = { name: "macOS", version: C(e, /Mac OS X (\d+[._]\d+)/).replace("_", ".") } : /Windows NT/.test(e) ? s = { name: "Windows", version: C(e, /Windows NT (\d+\.\d+)/) } : /Linux/.test(e) && (s = { name: "Linux", version: "" }), { browser: a, os: s, mobile: t || r || /Mobile/.test(e) };
1222
+ }, ot = () => {
1223
+ var a, s;
1224
+ const e = typeof navigator < "u" ? navigator : void 0, t = (e == null ? void 0 : e.userAgent) ?? "", r = nt(t);
1225
+ return {
1226
+ userAgent: t,
1227
+ platform: (e == null ? void 0 : e.platform) ?? "",
1228
+ ...r,
1229
+ screen: typeof window < "u" ? {
1230
+ width: ((a = window.screen) == null ? void 0 : a.width) ?? 0,
1231
+ height: ((s = window.screen) == null ? void 0 : s.height) ?? 0,
1232
+ dpr: window.devicePixelRatio || 1
1233
+ } : { width: 0, height: 0, dpr: 1 },
1234
+ deviceMemoryGb: typeof (e == null ? void 0 : e.deviceMemory) == "number" ? e.deviceMemory : null,
1235
+ hardwareConcurrency: typeof (e == null ? void 0 : e.hardwareConcurrency) == "number" ? e.hardwareConcurrency : null,
1236
+ secureContext: typeof window < "u" ? !!window.isSecureContext : !1,
1237
+ videoCaptureStream: typeof HTMLVideoElement < "u" && ("captureStream" in HTMLVideoElement.prototype || "mozCaptureStream" in HTMLVideoElement.prototype),
1238
+ touch: typeof navigator < "u" && (navigator.maxTouchPoints ?? 0) > 0
1239
+ };
1240
+ }, it = [N.FACE_TRACKER, N.HAND_TRACKER, N.BODY_TRACKER], ne = "__xr_compat__", de = (e) => new Promise((t) => setTimeout(t, e)), O = async (e, t, r = 50) => {
1241
+ const a = Date.now() + t;
1242
+ for (; Date.now() < a; ) {
1243
+ if (e()) return !0;
1244
+ await de(r);
1245
+ }
1246
+ return e();
1247
+ }, lt = (e, t) => e ? /^(camera-|no-camera|webgl-|offscreen-canvas-|wasm-)/.test(e) ? "capability" : /^model-/.test(e) ? "model" : /^(lifecycle|timeout:lifecycle|feed-stalled|start-)/.test(e) ? "lifecycle" : /^(fps|inference|frame)/.test(e) ? "performance" : t : t, dt = (e) => {
1248
+ const t = {
1249
+ pass: 0,
1250
+ fail: 0,
1251
+ skip: 0,
1252
+ causes: { capability: 0, model: 0, lifecycle: 0, performance: 0, unknown: 0 }
1253
+ };
1254
+ for (const r of e)
1255
+ t[r.status] += 1, r.status === "fail" && (t.causes[r.cause ?? "unknown"] += 1);
1256
+ return t;
1257
+ }, ct = (e, t, r = {}) => ({
1258
+ version: 1,
1259
+ sdkVersion: r.sdkVersion ?? "dev",
1260
+ checkedAt: (/* @__PURE__ */ new Date()).toISOString(),
1261
+ label: r.label ?? "",
1262
+ environment: ot(),
1263
+ capabilities: t,
1264
+ results: e,
1265
+ summary: dt(e)
1266
+ }), vt = async (e, t = {}) => {
1267
+ var h;
1268
+ const r = t.timeoutMs ?? 2e4, a = t.models ?? it, s = new Set(
1269
+ t.scenarios ?? q.map((n) => n.id)
1270
+ ), d = [];
1271
+ let u = null, c = !1;
1272
+ const o = (n, f, g, i) => {
1273
+ var m;
1274
+ const l = {
1275
+ id: n,
1276
+ status: i.status,
1277
+ cause: i.status === "fail" ? lt(i.code ?? null, f) : null,
1278
+ // Codes describe failures; a pass carries none.
1279
+ code: i.status === "fail" ? i.code ?? null : null,
1280
+ detail: i.detail,
1281
+ durationMs: Math.round(performance.now() - g)
1282
+ };
1283
+ d.push(l), (m = t.onResult) == null || m.call(t, l);
1284
+ }, p = async () => {
1285
+ t.stream ? await e.setMediaSource({
1286
+ source: ee.STREAM,
1287
+ stream: t.stream,
1288
+ sourceKind: "video"
1289
+ }) : await e.setMediaSource({ source: ee.WEBCAM }), await e.start();
1290
+ };
1291
+ try {
1292
+ for (const n of q) {
1293
+ if (!s.has(n.id)) continue;
1294
+ const f = performance.now();
1295
+ try {
1296
+ const g = n.id;
1297
+ switch (g) {
1298
+ case "capabilities": {
1299
+ u = await be({
1300
+ models: a,
1301
+ timeoutMs: Math.min(r, 8e3)
1302
+ });
1303
+ const i = a.map((m) => ye(u, m)).filter((m) => !m.supported && m.reason).map((m) => m.reason.code), l = Array.from(new Set(i));
1304
+ o(n.id, n.layer, f, {
1305
+ status: l.length ? "fail" : "pass",
1306
+ code: l[0] ?? null,
1307
+ detail: l.length ? `blocked: ${l.join(", ")}` : `webgl${u.rendering.webglVersion}, camera ${u.camera.status}`
1308
+ });
1309
+ break;
1310
+ }
1311
+ case "session-start": {
1312
+ await p();
1313
+ const i = await O(
1314
+ () => e.store.getSnapshot().lifecycle === "running",
1315
+ r
1316
+ ), l = e.store.getSnapshot().feedFrames, m = i && await O(() => e.store.getSnapshot().feedFrames > l, r);
1317
+ c = i && m;
1318
+ const y = e.store.getSnapshot().error;
1319
+ o(n.id, n.layer, f, {
1320
+ status: c ? "pass" : "fail",
1321
+ code: y ? y.reason : i ? "feed-stalled" : "timeout:lifecycle",
1322
+ detail: c ? `running on ${e.store.getSnapshot().sourceKind}` : y ? y.message : i ? "running but no feed frames advanced" : `lifecycle ${e.store.getSnapshot().lifecycle}`
1323
+ });
1324
+ break;
1325
+ }
1326
+ case "model-ready": {
1327
+ if (!c) {
1328
+ o(n.id, n.layer, f, {
1329
+ status: "skip",
1330
+ detail: "session did not start"
1331
+ });
1332
+ break;
1333
+ }
1334
+ const i = [];
1335
+ await Promise.all(
1336
+ a.map(async (l) => {
1337
+ try {
1338
+ await e.registry.acquire(l, ne), await O(
1339
+ () => e.store.getSnapshot().pipeline.has(l),
1340
+ r
1341
+ ) || i.push(`${l}: timeout`);
1342
+ } catch (m) {
1343
+ i.push(`${l}: ${ge(m).code}`);
1344
+ }
1345
+ })
1346
+ ), o(n.id, n.layer, f, {
1347
+ status: i.length ? "fail" : "pass",
1348
+ code: i.length ? i[0].split(": ")[1] === "timeout" ? "model-init-failed" : i[0].split(": ")[1] : null,
1349
+ detail: i.length ? i.join("; ") : `${a.length} models ready`
1350
+ });
1351
+ break;
1352
+ }
1353
+ case "model-detects": {
1354
+ if (!c) {
1355
+ o(n.id, n.layer, f, {
1356
+ status: "skip",
1357
+ detail: "session did not start"
1358
+ });
1359
+ break;
1360
+ }
1361
+ const i = await O(
1362
+ () => P(e, a, null).models.every((E) => E.state !== "ready" || E.inferences > 0),
1363
+ Math.min(r, 8e3)
1364
+ ), l = P(e, a, null), m = l.models.filter((R) => R.state === "ready" && R.inferences === 0).map((R) => R.label), y = l.models.filter((R) => R.state === "error").map((R) => {
1365
+ var E;
1366
+ return `${R.label}: ${((E = R.error) == null ? void 0 : E.message) ?? "error"}`;
1367
+ });
1368
+ o(n.id, n.layer, f, {
1369
+ status: i && !y.length ? "pass" : "fail",
1370
+ code: y.length ? "model-init-failed" : m.length ? "model-idle" : null,
1371
+ detail: y.length ? y.join("; ") : m.length ? `no inference from ${m.join(", ")}` : l.models.map((R) => `${R.label} ${R.inferences} run · ${R.detections ?? "–"} det`).join(", ")
1372
+ });
1373
+ break;
1374
+ }
1375
+ case "pause-resume": {
1376
+ if (!c) {
1377
+ o(n.id, n.layer, f, {
1378
+ status: "skip",
1379
+ detail: "session did not start"
1380
+ });
1381
+ break;
1382
+ }
1383
+ e.pause();
1384
+ const i = e.store.getSnapshot().lifecycle === "paused";
1385
+ await e.resume();
1386
+ const l = await O(
1387
+ () => e.store.getSnapshot().lifecycle === "running",
1388
+ r
1389
+ ), m = e.store.getSnapshot().feedFrames, y = l && await O(() => e.store.getSnapshot().feedFrames > m, r);
1390
+ o(n.id, n.layer, f, {
1391
+ status: i && l && y ? "pass" : "fail",
1392
+ code: i ? l ? "feed-stalled" : "lifecycle:resume" : "lifecycle:pause",
1393
+ detail: i && l && y ? "paused → running, feed advanced" : `paused=${i} resumed=${l} advanced=${y}`
1394
+ });
1395
+ break;
1396
+ }
1397
+ case "stop-start": {
1398
+ if (!c) {
1399
+ o(n.id, n.layer, f, {
1400
+ status: "skip",
1401
+ detail: "session did not start"
1402
+ });
1403
+ break;
1404
+ }
1405
+ await e.stop();
1406
+ const i = e.store.getSnapshot().lifecycle === "stopped";
1407
+ await p();
1408
+ const l = await O(
1409
+ () => e.store.getSnapshot().lifecycle === "running",
1410
+ r
1411
+ );
1412
+ o(n.id, n.layer, f, {
1413
+ status: i && l ? "pass" : "fail",
1414
+ code: i ? "lifecycle:restart" : "lifecycle:stop",
1415
+ detail: i && l ? "stopped → running" : `stopped=${i} running=${l}`
1416
+ });
1417
+ break;
1418
+ }
1419
+ case "performance": {
1420
+ if (!c) {
1421
+ o(n.id, n.layer, f, {
1422
+ status: "skip",
1423
+ detail: "session did not start"
1424
+ });
1425
+ break;
1426
+ }
1427
+ const i = t.performanceWindowMs ?? 3e3;
1428
+ let l = 0, m = 0;
1429
+ const y = () => {
1430
+ l += 1, m = requestAnimationFrame(y);
1431
+ };
1432
+ m = requestAnimationFrame(y);
1433
+ const R = P(e, a, null);
1434
+ await de(i), cancelAnimationFrame(m);
1435
+ const E = P(e, a, {
1436
+ feedFrames: R.session.feedFrames,
1437
+ sampledAt: R.sampledAt
1438
+ }), _ = l * 1e3 / i, I = E.inferenceMsTotal, w = _ >= 20 && I <= 50;
1439
+ o(n.id, n.layer, f, {
1440
+ status: w ? "pass" : "fail",
1441
+ code: _ < 20 ? "fps-low" : I > 50 ? "inference-high" : null,
1442
+ detail: `${_.toFixed(0)} fps · feed ${E.session.feedFps.toFixed(0)} fps · inference ${I.toFixed(1)} ms`
1443
+ });
1444
+ break;
1445
+ }
1446
+ default:
1447
+ o(g, n.layer, f, { status: "skip", detail: "no runner" });
1448
+ }
1449
+ } catch (g) {
1450
+ const i = g instanceof Error ? g.message : String(g), l = (h = e.store.getSnapshot().error) == null ? void 0 : h.reason;
1451
+ o(n.id, n.layer, f, {
1452
+ status: "fail",
1453
+ code: l ? Se(l).code : null,
1454
+ detail: l ? `${i} (${l})` : i
1455
+ });
1456
+ }
1457
+ }
1458
+ } finally {
1459
+ for (const n of a) e.registry.release(n, ne);
1460
+ t.keepSessionRunning || await e.stop().catch(() => {
1461
+ });
1462
+ }
1463
+ return ct(d, u, t);
1464
+ }, It = (e) => {
1465
+ const [t, r] = T(null);
1082
1466
  return F(() => {
1083
- let n = 0;
1084
- const o = () => {
1085
- var l, c;
1086
- n = requestAnimationFrame(o);
1087
- const i = (c = (l = e == null ? void 0 : e.detectionResults) == null ? void 0 : l.faceLandmarks) == null ? void 0 : c[0];
1088
- if (!i || i.length === 0) {
1467
+ let a = 0;
1468
+ const s = () => {
1469
+ var o, p;
1470
+ a = requestAnimationFrame(s);
1471
+ const d = (p = (o = e == null ? void 0 : e.detectionResults) == null ? void 0 : o.faceLandmarks) == null ? void 0 : p[0];
1472
+ if (!d || d.length === 0) {
1089
1473
  r(null);
1090
1474
  return;
1091
1475
  }
1092
- const a = we(i), s = {
1093
- left: a.minX,
1094
- top: a.minY,
1095
- width: a.width,
1096
- height: a.height
1476
+ const u = Te(d), c = {
1477
+ left: u.minX,
1478
+ top: u.minY,
1479
+ width: u.width,
1480
+ height: u.height
1097
1481
  };
1098
- r((d) => d && d.left === s.left && d.top === s.top && d.width === s.width && d.height === s.height ? d : s);
1482
+ r((h) => h && h.left === c.left && h.top === c.top && h.width === c.width && h.height === c.height ? h : c);
1099
1483
  };
1100
- return o(), () => {
1101
- cancelAnimationFrame(n);
1484
+ return s(), () => {
1485
+ cancelAnimationFrame(a);
1102
1486
  };
1103
1487
  }, [e]), t;
1104
- }, ht = ({
1488
+ }, Tt = ({
1105
1489
  background: e = "#000",
1106
1490
  children: t,
1107
1491
  style: r
1108
- }) => /* @__PURE__ */ g(
1492
+ }) => /* @__PURE__ */ S(
1109
1493
  "div",
1110
1494
  {
1111
1495
  style: {
@@ -1117,9 +1501,9 @@ const ct = Ge(({
1117
1501
  },
1118
1502
  children: t
1119
1503
  }
1120
- ), pt = (e) => {
1504
+ ), xt = (e) => {
1121
1505
  const { makeDefault: t = !0, ...r } = e;
1122
- return /* @__PURE__ */ g(
1506
+ return /* @__PURE__ */ S(
1123
1507
  xe,
1124
1508
  {
1125
1509
  position: [0, 0, 40],
@@ -1130,139 +1514,293 @@ const ct = Ge(({
1130
1514
  ...r
1131
1515
  }
1132
1516
  );
1133
- }, ft = ["fill", "contain"], mt = (e, t, r, n, o) => {
1134
- const i = Math.max(1, Math.floor(t)), a = Math.max(0, Math.floor(e)), s = r === "ping-pong" && i > 1 ? i * 2 - 2 : i, l = Math.floor(a / s), c = o > 0 ? l >= o : !n && a >= s, d = c ? s - 1 : a % s;
1135
- return { frame: r === "reverse" ? i - 1 - d % i : r === "random" ? d * 7919 % i : r === "ping-pong" && d >= i ? s - d : d, ended: c, loop: l };
1136
- }, gt = (e, t, r) => {
1137
- const n = Math.max(1, Math.floor(r));
1138
- return Math.floor(Math.max(0, e) * Math.max(0, t)) % n;
1139
- };
1140
- class bt {
1141
- constructor(t, r) {
1142
- X(this, "capabilities");
1143
- X(this, "snapshot");
1144
- X(this, "listeners", /* @__PURE__ */ new Set());
1145
- X(this, "eventListeners", /* @__PURE__ */ new Map());
1146
- this.capabilities = t, this.snapshot = {
1147
- state: "idle",
1148
- frame: 0,
1149
- time: 0,
1150
- playMode: "forward",
1151
- loop: !0,
1152
- loopCount: 0,
1153
- ...r
1154
- };
1155
- }
1156
- play() {
1157
- const t = this.snapshot.state === "paused";
1158
- this.update({ state: "playing" }), this.emit(t ? "Resume" : "PlayBegin");
1159
- }
1160
- pause() {
1161
- this.update({ state: "paused" }), this.emit("Pause");
1162
- }
1163
- restart() {
1164
- this.update({ state: "playing", frame: 0, time: 0 }), this.emit("PlayBegin");
1165
- }
1166
- setPlayMode(t) {
1167
- this.update({ playMode: t });
1168
- }
1169
- setLoop(t, r = 0) {
1170
- this.update({ loop: t, loopCount: r });
1171
- }
1172
- seek(t) {
1173
- this.capabilities.canSeek && this.update({ frame: Math.max(0, Math.floor(t)), time: Math.max(0, t) });
1174
- }
1175
- subscribe(t) {
1176
- return this.listeners.add(t), () => this.listeners.delete(t);
1177
- }
1178
- on(t, r) {
1179
- const n = this.eventListeners.get(t) ?? /* @__PURE__ */ new Set();
1180
- return n.add(r), this.eventListeners.set(t, n), () => this.off(t, r);
1181
- }
1182
- off(t, r) {
1183
- var n;
1184
- (n = this.eventListeners.get(t)) == null || n.delete(r);
1185
- }
1186
- getSnapshot() {
1187
- return this.snapshot;
1188
- }
1189
- dispose() {
1190
- this.listeners.clear(), this.eventListeners.clear(), this.snapshot = { ...this.snapshot, state: "idle" };
1191
- }
1192
- emit(t) {
1193
- var r;
1194
- (r = this.eventListeners.get(t)) == null || r.forEach((n) => n({ type: t, snapshot: this.snapshot }));
1195
- }
1196
- update(t) {
1197
- this.snapshot = { ...this.snapshot, ...t }, this.listeners.forEach((r) => r(this.snapshot));
1198
- }
1199
- }
1200
- function wt(e) {
1201
- return async (t, r) => {
1202
- const n = e.find((o) => o.canResolve(t));
1203
- if (!n) throw new Je("No texture provider matched source", t);
1204
- return Oe(n.resolve.bind(n), t, r);
1205
- };
1206
- }
1207
- class Je extends Error {
1208
- constructor(r, n) {
1209
- super(r);
1210
- X(this, "source");
1211
- this.name = "TextureSourceLoadError", this.source = n;
1212
- }
1213
- }
1214
- function ee(e) {
1215
- if (e.aborted)
1216
- throw new DOMException("Texture source load aborted", "AbortError");
1217
- }
1218
- async function Oe(e, t, r) {
1219
- ee(r);
1220
- const n = await e(t, r);
1221
- return r.aborted && (n.dispose(), ee(r)), n;
1222
- }
1223
- function xt(e) {
1224
- e == null || e.dispose();
1225
- }
1517
+ }, At = ["fill", "contain"];
1226
1518
  export {
1227
- bt as BasicAnimatedTextureController,
1228
- dt as BoundingBoxOverlay,
1229
- Ct as HeadTracker,
1230
- pt as PerspectiveCamera,
1231
- Dt as ScreenRectAspectContext,
1232
- ft as TEXTURE_FITS,
1233
- Je as TextureSourceLoadError,
1234
- ht as XRCompositor,
1235
- W as XRLayer,
1236
- Se as XRMediaSurface,
1237
- lt as XRTrackingOverlay,
1238
- ct as XRViewport,
1239
- we as computeLandmarkBounds,
1240
- $t as computeScreenTransform,
1241
- Lt as createFaceInfoTarget,
1242
- wt as createTextureSourceResolver,
1243
- xt as disposeResolvedTextureSource,
1244
- zt as getFaceInfo,
1245
- mt as getPlaybackFrame,
1246
- gt as getSequenceFrame,
1247
- Vt as getThreeBlending,
1248
- At as getThreeDepthFunction,
1249
- Bt as getThreeSide,
1250
- Ht as hasFullUnitUVBounds,
1519
+ Ba as ARM_FIT_DEFAULTS,
1520
+ La as ARM_MASK_DEFAULTS,
1521
+ Na as ArmTracker,
1522
+ Ha as BODY_DEPTH_LAYER,
1523
+ Ga as BODY_DEPTH_RANGE_PAD,
1524
+ Pa as BODY_FLIP_GUARD_DEFAULTS,
1525
+ Ft as BODY_IDENTITY_DEFAULTS,
1526
+ Ot as BODY_JOINT_OTHER_SIDE,
1527
+ Un as BODY_MASK_BONES,
1528
+ qn as BODY_MASK_MAX_PEOPLE,
1529
+ Kn as BODY_MASK_MIN_VISIBILITY,
1530
+ jn as BODY_MASK_SPLIT_DEFAULTS,
1531
+ Xa as BODY_POSE_TRIGGER_DEFAULTS,
1532
+ Wa as BODY_RIG_BONE_REGION,
1533
+ za as BODY_RIG_CHEST_RANGE,
1534
+ Ya as BODY_RIG_CLAVICLE_RANGE,
1535
+ Va as BODY_RIG_EAR_TO_HEAD,
1536
+ $a as BODY_RIG_FOREARM_TWIST_SHARE,
1537
+ Ua as BODY_RIG_HAND_SEEN,
1538
+ qa as BODY_RIG_HEAD_ABOVE_EARS,
1539
+ Ka as BODY_RIG_HEAD_CENTER,
1540
+ ja as BODY_RIG_HEAD_LIMITS,
1541
+ Ja as BODY_RIG_HEAD_RANGE,
1542
+ Qa as BODY_RIG_HINGE_BEND,
1543
+ Za as BODY_RIG_LENGTH_RANGE,
1544
+ er as BODY_RIG_LIMBS,
1545
+ tr as BODY_RIG_LIMB_BONES,
1546
+ ar as BODY_RIG_LIMB_JOINTS,
1547
+ rr as BODY_RIG_NECK_RANGE,
1548
+ sr as BODY_RIG_NECK_SHARE,
1549
+ nr as BODY_RIG_REGIONS,
1550
+ or as BODY_RIG_REGION_JOINTS,
1551
+ ir as BODY_RIG_SEGMENTS,
1552
+ lr as BODY_RIG_SHOULDER_TO_TORSO,
1553
+ fn as BasicAnimatedTextureController,
1554
+ dr as BodyFlipGuard,
1555
+ Dt as BodyIdentity,
1556
+ _t as BoundingBoxOverlay,
1557
+ q as COMPAT_SCENARIOS,
1558
+ cr as DEFAULT_NAIL_FALLBACK,
1559
+ kt as EMPTY_QUALITY_SIGNALS,
1560
+ mo as FACE_REGION_POLYGONS,
1561
+ ur as FOREARM_BULGE_AT,
1562
+ mr as FOREARM_ELBOW_DEPTH_OF_WRIST,
1563
+ pr as FOREARM_ELBOW_WIDTH_OF_WRIST,
1564
+ fr as FOREARM_LENGTH_OF_HAND,
1565
+ hr as HAND_JOINTS,
1566
+ gr as HAND_NAIL_FACING_FADE,
1567
+ br as HAND_NAIL_FINISH_LIGHTING,
1568
+ Mn as HAND_RIG_BONES,
1569
+ yr as HAND_RIG_FOREARM,
1570
+ Fn as HAND_RIG_KNUCKLE_SHIFT,
1571
+ On as HAND_RIG_LENGTH_RANGE,
1572
+ Sr as HAND_RIG_MODEL_MESH,
1573
+ Dn as HAND_RIG_PALM_JOINTS,
1574
+ kn as HAND_RIG_SNAP_PALMS,
1575
+ Rr as HAND_TATTOO_FACING_FADE,
1576
+ wr as HandRigContext,
1577
+ _r as HandRigWrist,
1578
+ Er as HandRigWristContext,
1579
+ vr as HandTouchContext,
1580
+ ia as HeadTracker,
1581
+ po as IRIS_FULL_OPENNESS,
1582
+ fo as IrisLead,
1583
+ st as MANUAL_COMPAT_SCENARIOS,
1584
+ hn as MAX_GIF_BYTES,
1585
+ gn as MAX_GIF_FRAMES,
1586
+ bn as MAX_GIF_PIXELS,
1587
+ ho as MAX_OVERLAY_LABELS,
1588
+ Ir as OscillationTracker,
1589
+ Tr as POSE_JOINTS,
1590
+ xt as PerspectiveCamera,
1591
+ go as SEGMENTATION_OVERLAY_FRAGMENT_SHADER,
1592
+ bo as SEGMENTATION_OVERLAY_VERTEX_SHADER,
1593
+ xr as SKINNED_OCCLUDER_RENDER_ORDER,
1594
+ ko as ScreenRectAspectContext,
1595
+ At as TEXTURE_FITS,
1596
+ yn as TextureSourceLoadError,
1597
+ Ar as TimedSeries,
1598
+ Cr as TouchWorld,
1599
+ Mr as WRIST_FILTER_DEFAULTS,
1600
+ Fr as WRIST_JOINT_LIMITS,
1601
+ Or as WristRotationFilter,
1602
+ Tt as XRCompositor,
1603
+ X as XRLayer,
1604
+ Fe as XRMediaSurface,
1605
+ Rt as XRTrackingOverlay,
1606
+ wt as XRViewport,
1607
+ Bt as XR_MODEL_LABELS,
1608
+ Lt as anatomicalBodyPose,
1609
+ Nt as anatomicalHandedness,
1610
+ Dr as applyBodyRigHeadScale,
1611
+ kr as applyBodyRigLengths,
1612
+ Br as applyBodyRigSolution,
1613
+ Bn as applyHandRigLengths,
1614
+ Ln as applyHandRigSolution,
1615
+ Lr as armQueryOf,
1616
+ Ht as assignHandPoses,
1617
+ Nr as assignNailBlobs,
1618
+ Hr as bindBodyRig,
1619
+ Nn as bindHandRig,
1620
+ Gr as bodyAttachmentFrame,
1621
+ Pr as bodyDepthRange,
1622
+ Jn as bodyMaskDistance,
1623
+ Qn as bodyMaskPerson,
1624
+ Zn as bodyMaskWeights,
1625
+ Xr as bodyPoseToScene,
1626
+ Wr as bodyRigChestScale,
1627
+ zr as bodyRigClipPose,
1628
+ Yr as bodyRigHeadCenter,
1629
+ Vr as bodyRigHeadScale,
1630
+ $r as bodyRigHeadTarget,
1631
+ Ur as bodyRigJointPosition,
1632
+ qr as bodyRigLengthRatios,
1633
+ Kr as bodyRigModelHead,
1634
+ jr as bodyRigSceneScale,
1635
+ Jr as bodyRigShoulderScale,
1636
+ Yn as bodySubjectCount,
1637
+ Qr as bodyTriggerStatesEqual,
1638
+ Gt as bodyWorldLandmarkToJoint,
1639
+ Zr as clampWristBend,
1640
+ Pt as classifyCameraFailure,
1641
+ lt as classifyCompatCause,
1642
+ eo as closestBodies,
1643
+ yo as computeIrisEye,
1644
+ Te as computeLandmarkBounds,
1645
+ So as computeMaskUvTransform,
1646
+ Sn as computeScreenTransform,
1647
+ es as createBodyDepthMaterial,
1648
+ to as createBodyMaskSplitMaterial,
1649
+ ts as createBodyMoveFrame,
1650
+ as as createBodyTrigger,
1651
+ ct as createCompatReport,
1652
+ Aa as createFaceInfoTarget,
1653
+ oo as createGestureDetectorState,
1654
+ rs as createHandNailsMaterial,
1655
+ ss as createHandOccluderMaterial,
1656
+ ns as createHandTattooMaterial,
1657
+ Ro as createIrisEye,
1658
+ wo as createIrisResult,
1659
+ Xt as createQualityState,
1660
+ _o as createSegmentationOverlayMaterial,
1661
+ Eo as createSemanticMaskTexture,
1662
+ os as createSkinnedOccluderMaterial,
1663
+ Rn as createTextureSourceResolver,
1664
+ is as createTouchHand,
1665
+ ot as describeCompatEnvironment,
1666
+ wn as disposeResolvedTextureSource,
1667
+ ls as elbowUpOnScreen,
1668
+ ds as ellipseWidthOnScreen,
1669
+ cs as ensureForearmBone,
1670
+ Wt as fillLandmarkPolygon,
1671
+ zt as fillPolygon,
1672
+ Et as findCompatScenario,
1673
+ us as fingerExtensions,
1674
+ ms as fitWristFrame,
1675
+ ps as forearmDirectionOf,
1676
+ fs as forearmSectionAt,
1677
+ hs as forearmSegmentOf,
1678
+ gs as frameUpOnScreen,
1679
+ io as gestureStatesEqual,
1680
+ Ca as getFaceInfo,
1681
+ _n as getPlaybackFrame,
1682
+ En as getSequenceFrame,
1683
+ Fa as getThreeBlending,
1684
+ Oa as getThreeDepthFunction,
1685
+ Da as getThreeSide,
1686
+ vn as gifTextureSourceProvider,
1687
+ Hn as handAttachmentLocal,
1688
+ bs as handGeometryToRoot,
1689
+ ys as handLengthOf,
1690
+ Ss as handNailCoverage,
1691
+ Rs as handNailDistance,
1692
+ ws as handNailFrame,
1693
+ Gn as handRigRootMatrix,
1694
+ Pn as handRigSnapDistance,
1695
+ _s as handTattooFrame,
1696
+ Es as handTattooMatrix,
1697
+ vs as handTattooUv,
1698
+ Yt as handWorldLandmarkToJoint,
1699
+ mn as hasFullUnitUVBounds,
1700
+ Vt as judgeSample,
1701
+ Is as limitForearmDirection,
1702
+ Ts as limitHeadTurn,
1703
+ $t as lockQuality,
1704
+ Ut as mapDomExceptionToReason,
1705
+ ge as mapModelErrorToReason,
1706
+ xs as measureArm,
1707
+ As as measureArmRaise,
1708
+ Cs as measureFingerPattern,
1709
+ Ms as measureGrab,
1710
+ Fs as measureHandHeight,
1711
+ Os as measureOpenPalm,
1712
+ Ds as measurePinch,
1713
+ ks as measureTPose,
1714
+ Bs as measureThumb,
1715
+ ao as packBodyMaskUniforms,
1716
+ Ls as paintFallbackNail,
1717
+ nt as parseUserAgent,
1718
+ Ns as patchBodyDepthShaders,
1719
+ Hs as patchHandOccluderInflate,
1720
+ Gs as patchOccluderInflate,
1721
+ qt as permissionStateToStatus,
1722
+ vo as rasterizeFaceRegions,
1723
+ Ps as reachBodyRigHead,
1724
+ Xs as reachBodyRigLimb,
1725
+ Kt as readDeviceSignals,
1726
+ Ws as refineNailTip,
1727
+ zs as renderBodyDepth,
1728
+ Ys as resetBodyRig,
1729
+ jt as resetQuality,
1730
+ Io as resolveActiveOverlayLabelIndices,
1731
+ Vn as resolveBody,
1732
+ Vs as resolveBodyMoveLimits,
1733
+ $s as resolveBodyTriggerOptions,
1251
1734
  Xe as resolveCalibrationFaceDisplayMirrored,
1252
- Oe as resolveTextureSource,
1253
- ee as throwIfAborted,
1254
- Ve as useCalibrationFaceTracker,
1255
- ut as useFaceBoundingBox,
1256
- Wt as useScreenSpace,
1257
- St as useTrackerContext,
1258
- Et as useXRCameraTexture,
1259
- ue as useXRContext,
1260
- It as useXRError,
1261
- he as useXRModel,
1262
- pe as useXRModelNode,
1263
- Mt as useXRPipelineSnapshot,
1264
- Tt as useXRReady,
1265
- Ft as useXRRenderSize,
1266
- qt as useXRViewportRenderOutputs,
1267
- Nt as useXRViewportState
1735
+ Jt as resolveInitialTierIndex,
1736
+ To as resolveMaskSize,
1737
+ Qt as resolveNumBodies,
1738
+ xo as resolveOverlayLabelIndices,
1739
+ Zt as resolvePerformanceBudget,
1740
+ ea as resolveQualityTier,
1741
+ In as resolveTextureSource,
1742
+ vt as runCompatChecks,
1743
+ P as sampleXRDiagnostics,
1744
+ Us as screenAngle,
1745
+ Xn as screenChirality,
1746
+ ta as semanticMaskLabelIndex,
1747
+ Se as sessionReasonToFallback,
1748
+ ro as setBodyMaskSplitUniforms,
1749
+ qs as setBodyTriggerOptions,
1750
+ Ks as setHandTattooBlend,
1751
+ aa as setQualityTier,
1752
+ js as settleNailMask,
1753
+ Js as sideJoint,
1754
+ Qs as snapshotBodyTriggerState,
1755
+ lo as snapshotGestureState,
1756
+ Zs as solveBodyRig,
1757
+ Wn as solveHandRig,
1758
+ so as splitBodyMask,
1759
+ en as stepBodyTrigger,
1760
+ co as stepGestureDetector,
1761
+ ra as stepQualityController,
1762
+ dt as summarizeCompatResults,
1763
+ Tn as throwIfAborted,
1764
+ tn as thumbDirection,
1765
+ an as thumbExtension,
1766
+ sa as tierToApply,
1767
+ Ao as updateIrisResult,
1768
+ rn as updatePointerHand,
1769
+ Co as updateSegmentationOverlayMaterial,
1770
+ sn as updateTouchHand,
1771
+ Mo as uploadSemanticMask,
1772
+ nn as useArmMask,
1773
+ ze as useCalibrationFaceTracker,
1774
+ It as useFaceBoundingBox,
1775
+ Bo as useScreenSpace,
1776
+ Fo as useSegmentationOverlayMaterial,
1777
+ Oo as useSemanticMaskTexture,
1778
+ on as useSkinnedOccluder,
1779
+ la as useTrackerContext,
1780
+ ca as useXRCameraDeviceId,
1781
+ ua as useXRCameraFacing,
1782
+ ma as useXRCameraTexture,
1783
+ oe as useXRContext,
1784
+ na as useXRDiagnostics,
1785
+ pa as useXRError,
1786
+ fa as useXRFeedAspect,
1787
+ ha as useXRFeedCrop,
1788
+ ga as useXRLifecycle,
1789
+ ba as useXRMirrored,
1790
+ Re as useXRModel,
1791
+ ya as useXRModelErrors,
1792
+ we as useXRModelNode,
1793
+ Sa as useXROrientation,
1794
+ Ra as useXRPipelineSnapshot,
1795
+ wa as useXRQualityConfig,
1796
+ _a as useXRQualityState,
1797
+ Ea as useXRReady,
1798
+ va as useXRRenderSize,
1799
+ Ia as useXRSessionCameraPermission,
1800
+ Ta as useXRTrackerStatus,
1801
+ xn as useXRViewportRenderOutputs,
1802
+ An as useXRViewportState,
1803
+ ln as worldToFeedUnits,
1804
+ dn as wristBendOf,
1805
+ cn as wristFrameLocal
1268
1806
  };