@vincentt-xr/sdk 2.0.0-alpha.18 → 2.0.0-alpha.19

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.
package/dist/main.js CHANGED
@@ -1,60 +1,60 @@
1
- var ze = Object.defineProperty;
2
- var We = (e, t, r) => t in e ? ze(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
- var P = (e, t, r) => We(e, typeof t != "symbol" ? t + "" : t, r);
4
- import { j as x, J as Be, u as Xe, as as $e, at as He, au as Ke, av as je, aw as Ve, ax as Ze } from "./index-BDxJWWyy.js";
5
- import { b8 as gs, az as ys, b9 as Ss, M as Ms, P as Ts, L as Es, w as bs, ay as Rs, ba as As, b5 as Fs, b6 as Cs, aA as vs, c as xs, z as ks, y as _s, d as ws, k as Ps, aR as Ds, aS as Us, aT as Ns, aU as Ls, n as Is, aV as Os, i as Gs, aB as qs, O as zs, aW as Ws, aC as Bs, aD as Xs, aX as $s, aY as Hs, b3 as Ks, p as js, A as Vs, b7 as Zs, r as Ys, K as Js, a3 as Qs, aI as ea, aZ as ta, aJ as ra, aK as sa, aL as aa, aH as na, aM as oa, aN as ia, aE as ca, aO as la, a_ as ua, b4 as da, aP as ma, a$ as fa, t as pa, aF as ha, aG as ga, b0 as ya, b1 as Sa, aQ as Ma, b2 as Ta } from "./index-BDxJWWyy.js";
6
- import { S as Ye } from "./contexts-Cl-4dUOI.js";
7
- import { X as ba } from "./contexts-Cl-4dUOI.js";
8
- import { S as Aa, T as Fa } from "./TextLabel-fEF1o3wE.js";
9
- import { jsxs as I, jsx as g, Fragment as ae } from "react/jsx-runtime";
10
- import { useRef as b, useMemo as X, useEffect as v, useState as k, Suspense as Je, useCallback as R, forwardRef as Qe, useImperativeHandle as et, useContext as tt, createContext as rt, useId as st, useSyncExternalStore as at } from "react";
11
- import * as ue from "three";
12
- import { MathUtils as nt, Vector2 as ot, Vector3 as it, DoubleSide as te, RepeatWrapping as Te, LinearFilter as Ee } from "three";
13
- import { D as va, H as xa, G as ka, E as _a, J as wa, K as Pa, P as Da, S as Ua, C as Na, I as La, L as Ia, M as Oa, F as Ga, B as qa } from "./index-D5NbXaCn.js";
14
- import { useThree as ct, useFrame as we } from "@react-three/fiber";
15
- import { R as lt } from "./uv-DJU_XfmN.js";
16
- import { c as Pe, b as ut } from "./selectors-J06V0eDb.js";
17
- import { u as dt, a as mt, s as ft, F as pt } from "./drawNormalizedCrop-D606u5-F.js";
18
- import { d as Wa, b as Ba, r as Xa } from "./drawNormalizedCrop-D606u5-F.js";
19
- import { S as ht, c as gt } from "./index-DN_eHnag.js";
20
- import { L as Ha, d as Ka, R as ja, a as Va, e as Za, b as Ya, f as Ja } from "./index-DN_eHnag.js";
21
- import { a as en, b as tn, u as rn } from "./Scenes-BX0bR1j4.js";
22
- import { useTexture as yt } from "@react-three/drei";
23
- import { a as St } from "./context-DTxSQvp4.js";
24
- import { j as re, T as Mt } from "./renderPasses-C0wu5Cwg.js";
25
- import { k as an, D as nn, E as on, M as cn, h as ln, S as un, l as dn, g as mn, n as fn, r as pn } from "./renderPasses-C0wu5Cwg.js";
26
- import { D as be, M as Tt } from "./index-Bn72laBn.js";
27
- import { c as gn, n as yn } from "./index-Bn72laBn.js";
28
- import { M as Mn } from "./index-CbBCl2ZU.js";
29
- import { u as En } from "./useXRCapabilities-DPUOvpdf.js";
30
- import { g as De } from "./cache-Mu-VO_6E.js";
31
- import { D as Rn, X as An, c as Fn, u as Cn } from "./cache-Mu-VO_6E.js";
32
- import { a as Et } from "./segmentation-DccvYBBO.js";
33
- import { d as xn, b as kn, e as _n, f as wn, g as Pn, h as Dn, i as Un } from "./segmentation-DccvYBBO.js";
34
- const Z = (e, t, r, s) => nt.damp(e, t, Math.max(0, r), Math.max(0, s)), Dr = (e, t, r, s, a = new ot()) => a.set(
35
- Z(e.x, t.x, r, s),
36
- Z(e.y, t.y, r, s)
37
- ), Ur = (e, t, r, s, a = new it()) => a.set(
38
- Z(e.x, t.x, r, s),
39
- Z(e.y, t.y, r, s),
40
- Z(e.z, t.z, r, s)
41
- ), bt = "rgba(20,40,110,0.88)", Rt = 24, At = 512;
42
- function Nr({
43
- color: e = bt,
1
+ var Be = Object.defineProperty;
2
+ var $e = (e, t, r) => t in e ? Be(e, t, { enumerable: !0, configurable: !0, writable: !0, value: r }) : e[t] = r;
3
+ var D = (e, t, r) => $e(e, typeof t != "symbol" ? t + "" : t, r);
4
+ import { j as k, J as Xe, u as He, as as Ke, at as je, au as Ve, av as Ze, aw as Ye, ax as Je } from "./index-BDxJWWyy.js";
5
+ import { b8 as Ms, az as Es, b9 as bs, M as Rs, P as As, L as Fs, w as Cs, ay as xs, ba as ks, b5 as _s, b6 as vs, aA as ws, c as Ds, z as Ps, y as Us, d as Ns, k as Ls, aR as Is, aS as Os, aT as Gs, aU as zs, n as qs, aV as Ws, i as Bs, aB as $s, O as Xs, aW as Hs, aC as Ks, aD as js, aX as Vs, aY as Zs, b3 as Ys, p as Js, A as Qs, b7 as ea, r as ta, K as ra, a3 as sa, aI as aa, aZ as na, aJ as oa, aK as ia, aL as ca, aH as la, aM as ua, aN as da, aE as ma, aO as fa, a_ as pa, b4 as ha, aP as ga, a$ as ya, t as Sa, aF as Ta, aG as Ma, b0 as Ea, b1 as ba, aQ as Ra, b2 as Aa } from "./index-BDxJWWyy.js";
6
+ import { S as Qe } from "./contexts-Cl-4dUOI.js";
7
+ import { X as Ca } from "./contexts-Cl-4dUOI.js";
8
+ import { S as ka, T as _a } from "./TextLabel-fEF1o3wE.js";
9
+ import { jsxs as O, jsx as g, Fragment as ne } from "react/jsx-runtime";
10
+ import { useRef as A, useMemo as z, useEffect as x, useState as _, Suspense as et, useCallback as F, forwardRef as tt, useImperativeHandle as rt, useContext as st, createContext as at, useId as nt, useSyncExternalStore as ot } from "react";
11
+ import * as de from "three";
12
+ import { MathUtils as it, Vector2 as ct, Vector3 as lt, DoubleSide as se, RepeatWrapping as Ee, LinearFilter as be } from "three";
13
+ import { D as wa, H as Da, G as Pa, E as Ua, J as Na, K as La, P as Ia, S as Oa, C as Ga, I as za, L as qa, M as Wa, F as Ba, B as $a } from "./index-D5NbXaCn.js";
14
+ import { useThree as ut, useFrame as Pe } from "@react-three/fiber";
15
+ import { R as dt } from "./uv-DJU_XfmN.js";
16
+ import { c as Ue, b as mt } from "./selectors-J06V0eDb.js";
17
+ import { u as ft, a as pt, s as ht, F as gt } from "./drawNormalizedCrop-D606u5-F.js";
18
+ import { d as Ha, b as Ka, r as ja } from "./drawNormalizedCrop-D606u5-F.js";
19
+ import { S as yt, c as St, D as L, L as Tt } from "./index-CM3jkleV.js";
20
+ import { d as Za, R as Ya, a as Ja, e as Qa, b as en, f as tn } from "./index-CM3jkleV.js";
21
+ import { a as sn, b as an, u as nn } from "./Scenes-BX0bR1j4.js";
22
+ import { useTexture as Mt } from "@react-three/drei";
23
+ import { a as Et } from "./context-DTxSQvp4.js";
24
+ import { j as K, T as bt } from "./renderPasses-C0wu5Cwg.js";
25
+ import { k as cn, D as ln, E as un, M as dn, h as mn, S as fn, l as pn, g as hn, n as gn, r as yn } from "./renderPasses-C0wu5Cwg.js";
26
+ import { D as Re, M as Rt } from "./index-Bn72laBn.js";
27
+ import { c as Tn, n as Mn } from "./index-Bn72laBn.js";
28
+ import { M as bn } from "./index-CbBCl2ZU.js";
29
+ import { u as An } from "./useXRCapabilities-DPUOvpdf.js";
30
+ import { g as Ne } from "./cache-Mu-VO_6E.js";
31
+ import { D as Cn, X as xn, c as kn, u as _n } from "./cache-Mu-VO_6E.js";
32
+ import { a as At } from "./segmentation-DccvYBBO.js";
33
+ import { d as wn, b as Dn, e as Pn, f as Un, g as Nn, h as Ln, i as In } from "./segmentation-DccvYBBO.js";
34
+ const J = (e, t, r, s) => it.damp(e, t, Math.max(0, r), Math.max(0, s)), Lr = (e, t, r, s, a = new ct()) => a.set(
35
+ J(e.x, t.x, r, s),
36
+ J(e.y, t.y, r, s)
37
+ ), Ir = (e, t, r, s, a = new lt()) => a.set(
38
+ J(e.x, t.x, r, s),
39
+ J(e.y, t.y, r, s),
40
+ J(e.z, t.z, r, s)
41
+ ), Ft = "rgba(20,40,110,0.88)", Ct = 24, xt = 512;
42
+ function Or({
43
+ color: e = Ft,
44
44
  borderColor: t,
45
45
  borderWidth: r = 0,
46
- borderRadius: s = Rt,
47
- resolution: a = At,
46
+ borderRadius: s = Ct,
47
+ resolution: a = xt,
48
48
  aspect: n = 1,
49
49
  opacity: o = 1,
50
50
  name: c,
51
51
  overlay: i = !0,
52
52
  position: l,
53
- rotation: h,
53
+ rotation: p,
54
54
  scale: d,
55
- visible: m
55
+ visible: f
56
56
  }) {
57
- const u = b(null), f = b(null), S = X(() => Ft({
57
+ const u = A(null), m = A(null), S = z(() => kt({
58
58
  width: Math.round(a * Math.max(n, 0.05)),
59
59
  height: Math.round(a),
60
60
  color: e,
@@ -62,33 +62,33 @@ function Nr({
62
62
  borderWidth: r,
63
63
  borderRadius: s
64
64
  }), [e, t, r, s, a, n]);
65
- v(() => () => {
65
+ x(() => () => {
66
66
  S.dispose();
67
67
  }, [S]);
68
- const T = b(null), p = b(o);
69
- return p.current !== o && (p.current = o, T.current = null, f.current && (f.current.opacity = o)), v(() => {
68
+ const T = A(null), h = A(o);
69
+ return h.current !== o && (h.current = o, T.current = null, m.current && (m.current.opacity = o)), x(() => {
70
70
  const y = u.current;
71
71
  if (y)
72
- return y.userData.setOpacity = (A) => {
73
- T.current = A, f.current && (f.current.opacity = A);
72
+ return y.userData.setOpacity = (E) => {
73
+ T.current = E, m.current && (m.current.opacity = E);
74
74
  }, () => {
75
75
  delete y.userData.setOpacity;
76
76
  };
77
- }, []), /* @__PURE__ */ I(
77
+ }, []), /* @__PURE__ */ O(
78
78
  "mesh",
79
79
  {
80
80
  ref: u,
81
81
  name: c,
82
82
  position: l,
83
- rotation: h,
83
+ rotation: p,
84
84
  scale: d,
85
- visible: m,
85
+ visible: f,
86
86
  children: [
87
87
  /* @__PURE__ */ g("planeGeometry", { args: [1, 1] }),
88
88
  /* @__PURE__ */ g(
89
89
  "meshBasicMaterial",
90
90
  {
91
- ref: f,
91
+ ref: m,
92
92
  map: S,
93
93
  transparent: !0,
94
94
  opacity: o,
@@ -100,7 +100,7 @@ function Nr({
100
100
  }
101
101
  );
102
102
  }
103
- function Ft(e) {
103
+ function kt(e) {
104
104
  const { width: t, height: r, color: s, borderColor: a, borderWidth: n, borderRadius: o } = e, c = typeof OffscreenCanvas < "u" ? new OffscreenCanvas(t, r) : (() => {
105
105
  const d = document.createElement("canvas");
106
106
  return d.width = t, d.height = r, d;
@@ -108,35 +108,35 @@ function Ft(e) {
108
108
  i.clearRect(0, 0, t, r);
109
109
  const l = Math.min(o, Math.min(t, r) / 2);
110
110
  i.beginPath(), i.moveTo(l, 0), i.lineTo(t - l, 0), i.quadraticCurveTo(t, 0, t, l), i.lineTo(t, r - l), i.quadraticCurveTo(t, r, t - l, r), i.lineTo(l, r), i.quadraticCurveTo(0, r, 0, r - l), i.lineTo(0, l), i.quadraticCurveTo(0, 0, l, 0), i.closePath(), i.fillStyle = s, i.fill(), a && n > 0 && (i.lineWidth = n, i.strokeStyle = a, i.stroke());
111
- const h = new ue.CanvasTexture(c);
112
- return h.needsUpdate = !0, h;
111
+ const p = new de.CanvasTexture(c);
112
+ return p.needsUpdate = !0, p;
113
113
  }
114
- const Lr = ({
114
+ const Gr = ({
115
115
  segmentationMask: e,
116
116
  segmentation: t,
117
117
  invert: r = !1,
118
118
  customBackground: s,
119
- renderOrder: a = lt.BACKGROUND
119
+ renderOrder: a = dt.BACKGROUND
120
120
  }) => {
121
- const { camera: n, size: o } = ct(), c = Pe(), i = ut(x.BACKGROUND_SEGMENTATION), l = t ? i == null ? void 0 : i.backgroundSegmentationMask : void 0, h = b(!1);
122
- v(() => {
121
+ const { camera: n, size: o } = ut(), c = Ue(), i = mt(k.BACKGROUND_SEGMENTATION), l = t ? i == null ? void 0 : i.backgroundSegmentationMask : void 0, p = A(!1);
122
+ x(() => {
123
123
  if (!t) {
124
- h.current = !1;
124
+ p.current = !1;
125
125
  return;
126
126
  }
127
- i === null && !h.current && (console.warn(
127
+ i === null && !p.current && (console.warn(
128
128
  `[VideoBackground] segmentation="${t}" set but no matching <Segmentation> component is mounted; rendering unmasked.`
129
- ), h.current = !0);
129
+ ), p.current = !0);
130
130
  }, [t, i]);
131
- const d = t ? l : e, m = X(() => {
131
+ const d = t ? l : e, f = z(() => {
132
132
  if (!n.isPerspectiveCamera)
133
133
  return [10, 10];
134
- const u = n, T = (u.position.z || 5) - -1, p = u.fov * Math.PI / 180, y = 2 * Math.tan(p / 2) * T;
134
+ const u = n, T = (u.position.z || 5) - -1, h = u.fov * Math.PI / 180, y = 2 * Math.tan(h / 2) * T;
135
135
  return [y * (o.width / o.height), y];
136
136
  }, [n, o]);
137
- return c ? /* @__PURE__ */ g("group", { position: [0, 0, -1], children: r ? /* @__PURE__ */ I(ae, { children: [
138
- /* @__PURE__ */ I("mesh", { position: [0, 0, -0.01], renderOrder: a - 1, children: [
139
- /* @__PURE__ */ g("planeGeometry", { args: m }),
137
+ return c ? /* @__PURE__ */ g("group", { position: [0, 0, -1], children: r ? /* @__PURE__ */ O(ne, { children: [
138
+ /* @__PURE__ */ O("mesh", { position: [0, 0, -0.01], renderOrder: a - 1, children: [
139
+ /* @__PURE__ */ g("planeGeometry", { args: f }),
140
140
  /* @__PURE__ */ g(
141
141
  "meshBasicMaterial",
142
142
  {
@@ -144,12 +144,12 @@ const Lr = ({
144
144
  depthTest: !1,
145
145
  depthWrite: !1,
146
146
  toneMapped: !1,
147
- side: te
147
+ side: se
148
148
  }
149
149
  )
150
150
  ] }),
151
- s && d && /* @__PURE__ */ I("mesh", { position: [0, 0, 0], renderOrder: a, children: [
152
- /* @__PURE__ */ g("planeGeometry", { args: m }),
151
+ s && d && /* @__PURE__ */ O("mesh", { position: [0, 0, 0], renderOrder: a, children: [
152
+ /* @__PURE__ */ g("planeGeometry", { args: f }),
153
153
  /* @__PURE__ */ g(
154
154
  "meshBasicMaterial",
155
155
  {
@@ -161,14 +161,14 @@ const Lr = ({
161
161
  depthTest: !1,
162
162
  depthWrite: !1,
163
163
  toneMapped: !1,
164
- side: te
164
+ side: se
165
165
  },
166
166
  "inverted-mask"
167
167
  )
168
168
  ] })
169
- ] }) : /* @__PURE__ */ I(ae, { children: [
170
- s && d && /* @__PURE__ */ I("mesh", { position: [0, 0, -0.01], renderOrder: a - 1, children: [
171
- /* @__PURE__ */ g("planeGeometry", { args: m }),
169
+ ] }) : /* @__PURE__ */ O(ne, { children: [
170
+ s && d && /* @__PURE__ */ O("mesh", { position: [0, 0, -0.01], renderOrder: a - 1, children: [
171
+ /* @__PURE__ */ g("planeGeometry", { args: f }),
172
172
  /* @__PURE__ */ g(
173
173
  "meshBasicMaterial",
174
174
  {
@@ -177,12 +177,12 @@ const Lr = ({
177
177
  depthTest: !1,
178
178
  depthWrite: !1,
179
179
  toneMapped: !1,
180
- side: te
180
+ side: se
181
181
  }
182
182
  )
183
183
  ] }),
184
- /* @__PURE__ */ I("mesh", { position: [0, 0, 0], renderOrder: a, children: [
185
- /* @__PURE__ */ g("planeGeometry", { args: m }),
184
+ /* @__PURE__ */ O("mesh", { position: [0, 0, 0], renderOrder: a, children: [
185
+ /* @__PURE__ */ g("planeGeometry", { args: f }),
186
186
  /* @__PURE__ */ g(
187
187
  "meshBasicMaterial",
188
188
  {
@@ -193,13 +193,13 @@ const Lr = ({
193
193
  depthTest: !1,
194
194
  depthWrite: !1,
195
195
  toneMapped: !1,
196
- side: te
196
+ side: se
197
197
  },
198
198
  d ? "with-mask" : "no-mask"
199
199
  )
200
200
  ] })
201
201
  ] }) }) : null;
202
- }, Ue = ({
202
+ }, Le = ({
203
203
  mask: e,
204
204
  status: t,
205
205
  error: r,
@@ -207,47 +207,47 @@ const Lr = ({
207
207
  fallback: a = "camera",
208
208
  onStatusChange: n,
209
209
  fit: o = "cover",
210
- anchors: c = pt,
210
+ anchors: c = gt,
211
211
  renderOrder: i = 100,
212
212
  visible: l = !0,
213
- maskFeather: h = 4,
213
+ maskFeather: p = 4,
214
214
  maskErode: d = 0.7,
215
- ...m
215
+ ...f
216
216
  }) => {
217
- const u = Pe();
218
- if (v(() => {
217
+ const u = Ue();
218
+ if (x(() => {
219
219
  n == null || n(t, r);
220
220
  }, [t, r, n]), !u) return null;
221
- const f = t === "ready" && e;
222
- return !f && !ft(t, a) ? null : /* @__PURE__ */ g(
223
- ht,
221
+ const m = t === "ready" && e;
222
+ return !m && !ht(t, a) ? null : /* @__PURE__ */ g(
223
+ yt,
224
224
  {
225
- ...m,
225
+ ...f,
226
226
  source: { kind: "texture", texture: u },
227
227
  fit: o,
228
228
  anchors: c,
229
229
  renderOrder: i,
230
230
  visible: l,
231
- maskTexture: f ? e : null,
231
+ maskTexture: m ? e : null,
232
232
  maskChannel: "green",
233
233
  maskInvert: s,
234
- maskFeather: h,
234
+ maskFeather: p,
235
235
  maskErode: d
236
236
  }
237
237
  );
238
- }, Ct = ({ active: e = !0, ...t }) => {
239
- const { texture: r, status: s, error: a } = mt(e);
240
- return /* @__PURE__ */ g(Ue, { ...t, mask: r, status: s, error: a });
238
+ }, _t = ({ active: e = !0, ...t }) => {
239
+ const { texture: r, status: s, error: a } = pt(e);
240
+ return /* @__PURE__ */ g(Le, { ...t, mask: r, status: s, error: a });
241
241
  }, vt = ({ bodyId: e, subject: t, numBodies: r, active: s = !0, ...a }) => {
242
- const { texture: n, status: o, error: c } = dt({ bodyId: e, subject: t, numBodies: r, active: s });
243
- return /* @__PURE__ */ g(Ue, { ...a, mask: n, status: o, error: c });
244
- }, Ir = ({ bodyId: e, subject: t, numBodies: r, ...s }) => e !== void 0 || t ? /* @__PURE__ */ g(vt, { ...s, bodyId: e, subject: t, numBodies: r }) : /* @__PURE__ */ g(Ct, { ...s }), ie = 9, ce = 16, Or = ({ children: e }) => {
245
- const [t, r] = k({ width: 0, height: 0 });
246
- return v(() => {
242
+ const { texture: n, status: o, error: c } = ft({ bodyId: e, subject: t, numBodies: r, active: s });
243
+ return /* @__PURE__ */ g(Le, { ...a, mask: n, status: o, error: c });
244
+ }, zr = ({ bodyId: e, subject: t, numBodies: r, ...s }) => e !== void 0 || t ? /* @__PURE__ */ g(vt, { ...s, bodyId: e, subject: t, numBodies: r }) : /* @__PURE__ */ g(_t, { ...s }), ce = 9, le = 16, qr = ({ children: e }) => {
245
+ const [t, r] = _({ width: 0, height: 0 });
246
+ return x(() => {
247
247
  const s = () => {
248
- const a = document.documentElement.clientWidth, n = document.documentElement.clientHeight, o = a / n, c = ie / ce;
248
+ const a = document.documentElement.clientWidth, n = document.documentElement.clientHeight, o = a / n, c = ce / le;
249
249
  let i, l;
250
- o > c ? (l = n, i = l * ie / ce) : (i = a, l = i * ce / ie), r({ width: i, height: l });
250
+ o > c ? (l = n, i = l * ce / le) : (i = a, l = i * le / ce), r({ width: i, height: l });
251
251
  };
252
252
  return s(), window.addEventListener("resize", s), () => window.removeEventListener("resize", s);
253
253
  }, []), /* @__PURE__ */ g(
@@ -264,61 +264,61 @@ const Lr = ({
264
264
  children: /* @__PURE__ */ g("div", { style: { width: t.width, height: t.height, position: "relative" }, children: e })
265
265
  }
266
266
  );
267
- }, Gr = ({ size: e = 0.25, ...t }) => /* @__PURE__ */ g("axesHelper", { args: [e], ...t }), xt = { left: -1, right: 1, top: 1, bottom: -1 }, kt = (e, t, r) => {
267
+ }, Wr = ({ size: e = 0.25, ...t }) => /* @__PURE__ */ g("axesHelper", { args: [e], ...t }), wt = { left: -1, right: 1, top: 1, bottom: -1 }, Dt = (e, t, r) => {
268
268
  const s = e % t, a = Math.floor(e / t);
269
269
  return { x: s / t, y: (r - 1 - a) / r };
270
- }, _t = ({
270
+ }, Pt = ({
271
271
  sheet: e,
272
272
  contentAspect: t,
273
273
  renderOrder: r,
274
274
  name: s
275
275
  }) => {
276
- const a = yt(e.url), n = b(0), o = b(-1), c = St(), [i, l] = t != null ? gt(c, t) : [1, 1];
277
- return we((h, d) => {
278
- a.wrapS = Te, a.wrapT = Te, a.magFilter = Ee, a.minFilter = Ee, a.generateMipmaps = !1, a.repeat.set(1 / e.cols, 1 / e.rows), n.current += d;
279
- const m = Math.floor(n.current * e.fps) % e.frames;
280
- if (m === o.current) return;
281
- o.current = m;
282
- const { x: u, y: f } = kt(m, e.cols, e.rows);
283
- a.offset.set(u, f);
284
- }), /* @__PURE__ */ I("mesh", { name: s, renderOrder: r, scale: [i, l, 1], children: [
276
+ const a = Mt(e.url), n = A(0), o = A(-1), c = Et(), [i, l] = t != null ? St(c, t) : [1, 1];
277
+ return Pe((p, d) => {
278
+ a.wrapS = Ee, a.wrapT = Ee, a.magFilter = be, a.minFilter = be, a.generateMipmaps = !1, a.repeat.set(1 / e.cols, 1 / e.rows), n.current += d;
279
+ const f = Math.floor(n.current * e.fps) % e.frames;
280
+ if (f === o.current) return;
281
+ o.current = f;
282
+ const { x: u, y: m } = Dt(f, e.cols, e.rows);
283
+ a.offset.set(u, m);
284
+ }), /* @__PURE__ */ O("mesh", { name: s, renderOrder: r, scale: [i, l, 1], children: [
285
285
  /* @__PURE__ */ g("planeGeometry", { args: [1, 1] }),
286
286
  /* @__PURE__ */ g("meshBasicMaterial", { map: a, transparent: !0, toneMapped: !1, depthWrite: !1 })
287
287
  ] });
288
- }, qr = ({
288
+ }, Br = ({
289
289
  sheet: e,
290
- anchors: t = xt,
290
+ anchors: t = wt,
291
291
  contentAspect: r,
292
292
  renderOrder: s = 10,
293
293
  name: a = "spriteAnimation"
294
- }) => /* @__PURE__ */ g(Je, { fallback: null, children: /* @__PURE__ */ g(Ye, { anchors: t, children: /* @__PURE__ */ g(_t, { sheet: e, contentAspect: r, renderOrder: s, name: a }) }) }), wt = 64, Pt = 3, Dt = /^[A-Za-z][A-Za-z0-9]{0,39}$/, Ut = /^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, Nt = /^(?:rgb|rgba|hsl|hsla)\([0-9a-z.,%\s/+-]{1,60}\)$/i, Lt = /^-?[0-9]{1,4}(?:\.[0-9]{1,4})?(?:px|em|rem|%)?$/, It = /^[A-Za-z0-9 ,'"_-]{1,120}$/;
295
- function Ot(e) {
296
- return Ut.test(e) || Nt.test(e) || Lt.test(e) || It.test(e);
294
+ }) => /* @__PURE__ */ g(et, { fallback: null, children: /* @__PURE__ */ g(Qe, { anchors: t, children: /* @__PURE__ */ g(Pt, { sheet: e, contentAspect: r, renderOrder: s, name: a }) }) }), Ut = 64, Nt = 3, Lt = /^[A-Za-z][A-Za-z0-9]{0,39}$/, It = /^#(?:[0-9a-fA-F]{3,4}|[0-9a-fA-F]{6}|[0-9a-fA-F]{8})$/, Ot = /^(?:rgb|rgba|hsl|hsla)\([0-9a-z.,%\s/+-]{1,60}\)$/i, Gt = /^-?[0-9]{1,4}(?:\.[0-9]{1,4})?(?:px|em|rem|%)?$/, zt = /^[A-Za-z0-9 ,'"_-]{1,120}$/;
295
+ function qt(e) {
296
+ return It.test(e) || Ot.test(e) || Gt.test(e) || zt.test(e);
297
297
  }
298
- const Re = (e) => e.map((t) => t.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`)).join("-");
299
- function Gt(e) {
298
+ const Ae = (e) => e.map((t) => t.replace(/[A-Z]/g, (r) => `-${r.toLowerCase()}`)).join("-");
299
+ function Wt(e) {
300
300
  const t = {};
301
301
  let r = 0;
302
302
  const s = (a, n) => {
303
303
  for (const o of Object.keys(a)) {
304
- if (r >= wt) return;
305
- if (!Dt.test(o)) continue;
304
+ if (r >= Ut) return;
305
+ if (!Lt.test(o)) continue;
306
306
  const c = a[o], i = [...n, o];
307
- typeof c == "number" ? Number.isFinite(c) && (t[`--vincentt-${Re(i)}`] = String(c), r++) : typeof c == "string" ? Ot(c) && (t[`--vincentt-${Re(i)}`] = c, r++) : c && typeof c == "object" && !Array.isArray(c) && i.length < Pt && s(c, i);
307
+ typeof c == "number" ? Number.isFinite(c) && (t[`--vincentt-${Ae(i)}`] = String(c), r++) : typeof c == "string" ? qt(c) && (t[`--vincentt-${Ae(i)}`] = c, r++) : c && typeof c == "object" && !Array.isArray(c) && i.length < Nt && s(c, i);
308
308
  }
309
309
  };
310
310
  return e && typeof e == "object" && s(e, []), t;
311
311
  }
312
- function zr({ theme: e, className: t, children: r }) {
313
- const s = { display: "contents", ...Gt(e) };
312
+ function $r({ theme: e, className: t, children: r }) {
313
+ const s = { display: "contents", ...Wt(e) };
314
314
  return /* @__PURE__ */ g("div", { className: t, style: s, children: r });
315
315
  }
316
- const le = (e, t) => ({
316
+ const ue = (e, t) => ({
317
317
  x: (t == null ? void 0 : t.x) ?? e.x,
318
318
  y: (t == null ? void 0 : t.y) ?? e.y,
319
319
  z: (t == null ? void 0 : t.z) ?? e.z
320
320
  });
321
- function Wr({
321
+ function Xr({
322
322
  src: e,
323
323
  position: t,
324
324
  rotation: r,
@@ -331,47 +331,47 @@ function Wr({
331
331
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
332
332
  locked: c
333
333
  }) {
334
- const [i, l, h] = [t == null ? void 0 : t.x, t == null ? void 0 : t.y, t == null ? void 0 : t.z], [d, m, u] = [r == null ? void 0 : r.x, r == null ? void 0 : r.y, r == null ? void 0 : r.z], [f, S, T] = [s == null ? void 0 : s.x, s == null ? void 0 : s.y, s == null ? void 0 : s.z], p = X(
334
+ const [i, l, p] = [t == null ? void 0 : t.x, t == null ? void 0 : t.y, t == null ? void 0 : t.z], [d, f, u] = [r == null ? void 0 : r.x, r == null ? void 0 : r.y, r == null ? void 0 : r.z], [m, S, T] = [s == null ? void 0 : s.x, s == null ? void 0 : s.y, s == null ? void 0 : s.z], h = z(
335
335
  () => ({
336
- ...re,
337
- position: le(re.position, { x: i, y: l, z: h }),
338
- rotation: le(re.rotation, { x: d, y: m, z: u }),
339
- scale: le(re.scale, { x: f, y: S, z: T }),
336
+ ...K,
337
+ position: ue(K.position, { x: i, y: l, z: p }),
338
+ rotation: ue(K.rotation, { x: d, y: f, z: u }),
339
+ scale: ue(K.scale, { x: m, y: S, z: T }),
340
340
  visible: a
341
341
  }),
342
- [i, l, h, d, m, u, f, S, T, a]
343
- ), y = X(
342
+ [i, l, p, d, f, u, m, S, T, a]
343
+ ), y = z(
344
344
  () => ({
345
- ...be,
345
+ ...Re,
346
346
  assetUrl: e,
347
- material: { ...be.material, ...n }
347
+ material: { ...Re.material, ...n }
348
348
  }),
349
349
  [e, n]
350
350
  );
351
- return /* @__PURE__ */ g(Mt, { value: p, children: /* @__PURE__ */ g(Tt, { value: y }) });
351
+ return /* @__PURE__ */ g(bt, { value: h, children: /* @__PURE__ */ g(Rt, { value: y }) });
352
352
  }
353
- const qt = (e) => Array.isArray(e) ? e : [e], zt = (e) => {
354
- const [t, r] = k(null);
355
- return v(() => {
353
+ const Bt = (e) => Array.isArray(e) ? e : [e], $t = (e) => {
354
+ const [t, r] = _(null);
355
+ return x(() => {
356
356
  if (!e) return;
357
357
  let s = !0, a = null;
358
- return new ue.TextureLoader().load(
358
+ return new de.TextureLoader().load(
359
359
  e,
360
360
  (n) => {
361
361
  if (a = n, !s) {
362
362
  n.dispose();
363
363
  return;
364
364
  }
365
- n.colorSpace = ue.SRGBColorSpace, n.flipY = !1, r({ url: e, texture: n });
365
+ n.colorSpace = de.SRGBColorSpace, n.flipY = !1, r({ url: e, texture: n });
366
366
  },
367
367
  void 0,
368
- () => console.warn(`${Be.loggerPrefix} Object3D could not load ${e}`)
368
+ () => console.warn(`${Xe.loggerPrefix} Object3D could not load ${e}`)
369
369
  ), () => {
370
370
  s = !1, a == null || a.dispose();
371
371
  };
372
372
  }, [e]), e && (t == null ? void 0 : t.url) === e ? t.texture : null;
373
373
  };
374
- function Br({
374
+ function Hr({
375
375
  colour: e,
376
376
  texture: t,
377
377
  size: r = 1,
@@ -383,25 +383,25 @@ function Br({
383
383
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
384
384
  locked: o
385
385
  }) {
386
- const c = b(null), i = b(/* @__PURE__ */ new Map()), l = zt(t), h = e !== void 0 || l !== null, d = () => {
387
- for (const [m, { original: u, own: f }] of i.current)
388
- m.material = u, f.forEach((S) => S.dispose());
386
+ const c = A(null), i = A(/* @__PURE__ */ new Map()), l = $t(t), p = e !== void 0 || l !== null, d = () => {
387
+ for (const [f, { original: u, own: m }] of i.current)
388
+ f.material = u, m.forEach((S) => S.dispose());
389
389
  i.current.clear();
390
390
  };
391
- return we(() => {
392
- !h || !c.current || c.current.traverse((m) => {
393
- const u = m;
391
+ return Pe(() => {
392
+ !p || !c.current || c.current.traverse((f) => {
393
+ const u = f;
394
394
  if (!u.isMesh || i.current.has(u)) return;
395
- const f = u.material, S = qt(f).map((T) => {
395
+ const m = u.material, S = Bt(m).map((T) => {
396
396
  var y;
397
- const p = T.clone();
398
- return e !== void 0 && ((y = p.color) == null || y.set(e)), l && (p.map = l, p.needsUpdate = !0), p;
397
+ const h = T.clone();
398
+ return e !== void 0 && ((y = h.color) == null || y.set(e)), l && (h.map = l, h.needsUpdate = !0), h;
399
399
  });
400
- u.material = Array.isArray(f) ? S : S[0], i.current.set(u, { original: f, own: S });
400
+ u.material = Array.isArray(m) ? S : S[0], i.current.set(u, { original: m, own: S });
401
401
  });
402
- }), v(() => (d(), d), [e, l]), /* @__PURE__ */ g("group", { ref: c, visible: s, scale: r, children: a });
402
+ }), x(() => (d(), d), [e, l]), /* @__PURE__ */ g("group", { ref: c, visible: s, scale: r, children: a });
403
403
  }
404
- function Xr({
404
+ function Kr({
405
405
  className: e,
406
406
  children: t,
407
407
  // `name` and `locked` are editor metadata; neither changes rendering.
@@ -412,18 +412,18 @@ function Xr({
412
412
  }) {
413
413
  return /* @__PURE__ */ g("div", { className: e, children: t });
414
414
  }
415
- const Wt = 2048;
416
- function Bt(e) {
415
+ const Xt = 2048;
416
+ function Ht(e) {
417
417
  return e <= 32 || e >= 127 && e <= 160 || e === 173 || e === 92 || e === 1564 || e === 6158 || e >= 8192 && e <= 8207 || e >= 8232 && e <= 8238 || e >= 8288 && e <= 8303 || e === 12288 || e === 65279 || e >= 917504 && e <= 917631;
418
418
  }
419
- function Xt(e) {
420
- if (typeof e != "string" || e.length === 0 || e.length > Wt) return;
419
+ function Kt(e) {
420
+ if (typeof e != "string" || e.length === 0 || e.length > Xt) return;
421
421
  for (const s of e)
422
- if (Bt(s.codePointAt(0) ?? 0)) return;
422
+ if (Ht(s.codePointAt(0) ?? 0)) return;
423
423
  const t = e.toLowerCase();
424
424
  return t.startsWith("https://") || t.startsWith("http://") || t.startsWith("mailto:") || t.startsWith("#") || t.startsWith("/") && !t.startsWith("//") ? e : void 0;
425
425
  }
426
- const Ae = {
426
+ const Fe = {
427
427
  display: "inline-block",
428
428
  padding: "0.6em 1.2em",
429
429
  border: "none",
@@ -434,7 +434,7 @@ const Ae = {
434
434
  textDecoration: "none",
435
435
  cursor: "pointer"
436
436
  };
437
- function $r({
437
+ function jr({
438
438
  label: e,
439
439
  link: t,
440
440
  onTap: r,
@@ -449,24 +449,72 @@ function $r({
449
449
  locked: i
450
450
  }) {
451
451
  if (!a) return null;
452
- const l = s ? { ...Ae, background: s } : Ae, h = Xt(t), d = o ?? e;
453
- if (h) {
454
- const m = /^https?:/i.test(h);
452
+ const l = s ? { ...Fe, background: s } : Fe, p = Kt(t), d = o ?? e;
453
+ if (p) {
454
+ const f = /^https?:/i.test(p);
455
455
  return /* @__PURE__ */ g(
456
456
  "a",
457
457
  {
458
- href: h,
458
+ href: p,
459
459
  className: n,
460
460
  style: l,
461
461
  onClick: r,
462
- ...m ? { target: "_blank", rel: "noopener noreferrer" } : {},
462
+ ...f ? { target: "_blank", rel: "noopener noreferrer" } : {},
463
463
  children: d
464
464
  }
465
465
  );
466
466
  }
467
467
  return /* @__PURE__ */ g("button", { type: "button", className: n, style: l, onClick: r, children: d });
468
468
  }
469
- const q = (e) => {
469
+ const Ce = (e, t) => ({
470
+ x: (t == null ? void 0 : t.x) ?? e.x,
471
+ y: (t == null ? void 0 : t.y) ?? e.y,
472
+ z: (t == null ? void 0 : t.z) ?? e.z
473
+ });
474
+ function Vr({
475
+ type: e = L.type,
476
+ color: t = L.color,
477
+ intensity: r = L.intensity,
478
+ enabled: s = L.enabled,
479
+ castShadow: a = !1,
480
+ distance: n = L.distance,
481
+ decay: o = L.decay,
482
+ angle: c = L.angle,
483
+ penumbra: i = L.penumbra,
484
+ position: l,
485
+ rotation: p,
486
+ showHelper: d = L.showHelper,
487
+ // `name` and `locked` are editor metadata; neither changes rendering.
488
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
489
+ name: f,
490
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
491
+ locked: u
492
+ }) {
493
+ const [m, S, T] = [l == null ? void 0 : l.x, l == null ? void 0 : l.y, l == null ? void 0 : l.z], [h, y, E] = [p == null ? void 0 : p.x, p == null ? void 0 : p.y, p == null ? void 0 : p.z], q = z(
494
+ () => ({
495
+ ...K,
496
+ position: Ce(K.position, { x: m, y: S, z: T }),
497
+ rotation: Ce(K.rotation, { x: h, y, z: E })
498
+ }),
499
+ [m, S, T, h, y, E]
500
+ ), b = z(
501
+ () => ({
502
+ enabled: s,
503
+ type: e,
504
+ color: t,
505
+ intensity: r,
506
+ castShadow: a,
507
+ distance: n,
508
+ angle: c,
509
+ penumbra: i,
510
+ decay: o,
511
+ showHelper: d
512
+ }),
513
+ [s, e, t, r, a, n, c, i, o, d]
514
+ );
515
+ return /* @__PURE__ */ g(Tt, { settings: b, transform: q });
516
+ }
517
+ const B = (e) => {
470
518
  switch (e) {
471
519
  case "start":
472
520
  return "starting";
@@ -484,13 +532,13 @@ const q = (e) => {
484
532
  case "clear":
485
533
  return "idle";
486
534
  }
487
- }, $t = [
535
+ }, jt = [
488
536
  "video/mp4",
489
537
  "video/webm;codecs=vp9",
490
538
  "video/webm;codecs=vp8",
491
539
  "video/webm"
492
540
  ];
493
- function Hr(e = {}) {
541
+ function Zr(e = {}) {
494
542
  const {
495
543
  audio: t = !1,
496
544
  mimeType: r,
@@ -501,103 +549,103 @@ function Hr(e = {}) {
501
549
  onRecordingPause: c,
502
550
  onRecordingResume: i,
503
551
  onRecordingStop: l,
504
- onRecordingComplete: h,
552
+ onRecordingComplete: p,
505
553
  onError: d,
506
- passThroughStream: m
507
- } = e, u = b(null), f = b(null), S = b([]), [T, p] = k("idle"), [y, A] = k(null), [$, F] = k(null), w = R(() => {
554
+ passThroughStream: f
555
+ } = e, u = A(null), m = A(null), S = A([]), [T, h] = _("idle"), [y, E] = _(null), [q, b] = _(null), w = F(() => {
508
556
  var C;
509
- const M = [r, ...$t].filter(Boolean);
510
- for (const E of M)
511
- if ((C = MediaRecorder.isTypeSupported) != null && C.call(MediaRecorder, E)) return E;
512
- }, [r]), G = R(
557
+ const M = [r, ...jt].filter(Boolean);
558
+ for (const R of M)
559
+ if ((C = MediaRecorder.isTypeSupported) != null && C.call(MediaRecorder, R)) return R;
560
+ }, [r]), W = F(
513
561
  async (M) => {
514
562
  const C = new MediaStream();
515
- if (M.getTracks().forEach((E) => C.addTrack(E)), t) {
516
- let E;
563
+ if (M.getTracks().forEach((R) => C.addTrack(R)), t) {
564
+ let R;
517
565
  if (t instanceof MediaStream)
518
- E = t;
566
+ R = t;
519
567
  else {
520
- const _ = typeof t == "object" ? { audio: t } : { audio: !0, video: !1 };
521
- E = await navigator.mediaDevices.getUserMedia(_);
568
+ const v = typeof t == "object" ? { audio: t } : { audio: !0, video: !1 };
569
+ R = await navigator.mediaDevices.getUserMedia(v);
522
570
  }
523
- E.getAudioTracks().forEach((_) => C.addTrack(_));
571
+ R.getAudioTracks().forEach((v) => C.addTrack(v));
524
572
  }
525
573
  if (!C.getTracks().length)
526
574
  throw new Error("No tracks available in combined stream.");
527
- return f.current = C, C;
575
+ return m.current = C, C;
528
576
  },
529
577
  [t]
530
- ), Y = R(
578
+ ), Q = F(
531
579
  async (M, C) => {
532
- p(q("start")), F(null), A(null);
580
+ h(B("start")), b(null), E(null);
533
581
  try {
534
- let E;
535
- if (m)
536
- E = m, f.current = E;
582
+ let R;
583
+ if (f)
584
+ R = f, m.current = R;
537
585
  else {
538
586
  if (!M) throw new Error("start(stream) requires a MediaStream.");
539
- E = await G(M);
587
+ R = await W(M);
540
588
  }
541
- const _ = w(), H = {};
542
- _ && (H.mimeType = _), s && (H.bitsPerSecond = s);
543
- const B = new MediaRecorder(E, H);
544
- B.ondataavailable = (N) => {
545
- var j;
546
- ((j = N.data) == null ? void 0 : j.size) > 0 && (S.current.push(N.data), a == null || a(N.data));
547
- }, B.onstop = () => {
589
+ const v = w(), j = {};
590
+ v && (j.mimeType = v), s && (j.bitsPerSecond = s);
591
+ const H = new MediaRecorder(R, j);
592
+ H.ondataavailable = (N) => {
593
+ var Z;
594
+ ((Z = N.data) == null ? void 0 : Z.size) > 0 && (S.current.push(N.data), a == null || a(N.data));
595
+ }, H.onstop = () => {
548
596
  const N = new Blob(S.current, {
549
- type: _ ?? "video/webm"
597
+ type: v ?? "video/webm"
550
598
  });
551
- A(N), n == null || n(N), h == null || h(N), S.current = [], p(q("complete"));
552
- }, u.current = B, B.start(C), p(q("started")), o == null || o();
553
- } catch (E) {
554
- const _ = E instanceof Error ? E : new Error(String(E));
555
- console.error("start(stream) failed", _), F(_), p(q("fail")), d == null || d(_);
599
+ E(N), n == null || n(N), p == null || p(N), S.current = [], h(B("complete"));
600
+ }, u.current = H, H.start(C), h(B("started")), o == null || o();
601
+ } catch (R) {
602
+ const v = R instanceof Error ? R : new Error(String(R));
603
+ console.error("start(stream) failed", v), b(v), h(B("fail")), d == null || d(v);
556
604
  }
557
605
  },
558
606
  [
559
- G,
607
+ W,
560
608
  w,
561
609
  s,
562
610
  a,
563
611
  n,
564
- h,
612
+ p,
565
613
  o,
566
614
  d,
567
- m
615
+ f
568
616
  ]
569
- ), J = R(() => {
617
+ ), ee = F(() => {
570
618
  const M = u.current;
571
- !M || M.state === "inactive" || (p(q("stop")), M.stop(), l == null || l());
572
- }, [l]), Q = R(() => {
619
+ !M || M.state === "inactive" || (h(B("stop")), M.stop(), l == null || l());
620
+ }, [l]), te = F(() => {
573
621
  const M = u.current;
574
- (M == null ? void 0 : M.state) === "recording" && (M.pause(), p(q("pause")), c == null || c());
575
- }, [c]), ee = R(() => {
622
+ (M == null ? void 0 : M.state) === "recording" && (M.pause(), h(B("pause")), c == null || c());
623
+ }, [c]), re = F(() => {
576
624
  const M = u.current;
577
- (M == null ? void 0 : M.state) === "paused" && (M.resume(), p(q("resume")), i == null || i());
578
- }, [i]), K = R(() => {
625
+ (M == null ? void 0 : M.state) === "paused" && (M.resume(), h(B("resume")), i == null || i());
626
+ }, [i]), V = F(() => {
579
627
  var M;
580
628
  try {
581
- u.current && (u.current.onstop = null, u.current.state !== "inactive" && u.current.stop()), u.current = null, (M = f.current) == null || M.getTracks().forEach((C) => C.stop()), f.current = null, A(null), p(q("clear")), S.current = [], F(null);
629
+ u.current && (u.current.onstop = null, u.current.state !== "inactive" && u.current.stop()), u.current = null, (M = m.current) == null || M.getTracks().forEach((C) => C.stop()), m.current = null, E(null), h(B("clear")), S.current = [], b(null);
582
630
  } catch (C) {
583
631
  console.error("clear failed", C);
584
632
  }
585
633
  }, []);
586
- return v(() => () => K(), []), {
634
+ return x(() => () => V(), []), {
587
635
  status: T,
588
- start: Y,
589
- stop: J,
590
- pause: Q,
591
- resume: ee,
592
- clear: K,
636
+ start: Q,
637
+ stop: ee,
638
+ pause: te,
639
+ resume: re,
640
+ clear: V,
593
641
  isRecording: T === "recording" || T === "paused",
594
642
  isPaused: T === "paused",
595
643
  recordedBlob: y,
596
- error: $,
597
- getActiveStream: () => f.current
644
+ error: q,
645
+ getActiveStream: () => m.current
598
646
  };
599
647
  }
600
- const Ht = async (e, t = {}) => {
648
+ const Vt = async (e, t = {}) => {
601
649
  var r, s, a;
602
650
  (r = t.onCaptureStart) == null || r.call(t), await Promise.resolve();
603
651
  try {
@@ -607,37 +655,37 @@ const Ht = async (e, t = {}) => {
607
655
  const o = n instanceof Error ? n : new Error(String(n));
608
656
  throw (a = t.onError) == null || a.call(t, o), o;
609
657
  }
610
- }, Kr = (e = {}) => {
611
- const { session: t } = Xe(), {
658
+ }, Yr = (e = {}) => {
659
+ const { session: t } = He(), {
612
660
  captureFrame: r = t.captureFrame,
613
661
  onCaptureStart: s,
614
662
  onCaptureComplete: a,
615
663
  onError: n
616
- } = e, [o, c] = k("idle"), [i, l] = k(null), [h, d] = k(null), m = R(async () => {
664
+ } = e, [o, c] = _("idle"), [i, l] = _(null), [p, d] = _(null), f = F(async () => {
617
665
  c("capturing"), l(null), d(null);
618
666
  try {
619
- const f = await Ht(r, {
667
+ const m = await Vt(r, {
620
668
  onCaptureStart: s,
621
669
  onCaptureComplete: a,
622
670
  onError: n
623
671
  });
624
- return l(f), c("completed"), f;
625
- } catch (f) {
626
- const S = f instanceof Error ? f : new Error(String(f));
672
+ return l(m), c("completed"), m;
673
+ } catch (m) {
674
+ const S = m instanceof Error ? m : new Error(String(m));
627
675
  return d(S), c("error"), null;
628
676
  }
629
- }, [r, s, a, n]), u = R(() => {
677
+ }, [r, s, a, n]), u = F(() => {
630
678
  c("idle"), l(null), d(null);
631
679
  }, []);
632
- return { status: o, capturePhoto: m, clear: u, dataUrl: i, error: h };
633
- }, jr = (e, t) => {
680
+ return { status: o, capturePhoto: f, clear: u, dataUrl: i, error: p };
681
+ }, Jr = (e, t) => {
634
682
  const r = e.split(","), s = r[0].match(/:(.*?);/), a = s ? s[1] : "application/octet-stream", n = atob(r[r.length - 1]);
635
683
  let o = n.length;
636
684
  const c = new Uint8Array(o);
637
685
  for (; o--; )
638
686
  c[o] = n.charCodeAt(o);
639
687
  return new File([c], t, { type: a });
640
- }, Kt = 4, jt = 50, Vt = 5e3, se = (e) => Math.min(1, Math.max(0, e)), Fe = (e) => new Promise((t) => {
688
+ }, Zt = 4, Yt = 50, Jt = 5e3, ae = (e) => Math.min(1, Math.max(0, e)), xe = (e) => new Promise((t) => {
641
689
  if (e.readyState >= 4) {
642
690
  t();
643
691
  return;
@@ -646,33 +694,33 @@ const Ht = async (e, t = {}) => {
646
694
  const s = () => {
647
695
  r || (r = !0, t());
648
696
  };
649
- e.addEventListener("canplaythrough", s, { once: !0 }), e.addEventListener("error", s, { once: !0 }), setTimeout(s, Vt);
650
- }), Ce = (e, t) => {
697
+ e.addEventListener("canplaythrough", s, { once: !0 }), e.addEventListener("error", s, { once: !0 }), setTimeout(s, Jt);
698
+ }), ke = (e, t) => {
651
699
  const r = document.createElement("audio");
652
700
  return r.src = e, r.loop = t, r.preload = "auto", r.setAttribute("playsinline", ""), r.setAttribute("webkit-playsinline", ""), r.load(), r;
653
- }, Zt = (e) => {
701
+ }, Qt = (e) => {
654
702
  e.muted = !0, e.play().then(() => {
655
703
  e.pause(), e.currentTime = 0, e.muted = !1;
656
704
  }).catch(() => {
657
705
  e.muted = !1;
658
706
  });
659
707
  };
660
- class Yt {
708
+ class er {
661
709
  constructor(t = {}) {
662
- P(this, "sfxPoolSize");
663
- P(this, "coalesceMs");
664
- P(this, "muted", !0);
665
- P(this, "listeners", /* @__PURE__ */ new Set());
666
- P(this, "music", null);
667
- P(this, "musicUrl", null);
668
- P(this, "musicReady", null);
669
- P(this, "musicWanted", null);
670
- P(this, "pools", /* @__PURE__ */ new Map());
710
+ D(this, "sfxPoolSize");
711
+ D(this, "coalesceMs");
712
+ D(this, "muted", !0);
713
+ D(this, "listeners", /* @__PURE__ */ new Set());
714
+ D(this, "music", null);
715
+ D(this, "musicUrl", null);
716
+ D(this, "musicReady", null);
717
+ D(this, "musicWanted", null);
718
+ D(this, "pools", /* @__PURE__ */ new Map());
671
719
  /** Last play time per SFX URL, for the coalesce window. */
672
- P(this, "lastPlayed", /* @__PURE__ */ new Map());
720
+ D(this, "lastPlayed", /* @__PURE__ */ new Map());
673
721
  /** Readiness promises so a loading gate can await decode/buffer. */
674
- P(this, "ready", /* @__PURE__ */ new Map());
675
- this.sfxPoolSize = t.sfxPoolSize ?? Kt, this.coalesceMs = t.coalesceMs ?? jt;
722
+ D(this, "ready", /* @__PURE__ */ new Map());
723
+ this.sfxPoolSize = t.sfxPoolSize ?? Zt, this.coalesceMs = t.coalesceMs ?? Yt;
676
724
  }
677
725
  /**
678
726
  * Create + buffer the looping music element. Await in the loading gate so the
@@ -680,11 +728,11 @@ class Yt {
680
728
  * a no-op that returns the in-flight promise).
681
729
  */
682
730
  prefetchMusic(t, r = 0.4) {
683
- const s = se(r);
731
+ const s = ae(r);
684
732
  if (this.musicWanted = { url: t, volume: s }, this.musicUrl === t && this.musicReady)
685
733
  return this.music && (this.music.volume = s), this.musicReady;
686
- this.music && (this.music.pause(), this.music.currentTime = 0, this.music.removeAttribute("src"), this.music.load()), this.music = Ce(t, !0), this.musicUrl = t, this.music.volume = s;
687
- const a = Fe(this.music);
734
+ this.music && (this.music.pause(), this.music.currentTime = 0, this.music.removeAttribute("src"), this.music.load()), this.music = ke(t, !0), this.musicUrl = t, this.music.volume = s;
735
+ const a = xe(this.music);
688
736
  return this.musicReady = a, a;
689
737
  }
690
738
  /**
@@ -695,15 +743,15 @@ class Yt {
695
743
  registerSound(t, r = 1) {
696
744
  const s = this.ready.get(t);
697
745
  if (s) return s;
698
- const a = se(r), n = [];
746
+ const a = ae(r), n = [];
699
747
  for (let c = 0; c < this.sfxPoolSize; c += 1) {
700
- const i = Ce(t, !1);
748
+ const i = ke(t, !1);
701
749
  i.volume = a, i.addEventListener("ended", () => {
702
750
  i.currentTime = 0;
703
751
  }), n.push(i);
704
752
  }
705
753
  this.pools.set(t, { els: n, next: 0, volume: a });
706
- const o = Fe(n[0]);
754
+ const o = xe(n[0]);
707
755
  return this.ready.set(t, o), o;
708
756
  }
709
757
  /** Subscribe to mute-state changes (for a toggle UI). Fires immediately with
@@ -721,7 +769,7 @@ class Yt {
721
769
  * then start the music. All elements are already buffered, so this is instant.
722
770
  */
723
771
  setMuted(t) {
724
- t !== this.muted && (this.muted = t, this.muted || this.pools.forEach((r) => r.els.forEach(Zt)), this.applyMusic(), this.listeners.forEach((r) => r(this.muted)));
772
+ t !== this.muted && (this.muted = t, this.muted || this.pools.forEach((r) => r.els.forEach(Qt)), this.applyMusic(), this.listeners.forEach((r) => r(this.muted)));
725
773
  }
726
774
  toggleMuted() {
727
775
  this.setMuted(!this.muted);
@@ -748,13 +796,13 @@ class Yt {
748
796
  break;
749
797
  }
750
798
  }
751
- o || (o = s.els[s.next], s.next = (s.next + 1) % n), o.muted = !1, o.volume = se(r ?? s.volume), o.currentTime !== 0 && (o.currentTime = 0), o.play().catch(() => {
799
+ o || (o = s.els[s.next], s.next = (s.next + 1) % n), o.muted = !1, o.volume = ae(r ?? s.volume), o.currentTime !== 0 && (o.currentTime = 0), o.play().catch(() => {
752
800
  });
753
801
  }
754
802
  /** Request the looping background track (buffer it with prefetchMusic, which
755
803
  * a loading gate awaits). Remembered while muted; starts on unmute. */
756
804
  startMusic(t, r = 0.4) {
757
- const s = se(r);
805
+ const s = ae(r);
758
806
  this.musicUrl !== t && this.prefetchMusic(t, s), this.musicWanted = { url: t, volume: s }, this.applyMusic();
759
807
  }
760
808
  stopMusic() {
@@ -765,7 +813,7 @@ class Yt {
765
813
  }), this.muted && !this.music.paused && this.music.pause());
766
814
  }
767
815
  }
768
- const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math.floor(r)) ? "replay" : "ended", Qt = (e, t, r) => e && t !== r, er = (e) => Math.min(100, Math.max(0, e)) / 100, Vr = Qe(function({
816
+ const tr = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math.floor(r)) ? "replay" : "ended", rr = (e, t, r) => e && t !== r, sr = (e) => Math.min(100, Math.max(0, e)) / 100, Qr = tt(function({
769
817
  src: t,
770
818
  playMode: r = "once",
771
819
  loopCount: s = 1,
@@ -775,60 +823,60 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
775
823
  preload: c = "auto",
776
824
  onReady: i,
777
825
  onPlay: l,
778
- onPause: h,
826
+ onPause: p,
779
827
  onEnded: d,
780
- onError: m
828
+ onError: f
781
829
  }, u) {
782
- const f = b(null), S = b(0), T = b(null), p = R(async () => {
783
- const F = f.current;
784
- if (F)
830
+ const m = A(null), S = A(0), T = A(null), h = F(async () => {
831
+ const b = m.current;
832
+ if (b)
785
833
  try {
786
- await F.play();
834
+ await b.play();
787
835
  } catch (w) {
788
- const G = w instanceof Error ? w : new Error(String(w));
789
- throw m == null || m(G), G;
836
+ const W = w instanceof Error ? w : new Error(String(w));
837
+ throw f == null || f(W), W;
790
838
  }
791
- }, [m]), y = R(() => {
792
- var F;
793
- return (F = f.current) == null ? void 0 : F.pause();
794
- }, []), A = R(() => {
795
- const F = f.current;
796
- F && (F.pause(), F.currentTime = 0, S.current = 0);
839
+ }, [f]), y = F(() => {
840
+ var b;
841
+ return (b = m.current) == null ? void 0 : b.pause();
842
+ }, []), E = F(() => {
843
+ const b = m.current;
844
+ b && (b.pause(), b.currentTime = 0, S.current = 0);
797
845
  }, []);
798
- et(
846
+ rt(
799
847
  u,
800
848
  () => ({
801
- play: p,
849
+ play: h,
802
850
  pause: y,
803
- stop: A,
851
+ stop: E,
804
852
  get current() {
805
- return f.current;
853
+ return m.current;
806
854
  }
807
855
  }),
808
- [y, p, A]
809
- ), v(() => {
856
+ [y, h, E]
857
+ ), x(() => {
810
858
  S.current = 0, T.current = null;
811
- }, [t]), v(() => {
812
- f.current && (f.current.volume = er(o));
813
- }, [o]), v(() => {
814
- Qt(a, T.current, t) && (T.current = t, p().catch(() => {
859
+ }, [t]), x(() => {
860
+ m.current && (m.current.volume = sr(o));
861
+ }, [o]), x(() => {
862
+ rr(a, T.current, t) && (T.current = t, h().catch(() => {
815
863
  }));
816
864
  }, [a, t]);
817
- const $ = R(() => {
865
+ const q = F(() => {
818
866
  S.current += 1;
819
- const F = Math.max(1, Math.floor(s));
820
- if (Jt(r, S.current, F) === "replay") {
821
- const w = f.current;
822
- w && (w.currentTime = 0, p().catch(() => {
867
+ const b = Math.max(1, Math.floor(s));
868
+ if (tr(r, S.current, b) === "replay") {
869
+ const w = m.current;
870
+ w && (w.currentTime = 0, h().catch(() => {
823
871
  }));
824
872
  return;
825
873
  }
826
874
  S.current = 0, d == null || d();
827
- }, [s, d, p, r]);
875
+ }, [s, d, h, r]);
828
876
  return /* @__PURE__ */ g(
829
877
  "audio",
830
878
  {
831
- ref: f,
879
+ ref: m,
832
880
  src: t,
833
881
  preload: c,
834
882
  autoPlay: !1,
@@ -838,56 +886,56 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
838
886
  style: { display: "none" },
839
887
  onCanPlayThrough: i,
840
888
  onPlay: l,
841
- onPause: h,
842
- onEnded: $,
843
- onError: () => m == null ? void 0 : m(new Error(`Unable to load audio: ${t}`))
889
+ onPause: p,
890
+ onEnded: q,
891
+ onError: () => f == null ? void 0 : f(new Error(`Unable to load audio: ${t}`))
844
892
  }
845
893
  );
846
- }), U = new Yt(), Zr = (e, t) => U.prefetchMusic(e, t), Yr = (e, t) => U.registerSound(e, t), Jr = (e, t) => U.startMusic(e, t), Qr = () => U.stopMusic(), es = (e, t) => U.playOneShot(e, t), ts = (e) => U.setMuted(e), rs = () => U.toggleMuted(), ss = () => U.isMuted(), as = (e) => U.onMuteChange(e), ns = () => {
847
- const [e, t] = k(U.isMuted());
848
- return v(() => U.onMuteChange(t), []), e;
849
- }, tr = (e = {}) => {
850
- const { auto: t = !1 } = e, r = b(e.env ?? $e()), s = b(e.constraints);
894
+ }), U = new er(), es = (e, t) => U.prefetchMusic(e, t), ts = (e, t) => U.registerSound(e, t), rs = (e, t) => U.startMusic(e, t), ss = () => U.stopMusic(), as = (e, t) => U.playOneShot(e, t), ns = (e) => U.setMuted(e), os = () => U.toggleMuted(), is = () => U.isMuted(), cs = (e) => U.onMuteChange(e), ls = () => {
895
+ const [e, t] = _(U.isMuted());
896
+ return x(() => U.onMuteChange(t), []), e;
897
+ }, ar = (e = {}) => {
898
+ const { auto: t = !1 } = e, r = A(e.env ?? Ke()), s = A(e.constraints);
851
899
  s.current = e.constraints;
852
- const [a, n] = k("unknown"), [o, c] = k(null), i = b(0), l = R(async () => {
853
- const d = ++i.current, m = await He(r.current);
900
+ const [a, n] = _("unknown"), [o, c] = _(null), i = A(0), l = F(async () => {
901
+ const d = ++i.current, f = await je(r.current);
854
902
  if (d !== i.current) return a;
855
- const u = m.state === "unknown" ? "unknown" : m.state;
856
- return n((f) => f === "requesting" ? f : u), u !== "blocked" && c(null), u;
857
- }, []), h = R(
903
+ const u = f.state === "unknown" ? "unknown" : f.state;
904
+ return n((m) => m === "requesting" ? m : u), u !== "blocked" && c(null), u;
905
+ }, []), p = F(
858
906
  async (d) => {
859
- const m = ++i.current;
907
+ const f = ++i.current;
860
908
  n("requesting"), c(null);
861
- const u = await Ke(
909
+ const u = await Ve(
862
910
  { constraints: (d == null ? void 0 : d.constraints) ?? s.current, keepStream: !1 },
863
911
  r.current
864
912
  );
865
- return m !== i.current || (n(u.state), c(u.reason)), u.state;
913
+ return f !== i.current || (n(u.state), c(u.reason)), u.state;
866
914
  },
867
915
  []
868
916
  );
869
- return v(() => {
917
+ return x(() => {
870
918
  let d = () => {
871
- }, m = !0;
872
- return t ? h() : l(), je((u) => {
873
- m && (n((f) => f === "requesting" ? f : u.state === "unknown" ? "unknown" : u.state), u.state !== "blocked" && c(null));
919
+ }, f = !0;
920
+ return t ? p() : l(), Ze((u) => {
921
+ f && (n((m) => m === "requesting" ? m : u.state === "unknown" ? "unknown" : u.state), u.state !== "blocked" && c(null));
874
922
  }, r.current).then((u) => {
875
- m ? d = u : u();
923
+ f ? d = u : u();
876
924
  }), () => {
877
- m = !1, i.current += 1, d();
925
+ f = !1, i.current += 1, d();
878
926
  };
879
- }, [t, l, h]), X(
927
+ }, [t, l, p]), z(
880
928
  () => ({
881
929
  state: a,
882
930
  reason: o,
883
- canPrompt: Ve(a),
931
+ canPrompt: Ye(a),
884
932
  usable: a === "granted",
885
- request: h,
933
+ request: p,
886
934
  refresh: l
887
935
  }),
888
- [a, o, h, l]
936
+ [a, o, p, l]
889
937
  );
890
- }, rr = {
938
+ }, nr = {
891
939
  display: "flex",
892
940
  flexDirection: "column",
893
941
  alignItems: "center",
@@ -900,7 +948,7 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
900
948
  background: "#111827",
901
949
  color: "#f9fafb",
902
950
  fontFamily: "system-ui, sans-serif"
903
- }, sr = {
951
+ }, or = {
904
952
  font: "inherit",
905
953
  padding: "10px 18px",
906
954
  borderRadius: 8,
@@ -908,19 +956,19 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
908
956
  background: "#2563eb",
909
957
  color: "#fff",
910
958
  cursor: "pointer"
911
- }, os = ({
959
+ }, us = ({
912
960
  children: e,
913
961
  fallback: t,
914
962
  auto: r = !1,
915
963
  constraints: s,
916
964
  requestLabel: a = "Allow camera"
917
965
  }) => {
918
- const n = tr({ auto: r, constraints: s });
919
- if (n.usable) return /* @__PURE__ */ g(ae, { children: e });
920
- if (t) return /* @__PURE__ */ g(ae, { children: t(n) });
966
+ const n = ar({ auto: r, constraints: s });
967
+ if (n.usable) return /* @__PURE__ */ g(ne, { children: e });
968
+ if (t) return /* @__PURE__ */ g(ne, { children: t(n) });
921
969
  const { state: o, reason: c, canPrompt: i, request: l } = n;
922
- return /* @__PURE__ */ I("div", { style: rr, role: "region", "aria-label": "Camera access", children: [
923
- /* @__PURE__ */ g("p", { "aria-live": "polite", style: { margin: 0 }, children: (c == null ? void 0 : c.message) ?? Ze[o] }),
970
+ return /* @__PURE__ */ O("div", { style: nr, role: "region", "aria-label": "Camera access", children: [
971
+ /* @__PURE__ */ g("p", { "aria-live": "polite", style: { margin: 0 }, children: (c == null ? void 0 : c.message) ?? Je[o] }),
924
972
  /* @__PURE__ */ g(
925
973
  "button",
926
974
  {
@@ -928,66 +976,66 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
928
976
  onClick: () => void l(),
929
977
  disabled: !i || o === "requesting",
930
978
  "aria-disabled": !i || o === "requesting",
931
- style: { ...sr, opacity: i && o !== "requesting" ? 1 : 0.5 },
979
+ style: { ...or, opacity: i && o !== "requesting" ? 1 : 0.5 },
932
980
  children: o === "requesting" ? "Waiting…" : o === "denied" ? "Try again" : a
933
981
  }
934
982
  )
935
983
  ] });
936
- }, ar = () => {
984
+ }, ir = () => {
937
985
  var e;
938
986
  return {
939
987
  enumerateDevices: typeof navigator < "u" && ((e = navigator.mediaDevices) != null && e.enumerateDevices) ? () => navigator.mediaDevices.enumerateDevices() : void 0
940
988
  };
941
- }, nr = /\b(back|rear|environment|world)\b/i, or = /\b(front|user|facetime|selfie)\b/i, ir = (e) => nr.test(e) ? "environment" : or.test(e) ? "user" : null, is = async (e = ar()) => {
989
+ }, cr = /\b(back|rear|environment|world)\b/i, lr = /\b(front|user|facetime|selfie)\b/i, ur = (e) => cr.test(e) ? "environment" : lr.test(e) ? "user" : null, ds = async (e = ir()) => {
942
990
  if (!e.enumerateDevices) return [];
943
991
  try {
944
992
  return (await e.enumerateDevices()).filter((r) => r.kind === "videoinput").map((r) => ({
945
993
  deviceId: r.deviceId,
946
994
  label: r.label,
947
- facing: ir(r.label)
995
+ facing: ur(r.label)
948
996
  }));
949
997
  } catch {
950
998
  return [];
951
999
  }
952
- }, cs = (e, t) => e.find((r) => r.facing === t) ?? null, Ne = rt(null), ls = ({
1000
+ }, ms = (e, t) => e.find((r) => r.facing === t) ?? null, Ie = at(null), fs = ({
953
1001
  cache: e,
954
1002
  disposeUnreferencedOnUnmount: t = !0,
955
1003
  children: r
956
1004
  }) => {
957
- const s = e ?? De();
958
- return v(() => () => {
1005
+ const s = e ?? Ne();
1006
+ return x(() => () => {
959
1007
  t && s.disposeUnreferenced();
960
- }, [s, t]), /* @__PURE__ */ g(Ne.Provider, { value: s, children: r });
961
- }, Le = () => tt(Ne) ?? De(), us = (e, t = {}) => {
962
- const { enabled: r = !0 } = t, s = Le(), a = st(), n = (e == null ? void 0 : e.key) ?? null, [o, c] = k({
1008
+ }, [s, t]), /* @__PURE__ */ g(Ie.Provider, { value: s, children: r });
1009
+ }, Oe = () => st(Ie) ?? Ne(), ps = (e, t = {}) => {
1010
+ const { enabled: r = !0 } = t, s = Oe(), a = nt(), n = (e == null ? void 0 : e.key) ?? null, [o, c] = _({
963
1011
  value: null,
964
1012
  status: "idle",
965
1013
  error: null
966
1014
  });
967
- return v(() => {
1015
+ return x(() => {
968
1016
  if (!e || !r) {
969
1017
  c({ value: null, status: "idle", error: null });
970
1018
  return;
971
1019
  }
972
1020
  let i = !0;
973
1021
  const l = s.get(e.key);
974
- return c({ value: l ?? null, status: l ? "ready" : "loading", error: null }), s.acquire(e, a).then((h) => {
975
- i && c({ value: h, status: "ready", error: null });
976
- }).catch((h) => {
977
- i && c({ value: null, status: "error", error: h });
1022
+ return c({ value: l ?? null, status: l ? "ready" : "loading", error: null }), s.acquire(e, a).then((p) => {
1023
+ i && c({ value: p, status: "ready", error: null });
1024
+ }).catch((p) => {
1025
+ i && c({ value: null, status: "error", error: p });
978
1026
  }), () => {
979
1027
  i = !1, s.release(e.key, a);
980
1028
  };
981
1029
  }, [s, n, r, a]), o;
982
- }, ds = (e) => {
983
- const t = Le(), r = e ?? t;
984
- return at(
1030
+ }, hs = (e) => {
1031
+ const t = Oe(), r = e ?? t;
1032
+ return ot(
985
1033
  (s) => r.subscribe(s),
986
1034
  () => r.getStats(),
987
1035
  () => r.getStats()
988
1036
  );
989
- }, ne = 1, Ie = Object.freeze({
990
- version: ne,
1037
+ }, oe = 1, Ge = Object.freeze({
1038
+ version: oe,
991
1039
  trackers: {
992
1040
  face: { enabled: !0, numFaces: 1, targetFps: null, holdMs: 250, predictMs: 0, smoothing: 0 },
993
1041
  hand: { enabled: !1, targetFps: null },
@@ -1014,13 +1062,13 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1014
1062
  fallbacks: { onUnsupported: "degrade", delegate: "auto" },
1015
1063
  assets: { holisticModelUrl: null, semanticSegmentationModelUrl: null },
1016
1064
  updatedAt: 0
1017
- }), D = (e, t, r, s, a, n) => {
1065
+ }), P = (e, t, r, s, a, n) => {
1018
1066
  if (e === void 0) return t;
1019
1067
  if (typeof e != "number" || !Number.isFinite(e))
1020
1068
  return n(`${a}: not a number, kept ${t}`), t;
1021
1069
  const o = Math.min(s, Math.max(r, e));
1022
1070
  return o !== e && n(`${a}: ${e} clamped to ${o}`), o;
1023
- }, V = (e, t, r, s) => e === void 0 ? t : e === null ? null : typeof e != "number" || !Number.isFinite(e) || e <= 0 ? (s(`${r}: invalid fps, kept ${t}`), t) : (e > 120 && s(`${r}: ${e} clamped to 120`), Math.min(120, e)), cr = [
1071
+ }, Y = (e, t, r, s) => e === void 0 ? t : e === null ? null : typeof e != "number" || !Number.isFinite(e) || e <= 0 ? (s(`${r}: invalid fps, kept ${t}`), t) : (e > 120 && s(`${r}: ${e} clamped to 120`), Math.min(120, e)), dr = [
1024
1072
  "tiers",
1025
1073
  "budget",
1026
1074
  "initialTier",
@@ -1028,24 +1076,24 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1028
1076
  "maxTier",
1029
1077
  "adaptive",
1030
1078
  "historySize"
1031
- ], ve = (e) => {
1079
+ ], _e = (e) => {
1032
1080
  const t = {};
1033
- for (const r of cr) e[r] !== void 0 && (t[r] = e[r]);
1081
+ for (const r of dr) e[r] !== void 0 && (t[r] = e[r]);
1034
1082
  return t;
1035
- }, L = (e, t, r, s) => e === void 0 ? t : typeof e != "boolean" ? (s(`${r}: not a boolean, kept ${t}`), t) : e, z = (e, t, r, s, a) => e === void 0 ? r : t.includes(e) ? e : (a(`${s}: "${String(e)}" is not one of ${t.join(" | ")}, kept ${r}`), r), xe = (e, t, r, s) => e === void 0 ? t : e === null ? null : typeof e != "string" || !/^https?:\/\//.test(e) ? (s(`${r}: not an http(s) URL, kept ${t === null ? "the SDK default" : t}`), t) : e, W = (e = {}, t = Ie, r = []) => {
1036
- var c, i, l, h, d, m, u, f, S, T, p, y, A, $, F, w, G, Y, J, Q, ee, K, M, C, E, _, H, B, N, j, me, fe, pe, he, ge, ye, Se, Me;
1037
- const s = (qe) => r.push(qe), a = e.trackers ?? {}, n = t.trackers, o = e.quality === void 0 ? t.quality === !1 ? !1 : ve(t.quality) : e.quality === !1 ? !1 : typeof e.quality == "object" && e.quality !== null ? ve(e.quality) : (s("quality: must be an object or false, kept base"), t.quality);
1083
+ }, I = (e, t, r, s) => e === void 0 ? t : typeof e != "boolean" ? (s(`${r}: not a boolean, kept ${t}`), t) : e, $ = (e, t, r, s, a) => e === void 0 ? r : t.includes(e) ? e : (a(`${s}: "${String(e)}" is not one of ${t.join(" | ")}, kept ${r}`), r), ve = (e, t, r, s) => e === void 0 ? t : e === null ? null : typeof e != "string" || !/^https?:\/\//.test(e) ? (s(`${r}: not an http(s) URL, kept ${t === null ? "the SDK default" : t}`), t) : e, X = (e = {}, t = Ge, r = []) => {
1084
+ var c, i, l, p, d, f, u, m, S, T, h, y, E, q, b, w, W, Q, ee, te, re, V, M, C, R, v, j, H, N, Z, fe, pe, he, ge, ye, Se, Te, Me;
1085
+ const s = (We) => r.push(We), a = e.trackers ?? {}, n = t.trackers, o = e.quality === void 0 ? t.quality === !1 ? !1 : _e(t.quality) : e.quality === !1 ? !1 : typeof e.quality == "object" && e.quality !== null ? _e(e.quality) : (s("quality: must be an object or false, kept base"), t.quality);
1038
1086
  return {
1039
- version: ne,
1087
+ version: oe,
1040
1088
  trackers: {
1041
1089
  face: {
1042
- enabled: L((c = a.face) == null ? void 0 : c.enabled, n.face.enabled, "trackers.face.enabled", s),
1090
+ enabled: I((c = a.face) == null ? void 0 : c.enabled, n.face.enabled, "trackers.face.enabled", s),
1043
1091
  numFaces: Math.round(
1044
- D((i = a.face) == null ? void 0 : i.numFaces, n.face.numFaces, 1, 10, "trackers.face.numFaces", s)
1092
+ P((i = a.face) == null ? void 0 : i.numFaces, n.face.numFaces, 1, 10, "trackers.face.numFaces", s)
1045
1093
  ),
1046
- targetFps: V((l = a.face) == null ? void 0 : l.targetFps, n.face.targetFps, "trackers.face.targetFps", s),
1047
- holdMs: D((h = a.face) == null ? void 0 : h.holdMs, n.face.holdMs, 0, 5e3, "trackers.face.holdMs", s),
1048
- predictMs: D(
1094
+ targetFps: Y((l = a.face) == null ? void 0 : l.targetFps, n.face.targetFps, "trackers.face.targetFps", s),
1095
+ holdMs: P((p = a.face) == null ? void 0 : p.holdMs, n.face.holdMs, 0, 5e3, "trackers.face.holdMs", s),
1096
+ predictMs: P(
1049
1097
  (d = a.face) == null ? void 0 : d.predictMs,
1050
1098
  n.face.predictMs,
1051
1099
  0,
@@ -1053,8 +1101,8 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1053
1101
  "trackers.face.predictMs",
1054
1102
  s
1055
1103
  ),
1056
- smoothing: D(
1057
- (m = a.face) == null ? void 0 : m.smoothing,
1104
+ smoothing: P(
1105
+ (f = a.face) == null ? void 0 : f.smoothing,
1058
1106
  n.face.smoothing,
1059
1107
  0,
1060
1108
  100,
@@ -1063,12 +1111,12 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1063
1111
  )
1064
1112
  },
1065
1113
  hand: {
1066
- enabled: L((u = a.hand) == null ? void 0 : u.enabled, n.hand.enabled, "trackers.hand.enabled", s),
1067
- targetFps: V((f = a.hand) == null ? void 0 : f.targetFps, n.hand.targetFps, "trackers.hand.targetFps", s)
1114
+ enabled: I((u = a.hand) == null ? void 0 : u.enabled, n.hand.enabled, "trackers.hand.enabled", s),
1115
+ targetFps: Y((m = a.hand) == null ? void 0 : m.targetFps, n.hand.targetFps, "trackers.hand.targetFps", s)
1068
1116
  },
1069
1117
  gesture: {
1070
- enabled: L((S = a.gesture) == null ? void 0 : S.enabled, n.gesture.enabled, "trackers.gesture.enabled", s),
1071
- targetFps: V(
1118
+ enabled: I((S = a.gesture) == null ? void 0 : S.enabled, n.gesture.enabled, "trackers.gesture.enabled", s),
1119
+ targetFps: Y(
1072
1120
  (T = a.gesture) == null ? void 0 : T.targetFps,
1073
1121
  n.gesture.targetFps,
1074
1122
  "trackers.gesture.targetFps",
@@ -1076,25 +1124,25 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1076
1124
  )
1077
1125
  },
1078
1126
  body: {
1079
- enabled: L((p = a.body) == null ? void 0 : p.enabled, n.body.enabled, "trackers.body.enabled", s),
1080
- targetFps: V((y = a.body) == null ? void 0 : y.targetFps, n.body.targetFps, "trackers.body.targetFps", s)
1127
+ enabled: I((h = a.body) == null ? void 0 : h.enabled, n.body.enabled, "trackers.body.enabled", s),
1128
+ targetFps: Y((y = a.body) == null ? void 0 : y.targetFps, n.body.targetFps, "trackers.body.targetFps", s)
1081
1129
  },
1082
1130
  holistic: {
1083
- enabled: L((A = a.holistic) == null ? void 0 : A.enabled, n.holistic.enabled, "trackers.holistic.enabled", s),
1084
- targetFps: V(
1085
- ($ = a.holistic) == null ? void 0 : $.targetFps,
1131
+ enabled: I((E = a.holistic) == null ? void 0 : E.enabled, n.holistic.enabled, "trackers.holistic.enabled", s),
1132
+ targetFps: Y(
1133
+ (q = a.holistic) == null ? void 0 : q.targetFps,
1086
1134
  n.holistic.targetFps,
1087
1135
  "trackers.holistic.targetFps",
1088
1136
  s
1089
1137
  ),
1090
- hands: z(
1091
- (F = a.holistic) == null ? void 0 : F.hands,
1138
+ hands: $(
1139
+ (b = a.holistic) == null ? void 0 : b.hands,
1092
1140
  ["both", "left", "right", "none"],
1093
1141
  n.holistic.hands,
1094
1142
  "trackers.holistic.hands",
1095
1143
  s
1096
1144
  ),
1097
- holdMs: D(
1145
+ holdMs: P(
1098
1146
  (w = a.holistic) == null ? void 0 : w.holdMs,
1099
1147
  n.holistic.holdMs,
1100
1148
  0,
@@ -1102,8 +1150,8 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1102
1150
  "trackers.holistic.holdMs",
1103
1151
  s
1104
1152
  ),
1105
- predictMs: D(
1106
- (G = a.holistic) == null ? void 0 : G.predictMs,
1153
+ predictMs: P(
1154
+ (W = a.holistic) == null ? void 0 : W.predictMs,
1107
1155
  n.holistic.predictMs,
1108
1156
  0,
1109
1157
  1e3,
@@ -1111,8 +1159,8 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1111
1159
  s
1112
1160
  ),
1113
1161
  analysisMaxDimension: Math.round(
1114
- D(
1115
- (Y = a.holistic) == null ? void 0 : Y.analysisMaxDimension,
1162
+ P(
1163
+ (Q = a.holistic) == null ? void 0 : Q.analysisMaxDimension,
1116
1164
  n.holistic.analysisMaxDimension,
1117
1165
  128,
1118
1166
  2048,
@@ -1120,22 +1168,22 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1120
1168
  s
1121
1169
  )
1122
1170
  ),
1123
- outputFaceBlendshapes: L(
1124
- (J = a.holistic) == null ? void 0 : J.outputFaceBlendshapes,
1171
+ outputFaceBlendshapes: I(
1172
+ (ee = a.holistic) == null ? void 0 : ee.outputFaceBlendshapes,
1125
1173
  n.holistic.outputFaceBlendshapes,
1126
1174
  "trackers.holistic.outputFaceBlendshapes",
1127
1175
  s
1128
1176
  ),
1129
- confidence: D(
1130
- (Q = a.holistic) == null ? void 0 : Q.confidence,
1177
+ confidence: P(
1178
+ (te = a.holistic) == null ? void 0 : te.confidence,
1131
1179
  n.holistic.confidence,
1132
1180
  0,
1133
1181
  1,
1134
1182
  "trackers.holistic.confidence",
1135
1183
  s
1136
1184
  ),
1137
- delegate: z(
1138
- (ee = a.holistic) == null ? void 0 : ee.delegate,
1185
+ delegate: $(
1186
+ (re = a.holistic) == null ? void 0 : re.delegate,
1139
1187
  ["auto", "GPU", "CPU"],
1140
1188
  n.holistic.delegate,
1141
1189
  "trackers.holistic.delegate",
@@ -1143,13 +1191,13 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1143
1191
  )
1144
1192
  },
1145
1193
  segmentation: {
1146
- enabled: L(
1147
- (K = a.segmentation) == null ? void 0 : K.enabled,
1194
+ enabled: I(
1195
+ (V = a.segmentation) == null ? void 0 : V.enabled,
1148
1196
  n.segmentation.enabled,
1149
1197
  "trackers.segmentation.enabled",
1150
1198
  s
1151
1199
  ),
1152
- quality: z(
1200
+ quality: $(
1153
1201
  (M = a.segmentation) == null ? void 0 : M.quality,
1154
1202
  ["low", "medium", "high"],
1155
1203
  n.segmentation.quality,
@@ -1158,21 +1206,21 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1158
1206
  )
1159
1207
  },
1160
1208
  semanticSegmentation: {
1161
- enabled: L(
1209
+ enabled: I(
1162
1210
  (C = a.semanticSegmentation) == null ? void 0 : C.enabled,
1163
1211
  n.semanticSegmentation.enabled,
1164
1212
  "trackers.semanticSegmentation.enabled",
1165
1213
  s
1166
1214
  ),
1167
- preset: z(
1168
- (E = a.semanticSegmentation) == null ? void 0 : E.preset,
1169
- Et,
1215
+ preset: $(
1216
+ (R = a.semanticSegmentation) == null ? void 0 : R.preset,
1217
+ At,
1170
1218
  n.semanticSegmentation.preset,
1171
1219
  "trackers.semanticSegmentation.preset",
1172
1220
  s
1173
1221
  ),
1174
- quality: z(
1175
- (_ = a.semanticSegmentation) == null ? void 0 : _.quality,
1222
+ quality: $(
1223
+ (v = a.semanticSegmentation) == null ? void 0 : v.quality,
1176
1224
  ["low", "medium", "high"],
1177
1225
  n.semanticSegmentation.quality,
1178
1226
  "trackers.semanticSegmentation.quality",
@@ -1181,11 +1229,11 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1181
1229
  }
1182
1230
  },
1183
1231
  perf: {
1184
- targetFps: D((H = e.perf) == null ? void 0 : H.targetFps, t.perf.targetFps, 0, 120, "perf.targetFps", s),
1185
- camRes: Math.round(D((B = e.perf) == null ? void 0 : B.camRes, t.perf.camRes, 160, 3840, "perf.camRes", s)),
1186
- cameraZoom: D((N = e.perf) == null ? void 0 : N.cameraZoom, t.perf.cameraZoom, 1, 3, "perf.cameraZoom", s),
1187
- analysisScale: D(
1188
- (j = e.perf) == null ? void 0 : j.analysisScale,
1232
+ targetFps: P((j = e.perf) == null ? void 0 : j.targetFps, t.perf.targetFps, 0, 120, "perf.targetFps", s),
1233
+ camRes: Math.round(P((H = e.perf) == null ? void 0 : H.camRes, t.perf.camRes, 160, 3840, "perf.camRes", s)),
1234
+ cameraZoom: P((N = e.perf) == null ? void 0 : N.cameraZoom, t.perf.cameraZoom, 1, 3, "perf.cameraZoom", s),
1235
+ analysisScale: P(
1236
+ (Z = e.perf) == null ? void 0 : Z.analysisScale,
1189
1237
  t.perf.analysisScale,
1190
1238
  0.25,
1191
1239
  1,
@@ -1194,8 +1242,8 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1194
1242
  )
1195
1243
  },
1196
1244
  lifecycle: {
1197
- pauseWhenHidden: L(
1198
- (me = e.lifecycle) == null ? void 0 : me.pauseWhenHidden,
1245
+ pauseWhenHidden: I(
1246
+ (fe = e.lifecycle) == null ? void 0 : fe.pauseWhenHidden,
1199
1247
  t.lifecycle.pauseWhenHidden,
1200
1248
  "lifecycle.pauseWhenHidden",
1201
1249
  s
@@ -1203,26 +1251,26 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1203
1251
  },
1204
1252
  quality: o,
1205
1253
  camera: {
1206
- facingMode: z(
1207
- (fe = e.camera) == null ? void 0 : fe.facingMode,
1254
+ facingMode: $(
1255
+ (pe = e.camera) == null ? void 0 : pe.facingMode,
1208
1256
  ["user", "environment"],
1209
1257
  t.camera.facingMode,
1210
1258
  "camera.facingMode",
1211
1259
  s
1212
1260
  ),
1213
- deviceId: ((pe = e.camera) == null ? void 0 : pe.deviceId) === void 0 ? t.camera.deviceId : typeof e.camera.deviceId == "string" || e.camera.deviceId === null ? e.camera.deviceId : (s("camera.deviceId: not a string, kept base"), t.camera.deviceId),
1214
- mirrored: ((he = e.camera) == null ? void 0 : he.mirrored) === void 0 ? t.camera.mirrored : e.camera.mirrored === "auto" || typeof e.camera.mirrored == "boolean" ? e.camera.mirrored : (s('camera.mirrored: must be boolean or "auto", kept base'), t.camera.mirrored)
1261
+ deviceId: ((he = e.camera) == null ? void 0 : he.deviceId) === void 0 ? t.camera.deviceId : typeof e.camera.deviceId == "string" || e.camera.deviceId === null ? e.camera.deviceId : (s("camera.deviceId: not a string, kept base"), t.camera.deviceId),
1262
+ mirrored: ((ge = e.camera) == null ? void 0 : ge.mirrored) === void 0 ? t.camera.mirrored : e.camera.mirrored === "auto" || typeof e.camera.mirrored == "boolean" ? e.camera.mirrored : (s('camera.mirrored: must be boolean or "auto", kept base'), t.camera.mirrored)
1215
1263
  },
1216
1264
  fallbacks: {
1217
- onUnsupported: z(
1218
- (ge = e.fallbacks) == null ? void 0 : ge.onUnsupported,
1265
+ onUnsupported: $(
1266
+ (ye = e.fallbacks) == null ? void 0 : ye.onUnsupported,
1219
1267
  ["block", "degrade"],
1220
1268
  t.fallbacks.onUnsupported,
1221
1269
  "fallbacks.onUnsupported",
1222
1270
  s
1223
1271
  ),
1224
- delegate: z(
1225
- (ye = e.fallbacks) == null ? void 0 : ye.delegate,
1272
+ delegate: $(
1273
+ (Se = e.fallbacks) == null ? void 0 : Se.delegate,
1226
1274
  ["auto", "GPU", "CPU"],
1227
1275
  t.fallbacks.delegate,
1228
1276
  "fallbacks.delegate",
@@ -1230,13 +1278,13 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1230
1278
  )
1231
1279
  },
1232
1280
  assets: {
1233
- holisticModelUrl: xe(
1234
- (Se = e.assets) == null ? void 0 : Se.holisticModelUrl,
1281
+ holisticModelUrl: ve(
1282
+ (Te = e.assets) == null ? void 0 : Te.holisticModelUrl,
1235
1283
  t.assets.holisticModelUrl,
1236
1284
  "assets.holisticModelUrl",
1237
1285
  s
1238
1286
  ),
1239
- semanticSegmentationModelUrl: xe(
1287
+ semanticSegmentationModelUrl: ve(
1240
1288
  (Me = e.assets) == null ? void 0 : Me.semanticSegmentationModelUrl,
1241
1289
  t.assets.semanticSegmentationModelUrl,
1242
1290
  "assets.semanticSegmentationModelUrl",
@@ -1245,7 +1293,7 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1245
1293
  },
1246
1294
  updatedAt: typeof e.updatedAt == "number" && Number.isFinite(e.updatedAt) ? e.updatedAt : t.updatedAt
1247
1295
  };
1248
- }, ke = (e, t, r = Date.now()) => W({ ...t, updatedAt: r }, e), Oe = (e) => JSON.stringify(W({}, e)), Ge = (e) => {
1296
+ }, we = (e, t, r = Date.now()) => X({ ...t, updatedAt: r }, e), ze = (e) => JSON.stringify(X({}, e)), qe = (e) => {
1249
1297
  const t = [];
1250
1298
  let r = e;
1251
1299
  if (typeof e == "string")
@@ -1253,22 +1301,22 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1253
1301
  r = JSON.parse(e);
1254
1302
  } catch {
1255
1303
  return {
1256
- config: W(),
1304
+ config: X(),
1257
1305
  migrated: !0,
1258
1306
  warnings: ["not valid JSON; defaults used"]
1259
1307
  };
1260
1308
  }
1261
1309
  if (!r || typeof r != "object")
1262
1310
  return {
1263
- config: W(),
1311
+ config: X(),
1264
1312
  migrated: !0,
1265
1313
  warnings: ["not an object; defaults used"]
1266
1314
  };
1267
- const s = r, a = s.version !== ne;
1315
+ const s = r, a = s.version !== oe;
1268
1316
  return a && t.push(
1269
- `migrated from version ${String(s.version ?? "none")} to ${ne}`
1270
- ), { config: W(s, Ie, t), migrated: a, warnings: t };
1271
- }, ms = [
1317
+ `migrated from version ${String(s.version ?? "none")} to ${oe}`
1318
+ ), { config: X(s, Ge, t), migrated: a, warnings: t };
1319
+ }, gs = [
1272
1320
  "face",
1273
1321
  "hand",
1274
1322
  "gesture",
@@ -1276,7 +1324,7 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1276
1324
  "holistic",
1277
1325
  "segmentation",
1278
1326
  "semanticSegmentation"
1279
- ], lr = (e) => ({
1327
+ ], mr = (e) => ({
1280
1328
  perf: {
1281
1329
  targetFps: e.perf.targetFps > 0 ? e.perf.targetFps : void 0,
1282
1330
  camRes: e.perf.camRes,
@@ -1285,25 +1333,25 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1285
1333
  },
1286
1334
  lifecycle: { pauseWhenHidden: e.lifecycle.pauseWhenHidden },
1287
1335
  quality: e.quality
1288
- }), ur = (e) => ({
1336
+ }), fr = (e) => ({
1289
1337
  facingMode: e.camera.facingMode,
1290
1338
  ...e.camera.deviceId ? { deviceId: e.camera.deviceId } : {},
1291
1339
  ...e.camera.mirrored === "auto" ? {} : { mirrored: e.camera.mirrored }
1292
- }), O = (e) => e === null ? {} : { targetFps: e }, dr = (e, t) => {
1340
+ }), G = (e) => e === null ? {} : { targetFps: e }, pr = (e, t) => {
1293
1341
  const r = e.trackers;
1294
1342
  return {
1295
1343
  face: {
1296
1344
  numFaces: r.face.numFaces,
1297
- ...O(r.face.targetFps),
1345
+ ...G(r.face.targetFps),
1298
1346
  holdMs: r.face.holdMs,
1299
1347
  predictMs: r.face.predictMs,
1300
1348
  active: r.face.enabled
1301
1349
  },
1302
- hand: { ...O(r.hand.targetFps), active: r.hand.enabled },
1303
- gesture: { ...O(r.gesture.targetFps), active: r.gesture.enabled },
1350
+ hand: { ...G(r.hand.targetFps), active: r.hand.enabled },
1351
+ gesture: { ...G(r.gesture.targetFps), active: r.gesture.enabled },
1304
1352
  body: { active: r.body.enabled },
1305
1353
  holistic: {
1306
- ...O(r.holistic.targetFps),
1354
+ ...G(r.holistic.targetFps),
1307
1355
  hands: r.holistic.hands,
1308
1356
  holdMs: r.holistic.holdMs,
1309
1357
  predictMs: r.holistic.predictMs,
@@ -1321,21 +1369,21 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1321
1369
  active: r.semanticSegmentation.enabled
1322
1370
  }
1323
1371
  }[t];
1324
- }, mr = (e, t) => {
1372
+ }, hr = (e, t) => {
1325
1373
  const r = e.trackers;
1326
1374
  switch (t) {
1327
- case x.FACE_TRACKER:
1328
- return { numFaces: r.face.numFaces, ...O(r.face.targetFps) };
1329
- case x.HAND_TRACKER:
1330
- return { ...O(r.hand.targetFps) };
1331
- case x.GESTURE_TRACKER:
1332
- return { ...O(r.gesture.targetFps) };
1333
- case x.BODY_TRACKER:
1334
- return { ...O(r.body.targetFps) };
1335
- case x.HOLISTIC_TRACKER: {
1375
+ case k.FACE_TRACKER:
1376
+ return { numFaces: r.face.numFaces, ...G(r.face.targetFps) };
1377
+ case k.HAND_TRACKER:
1378
+ return { ...G(r.hand.targetFps) };
1379
+ case k.GESTURE_TRACKER:
1380
+ return { ...G(r.gesture.targetFps) };
1381
+ case k.BODY_TRACKER:
1382
+ return { ...G(r.body.targetFps) };
1383
+ case k.HOLISTIC_TRACKER: {
1336
1384
  const s = r.holistic;
1337
1385
  return {
1338
- ...O(s.targetFps),
1386
+ ...G(s.targetFps),
1339
1387
  hands: s.hands,
1340
1388
  holdMs: s.holdMs,
1341
1389
  predictMs: s.predictMs,
@@ -1350,9 +1398,9 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1350
1398
  ...e.assets.holisticModelUrl ? { modelUrl: e.assets.holisticModelUrl } : {}
1351
1399
  };
1352
1400
  }
1353
- case x.BACKGROUND_SEGMENTATION:
1401
+ case k.BACKGROUND_SEGMENTATION:
1354
1402
  return { quality: r.segmentation.quality };
1355
- case x.SEMANTIC_SEGMENTATION:
1403
+ case k.SEMANTIC_SEGMENTATION:
1356
1404
  return {
1357
1405
  preset: r.semanticSegmentation.preset,
1358
1406
  quality: r.semanticSegmentation.quality,
@@ -1361,273 +1409,274 @@ const Jt = (e, t, r) => e === "infinite" || e === "loop" && t < Math.max(1, Math
1361
1409
  default:
1362
1410
  return {};
1363
1411
  }
1364
- }, fr = (e) => {
1412
+ }, gr = (e) => {
1365
1413
  const t = e.trackers, r = [];
1366
- return t.face.enabled && r.push(x.FACE_TRACKER), t.hand.enabled && r.push(x.HAND_TRACKER), t.gesture.enabled && r.push(x.GESTURE_TRACKER), t.body.enabled && r.push(x.BODY_TRACKER), t.holistic.enabled && r.push(x.HOLISTIC_TRACKER), t.segmentation.enabled && r.push(x.BACKGROUND_SEGMENTATION), t.semanticSegmentation.enabled && r.push(x.SEMANTIC_SEGMENTATION), r;
1367
- }, oe = "vincentt.xr.tracking-config", de = () => {
1414
+ return t.face.enabled && r.push(k.FACE_TRACKER), t.hand.enabled && r.push(k.HAND_TRACKER), t.gesture.enabled && r.push(k.GESTURE_TRACKER), t.body.enabled && r.push(k.BODY_TRACKER), t.holistic.enabled && r.push(k.HOLISTIC_TRACKER), t.segmentation.enabled && r.push(k.BACKGROUND_SEGMENTATION), t.semanticSegmentation.enabled && r.push(k.SEMANTIC_SEGMENTATION), r;
1415
+ }, ie = "vincentt.xr.tracking-config", me = () => {
1368
1416
  try {
1369
1417
  return typeof localStorage < "u" ? localStorage : null;
1370
1418
  } catch {
1371
1419
  return null;
1372
1420
  }
1373
- }, pr = (e = oe, t = de()) => {
1421
+ }, yr = (e = ie, t = me()) => {
1374
1422
  if (!t) return null;
1375
1423
  try {
1376
1424
  const r = t.getItem(e);
1377
- return r ? Ge(r) : null;
1425
+ return r ? qe(r) : null;
1378
1426
  } catch {
1379
1427
  return null;
1380
1428
  }
1381
- }, _e = (e, t = oe, r = de()) => {
1429
+ }, De = (e, t = ie, r = me()) => {
1382
1430
  if (!r) return !1;
1383
1431
  try {
1384
- return r.setItem(t, Oe(e)), !0;
1432
+ return r.setItem(t, ze(e)), !0;
1385
1433
  } catch {
1386
1434
  return !1;
1387
1435
  }
1388
- }, hr = (e = oe, t = de()) => {
1436
+ }, Sr = (e = ie, t = me()) => {
1389
1437
  if (t)
1390
1438
  try {
1391
1439
  t.removeItem(e);
1392
1440
  } catch {
1393
1441
  }
1394
- }, fs = (e = {}) => {
1395
- const { storageKey: t = oe, persist: r = !0 } = e, s = e.storage, a = b(e.initial), n = X(() => W(a.current ?? {}), []), [o, c] = k(n), [i, l] = k([]), [h, d] = k(!r), m = b(o);
1396
- m.current = o, v(() => {
1442
+ }, ys = (e = {}) => {
1443
+ const { storageKey: t = ie, persist: r = !0 } = e, s = e.storage, a = A(e.initial), n = z(() => X(a.current ?? {}), []), [o, c] = _(n), [i, l] = _([]), [p, d] = _(!r), f = A(o);
1444
+ f.current = o, x(() => {
1397
1445
  if (!r) {
1398
1446
  d(!0);
1399
1447
  return;
1400
1448
  }
1401
- const p = pr(t, s);
1402
- if (p) {
1403
- const y = W(p.config, n);
1404
- m.current = y, c(y), l(p.warnings), p.migrated && _e(y, t, s);
1449
+ const h = yr(t, s);
1450
+ if (h) {
1451
+ const y = X(h.config, n);
1452
+ f.current = y, c(y), l(h.warnings), h.migrated && De(y, t, s);
1405
1453
  }
1406
1454
  d(!0);
1407
1455
  }, [r, t, s, n]);
1408
- const u = R(
1409
- (p, y) => (m.current = p, c(p), l(y), r && _e(p, t, s), p),
1456
+ const u = F(
1457
+ (h, y) => (f.current = h, c(h), l(y), r && De(h, t, s), h),
1410
1458
  [r, t, s]
1411
- ), f = R(
1412
- (p) => {
1413
- const y = [], A = W({ ...p, updatedAt: Date.now() }, m.current, y);
1414
- return u(A, y);
1459
+ ), m = F(
1460
+ (h) => {
1461
+ const y = [], E = X({ ...h, updatedAt: Date.now() }, f.current, y);
1462
+ return u(E, y);
1415
1463
  },
1416
1464
  [u]
1417
- ), S = R(() => {
1418
- const p = ke(n, {}, 0);
1419
- return m.current = p, c(p), l([]), r && hr(t, s), p;
1420
- }, [n, r, t, s]), T = R(
1421
- (p) => {
1422
- const y = Ge(p);
1423
- return y.warnings.some((A) => A.startsWith("not valid JSON") || A.startsWith("not an object")) ? (l([`import: ${y.warnings[0]}; config unchanged`]), m.current) : u(ke(y.config, {}, Date.now()), y.warnings);
1465
+ ), S = F(() => {
1466
+ const h = we(n, {}, 0);
1467
+ return f.current = h, c(h), l([]), r && Sr(t, s), h;
1468
+ }, [n, r, t, s]), T = F(
1469
+ (h) => {
1470
+ const y = qe(h);
1471
+ return y.warnings.some((E) => E.startsWith("not valid JSON") || E.startsWith("not an object")) ? (l([`import: ${y.warnings[0]}; config unchanged`]), f.current) : u(we(y.config, {}, Date.now()), y.warnings);
1424
1472
  },
1425
1473
  [u]
1426
1474
  );
1427
- return X(
1475
+ return z(
1428
1476
  () => ({
1429
1477
  config: o,
1430
- hydrated: h,
1478
+ hydrated: p,
1431
1479
  warnings: i,
1432
- update: f,
1480
+ update: m,
1433
1481
  reset: S,
1434
1482
  importJson: T,
1435
- json: Oe(o),
1436
- providerProps: lr(o),
1437
- cameraRequest: ur(o),
1438
- trackerProps: (p) => dr(o, p),
1439
- modelOptions: (p) => mr(o, p),
1440
- enabledModels: fr(o)
1483
+ json: ze(o),
1484
+ providerProps: mr(o),
1485
+ cameraRequest: fr(o),
1486
+ trackerProps: (h) => pr(o, h),
1487
+ modelOptions: (h) => hr(o, h),
1488
+ enabledModels: gr(o)
1441
1489
  }),
1442
- [o, h, i, f, S, T]
1490
+ [o, p, i, m, S, T]
1443
1491
  );
1444
1492
  };
1445
1493
  export {
1446
- Or as AspectRatioContainer,
1447
- Yt as AudioEngine,
1448
- Vr as AudioPlayer,
1449
- Gr as Axes,
1450
- $r as Button,
1451
- Ze as CAMERA_PERMISSION_MESSAGES,
1452
- os as CameraPermissionGate,
1453
- Rn as DEFAULT_ASSET_BUDGET_BYTES,
1454
- an as DEFAULT_MATERIAL_FILL,
1455
- be as DEFAULT_MESH_RENDERER,
1456
- gn as DEFAULT_MESH_RENDERER_RENDER_STATE,
1457
- gs as DEFAULT_PERFORMANCE_BUDGET,
1458
- ys as DEFAULT_PIXEL_SNAP_INCREMENT,
1459
- Ss as DEFAULT_QUALITY_TIERS,
1460
- Ms as DEFAULT_REFERENCE_PIXELS_PER_UNIT,
1461
- va as DEFAULT_SCREEN_GLASS,
1462
- nn as DEFAULT_SCREEN_GRADIENT,
1463
- xa as DEFAULT_SCREEN_IMAGE_SCENE_SETTINGS,
1464
- ka as DEFAULT_SCREEN_IMAGE_SETTINGS,
1465
- _a as DEFAULT_SCREEN_SHAPE_SETTINGS,
1466
- wa as DEFAULT_SCREEN_TEXT_SCENE_SETTINGS,
1467
- Pa as DEFAULT_SCREEN_TEXT_SHADOW_LAYER,
1468
- Ts as DEFAULT_SCREEN_TRANSFORM_2D,
1469
- Es as DEFAULT_SCREEN_TRANSFORM_ROOT,
1470
- Ie as DEFAULT_TRACKING_CONFIG,
1471
- re as DEFAULT_TRANSFORM_3D,
1472
- on as EXTERNAL_BACKGROUND_RENDER_LAYER,
1473
- pt as FULL_SCREEN_ANCHORS,
1474
- Xr as HtmlRegion,
1475
- Ha as LightObject,
1476
- Ka as LookAt,
1477
- cn as MAX_RENDER_GROUP_PASSES,
1478
- ln as MaterialFill,
1479
- Mn as MeshMaterial,
1480
- Tt as MeshRenderer,
1481
- Wr as Model,
1482
- Br as Object3D,
1483
- Nr as Panel,
1484
- Ir as PersonCutout,
1485
- Da as PinToMesh,
1486
- ja as RenderGroupLayer,
1487
- Va as SCREEN_IMAGE_MASK_CHANNELS,
1488
- en as Scene,
1489
- Za as SceneObjectRenderer,
1490
- tn as Scenes,
1491
- Ua as ScreenGlassMaterial,
1492
- un as ScreenGradientMaterial,
1493
- ht as ScreenImage,
1494
- Na as ScreenShape,
1495
- Aa as ScreenSpaceUI,
1496
- Ya as ScreenText,
1497
- Ye as ScreenTransform,
1498
- Ja as SequentialRenderPasses,
1499
- qr as SpriteAnimation,
1500
- ms as TRACKER_KINDS,
1501
- oe as TRACKING_CONFIG_STORAGE_KEY,
1502
- ne as TRACKING_CONFIG_VERSION,
1503
- Fa as TextLabel,
1504
- zr as ThemeProvider,
1505
- Mt as Transform3D,
1506
- Lr as VideoBackground,
1507
- An as XRAssetCache,
1508
- ls as XRAssetCacheProvider,
1509
- bs as XRMediaSource,
1510
- x as XRModel,
1511
- Rs as XRProvider,
1512
- As as XRQualityController,
1513
- ba as XRScene,
1514
- Fs as XR_FALLBACK_MESSAGES,
1515
- Cs as XR_MODEL_ASSET_URLS,
1494
+ qr as AspectRatioContainer,
1495
+ er as AudioEngine,
1496
+ Qr as AudioPlayer,
1497
+ Wr as Axes,
1498
+ jr as Button,
1499
+ Je as CAMERA_PERMISSION_MESSAGES,
1500
+ us as CameraPermissionGate,
1501
+ Cn as DEFAULT_ASSET_BUDGET_BYTES,
1502
+ cn as DEFAULT_MATERIAL_FILL,
1503
+ Re as DEFAULT_MESH_RENDERER,
1504
+ Tn as DEFAULT_MESH_RENDERER_RENDER_STATE,
1505
+ Ms as DEFAULT_PERFORMANCE_BUDGET,
1506
+ Es as DEFAULT_PIXEL_SNAP_INCREMENT,
1507
+ bs as DEFAULT_QUALITY_TIERS,
1508
+ Rs as DEFAULT_REFERENCE_PIXELS_PER_UNIT,
1509
+ wa as DEFAULT_SCREEN_GLASS,
1510
+ ln as DEFAULT_SCREEN_GRADIENT,
1511
+ Da as DEFAULT_SCREEN_IMAGE_SCENE_SETTINGS,
1512
+ Pa as DEFAULT_SCREEN_IMAGE_SETTINGS,
1513
+ Ua as DEFAULT_SCREEN_SHAPE_SETTINGS,
1514
+ Na as DEFAULT_SCREEN_TEXT_SCENE_SETTINGS,
1515
+ La as DEFAULT_SCREEN_TEXT_SHADOW_LAYER,
1516
+ As as DEFAULT_SCREEN_TRANSFORM_2D,
1517
+ Fs as DEFAULT_SCREEN_TRANSFORM_ROOT,
1518
+ Ge as DEFAULT_TRACKING_CONFIG,
1519
+ K as DEFAULT_TRANSFORM_3D,
1520
+ un as EXTERNAL_BACKGROUND_RENDER_LAYER,
1521
+ gt as FULL_SCREEN_ANCHORS,
1522
+ Kr as HtmlRegion,
1523
+ Vr as Light,
1524
+ Tt as LightObject,
1525
+ Za as LookAt,
1526
+ dn as MAX_RENDER_GROUP_PASSES,
1527
+ mn as MaterialFill,
1528
+ bn as MeshMaterial,
1529
+ Rt as MeshRenderer,
1530
+ Xr as Model,
1531
+ Hr as Object3D,
1532
+ Or as Panel,
1533
+ zr as PersonCutout,
1534
+ Ia as PinToMesh,
1535
+ Ya as RenderGroupLayer,
1536
+ Ja as SCREEN_IMAGE_MASK_CHANNELS,
1537
+ sn as Scene,
1538
+ Qa as SceneObjectRenderer,
1539
+ an as Scenes,
1540
+ Oa as ScreenGlassMaterial,
1541
+ fn as ScreenGradientMaterial,
1542
+ yt as ScreenImage,
1543
+ Ga as ScreenShape,
1544
+ ka as ScreenSpaceUI,
1545
+ en as ScreenText,
1546
+ Qe as ScreenTransform,
1547
+ tn as SequentialRenderPasses,
1548
+ Br as SpriteAnimation,
1549
+ gs as TRACKER_KINDS,
1550
+ ie as TRACKING_CONFIG_STORAGE_KEY,
1551
+ oe as TRACKING_CONFIG_VERSION,
1552
+ _a as TextLabel,
1553
+ $r as ThemeProvider,
1554
+ bt as Transform3D,
1555
+ Gr as VideoBackground,
1556
+ xn as XRAssetCache,
1557
+ fs as XRAssetCacheProvider,
1558
+ Cs as XRMediaSource,
1559
+ k as XRModel,
1560
+ xs as XRProvider,
1561
+ ks as XRQualityController,
1562
+ Ca as XRScene,
1563
+ _s as XR_FALLBACK_MESSAGES,
1564
+ vs as XR_MODEL_ASSET_URLS,
1516
1565
  U as audio,
1517
- Ve as canPromptForCamera,
1518
- hr as clearTrackingConfig,
1519
- vs as clientToScreenPixels,
1520
- gt as computeContainScale,
1521
- xs as computeFeedCrop,
1522
- ks as computeFitLayout,
1523
- Fn as createAssetCache,
1524
- _s as createFallbackReason,
1525
- dn as createTwoStopGradient,
1526
- jr as dataURLtoFile,
1527
- xn as defineGltfAsset,
1528
- kn as defineTextureAsset,
1529
- _n as defineVideoAsset,
1530
- ws as detectXRCapabilities,
1531
- wn as disposeObject3D,
1532
- Wa as drawNormalizedCrop,
1533
- fr as enabledModels,
1534
- Pn as estimateGeometryBytes,
1535
- Dn as estimateObjectBytes,
1536
- Un as estimateTextureBytes,
1537
- Ps as feedSidedName,
1538
- Ds as feedToScreenPixels,
1539
- Us as feedToSource,
1540
- Ns as feedToTracker,
1541
- Ls as feedToViewport,
1542
- Is as feedToWorld,
1543
- cs as findCameraByFacing,
1544
- De as getDefaultAssetCache,
1545
- mn as getRenderGroupLayer,
1546
- Os as isFeedPointInSource,
1547
- Gs as isMirroredSourceKind,
1548
- ss as isMuted,
1549
- is as listCameras,
1550
- pr as loadTrackingConfig,
1551
- La as mapScreenImageSettingsToProps,
1552
- Ia as mapScreenTextInnerShadowToProps,
1553
- Oa as mapScreenTextSettingsToProps,
1554
- qs as mediaToScreenPixels,
1555
- Ga as mergeScreenShapeSettings,
1556
- zs as mergeScreenTransform2D,
1557
- ke as mergeTrackingConfig,
1558
- Ws as mirrorFeedX,
1559
- yn as normalizeMeshRendererRenderState,
1560
- qa as normalizeScreenGlass,
1561
- fn as normalizeScreenGradient,
1562
- Bs as normalizedToScreenPixels,
1563
- Xs as normalizedToTransform2DPixels,
1564
- as as onMuteChange,
1565
- $s as orientSourcePoint,
1566
- Hs as orientedSize,
1567
- Ks as otherSide,
1568
- Ge as parseTrackingConfig,
1569
- js as personLeftSign,
1570
- Vs as personSide,
1571
- es as playOneShot,
1572
- Zr as prefetchMusic,
1573
- He as queryCameraPermission,
1574
- Yr as registerSound,
1575
- pn as renderSequentialPasses,
1576
- Ke as requestCameraAccess,
1577
- Zs as resolveModelAssetUrl,
1578
- Ba as resolveNormalizedCrop,
1579
- Xa as resolvePersonCutoutStatus,
1580
- Ys as resolveQualityConfig,
1581
- Js as resolveScreenTransform2D,
1582
- Qs as resolveTrackerSupport,
1583
- W as resolveTrackingConfig,
1584
- _e as saveTrackingConfig,
1585
- ea as screenPixelsToClient,
1586
- ta as screenPixelsToFeed,
1587
- ra as screenPixelsToMedia,
1588
- sa as screenPixelsToNormalized,
1589
- aa as screenPixelsToScreenSpace,
1590
- na as screenPixelsToUnits,
1591
- oa as screenPointToRay,
1592
- ia as screenSpaceToScreenPixels,
1593
- ca as screenTransform2DScale,
1594
- la as screenUnitsToPixels,
1595
- Oe as serializeTrackingConfig,
1596
- ts as setMuted,
1597
- ft as shouldDrawFallback,
1598
- Z as smoothNumber,
1599
- Dr as smoothVector2,
1600
- Ur as smoothVector3,
1601
- ua as sourceToFeed,
1602
- Jr as startMusic,
1603
- Qr as stopMusic,
1604
- je as subscribeCameraPermission,
1605
- da as swapSidedName,
1606
- ur as toCameraRequest,
1607
- mr as toModelOptions,
1608
- lr as toProviderProps,
1609
- dr as toTrackerProps,
1610
- rs as toggleMuted,
1611
- ma as trackerPointToScreenPixels,
1612
- fa as trackerToFeed,
1613
- pa as trackerToWorld,
1614
- ha as transform2DPixelsToNormalized,
1615
- tr as useCameraPermission,
1616
- Kr as useFrameCapture,
1617
- Hr as useMediaRecorder,
1618
- ns as useMuted,
1619
- mt as usePersonMaskTexture,
1620
- rn as useSceneSample,
1621
- St as useScreenRectAspect,
1622
- us as useXRAsset,
1623
- Le as useXRAssetCache,
1624
- ds as useXRAssetStats,
1625
- En as useXRCapabilities,
1626
- Cn as useXRQuality,
1627
- fs as useXRTrackingConfig,
1628
- ga as viewportSizeToTransform2DPixels,
1629
- ya as viewportToFeed,
1630
- Sa as worldToFeed,
1631
- Ma as worldToScreenPixels,
1632
- Ta as worldToTracker
1566
+ Ye as canPromptForCamera,
1567
+ Sr as clearTrackingConfig,
1568
+ ws as clientToScreenPixels,
1569
+ St as computeContainScale,
1570
+ Ds as computeFeedCrop,
1571
+ Ps as computeFitLayout,
1572
+ kn as createAssetCache,
1573
+ Us as createFallbackReason,
1574
+ pn as createTwoStopGradient,
1575
+ Jr as dataURLtoFile,
1576
+ wn as defineGltfAsset,
1577
+ Dn as defineTextureAsset,
1578
+ Pn as defineVideoAsset,
1579
+ Ns as detectXRCapabilities,
1580
+ Un as disposeObject3D,
1581
+ Ha as drawNormalizedCrop,
1582
+ gr as enabledModels,
1583
+ Nn as estimateGeometryBytes,
1584
+ Ln as estimateObjectBytes,
1585
+ In as estimateTextureBytes,
1586
+ Ls as feedSidedName,
1587
+ Is as feedToScreenPixels,
1588
+ Os as feedToSource,
1589
+ Gs as feedToTracker,
1590
+ zs as feedToViewport,
1591
+ qs as feedToWorld,
1592
+ ms as findCameraByFacing,
1593
+ Ne as getDefaultAssetCache,
1594
+ hn as getRenderGroupLayer,
1595
+ Ws as isFeedPointInSource,
1596
+ Bs as isMirroredSourceKind,
1597
+ is as isMuted,
1598
+ ds as listCameras,
1599
+ yr as loadTrackingConfig,
1600
+ za as mapScreenImageSettingsToProps,
1601
+ qa as mapScreenTextInnerShadowToProps,
1602
+ Wa as mapScreenTextSettingsToProps,
1603
+ $s as mediaToScreenPixels,
1604
+ Ba as mergeScreenShapeSettings,
1605
+ Xs as mergeScreenTransform2D,
1606
+ we as mergeTrackingConfig,
1607
+ Hs as mirrorFeedX,
1608
+ Mn as normalizeMeshRendererRenderState,
1609
+ $a as normalizeScreenGlass,
1610
+ gn as normalizeScreenGradient,
1611
+ Ks as normalizedToScreenPixels,
1612
+ js as normalizedToTransform2DPixels,
1613
+ cs as onMuteChange,
1614
+ Vs as orientSourcePoint,
1615
+ Zs as orientedSize,
1616
+ Ys as otherSide,
1617
+ qe as parseTrackingConfig,
1618
+ Js as personLeftSign,
1619
+ Qs as personSide,
1620
+ as as playOneShot,
1621
+ es as prefetchMusic,
1622
+ je as queryCameraPermission,
1623
+ ts as registerSound,
1624
+ yn as renderSequentialPasses,
1625
+ Ve as requestCameraAccess,
1626
+ ea as resolveModelAssetUrl,
1627
+ Ka as resolveNormalizedCrop,
1628
+ ja as resolvePersonCutoutStatus,
1629
+ ta as resolveQualityConfig,
1630
+ ra as resolveScreenTransform2D,
1631
+ sa as resolveTrackerSupport,
1632
+ X as resolveTrackingConfig,
1633
+ De as saveTrackingConfig,
1634
+ aa as screenPixelsToClient,
1635
+ na as screenPixelsToFeed,
1636
+ oa as screenPixelsToMedia,
1637
+ ia as screenPixelsToNormalized,
1638
+ ca as screenPixelsToScreenSpace,
1639
+ la as screenPixelsToUnits,
1640
+ ua as screenPointToRay,
1641
+ da as screenSpaceToScreenPixels,
1642
+ ma as screenTransform2DScale,
1643
+ fa as screenUnitsToPixels,
1644
+ ze as serializeTrackingConfig,
1645
+ ns as setMuted,
1646
+ ht as shouldDrawFallback,
1647
+ J as smoothNumber,
1648
+ Lr as smoothVector2,
1649
+ Ir as smoothVector3,
1650
+ pa as sourceToFeed,
1651
+ rs as startMusic,
1652
+ ss as stopMusic,
1653
+ Ze as subscribeCameraPermission,
1654
+ ha as swapSidedName,
1655
+ fr as toCameraRequest,
1656
+ hr as toModelOptions,
1657
+ mr as toProviderProps,
1658
+ pr as toTrackerProps,
1659
+ os as toggleMuted,
1660
+ ga as trackerPointToScreenPixels,
1661
+ ya as trackerToFeed,
1662
+ Sa as trackerToWorld,
1663
+ Ta as transform2DPixelsToNormalized,
1664
+ ar as useCameraPermission,
1665
+ Yr as useFrameCapture,
1666
+ Zr as useMediaRecorder,
1667
+ ls as useMuted,
1668
+ pt as usePersonMaskTexture,
1669
+ nn as useSceneSample,
1670
+ Et as useScreenRectAspect,
1671
+ ps as useXRAsset,
1672
+ Oe as useXRAssetCache,
1673
+ hs as useXRAssetStats,
1674
+ An as useXRCapabilities,
1675
+ _n as useXRQuality,
1676
+ ys as useXRTrackingConfig,
1677
+ Ma as viewportSizeToTransform2DPixels,
1678
+ Ea as viewportToFeed,
1679
+ ba as worldToFeed,
1680
+ Ra as worldToScreenPixels,
1681
+ Aa as worldToTracker
1633
1682
  };