@tresjs/cientos 5.0.0-next.1 → 5.0.0-next.2

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.
@@ -1,5 +1,6 @@
1
+ import { TresRenderer } from '@tresjs/core';
1
2
  import { MaybeRefOrGetter } from 'vue';
2
- import { Fog, FogExp2, Scene, Texture, WebGLRenderer, CubeCamera as ThreeCubeCamera, WebGLCubeRenderTarget } from 'three';
3
+ import { Fog, FogExp2, Scene, Texture, CubeCamera as ThreeCubeCamera, WebGLCubeRenderTarget } from 'three';
3
4
  export interface CubeCameraOptions {
4
5
  /** Resolution of the FBO, 255 */
5
6
  resolution?: MaybeRefOrGetter<number>;
@@ -12,7 +13,7 @@ export interface CubeCameraOptions {
12
13
  /** Custom fog that is temporarily set as the scene's fog */
13
14
  fog?: MaybeRefOrGetter<Fog | FogExp2>;
14
15
  /** Renderer */
15
- renderer?: MaybeRefOrGetter<WebGLRenderer>;
16
+ renderer?: MaybeRefOrGetter<TresRenderer>;
16
17
  /** Scene */
17
18
  scene?: MaybeRefOrGetter<Scene>;
18
19
  }
@@ -73,9 +73,9 @@ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
73
73
  declare const __VLS_component: import('vue').DefineComponent<AlignProps, {
74
74
  instance: import('vue').ShallowRef<Group<import('three').Object3DEventMap> | undefined, Group<import('three').Object3DEventMap> | undefined>;
75
75
  update: typeof update;
76
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
77
- update: (props: AlignCallbackOptions) => any;
78
- change: (props: AlignCallbackOptions) => any;
76
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
77
+ update: (props: AlignCallbackOptions) => void;
78
+ change: (props: AlignCallbackOptions) => void;
79
79
  }, string, import('vue').PublicProps, Readonly<AlignProps> & Readonly<{
80
80
  onUpdate?: ((props: AlignCallbackOptions) => any) | undefined;
81
81
  onChange?: ((props: AlignCallbackOptions) => any) | undefined;
@@ -112,7 +112,6 @@ declare const __VLS_component: import('vue').DefineComponent<OceanProps, {
112
112
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<OceanProps> & Readonly<{}>, {
113
113
  side: TresVector3;
114
114
  size: number;
115
- alpha: number;
116
115
  textureWidth: number;
117
116
  textureHeight: number;
118
117
  clipBias: number;
@@ -121,6 +120,7 @@ declare const __VLS_component: import('vue').DefineComponent<OceanProps, {
121
120
  sunColor: TresColor;
122
121
  waterColor: TresColor;
123
122
  distortionScale: number;
123
+ alpha: number;
124
124
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
125
125
  waterRef: unknown;
126
126
  }, any>;
@@ -191,9 +191,9 @@ declare function __VLS_template(): {
191
191
  }>, {
192
192
  instance: import('vue').ShallowRef<Group<import('three').Object3DEventMap> | undefined, Group<import('three').Object3DEventMap> | undefined>;
193
193
  update: () => void;
194
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
195
- update: (props: AlignCallbackOptions) => any;
196
- change: (props: AlignCallbackOptions) => any;
194
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
195
+ update: (props: AlignCallbackOptions) => void;
196
+ change: (props: AlignCallbackOptions) => void;
197
197
  }, string, {
198
198
  precise: boolean;
199
199
  cacheKey: import('vue').MaybeRefOrGetter<any>;
@@ -514,9 +514,9 @@ declare const __VLS_component: import('vue').DefineComponent<StageProps, {
514
514
  }>, {
515
515
  instance: import('vue').ShallowRef<Group<import('three').Object3DEventMap> | undefined, Group<import('three').Object3DEventMap> | undefined>;
516
516
  update: () => void;
517
- }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
518
- update: (props: AlignCallbackOptions) => any;
519
- change: (props: AlignCallbackOptions) => any;
517
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
518
+ update: (props: AlignCallbackOptions) => void;
519
+ change: (props: AlignCallbackOptions) => void;
520
520
  }, string, {
521
521
  precise: boolean;
522
522
  cacheKey: import('vue').MaybeRefOrGetter<any>;
@@ -1,16 +1,16 @@
1
1
  /**
2
2
  * name: @tresjs/cientos
3
- * version: v5.0.0-next.1
3
+ * version: v5.0.0-next.2
4
4
  * (c) 2025
5
5
  * description: Collection of useful helpers and fully functional, ready-made abstractions for Tres
6
6
  * author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
7
7
  */
8
- var Hl = Object.defineProperty;
9
- var jl = (a, t, e) => t in a ? Hl(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
10
- var se = (a, t, e) => jl(a, typeof t != "symbol" ? t + "" : t, e);
8
+ var jl = Object.defineProperty;
9
+ var Vl = (a, t, e) => t in a ? jl(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e;
10
+ var se = (a, t, e) => Vl(a, typeof t != "symbol" ? t + "" : t, e);
11
11
  import * as Zt from "three";
12
- import { TextureLoader as Un, DoubleSide as qt, WebGLCubeRenderTarget as Aa, HalfFloatType as It, CubeCamera as Pa, Group as Dt, Quaternion as He, Euler as xt, AudioListener as Ca, Audio as Vl, AudioLoader as Ra, MathUtils as je, ShaderMaterial as Et, UniformsUtils as Ln, Vector2 as ye, Color as we, Texture as hn, FrontSide as os, Mesh as ge, MeshBasicMaterial as Ut, Vector3 as F, FramebufferTexture as ar, RawShaderMaterial as bi, AdditiveBlending as ko, Box2 as Ia, Vector4 as ct, UnsignedByteType as xo, BufferGeometry as ht, InterleavedBuffer as zo, InterleavedBufferAttribute as an, REVISION as No, BufferAttribute as st, TrianglesDrawMode as Yl, TriangleFanDrawMode as wo, TriangleStripDrawMode as Oa, CompressedTexture as Ti, RGBAFormat as Da, PropertyBinding as fn, InterpolateDiscrete as La, Matrix4 as Oe, Scene as Es, PlaneGeometry as Wt, Uniform as Ce, PerspectiveCamera as Lt, WebGLRenderer as Wl, InterpolateLinear as Bo, NearestFilter as ui, NearestMipmapNearestFilter as ka, NearestMipmapLinearFilter as za, LinearFilter as wt, LinearMipmapNearestFilter as Na, LinearMipmapLinearFilter as Uo, ClampToEdgeWrapping as ns, RepeatWrapping as kn, MirroredRepeatWrapping as Ba, Plane as As, WebGLRenderTarget as Ot, NoToneMapping as $l, UniformsLib as hi, DynamicDrawUsage as Bs, Sphere as rs, BackSide as vi, BoxGeometry as Yt, Triangle as Xl, Object3D as Tt, Raycaster as Ua, LineBasicMaterial as Ms, CylinderGeometry as kt, Float32BufferAttribute as yt, Line as Be, OctahedronGeometry as En, SphereGeometry as Zl, TorusGeometry as Us, MOUSE as Bt, TOUCH as $t, Spherical as fi, OrthographicCamera as bn, Ray as ql, Loader as as, LoaderUtils as Jn, FileLoader as zn, MeshPhysicalMaterial as Qt, SpotLight as Fa, PointLight as bo, DirectionalLight as Fo, InstancedMesh as Ga, InstancedBufferAttribute as Kl, ImageBitmapLoader as Ql, PointsMaterial as Ha, Material as Ei, MeshStandardMaterial as Ps, SkinnedMesh as Go, LineSegments as Jl, LineLoop as ec, Points as ja, Skeleton as Va, AnimationClip as Ya, Bone as To, VectorKeyframeTrack as Eo, NumberKeyframeTrack as Mo, QuaternionKeyframeTrack as So, Interpolant as tc, Box3 as _t, ExtrudeGeometry as nc, Curve as sc, MeshPhongMaterial as Mi, MeshLambertMaterial as Wa, EquirectangularReflectionMapping as ri, AmbientLight as ic, Uint16BufferAttribute as oc, Matrix3 as Cn, ShapePath as yn, DataTextureLoader as rc, FloatType as ai, DataUtils as Fs, ShapeUtils as ac, Shape as lc, Path as Si, InstancedBufferGeometry as cc, InstancedInterleavedBuffer as Ao, WireframeGeometry as uc, Line3 as hc, AlwaysStencilFunc as fc, ReplaceStencilOp as Ai, AnimationMixer as dc, KeepStencilOp as Pi, NotEqualStencilFunc as lr, EqualStencilFunc as cr, DepthTexture as $a, EdgesGeometry as pc, CubeTextureLoader as mc, CubeReflectionMapping as gc, ShapeGeometry as vc, DefaultLoadingManager as Gs, VideoTexture as yc, Clock as _c, NoBlending as xc, Camera as wc, TangentSpaceNormalMap as bc, LOD as Tc, CatmullRomCurve3 as Ec, QuadraticBezierCurve3 as Xa, CubicBezierCurve3 as Mc, MeshDepthMaterial as ur, ShaderChunk as Ci, DataTexture as Za, UVMapping as Sc, IcosahedronGeometry as Ac } from "three";
13
- import { defineComponent as he, watch as Q, ref as be, shallowRef as te, withAsyncContext as Cs, onUnmounted as Qe, createElementBlock as ce, openBlock as ae, renderSlot as Ie, createElementVNode as ve, unref as N, getCurrentScope as Pc, onScopeDispose as Cc, onMounted as Jt, nextTick as Ho, getCurrentInstance as jo, isRef as di, hasInjectionContext as qa, inject as Vo, toValue as Me, computed as xe, reactive as ss, watchEffect as qe, isReactive as Ss, createVNode as ln, mergeProps as Fe, provide as Rc, toRefs as ze, shallowReactive as Ka, onBeforeUnmount as yi, useSlots as Yo, createCommentVNode as ft, createBlock as cn, Fragment as Qa, renderList as Ja, useAttrs as Ic, render as Oc, triggerRef as Dc, withCtx as Hs, Suspense as Lc, normalizeProps as kc, toRaw as hr } from "vue";
12
+ import { TextureLoader as Un, DoubleSide as qt, WebGLCubeRenderTarget as Aa, HalfFloatType as It, CubeCamera as Pa, Group as Dt, Quaternion as He, Euler as xt, AudioListener as Ca, Audio as Yl, AudioLoader as Ra, MathUtils as je, ShaderMaterial as Et, UniformsUtils as Ln, Vector2 as ye, Color as we, Texture as hn, FrontSide as os, Mesh as ge, MeshBasicMaterial as Ut, Vector3 as F, FramebufferTexture as ar, RawShaderMaterial as bi, AdditiveBlending as ko, Box2 as Ia, Vector4 as ct, UnsignedByteType as xo, BufferGeometry as ht, InterleavedBuffer as zo, InterleavedBufferAttribute as an, REVISION as No, BufferAttribute as st, TrianglesDrawMode as Wl, TriangleFanDrawMode as wo, TriangleStripDrawMode as Oa, CompressedTexture as Ti, RGBAFormat as Da, PropertyBinding as fn, InterpolateDiscrete as La, Matrix4 as Oe, Scene as Es, PlaneGeometry as Wt, Uniform as Ce, PerspectiveCamera as Lt, WebGLRenderer as ka, InterpolateLinear as Bo, NearestFilter as ui, NearestMipmapNearestFilter as za, NearestMipmapLinearFilter as Na, LinearFilter as wt, LinearMipmapNearestFilter as Ba, LinearMipmapLinearFilter as Uo, ClampToEdgeWrapping as ns, RepeatWrapping as kn, MirroredRepeatWrapping as Ua, Plane as As, WebGLRenderTarget as Ot, NoToneMapping as $l, UniformsLib as hi, DynamicDrawUsage as Bs, Sphere as rs, BackSide as vi, BoxGeometry as Yt, Triangle as Xl, Object3D as Tt, Raycaster as Fa, LineBasicMaterial as Ms, CylinderGeometry as kt, Float32BufferAttribute as yt, Line as Be, OctahedronGeometry as En, SphereGeometry as Zl, TorusGeometry as Us, MOUSE as Bt, TOUCH as $t, Spherical as fi, OrthographicCamera as bn, Ray as ql, Loader as as, LoaderUtils as Jn, FileLoader as zn, MeshPhysicalMaterial as Qt, SpotLight as Ga, PointLight as bo, DirectionalLight as Fo, InstancedMesh as Ha, InstancedBufferAttribute as Kl, ImageBitmapLoader as Ql, PointsMaterial as ja, Material as Ei, MeshStandardMaterial as Ps, SkinnedMesh as Go, LineSegments as Jl, LineLoop as ec, Points as Va, Skeleton as Ya, AnimationClip as Wa, Bone as To, VectorKeyframeTrack as Eo, NumberKeyframeTrack as Mo, QuaternionKeyframeTrack as So, Interpolant as tc, Box3 as _t, ExtrudeGeometry as nc, Curve as sc, MeshPhongMaterial as Mi, MeshLambertMaterial as $a, EquirectangularReflectionMapping as ri, AmbientLight as ic, Uint16BufferAttribute as oc, Matrix3 as Cn, ShapePath as yn, DataTextureLoader as rc, FloatType as ai, DataUtils as Fs, ShapeUtils as ac, Shape as lc, Path as Si, InstancedBufferGeometry as cc, InstancedInterleavedBuffer as Ao, WireframeGeometry as uc, Line3 as hc, AlwaysStencilFunc as fc, ReplaceStencilOp as Ai, AnimationMixer as dc, KeepStencilOp as Pi, NotEqualStencilFunc as lr, EqualStencilFunc as cr, DepthTexture as Xa, EdgesGeometry as pc, CubeTextureLoader as mc, CubeReflectionMapping as gc, ShapeGeometry as vc, DefaultLoadingManager as Gs, VideoTexture as yc, Clock as _c, NoBlending as xc, Camera as wc, TangentSpaceNormalMap as bc, LOD as Tc, CatmullRomCurve3 as Ec, QuadraticBezierCurve3 as Za, CubicBezierCurve3 as Mc, MeshDepthMaterial as ur, ShaderChunk as Ci, DataTexture as qa, UVMapping as Sc, IcosahedronGeometry as Ac } from "three";
13
+ import { defineComponent as he, watch as Q, ref as be, shallowRef as te, withAsyncContext as Cs, onUnmounted as Qe, createElementBlock as ce, openBlock as ae, renderSlot as Ie, createElementVNode as ve, unref as N, getCurrentScope as Pc, onScopeDispose as Cc, onMounted as Jt, nextTick as Ho, getCurrentInstance as jo, isRef as di, hasInjectionContext as Ka, inject as Vo, toValue as Me, computed as xe, reactive as ss, watchEffect as qe, isReactive as Ss, createVNode as ln, mergeProps as Fe, provide as Rc, toRefs as ze, shallowReactive as Qa, onBeforeUnmount as yi, useSlots as Yo, createCommentVNode as ft, createBlock as cn, Fragment as Ja, renderList as el, useAttrs as Ic, render as Oc, triggerRef as Dc, withCtx as Hs, Suspense as Lc, normalizeProps as kc, toRaw as hr } from "vue";
14
14
  import { logError as Kt, useLoader as Fn, useTres as Ee, useLoop as Ne, normalizeVectorFlexibleParam as es, useTresContext as Mt, extend as Rs, normalizeColor as rn, logWarning as Rn, buildGraph as fr } from "@tresjs/core";
15
15
  function zc(a) {
16
16
  const t = Nc(a), e = [];
@@ -122,7 +122,7 @@ function Yc(a, t, e) {
122
122
  t,
123
123
  e
124
124
  );
125
- return { frames: n, animations: el(n) };
125
+ return { frames: n, animations: tl(n) };
126
126
  }
127
127
  function xs(a, t, e) {
128
128
  let n;
@@ -199,7 +199,7 @@ function Zc(a, t, e, n = "default") {
199
199
  return u;
200
200
  }
201
201
  function qc(a, t = {}) {
202
- const e = el(a.frames);
202
+ const e = tl(a.frames);
203
203
  for (const [n, s] of Object.entries(t)) {
204
204
  const i = xs(a, n, !1), o = zc(s);
205
205
  for (const r of o)
@@ -235,7 +235,7 @@ function dr(a, t, e) {
235
235
  n.push(a.frames[i]);
236
236
  return n;
237
237
  }
238
- function el(a) {
238
+ function tl(a) {
239
239
  const t = {};
240
240
  for (const e of a)
241
241
  if (jc(e.name) !== null) {
@@ -342,7 +342,7 @@ function $o(a) {
342
342
  const Ri = /* @__PURE__ */ new WeakMap(), nu = (...a) => {
343
343
  var t;
344
344
  const e = a[0], n = (t = jo()) == null ? void 0 : t.proxy;
345
- if (n == null && !qa())
345
+ if (n == null && !Ka())
346
346
  throw new Error("injectLocal must be called in setup");
347
347
  return n && Ri.has(n) && e in Ri.get(n) ? Ri.get(n)[e] : Vo(...a);
348
348
  }, su = typeof window < "u" && typeof document < "u";
@@ -375,7 +375,7 @@ function au(a, t = {}) {
375
375
  });
376
376
  };
377
377
  }
378
- function tl(...a) {
378
+ function nl(...a) {
379
379
  let t = 0, e, n = !0, s = Nn, i, o, r, l, c;
380
380
  !di(a[0]) && typeof a[0] == "object" ? { delay: o, trailing: r = !0, leading: l = !0, rejectOnCancel: c = !1 } = a[0] : [o, r = !0, l = !0, c = !1] = a;
381
381
  const f = () => {
@@ -407,7 +407,7 @@ function Zo(a, t = 200, e = {}) {
407
407
  }
408
408
  function cu(a, t = 200, e = !1, n = !0, s = !1) {
409
409
  return Xo(
410
- tl(t, e, n, s),
410
+ nl(t, e, n, s),
411
411
  a
412
412
  );
413
413
  }
@@ -450,7 +450,7 @@ function fu(a, t, e = {}) {
450
450
  t,
451
451
  {
452
452
  ...o,
453
- eventFilter: tl(n, s, i)
453
+ eventFilter: nl(n, s, i)
454
454
  }
455
455
  );
456
456
  }
@@ -513,17 +513,17 @@ function du() {
513
513
  a.value = !0;
514
514
  }, t), a;
515
515
  }
516
- function nl(a) {
516
+ function sl(a) {
517
517
  const t = du();
518
518
  return xe(() => (t.value, !!a()));
519
519
  }
520
520
  const pu = Symbol("vueuse-ssr-width");
521
521
  function mu() {
522
- const a = qa() ? nu(pu, null) : null;
522
+ const a = Ka() ? nu(pu, null) : null;
523
523
  return typeof a == "number" ? a : void 0;
524
524
  }
525
525
  function gu(a, t = {}) {
526
- const { window: e = dn, ssrWidth: n = mu() } = t, s = nl(() => e && "matchMedia" in e && typeof e.matchMedia == "function"), i = te(typeof n == "number"), o = te(), r = te(!1), l = (c) => {
526
+ const { window: e = dn, ssrWidth: n = mu() } = t, s = sl(() => e && "matchMedia" in e && typeof e.matchMedia == "function"), i = te(typeof n == "number"), o = te(), r = te(!1), l = (c) => {
527
527
  r.value = c.matches;
528
528
  };
529
529
  return qe(() => {
@@ -543,7 +543,7 @@ function gu(a, t = {}) {
543
543
  function vu(a, t, e = {}) {
544
544
  const { window: n = dn, ...s } = e;
545
545
  let i;
546
- const o = nl(() => n && "ResizeObserver" in n), r = () => {
546
+ const o = sl(() => n && "ResizeObserver" in n), r = () => {
547
547
  i && (i.disconnect(), i = void 0);
548
548
  }, l = xe(() => {
549
549
  const u = Me(a);
@@ -608,7 +608,7 @@ function yu(a, t = { width: 0, height: 0 }, e = {}) {
608
608
  };
609
609
  }
610
610
  const gr = 1;
611
- function sl(a, t = {}) {
611
+ function il(a, t = {}) {
612
612
  const {
613
613
  throttle: e = 0,
614
614
  idle: n = 200,
@@ -828,9 +828,9 @@ function bu(a = {}) {
828
828
  }
829
829
  function Tu(a = {}) {
830
830
  const { window: t = dn, ...e } = a;
831
- return sl(t, e);
831
+ return il(t, e);
832
832
  }
833
- function il(a = {}) {
833
+ function ol(a = {}) {
834
834
  const {
835
835
  window: t = dn,
836
836
  initialWidth: e = Number.POSITIVE_INFINITY,
@@ -949,14 +949,14 @@ const Mu = ["object"], _g = /* @__PURE__ */ he({
949
949
  var u;
950
950
  const { camera: n, renderer: s } = Mt(), i = new Ca();
951
951
  (u = n.activeCamera.value) == null || u.add(i);
952
- const o = new Vl(i), r = new Ra();
952
+ const o = new Yl(i), r = new Ra();
953
953
  t({ instance: o }), Qe(() => {
954
954
  o && o.disconnect();
955
955
  }), Q(() => [a.playbackRate], () => o.setPlaybackRate(a.playbackRate ?? 1), { immediate: !0 }), Q(() => [a.volume], () => o.setVolume(a.volume ?? 0.5), { immediate: !0 }), Q(() => [a.loop], () => o.setLoop(a.loop ?? !1), { immediate: !0 }), Q(() => [a.src], async () => {
956
956
  const d = await r.loadAsync(a.src);
957
957
  o.setBuffer(d);
958
958
  }, { immediate: !0 });
959
- const c = document.getElementById(a.playTrigger ?? "") || s.instance.value.domElement;
959
+ const c = document.getElementById(a.playTrigger ?? "") || s.instance.domElement;
960
960
  We(c, "click", () => {
961
961
  o.isPlaying ? o.pause() : o.play(), e("isPlaying", o.isPlaying);
962
962
  });
@@ -1449,7 +1449,7 @@ function Lu(a) {
1449
1449
  function ku(a) {
1450
1450
  return a < 1 / 2.75 ? 7.5625 * a * a : a < 2 / 2.75 ? 7.5625 * (a -= 1.5 / 2.75) * a + 0.75 : a < 2.5 / 2.75 ? 7.5625 * (a -= 2.25 / 2.75) * a + 0.9375 : 7.5625 * (a -= 2.625 / 2.75) * a + 0.984375;
1451
1451
  }
1452
- const pn = "https://raw.githubusercontent.com/Tresjs/assets/93976c7d63ac83d4a254a41a10b2362bc17e90c9/textures/lensflare/", Qo = `${pn}circle.png`, xi = `${pn}circleBlur.png`, zu = `${pn}circleRainbow.png`, Nu = `${pn}line.png`, ol = `${pn}poly6.png`, rl = `${pn}polyStroke6.png`, Bu = `${pn}rays.png`, wi = `${pn}ring.png`, Uu = `${pn}starThin6.png`, Fu = {
1452
+ const pn = "https://raw.githubusercontent.com/Tresjs/assets/93976c7d63ac83d4a254a41a10b2362bc17e90c9/textures/lensflare/", Qo = `${pn}circle.png`, xi = `${pn}circleBlur.png`, zu = `${pn}circleRainbow.png`, Nu = `${pn}line.png`, rl = `${pn}poly6.png`, al = `${pn}polyStroke6.png`, Bu = `${pn}rays.png`, wi = `${pn}ring.png`, Uu = `${pn}starThin6.png`, Fu = {
1453
1453
  texture: [Nu, wi],
1454
1454
  color: ["white"],
1455
1455
  distance: [0, 0],
@@ -1473,15 +1473,15 @@ const pn = "https://raw.githubusercontent.com/Tresjs/assets/93976c7d63ac83d4a254
1473
1473
  distance: [0, 0],
1474
1474
  size: [180, 512],
1475
1475
  length: [2, 3]
1476
- }, [al, ll] = [3679071, 132442], Vu = {
1477
- texture: [xi, Qo, wi, ol, rl],
1478
- color: ["dimgray", "gray", "darkgray", al, ll],
1476
+ }, [ll, cl] = [3679071, 132442], Vu = {
1477
+ texture: [xi, Qo, wi, rl, al],
1478
+ color: ["dimgray", "gray", "darkgray", ll, cl],
1479
1479
  distance: [0.5, 2.5],
1480
1480
  size: [20, 180],
1481
1481
  length: [5, 21]
1482
1482
  }, Yu = {
1483
- texture: [xi, Qo, wi, ol, rl],
1484
- color: ["dimgray", "gray", "darkgray", al, ll],
1483
+ texture: [xi, Qo, wi, rl, al],
1484
+ color: ["dimgray", "gray", "darkgray", ll, cl],
1485
1485
  distance: [-0.6, -0.1],
1486
1486
  size: [180, 360],
1487
1487
  length: [0, 5]
@@ -1767,7 +1767,7 @@ const Eg = /* @__PURE__ */ he({
1767
1767
  }
1768
1768
  }), Gn = parseInt(No.replace(/\D+/g, "")), er = Gn >= 125 ? "uv1" : "uv2";
1769
1769
  function br(a, t) {
1770
- if (t === Yl)
1770
+ if (t === Wl)
1771
1771
  return console.warn("THREE.BufferGeometryUtils.toTrianglesDrawMode(): Geometry already defined as triangles."), a;
1772
1772
  if (t === wo || t === Oa) {
1773
1773
  let e = a.getIndex();
@@ -1866,7 +1866,7 @@ function Oi(a, t = 1 / 0, e = null) {
1866
1866
  )
1867
1867
  })), Hn.uniforms.blitTexture.value = a, Hn.defines.IS_SRGB = "colorSpace" in a ? a.colorSpace === "srgb" : a.encoding === 3001, Hn.needsUpdate = !0, Ys || (Ys = new ge(Ii, Hn), Ys.frustrumCulled = !1);
1868
1868
  const n = new Lt(), s = new Es();
1869
- s.add(Ys), e || (e = Vs = new Wl({ antialias: !1 })), e.setSize(Math.min(a.image.width, t), Math.min(a.image.height, t)), e.clear(), e.render(s, n);
1869
+ s.add(Ys), e || (e = Vs = new ka({ antialias: !1 })), e.setSize(Math.min(a.image.width, t), Math.min(a.image.height, t)), e.clear(), e.render(s, n);
1870
1870
  const i = new hn(e.domElement);
1871
1871
  return i.minFilter = a.minFilter, i.magFilter = a.magFilter, i.wrapS = a.wrapS, i.wrapT = a.wrapT, i.name = a.name, Vs && (Vs.dispose(), Vs = null), i;
1872
1872
  }
@@ -1884,7 +1884,7 @@ const Er = {
1884
1884
  NORMAL: ["byte normalized", "short normalized"],
1885
1885
  TANGENT: ["byte normalized", "short normalized"],
1886
1886
  TEXCOORD: ["byte", "byte normalized", "unsigned byte", "short", "short normalized", "unsigned short"]
1887
- }, cl = /* @__PURE__ */ (() => {
1887
+ }, ul = /* @__PURE__ */ (() => {
1888
1888
  class a {
1889
1889
  constructor() {
1890
1890
  this.pluginCallbacks = [], this.register(function(e) {
@@ -2029,14 +2029,14 @@ const Er = {
2029
2029
  REPEAT: 10497
2030
2030
  }, Di = "KHR_mesh_quantization", bt = {};
2031
2031
  bt[ui] = De.NEAREST;
2032
- bt[ka] = De.NEAREST_MIPMAP_NEAREST;
2033
- bt[za] = De.NEAREST_MIPMAP_LINEAR;
2032
+ bt[za] = De.NEAREST_MIPMAP_NEAREST;
2033
+ bt[Na] = De.NEAREST_MIPMAP_LINEAR;
2034
2034
  bt[wt] = De.LINEAR;
2035
- bt[Na] = De.LINEAR_MIPMAP_NEAREST;
2035
+ bt[Ba] = De.LINEAR_MIPMAP_NEAREST;
2036
2036
  bt[Uo] = De.LINEAR_MIPMAP_LINEAR;
2037
2037
  bt[ns] = De.CLAMP_TO_EDGE;
2038
2038
  bt[kn] = De.REPEAT;
2039
- bt[Ba] = De.MIRRORED_REPEAT;
2039
+ bt[Ua] = De.MIRRORED_REPEAT;
2040
2040
  const Mr = {
2041
2041
  scale: "scale",
2042
2042
  position: "translation",
@@ -2066,11 +2066,11 @@ function rh(a, t, e) {
2066
2066
  }
2067
2067
  return n;
2068
2068
  }
2069
- function ul(a) {
2069
+ function hl(a) {
2070
2070
  return Math.ceil(a / 4) * 4;
2071
2071
  }
2072
2072
  function Li(a, t = 0) {
2073
- const e = ul(a.byteLength);
2073
+ const e = hl(a.byteLength);
2074
2074
  if (e !== a.byteLength) {
2075
2075
  const n = new Uint8Array(e);
2076
2076
  if (n.set(new Uint8Array(a)), t !== 0)
@@ -2296,7 +2296,7 @@ class ah {
2296
2296
  }
2297
2297
  let l = t.itemSize * r;
2298
2298
  i === De.ARRAY_BUFFER && (l = Math.ceil(l / 4) * 4);
2299
- const c = ul(s * l), f = new DataView(new ArrayBuffer(c));
2299
+ const c = hl(s * l), f = new DataView(new ArrayBuffer(c));
2300
2300
  let u = 0;
2301
2301
  for (let g = n; g < n + s; g++) {
2302
2302
  for (let b = 0; b < t.itemSize; b++) {
@@ -2692,7 +2692,7 @@ class ah {
2692
2692
  */
2693
2693
  processAnimation(t, e) {
2694
2694
  const n = this.json, s = this.nodeMap;
2695
- n.animations || (n.animations = []), t = cl.Utils.mergeMorphTargetTracks(t.clone(), e);
2695
+ n.animations || (n.animations = []), t = ul.Utils.mergeMorphTargetTracks(t.clone(), e);
2696
2696
  const i = t.tracks, o = [], r = [];
2697
2697
  for (let l = 0; l < i.length; ++l) {
2698
2698
  const c = i[l], f = fn.parseTrackName(c.name);
@@ -3035,7 +3035,7 @@ let ch = class {
3035
3035
  i.emissiveStrength = t.emissiveIntensity, e.extensions = e.extensions || {}, e.extensions[this.name] = i, s[this.name] = !0;
3036
3036
  }
3037
3037
  };
3038
- var Rt = Uint8Array, wn = Uint16Array, Co = Uint32Array, hl = new Rt([
3038
+ var Rt = Uint8Array, wn = Uint16Array, Co = Uint32Array, fl = new Rt([
3039
3039
  0,
3040
3040
  0,
3041
3041
  0,
@@ -3070,7 +3070,7 @@ var Rt = Uint8Array, wn = Uint16Array, Co = Uint32Array, hl = new Rt([
3070
3070
  0,
3071
3071
  /* impossible */
3072
3072
  0
3073
- ]), fl = new Rt([
3073
+ ]), dl = new Rt([
3074
3074
  0,
3075
3075
  0,
3076
3076
  0,
@@ -3104,16 +3104,16 @@ var Rt = Uint8Array, wn = Uint16Array, Co = Uint32Array, hl = new Rt([
3104
3104
  /* unused */
3105
3105
  0,
3106
3106
  0
3107
- ]), _h = new Rt([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), dl = function(a, t) {
3107
+ ]), _h = new Rt([16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15]), pl = function(a, t) {
3108
3108
  for (var e = new wn(31), n = 0; n < 31; ++n)
3109
3109
  e[n] = t += 1 << a[n - 1];
3110
3110
  for (var s = new Co(e[30]), n = 1; n < 30; ++n)
3111
3111
  for (var i = e[n]; i < e[n + 1]; ++i)
3112
3112
  s[i] = i - e[n] << 5 | n;
3113
3113
  return [e, s];
3114
- }, pl = dl(hl, 2), ml = pl[0], xh = pl[1];
3115
- ml[28] = 258, xh[258] = 28;
3116
- var wh = dl(fl, 0), bh = wh[0], Ro = new wn(32768);
3114
+ }, ml = pl(fl, 2), gl = ml[0], xh = ml[1];
3115
+ gl[28] = 258, xh[258] = 28;
3116
+ var wh = pl(dl, 0), bh = wh[0], Ro = new wn(32768);
3117
3117
  for (var Ze = 0; Ze < 32768; ++Ze) {
3118
3118
  var gn = (Ze & 43690) >>> 1 | (Ze & 21845) << 1;
3119
3119
  gn = (gn & 52428) >>> 2 | (gn & 13107) << 2, gn = (gn & 61680) >>> 4 | (gn & 3855) << 4, Ro[Ze] = ((gn & 65280) >>> 8 | (gn & 255) << 8) >>> 1;
@@ -3145,10 +3145,10 @@ for (var Ze = 256; Ze < 280; ++Ze)
3145
3145
  Is[Ze] = 7;
3146
3146
  for (var Ze = 280; Ze < 288; ++Ze)
3147
3147
  Is[Ze] = 8;
3148
- var gl = new Rt(32);
3148
+ var vl = new Rt(32);
3149
3149
  for (var Ze = 0; Ze < 32; ++Ze)
3150
- gl[Ze] = 5;
3151
- var Th = /* @__PURE__ */ bs(Is, 9, 1), Eh = /* @__PURE__ */ bs(gl, 5, 1), ki = function(a) {
3150
+ vl[Ze] = 5;
3151
+ var Th = /* @__PURE__ */ bs(Is, 9, 1), Eh = /* @__PURE__ */ bs(vl, 5, 1), ki = function(a) {
3152
3152
  for (var t = a[0], e = 1; e < a.length; ++e)
3153
3153
  a[e] > t && (t = a[e]);
3154
3154
  return t;
@@ -3240,8 +3240,8 @@ var Th = /* @__PURE__ */ bs(Is, 9, 1), Eh = /* @__PURE__ */ bs(gl, 5, 1), ki = f
3240
3240
  } else {
3241
3241
  var le = oe - 254;
3242
3242
  if (oe > 264) {
3243
- var y = oe - 257, ue = hl[y];
3244
- le = zt(a, l, (1 << ue) - 1) + ml[y], l += ue;
3243
+ var y = oe - 257, ue = fl[y];
3244
+ le = zt(a, l, (1 << ue) - 1) + gl[y], l += ue;
3245
3245
  }
3246
3246
  var me = u[zi(a, l) & ee], Y = me >>> 4;
3247
3247
  if (!me)
@@ -3249,7 +3249,7 @@ var Th = /* @__PURE__ */ bs(Is, 9, 1), Eh = /* @__PURE__ */ bs(gl, 5, 1), ki = f
3249
3249
  l += me & 15;
3250
3250
  var G = bh[Y];
3251
3251
  if (Y > 3) {
3252
- var ue = fl[Y];
3252
+ var ue = dl[Y];
3253
3253
  G += zi(a, l) & (1 << ue) - 1, l += ue;
3254
3254
  }
3255
3255
  if (l > g) {
@@ -8312,7 +8312,7 @@ class Hh {
8312
8312
  }
8313
8313
  }
8314
8314
  var jh = Object.defineProperty, Vh = (a, t, e) => t in a ? jh(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, Yh = (a, t, e) => (Vh(a, t + "", e), e);
8315
- let vl = class {
8315
+ let yl = class {
8316
8316
  constructor() {
8317
8317
  Yh(this, "_listeners");
8318
8318
  }
@@ -8371,7 +8371,7 @@ let vl = class {
8371
8371
  var Wh = Object.defineProperty, $h = (a, t, e) => t in a ? Wh(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, J = (a, t, e) => ($h(a, typeof t != "symbol" ? t + "" : t, e), e);
8372
8372
  class Xh extends Tt {
8373
8373
  constructor(t, e) {
8374
- super(), J(this, "isTransformControls", !0), J(this, "visible", !1), J(this, "domElement"), J(this, "raycaster", new Ua()), J(this, "gizmo"), J(this, "plane"), J(this, "tempVector", new F()), J(this, "tempVector2", new F()), J(this, "tempQuaternion", new He()), J(this, "unit", {
8374
+ super(), J(this, "isTransformControls", !0), J(this, "visible", !1), J(this, "domElement"), J(this, "raycaster", new Fa()), J(this, "gizmo"), J(this, "plane"), J(this, "tempVector", new F()), J(this, "tempVector2", new F()), J(this, "tempQuaternion", new He()), J(this, "unit", {
8375
8375
  X: new F(1, 0, 0),
8376
8376
  Y: new F(0, 1, 0),
8377
8377
  Z: new F(0, 0, 1)
@@ -8794,7 +8794,7 @@ class qh extends ge {
8794
8794
  }
8795
8795
  var Kh = Object.defineProperty, Qh = (a, t, e) => t in a ? Kh(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, nt = (a, t, e) => (Qh(a, typeof t != "symbol" ? t + "" : t, e), e);
8796
8796
  const jn = /* @__PURE__ */ new xt(0, 0, 0, "YXZ"), Vn = /* @__PURE__ */ new F(), Jh = { type: "change" }, ef = { type: "lock" }, tf = { type: "unlock" }, Or = 2e-3, Dr = Math.PI / 2;
8797
- class yl extends vl {
8797
+ class _l extends yl {
8798
8798
  constructor(t, e) {
8799
8799
  super(), nt(this, "camera"), nt(this, "domElement"), nt(this, "isLocked"), nt(this, "minPolarAngle"), nt(this, "maxPolarAngle"), nt(this, "pointerSpeed"), nt(this, "onMouseMove", (n) => {
8800
8800
  !this.domElement || this.isLocked === !1 || (jn.setFromQuaternion(this.camera.quaternion), jn.y -= n.movementX * Or * this.pointerSpeed, jn.x -= n.movementY * Or * this.pointerSpeed, jn.x = Math.max(Dr - this.maxPolarAngle, Math.min(Dr - this.minPolarAngle, jn.x)), this.camera.quaternion.setFromEuler(jn), this.dispatchEvent(Jh));
@@ -8821,7 +8821,7 @@ class yl extends vl {
8821
8821
  }
8822
8822
  var nf = Object.defineProperty, sf = (a, t, e) => t in a ? nf(a, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[t] = e, Te = (a, t, e) => (sf(a, typeof t != "symbol" ? t + "" : t, e), e);
8823
8823
  const Xs = /* @__PURE__ */ new ql(), Lr = /* @__PURE__ */ new As(), of = Math.cos(70 * (Math.PI / 180)), kr = (a, t) => (a % t + t) % t;
8824
- class _l extends vl {
8824
+ class xl extends yl {
8825
8825
  constructor(t, e) {
8826
8826
  super(), Te(this, "object"), Te(this, "domElement"), Te(this, "enabled", !0), Te(this, "target", new F()), Te(this, "minDistance", 0), Te(this, "maxDistance", 1 / 0), Te(this, "minZoom", 0), Te(this, "maxZoom", 1 / 0), Te(this, "minPolarAngle", 0), Te(this, "maxPolarAngle", Math.PI), Te(this, "minAzimuthAngle", -1 / 0), Te(this, "maxAzimuthAngle", 1 / 0), Te(this, "enableDamping", !1), Te(this, "dampingFactor", 0.05), Te(this, "enableZoom", !0), Te(this, "zoomSpeed", 1), Te(this, "enableRotate", !0), Te(this, "rotateSpeed", 1), Te(this, "enablePan", !0), Te(this, "panSpeed", 1), Te(this, "screenSpacePanning", !0), Te(this, "keyPanSpeed", 7), Te(this, "zoomToCursor", !1), Te(this, "autoRotate", !1), Te(this, "autoRotateSpeed", 2), Te(this, "reverseOrbit", !1), Te(this, "reverseHorizontalOrbit", !1), Te(this, "reverseVerticalOrbit", !1), Te(this, "keys", { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }), Te(this, "mouseButtons", {
8827
8827
  LEFT: Bt.ROTATE,
@@ -9230,7 +9230,7 @@ class _l extends vl {
9230
9230
  }, this.getZoomScale = () => D(), e !== void 0 && this.connect(e), this.update();
9231
9231
  }
9232
9232
  }
9233
- class rf extends _l {
9233
+ class rf extends xl {
9234
9234
  constructor(t, e) {
9235
9235
  super(t, e), this.screenSpacePanning = !1, this.mouseButtons.LEFT = Bt.PAN, this.mouseButtons.RIGHT = Bt.ROTATE, this.touches.ONE = $t.PAN, this.touches.TWO = $t.DOLLY_ROTATE;
9236
9236
  }
@@ -9344,7 +9344,7 @@ class Nr extends as {
9344
9344
  if (typeof t == "string")
9345
9345
  i = JSON.parse(t);
9346
9346
  else if (t instanceof ArrayBuffer)
9347
- if (is(new Uint8Array(t.slice(0, 4))) === xl) {
9347
+ if (is(new Uint8Array(t.slice(0, 4))) === wl) {
9348
9348
  try {
9349
9349
  o[ke.KHR_BINARY_GLTF] = new Af(t);
9350
9350
  } catch (f) {
@@ -9472,7 +9472,7 @@ class cf {
9472
9472
  c = new bo(f), c.distance = u;
9473
9473
  break;
9474
9474
  case "spot":
9475
- c = new Fa(f), c.distance = u, l.spot = l.spot || {}, l.spot.innerConeAngle = l.spot.innerConeAngle !== void 0 ? l.spot.innerConeAngle : 0, l.spot.outerConeAngle = l.spot.outerConeAngle !== void 0 ? l.spot.outerConeAngle : Math.PI / 4, c.angle = l.spot.outerConeAngle, c.penumbra = 1 - l.spot.innerConeAngle / l.spot.outerConeAngle, c.target.position.set(0, 0, -1), c.add(c.target);
9475
+ c = new Ga(f), c.distance = u, l.spot = l.spot || {}, l.spot.innerConeAngle = l.spot.innerConeAngle !== void 0 ? l.spot.innerConeAngle : 0, l.spot.outerConeAngle = l.spot.outerConeAngle !== void 0 ? l.spot.outerConeAngle : Math.PI / 4, c.angle = l.spot.outerConeAngle, c.penumbra = 1 - l.spot.innerConeAngle / l.spot.outerConeAngle, c.target.position.set(0, 0, -1), c.add(c.target);
9476
9476
  break;
9477
9477
  default:
9478
9478
  throw new Error("THREE.GLTFLoader: Unexpected light type: " + l.type);
@@ -9838,7 +9838,7 @@ class Sf {
9838
9838
  return r.length < 1 ? null : (r.push(this.parser.createNodeMesh(t)), Promise.all(r).then((c) => {
9839
9839
  const f = c.pop(), u = f.isGroup ? f.children : [f], d = c[0].count, h = [];
9840
9840
  for (const g of u) {
9841
- const b = new Oe(), _ = new F(), m = new He(), v = new F(1, 1, 1), p = new Ga(g.geometry, g.material, d);
9841
+ const b = new Oe(), _ = new F(), m = new He(), v = new F(1, 1, 1), p = new Ha(g.geometry, g.material, d);
9842
9842
  for (let E = 0; E < d; E++)
9843
9843
  l.TRANSLATION && _.fromBufferAttribute(l.TRANSLATION, E), l.ROTATION && m.fromBufferAttribute(l.ROTATION, E), l.SCALE && v.fromBufferAttribute(l.SCALE, E), p.setMatrixAt(E, b.compose(_, m, v));
9844
9844
  for (const E in l)
@@ -9852,7 +9852,7 @@ class Sf {
9852
9852
  }));
9853
9853
  }
9854
9854
  }
9855
- const xl = "glTF", ds = 12, Br = { JSON: 1313821514, BIN: 5130562 };
9855
+ const wl = "glTF", ds = 12, Br = { JSON: 1313821514, BIN: 5130562 };
9856
9856
  class Af {
9857
9857
  constructor(t) {
9858
9858
  this.name = ke.KHR_BINARY_GLTF, this.content = null, this.body = null;
@@ -9861,7 +9861,7 @@ class Af {
9861
9861
  magic: is(new Uint8Array(t.slice(0, 4))),
9862
9862
  version: e.getUint32(4, !0),
9863
9863
  length: e.getUint32(8, !0)
9864
- }, this.header.magic !== xl)
9864
+ }, this.header.magic !== wl)
9865
9865
  throw new Error("THREE.GLTFLoader: Unsupported glTF-Binary header.");
9866
9866
  if (this.header.version < 2)
9867
9867
  throw new Error("THREE.GLTFLoader: Legacy binary file detected.");
@@ -9936,7 +9936,7 @@ class Rf {
9936
9936
  this.name = ke.KHR_MESH_QUANTIZATION;
9937
9937
  }
9938
9938
  }
9939
- class wl extends tc {
9939
+ class bl extends tc {
9940
9940
  constructor(t, e, n, s) {
9941
9941
  super(t, e, n, s);
9942
9942
  }
@@ -9956,7 +9956,7 @@ class wl extends tc {
9956
9956
  }
9957
9957
  }
9958
9958
  const If = /* @__PURE__ */ new He();
9959
- class Of extends wl {
9959
+ class Of extends bl {
9960
9960
  interpolate_(t, e, n, s) {
9961
9961
  const i = super.interpolate_(t, e, n, s);
9962
9962
  return If.fromArray(i).normalize().toArray(i), i;
@@ -9980,13 +9980,13 @@ const Ct = {
9980
9980
  }, Ur = {
9981
9981
  9728: ui,
9982
9982
  9729: wt,
9983
- 9984: ka,
9984
- 9985: Na,
9985
- 9986: za,
9983
+ 9984: za,
9984
+ 9985: Ba,
9985
+ 9986: Na,
9986
9986
  9987: Uo
9987
9987
  }, Fr = {
9988
9988
  33071: ns,
9989
- 33648: Ba,
9989
+ 33648: Ua,
9990
9990
  10497: kn
9991
9991
  }, Ni = {
9992
9992
  SCALAR: 1,
@@ -10489,7 +10489,7 @@ class Ff {
10489
10489
  if (t.isPoints) {
10490
10490
  const r = "PointsMaterial:" + n.uuid;
10491
10491
  let l = this.cache.get(r);
10492
- l || (l = new Ha(), Ei.prototype.copy.call(l, n), l.color.copy(n.color), l.map = n.map, l.sizeAttenuation = !1, this.cache.add(r, l)), n = l;
10492
+ l || (l = new ja(), Ei.prototype.copy.call(l, n), l.color.copy(n.color), l.map = n.map, l.sizeAttenuation = !1, this.cache.add(r, l)), n = l;
10493
10493
  } else if (t.isLine) {
10494
10494
  const r = "LineBasicMaterial:" + n.uuid;
10495
10495
  let l = this.cache.get(r);
@@ -10612,7 +10612,7 @@ class Ff {
10612
10612
  else if (_.mode === Ct.LINE_LOOP)
10613
10613
  m = new ec(b, v);
10614
10614
  else if (_.mode === Ct.POINTS)
10615
- m = new ja(b, v);
10615
+ m = new Va(b, v);
10616
10616
  else
10617
10617
  throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + _.mode);
10618
10618
  Object.keys(m.geometry.morphAttributes).length > 0 && zf(m, i), m.name = e.createUniqueName(i.name || "mesh_" + t), on(m, i), _.extensions && Sn(s, m, _), e.assignFinalMaterial(m), u.push(m);
@@ -10670,7 +10670,7 @@ class Ff {
10670
10670
  } else
10671
10671
  console.warn('THREE.GLTFLoader: Joint "%s" could not be found.', e.joints[c]);
10672
10672
  }
10673
- return new Va(r, l);
10673
+ return new Ya(r, l);
10674
10674
  });
10675
10675
  }
10676
10676
  /**
@@ -10702,7 +10702,7 @@ class Ff {
10702
10702
  for (let T = 0; T < x.length; T++)
10703
10703
  m.push(x[T]);
10704
10704
  }
10705
- return new Ya(i, void 0, m);
10705
+ return new Wa(i, void 0, m);
10706
10706
  });
10707
10707
  }
10708
10708
  createNodeMesh(t) {
@@ -10846,7 +10846,7 @@ class Ff {
10846
10846
  }
10847
10847
  _createCubicSplineTrackInterpolant(t) {
10848
10848
  t.createInterpolant = function(n) {
10849
- const s = this instanceof So ? Of : wl;
10849
+ const s = this instanceof So ? Of : bl;
10850
10850
  return new s(this.times, this.values, this.getValueSize() / 3, n);
10851
10851
  }, t.createInterpolant.isInterpolantFactoryMethodGLTFCubicSpline = !0;
10852
10852
  }
@@ -11061,7 +11061,7 @@ const jf = {
11061
11061
  `
11062
11062
  )
11063
11063
  };
11064
- function bl(a, t, e) {
11064
+ function Tl(a, t, e) {
11065
11065
  const n = e.length - a - 1;
11066
11066
  if (t >= e[n])
11067
11067
  return n - 1;
@@ -11087,7 +11087,7 @@ function Yf(a, t, e, n) {
11087
11087
  return s;
11088
11088
  }
11089
11089
  function Wf(a, t, e, n) {
11090
- const s = bl(a, n, t), i = Yf(s, n, a, t), o = new ct(0, 0, 0, 0);
11090
+ const s = Tl(a, n, t), i = Yf(s, n, a, t), o = new ct(0, 0, 0, 0);
11091
11091
  for (let r = 0; r <= a; ++r) {
11092
11092
  const l = e[s - a + r], c = i[r], f = l.w * c;
11093
11093
  o.x += l.x * f, o.y += l.y * f, o.z += l.z * f, o.w += l.w * c;
@@ -11146,7 +11146,7 @@ function $f(a, t, e, n, s) {
11146
11146
  return o;
11147
11147
  }
11148
11148
  function Xf(a, t, e, n, s) {
11149
- const i = s < a ? s : a, o = [], r = bl(a, n, t), l = $f(r, n, a, i, t), c = [];
11149
+ const i = s < a ? s : a, o = [], r = Tl(a, n, t), l = $f(r, n, a, i, t), c = [];
11150
11150
  for (let f = 0; f < e.length; ++f) {
11151
11151
  const u = e[f].clone(), d = u.w;
11152
11152
  u.x *= d, u.y *= d, u.z *= d, c[f] = u;
@@ -11232,7 +11232,7 @@ class Qf extends as {
11232
11232
  if (id(t))
11233
11233
  Le = new sd().parse(t);
11234
11234
  else {
11235
- const s = Sl(t);
11235
+ const s = Al(t);
11236
11236
  if (!od(s))
11237
11237
  throw new Error("THREE.FBXLoader: Unknown format.");
11238
11238
  if (Yr(s) < 7e3)
@@ -11395,7 +11395,7 @@ class Jf {
11395
11395
  r = new Mi();
11396
11396
  break;
11397
11397
  case "lambert":
11398
- r = new Wa();
11398
+ r = new $a();
11399
11399
  break;
11400
11400
  default:
11401
11401
  console.warn('THREE.FBXLoader: unknown material type "%s". Defaulting to MeshPhongMaterial.', i), r = new Mi();
@@ -11535,7 +11535,7 @@ class Jf {
11535
11535
  }), this.bindSkeleton(t.skeletons, e, s), this.createAmbientLight(), vt.traverse(function(l) {
11536
11536
  if (l.userData.transformData) {
11537
11537
  l.parent && (l.userData.transformData.parentMatrix = l.parent.matrix, l.userData.transformData.parentMatrixWorld = l.parent.matrixWorld);
11538
- const c = El(l.userData.transformData);
11538
+ const c = Ml(l.userData.transformData);
11539
11539
  l.applyMatrix4(c), l.updateWorldMatrix();
11540
11540
  }
11541
11541
  });
@@ -11662,7 +11662,7 @@ class Jf {
11662
11662
  let c = Math.PI / 3;
11663
11663
  n.InnerAngle !== void 0 && (c = je.degToRad(n.InnerAngle.value));
11664
11664
  let f = 0;
11665
- n.OuterAngle !== void 0 && (f = je.degToRad(n.OuterAngle.value), f = Math.max(f, 1)), e = new Fa(i, o, r, c, f, l);
11665
+ n.OuterAngle !== void 0 && (f = je.degToRad(n.OuterAngle.value), f = Math.max(f, 1)), e = new Ga(i, o, r, c, f, l);
11666
11666
  break;
11667
11667
  default:
11668
11668
  console.warn(
@@ -11692,7 +11692,7 @@ class Jf {
11692
11692
  // parse the model node for transform data
11693
11693
  getTransformData(t, e) {
11694
11694
  const n = {};
11695
- "InheritType" in e && (n.inheritType = parseInt(e.InheritType.value)), "RotationOrder" in e ? n.eulerOrder = Ml(e.RotationOrder.value) : n.eulerOrder = "ZYX", "Lcl_Translation" in e && (n.translation = e.Lcl_Translation.value), "PreRotation" in e && (n.preRotation = e.PreRotation.value), "Lcl_Rotation" in e && (n.rotation = e.Lcl_Rotation.value), "PostRotation" in e && (n.postRotation = e.PostRotation.value), "Lcl_Scaling" in e && (n.scale = e.Lcl_Scaling.value), "ScalingOffset" in e && (n.scalingOffset = e.ScalingOffset.value), "ScalingPivot" in e && (n.scalingPivot = e.ScalingPivot.value), "RotationOffset" in e && (n.rotationOffset = e.RotationOffset.value), "RotationPivot" in e && (n.rotationPivot = e.RotationPivot.value), t.userData.transformData = n;
11695
+ "InheritType" in e && (n.inheritType = parseInt(e.InheritType.value)), "RotationOrder" in e ? n.eulerOrder = Sl(e.RotationOrder.value) : n.eulerOrder = "ZYX", "Lcl_Translation" in e && (n.translation = e.Lcl_Translation.value), "PreRotation" in e && (n.preRotation = e.PreRotation.value), "Lcl_Rotation" in e && (n.rotation = e.Lcl_Rotation.value), "PostRotation" in e && (n.postRotation = e.PostRotation.value), "Lcl_Scaling" in e && (n.scale = e.Lcl_Scaling.value), "ScalingOffset" in e && (n.scalingOffset = e.ScalingOffset.value), "ScalingPivot" in e && (n.scalingPivot = e.ScalingPivot.value), "RotationOffset" in e && (n.rotationOffset = e.RotationOffset.value), "RotationPivot" in e && (n.rotationPivot = e.RotationPivot.value), t.userData.transformData = n;
11696
11696
  }
11697
11697
  setLookAtProperties(t, e) {
11698
11698
  "LookAtProperty" in e && tt.get(t.ID).children.forEach(function(s) {
@@ -11713,7 +11713,7 @@ class Jf {
11713
11713
  if (e.has(l.ID)) {
11714
11714
  const c = l.ID;
11715
11715
  tt.get(c).parents.forEach(function(u) {
11716
- n.has(u.ID) && n.get(u.ID).bind(new Va(o.bones), s[u.ID]);
11716
+ n.has(u.ID) && n.get(u.ID).bind(new Ya(o.bones), s[u.ID]);
11717
11717
  });
11718
11718
  }
11719
11719
  });
@@ -11780,8 +11780,8 @@ class ed {
11780
11780
  n.morphTargets[u.ID] !== void 0 && i.push(n.morphTargets[u.ID]);
11781
11781
  });
11782
11782
  const l = o[0], c = {};
11783
- "RotationOrder" in l && (c.eulerOrder = Ml(l.RotationOrder.value)), "InheritType" in l && (c.inheritType = parseInt(l.InheritType.value)), "GeometricTranslation" in l && (c.translation = l.GeometricTranslation.value), "GeometricRotation" in l && (c.rotation = l.GeometricRotation.value), "GeometricScaling" in l && (c.scale = l.GeometricScaling.value);
11784
- const f = El(c);
11783
+ "RotationOrder" in l && (c.eulerOrder = Sl(l.RotationOrder.value)), "InheritType" in l && (c.inheritType = parseInt(l.InheritType.value)), "GeometricTranslation" in l && (c.translation = l.GeometricTranslation.value), "GeometricRotation" in l && (c.rotation = l.GeometricRotation.value), "GeometricScaling" in l && (c.scale = l.GeometricScaling.value);
11784
+ const f = Ml(c);
11785
11785
  return this.genGeometry(e, r, i, f);
11786
11786
  }
11787
11787
  // Generate a BufferGeometry from a node in FBXTree.Objects.Geometry
@@ -12135,7 +12135,7 @@ class td {
12135
12135
  const n = this;
12136
12136
  return t.layer.forEach(function(s) {
12137
12137
  e = e.concat(n.generateTracks(s));
12138
- }), new Ya(t.name, -1, e);
12138
+ }), new Wa(t.name, -1, e);
12139
12139
  }
12140
12140
  generateTracks(t) {
12141
12141
  const e = [];
@@ -12269,7 +12269,7 @@ class nd {
12269
12269
  this.currentProp = t, this.currentPropName = e;
12270
12270
  }
12271
12271
  parse(t) {
12272
- this.currentIndent = 0, this.allNodes = new Tl(), this.nodeStack = [], this.currentProp = [], this.currentPropName = "";
12272
+ this.currentIndent = 0, this.allNodes = new El(), this.nodeStack = [], this.currentProp = [], this.currentPropName = "";
12273
12273
  const e = this, n = t.split(/[\r\n]+/);
12274
12274
  return n.forEach(function(s, i) {
12275
12275
  const o = s.match(/^[\s\t]*;/), r = s.match(/^[\s\t]*$/);
@@ -12352,7 +12352,7 @@ class sd {
12352
12352
  const n = e.getUint32();
12353
12353
  if (n < 6400)
12354
12354
  throw new Error("THREE.FBXLoader: FBX version not supported, FileVersion: " + n);
12355
- const s = new Tl();
12355
+ const s = new El();
12356
12356
  for (; !this.endOfContent(e); ) {
12357
12357
  const i = this.parseNode(e, n);
12358
12358
  i !== null && s.add(i.name, i);
@@ -12564,14 +12564,14 @@ class Vr {
12564
12564
  return n >= 0 && (e = e.slice(0, n)), is(new Uint8Array(e));
12565
12565
  }
12566
12566
  }
12567
- class Tl {
12567
+ class El {
12568
12568
  add(t, e) {
12569
12569
  this[t] = e;
12570
12570
  }
12571
12571
  }
12572
12572
  function id(a) {
12573
12573
  const t = "Kaydara FBX Binary \0";
12574
- return a.byteLength >= t.length && t === Sl(a, 0, t.length);
12574
+ return a.byteLength >= t.length && t === Al(a, 0, t.length);
12575
12575
  }
12576
12576
  function od(a) {
12577
12577
  const t = [
@@ -12639,7 +12639,7 @@ function Zs(a, t, e, n) {
12639
12639
  return cd(ad, n.buffer, i, o);
12640
12640
  }
12641
12641
  const Fi = /* @__PURE__ */ new xt(), Yn = /* @__PURE__ */ new F();
12642
- function El(a) {
12642
+ function Ml(a) {
12643
12643
  const t = new Oe(), e = new Oe(), n = new Oe(), s = new Oe(), i = new Oe(), o = new Oe(), r = new Oe(), l = new Oe(), c = new Oe(), f = new Oe(), u = new Oe(), d = new Oe(), h = a.inheritType ? a.inheritType : 0;
12644
12644
  if (a.translation && t.setPosition(Yn.fromArray(a.translation)), a.preRotation) {
12645
12645
  const T = a.preRotation.map(je.degToRad);
@@ -12672,7 +12672,7 @@ function El(a) {
12672
12672
  const y = new Oe().copyPosition(M), x = f.clone().multiply(y);
12673
12673
  return d.copyPosition(x), M = d.clone().multiply(E), M.premultiply(f.invert()), M;
12674
12674
  }
12675
- function Ml(a) {
12675
+ function Sl(a) {
12676
12676
  a = a || 0;
12677
12677
  const t = [
12678
12678
  "ZYX",
@@ -12696,7 +12696,7 @@ function Gi(a) {
12696
12696
  return parseFloat(e);
12697
12697
  });
12698
12698
  }
12699
- function Sl(a, t, e) {
12699
+ function Al(a, t, e) {
12700
12700
  return t === void 0 && (t = 0), e === void 0 && (e = a.byteLength), is(new Uint8Array(a, t, e));
12701
12701
  }
12702
12702
  function ld(a, t) {
@@ -14075,7 +14075,7 @@ function _d() {
14075
14075
  }
14076
14076
  }
14077
14077
  const $r = /* @__PURE__ */ new _t(), qs = /* @__PURE__ */ new F();
14078
- class Al extends cc {
14078
+ class Pl extends cc {
14079
14079
  constructor() {
14080
14080
  super(), this.isLineSegmentsGeometry = !0, this.type = "LineSegmentsGeometry";
14081
14081
  const t = [-1, 2, 0, 1, 2, 0, -1, 1, 0, 1, 1, 0, -1, 0, 0, 1, 0, 0, -1, -1, 0, 1, -1, 0], e = [-1, 2, 1, 2, -1, 1, 1, 1, -1, -1, 1, -1, -1, -2, 1, -2], n = [0, 2, 1, 2, 3, 1, 2, 4, 3, 4, 5, 3, 4, 6, 5, 6, 7, 5];
@@ -14136,7 +14136,7 @@ class Al extends cc {
14136
14136
  return console.warn("THREE.LineSegmentsGeometry: applyMatrix() has been renamed to applyMatrix4()."), this.applyMatrix4(t);
14137
14137
  }
14138
14138
  }
14139
- class Pl extends Al {
14139
+ class Cl extends Pl {
14140
14140
  constructor() {
14141
14141
  super(), this.isLineGeometry = !0, this.type = "LineGeometry";
14142
14142
  }
@@ -14760,7 +14760,7 @@ function wd(a, t, e) {
14760
14760
  }
14761
14761
  }
14762
14762
  class bd extends ge {
14763
- constructor(t = new Al(), e = new tr({ color: Math.random() * 16777215 })) {
14763
+ constructor(t = new Pl(), e = new tr({ color: Math.random() * 16777215 })) {
14764
14764
  super(t, e), this.isLineSegments2 = !0, this.type = "LineSegments2";
14765
14765
  }
14766
14766
  // for backwards-compatibility, but could be a method of LineSegmentsGeometry...
@@ -14805,7 +14805,7 @@ class bd extends ge {
14805
14805
  }
14806
14806
  }
14807
14807
  class Td extends bd {
14808
- constructor(t = new Pl(), e = new tr({ color: Math.random() * 16777215 })) {
14808
+ constructor(t = new Cl(), e = new tr({ color: Math.random() * 16777215 })) {
14809
14809
  super(t, e), this.isLine2 = !0, this.type = "Line2";
14810
14810
  }
14811
14811
  }
@@ -14907,7 +14907,7 @@ const Md = ["object"], Bg = /* @__PURE__ */ he({
14907
14907
  setup(a) {
14908
14908
  const t = a, { camera: e, renderer: n } = Ee(), { disabled: s, factor: i, ease: o, local: r } = ze(t), l = {};
14909
14909
  r.value && (l.target = n.domElement, l.type = "client");
14910
- const { x: c, y: f } = bu(l), { width: u, height: d } = r.value ? yu(n.domElement) : il(), h = te(), g = be(), b = be();
14910
+ const { x: c, y: f } = bu(l), { width: u, height: d } = r.value ? yu(n.domElement) : ol(), h = te(), g = be(), b = be();
14911
14911
  Q(
14912
14912
  [i, o],
14913
14913
  () => {
@@ -15004,7 +15004,7 @@ const Md = ["object"], Bg = /* @__PURE__ */ he({
15004
15004
  if (!(!d || !d.geometry) && (o !== e.angle || r !== d.geometry)) {
15005
15005
  o = e.angle, r = d.geometry;
15006
15006
  let g = (h = u.children) == null ? void 0 : h[0];
15007
- g && (e.angle && g.geometry.dispose(), u.remove(g)), d.skeleton ? (g = new Go(), g.material = s, g.bind(d.skeleton, d.bindMatrix), u.add(g)) : d.isInstancedMesh ? (g = new Ga(d.geometry, s, d.count), g.instanceMatrix = d.instanceMatrix, u.add(g)) : (g = new ge(), g.material = s, u.add(g)), g.geometry = e.angle ? Zu(d.geometry, e.angle) : d.geometry;
15007
+ g && (e.angle && g.geometry.dispose(), u.remove(g)), d.skeleton ? (g = new Go(), g.material = s, g.bind(d.skeleton, d.bindMatrix), u.add(g)) : d.isInstancedMesh ? (g = new Ha(d.geometry, s, d.count), g.instanceMatrix = d.instanceMatrix, u.add(g)) : (g = new ge(), g.material = s, u.add(g)), g.geometry = e.angle ? Zu(d.geometry, e.angle) : d.geometry;
15008
15008
  }
15009
15009
  }
15010
15010
  function c() {
@@ -15044,7 +15044,7 @@ const Md = ["object"], Bg = /* @__PURE__ */ he({
15044
15044
  emits: ["isPlaying"],
15045
15045
  async setup(a, { expose: t, emit: e }) {
15046
15046
  let n, s;
15047
- const i = a, o = e, { ready: r, url: l, distance: c, helper: f, loop: u, autoplay: d, innerAngle: h, outerAngle: g, outerGain: b } = ze(i), { camera: _ } = Mt(), m = te(null), v = te(null), p = te(null), E = Ka(new Ca()), S = () => {
15047
+ const i = a, o = e, { ready: r, url: l, distance: c, helper: f, loop: u, autoplay: d, innerAngle: h, outerAngle: g, outerGain: b } = ze(i), { camera: _ } = Mt(), m = te(null), v = te(null), p = te(null), E = Qa(new Ca()), S = () => {
15048
15048
  var D, z, H;
15049
15049
  (D = m == null ? void 0 : m.value) != null && D.isPlaying || ((z = m == null ? void 0 : m.value) == null || z.play(), o("isPlaying", (H = m == null ? void 0 : m.value) == null ? void 0 : H.isPlaying));
15050
15050
  }, w = () => {
@@ -15229,7 +15229,7 @@ const Md = ["object"], Bg = /* @__PURE__ */ he({
15229
15229
  }
15230
15230
  });
15231
15231
  function $g(a, t) {
15232
- const e = be(t), n = new dc(e.value), s = Ka({}), i = () => {
15232
+ const e = be(t), n = new dc(e.value), s = Qa({}), i = () => {
15233
15233
  const r = N(a);
15234
15234
  r && r.length > 0 && (Object.keys(s).forEach((l) => delete s[l]), r.forEach((l) => {
15235
15235
  const c = n.clipAction(l, e.value);
@@ -15269,7 +15269,7 @@ function Od(a) {
15269
15269
  magFilter: wt,
15270
15270
  type: It,
15271
15271
  ...s == null ? void 0 : s.value
15272
- }), i != null && i.value && (t.value.depthTexture = new $a(
15272
+ }), i != null && i.value && (t.value.depthTexture = new Xa(
15273
15273
  (n == null ? void 0 : n.value) || u.width.value,
15274
15274
  (e == null ? void 0 : e.value) || u.height.value,
15275
15275
  ai
@@ -15593,14 +15593,14 @@ function An(a) {
15593
15593
  function _n(a) {
15594
15594
  return a.isOrthographicCamera;
15595
15595
  }
15596
- const $n = Math.PI * 2, Jr = Math.PI / 2, Cl = 1e-5, ms = Math.PI / 180;
15596
+ const $n = Math.PI * 2, Jr = Math.PI / 2, Rl = 1e-5, ms = Math.PI / 180;
15597
15597
  function Nt(a, t, e) {
15598
15598
  return Math.max(t, Math.min(e, a));
15599
15599
  }
15600
- function $e(a, t = Cl) {
15600
+ function $e(a, t = Rl) {
15601
15601
  return Math.abs(a) < t;
15602
15602
  }
15603
- function Ve(a, t, e = Cl) {
15603
+ function Ve(a, t, e = Rl) {
15604
15604
  return $e(a - t, e);
15605
15605
  }
15606
15606
  function ea(a, t) {
@@ -16920,15 +16920,15 @@ class ut extends jd {
16920
16920
  }), n.radius = Math.sqrt(i), n;
16921
16921
  }
16922
16922
  }
16923
- const Rl = (a) => !!(a && a.isPerspectiveCamera), Il = (a) => !!(a && a.isOrthographicCamera), Wd = ["min-polar-angle", "max-polar-angle", "min-azimuth-angle", "max-azimuth-angle", "distance", "min-distance", "max-distance", "infinity-dolly", "min-zoom", "max-zoom", "smooth-time", "dragging-smooth-time", "max-speed", "azimuth-rotate-speed", "polar-rotate-speed", "dolly-speed", "dolly-drag-inverted", "truck-speed", "dolly-to-cursor", "drag-to-offset", "vertical-drag-to-forward", "boundary-friction", "rest-threshold", "collider-meshes", "args", "mouse-buttons", "touches"], aa = (a, t) => ({
16923
+ const Il = (a) => !!(a && a.isPerspectiveCamera), Ol = (a) => !!(a && a.isOrthographicCamera), Wd = ["min-polar-angle", "max-polar-angle", "min-azimuth-angle", "max-azimuth-angle", "distance", "min-distance", "max-distance", "infinity-dolly", "min-zoom", "max-zoom", "smooth-time", "dragging-smooth-time", "max-speed", "azimuth-rotate-speed", "polar-rotate-speed", "dolly-speed", "dolly-drag-inverted", "truck-speed", "dolly-to-cursor", "drag-to-offset", "vertical-drag-to-forward", "boundary-friction", "rest-threshold", "collider-meshes", "args", "mouse-buttons", "touches"], aa = (a, t) => ({
16924
16924
  left: ut.ACTION.ROTATE,
16925
16925
  middle: ut.ACTION.DOLLY,
16926
16926
  right: ut.ACTION.TRUCK,
16927
- wheel: Rl(a) ? ut.ACTION.DOLLY : Il(a) ? ut.ACTION.ZOOM : ut.ACTION.NONE,
16927
+ wheel: Il(a) ? ut.ACTION.DOLLY : Ol(a) ? ut.ACTION.ZOOM : ut.ACTION.NONE,
16928
16928
  ...t
16929
16929
  }), la = (a, t) => ({
16930
16930
  one: ut.ACTION.TOUCH_ROTATE,
16931
- two: Rl(a) ? ut.ACTION.TOUCH_DOLLY_TRUCK : Il(a) ? ut.ACTION.TOUCH_ZOOM_TRUCK : ut.ACTION.NONE,
16931
+ two: Il(a) ? ut.ACTION.TOUCH_DOLLY_TRUCK : Ol(a) ? ut.ACTION.TOUCH_ZOOM_TRUCK : ut.ACTION.NONE,
16932
16932
  three: ut.ACTION.TOUCH_TRUCK,
16933
16933
  ...t
16934
16934
  }), Jg = /* @__PURE__ */ he({
@@ -16999,7 +16999,7 @@ const Rl = (a) => !!(a && a.isPerspectiveCamera), Il = (a) => !!(a && a.isOrthog
16999
16999
  },
17000
17000
  Matrix4: Oe,
17001
17001
  Quaternion: He,
17002
- Raycaster: Ua,
17002
+ Raycaster: Fa,
17003
17003
  Sphere: rs,
17004
17004
  Spherical: fi,
17005
17005
  Vector2: ye,
@@ -17132,7 +17132,7 @@ const e0 = /* @__PURE__ */ he({
17132
17132
  /* invalidate */
17133
17133
  }) => {
17134
17134
  var R;
17135
- r.value instanceof yl && ((R = r.value) != null && R.isLocked) && (x(P, u.value), r.value.moveRight(f.value));
17135
+ r.value instanceof _l && ((R = r.value) != null && R.isLocked) && (x(P, u.value), r.value.moveRight(f.value));
17136
17136
  }), (P, R) => N(l) ? (ae(), cn(N(Kd), {
17137
17137
  key: 0,
17138
17138
  selector: P.selector,
@@ -17288,7 +17288,7 @@ const e0 = /* @__PURE__ */ he({
17288
17288
  target: x,
17289
17289
  mouseButtons: T
17290
17290
  } = ze(n), { camera: P, renderer: R, extend: D, controls: z, invalidate: H } = Ee(), G = te(null);
17291
- D({ OrbitControls: _l }), Q(G, ($) => {
17291
+ D({ OrbitControls: xl }), Q(G, ($) => {
17292
17292
  ie(), $ && i.value ? z.value = $ : z.value = null;
17293
17293
  });
17294
17294
  function ie() {
@@ -17346,7 +17346,7 @@ const e0 = /* @__PURE__ */ he({
17346
17346
  });
17347
17347
  const f = te(null);
17348
17348
  let u;
17349
- r({ PointerLockControls: yl });
17349
+ r({ PointerLockControls: _l });
17350
17350
  const d = (h) => {
17351
17351
  s("isLock", h);
17352
17352
  };
@@ -17383,7 +17383,7 @@ const e0 = /* @__PURE__ */ he({
17383
17383
  Q(n, () => {
17384
17384
  r.invalidate();
17385
17385
  });
17386
- const l = te(), c = document.createElement("div"), { y: f } = Tu(), { x: u, y: d, isScrolling: h } = sl(c), { height: g, width: b } = il();
17386
+ const l = te(), c = document.createElement("div"), { y: f } = Tu(), { x: u, y: d, isScrolling: h } = il(c), { height: g, width: b } = ol();
17387
17387
  let _ = 0;
17388
17388
  const m = be(!1), v = be(0), p = be(0), E = be(0), S = n.horizontal ? "x" : "y", w = Q(
17389
17389
  i.activeCamera,
@@ -17589,7 +17589,7 @@ const e0 = /* @__PURE__ */ he({
17589
17589
  ref_key: "svgRef",
17590
17590
  ref: d
17591
17591
  }, [
17592
- (ae(!0), ce(Qa, null, Ja(h.value, ({ geometry: E, material: S, isStroke: w }, M) => (ae(), ce("TresMesh", Fe({
17592
+ (ae(!0), ce(Ja, null, el(h.value, ({ geometry: E, material: S, isStroke: w }, M) => (ae(), ce("TresMesh", Fe({
17593
17593
  key: `${M}`
17594
17594
  }, { ref_for: !0 }, w ? N(f) : N(c), {
17595
17595
  geometry: E,
@@ -18583,7 +18583,7 @@ list should be an Array.`), A.length === 0) return new _(0);
18583
18583
  var ap = rp();
18584
18584
  const lp = /* @__PURE__ */ Os(ap);
18585
18585
  var io, ua;
18586
- function Ol() {
18586
+ function Dl() {
18587
18587
  return ua || (ua = 1, io = [
18588
18588
  // current
18589
18589
  "precision",
@@ -18728,7 +18728,7 @@ function cp() {
18728
18728
  ]), oo;
18729
18729
  }
18730
18730
  var ro, fa;
18731
- function Dl() {
18731
+ function Ll() {
18732
18732
  return fa || (fa = 1, ro = [
18733
18733
  // Keep this list sorted
18734
18734
  "abs",
@@ -18884,7 +18884,7 @@ var ao, da;
18884
18884
  function up() {
18885
18885
  if (da) return ao;
18886
18886
  da = 1;
18887
- var a = Ol();
18887
+ var a = Dl();
18888
18888
  return ao = a.slice().concat([
18889
18889
  "layout",
18890
18890
  "centroid",
@@ -18975,7 +18975,7 @@ var lo, pa;
18975
18975
  function hp() {
18976
18976
  if (pa) return lo;
18977
18977
  pa = 1;
18978
- var a = Dl();
18978
+ var a = Ll();
18979
18979
  return a = a.slice().filter(function(t) {
18980
18980
  return !/^(gl\_|texture)/.test(t);
18981
18981
  }), lo = a.concat([
@@ -19041,7 +19041,7 @@ var co, ma;
19041
19041
  function fp() {
19042
19042
  if (ma) return co;
19043
19043
  ma = 1, co = E;
19044
- var a = Ol(), t = cp(), e = Dl(), n = up(), s = hp(), i = 999, o = 9999, r = 0, l = 1, c = 2, f = 3, u = 4, d = 5, h = 6, g = 7, b = 8, _ = 9, m = 10, v = 11, p = [
19044
+ var a = Dl(), t = cp(), e = Ll(), n = up(), s = hp(), i = 999, o = 9999, r = 0, l = 1, c = 2, f = 3, u = 4, d = 5, h = 6, g = 7, b = 8, _ = 9, m = 10, v = 11, p = [
19045
19045
  "block-comment",
19046
19046
  "line-comment",
19047
19047
  "preprocessor",
@@ -19293,12 +19293,12 @@ function wp(a, t) {
19293
19293
  }
19294
19294
  return String(a);
19295
19295
  }
19296
- function Ll(a) {
19296
+ function kl(a) {
19297
19297
  var t = wp(a, "string");
19298
19298
  return typeof t == "symbol" ? t : String(t);
19299
19299
  }
19300
19300
  function Ye(a, t, e) {
19301
- return t = Ll(t), t in a ? Object.defineProperty(a, t, {
19301
+ return t = kl(t), t in a ? Object.defineProperty(a, t, {
19302
19302
  value: e,
19303
19303
  enumerable: !0,
19304
19304
  configurable: !0,
@@ -19350,7 +19350,7 @@ function Ep(a, t) {
19350
19350
  function Mp(a, t) {
19351
19351
  for (var e = 0; e < t.length; e++) {
19352
19352
  var n = t[e];
19353
- n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(a, Ll(n.key), n);
19353
+ n.enumerable = n.enumerable || !1, n.configurable = !0, "value" in n && (n.writable = !0), Object.defineProperty(a, kl(n.key), n);
19354
19354
  }
19355
19355
  }
19356
19356
  function Sp(a, t, e) {
@@ -19358,7 +19358,7 @@ function Sp(a, t, e) {
19358
19358
  writable: !1
19359
19359
  }), a;
19360
19360
  }
19361
- function kl(a) {
19361
+ function zl(a) {
19362
19362
  if (a === void 0)
19363
19363
  throw new ReferenceError("this hasn't been initialised - super() hasn't been called");
19364
19364
  return a;
@@ -19401,7 +19401,7 @@ function Cp(a, t) {
19401
19401
  return t;
19402
19402
  if (t !== void 0)
19403
19403
  throw new TypeError("Derived constructors may only return object or undefined");
19404
- return kl(a);
19404
+ return zl(a);
19405
19405
  }
19406
19406
  function Rp(a) {
19407
19407
  var t = Pp();
@@ -19658,7 +19658,7 @@ var $p = /* @__PURE__ */ function(a) {
19658
19658
  var h;
19659
19659
  if (jp(i) ? h = new i(d) : (h = i, Object.assign(h, d)), h.type === "RawShaderMaterial")
19660
19660
  throw new Error("CustomShaderMaterial does not support RawShaderMaterial");
19661
- s = t.call(this), Vp(kl(s), h, u), s.__csm = {
19661
+ s = t.call(this), Vp(zl(s), h, u), s.__csm = {
19662
19662
  patchMap: c || {},
19663
19663
  fragmentShader: o || "",
19664
19664
  vertexShader: r || "",
@@ -20150,7 +20150,7 @@ const Zp = ["uniforms-fresnelAmount-value", "uniforms-enableBlinking-value", "un
20150
20150
  }, null, 8, Zp));
20151
20151
  }
20152
20152
  });
20153
- class zl extends Et {
20153
+ class Nl extends Et {
20154
20154
  constructor() {
20155
20155
  super(), this.vertexShader = "void main() { }", this.fragmentShader = "void main() { gl_FragColor = vec4(0.0, 0.0, 0.0, 0.0); discard;}";
20156
20156
  }
@@ -20159,7 +20159,7 @@ const m0 = /* @__PURE__ */ he({
20159
20159
  __name: "index",
20160
20160
  setup(a, { expose: t }) {
20161
20161
  const e = te(), { extend: n } = Mt();
20162
- return n({ MeshDiscardMaterial: zl }), t({ instance: e }), (s, i) => (ae(), ce("TresMeshDiscardMaterial", {
20162
+ return n({ MeshDiscardMaterial: Nl }), t({ instance: e }), (s, i) => (ae(), ce("TresMeshDiscardMaterial", {
20163
20163
  ref_key: "meshDiscardMaterialRef",
20164
20164
  ref: e
20165
20165
  }, null, 512));
@@ -20644,7 +20644,7 @@ const nm = ["texture-matrix", "t-sharp", "t-depth", "t-blur", "defines-USE_BLUR"
20644
20644
  magFilter: wt,
20645
20645
  type: It,
20646
20646
  depthBuffer: !0,
20647
- depthTexture: new $a(
20647
+ depthTexture: new Xa(
20648
20648
  e.resolution,
20649
20649
  e.resolution
20650
20650
  )
@@ -20795,7 +20795,7 @@ const im = ["factor"], y0 = /* @__PURE__ */ he({
20795
20795
  }, r.$attrs), null, 16, im));
20796
20796
  }
20797
20797
  }), po = "opaque_fragment";
20798
- class mo extends Ha {
20798
+ class mo extends ja {
20799
20799
  constructor(t) {
20800
20800
  super(t), this.onBeforeCompile = (e, n) => {
20801
20801
  const { isWebGL2: s } = n.capabilities;
@@ -20937,13 +20937,13 @@ function fm(a, t, e) {
20937
20937
  }
20938
20938
  }
20939
20939
  const Lo = (a) => Math.abs(a) < 1e-10 ? 0 : a;
20940
- function Nl(a, t, e = "") {
20940
+ function Bl(a, t, e = "") {
20941
20941
  let n = "matrix3d(";
20942
20942
  for (let s = 0; s !== 16; s++)
20943
20943
  n += Lo(t[s] * a.elements[s]) + (s !== 15 ? "," : ")");
20944
20944
  return e + n;
20945
20945
  }
20946
- const dm = /* @__PURE__ */ ((a) => (t) => Nl(t, a))([1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1]), pm = /* @__PURE__ */ ((a) => (t, e) => Nl(t, a(e), "translate(-50%,-50%)"))((a) => [1 / a, 1 / a, 1 / a, 1, -1 / a, -1 / a, -1 / a, -1, 1 / a, 1 / a, 1 / a, 1, 1, 1, 1, 1]), mm = ["geometry", "material"], b0 = /* @__PURE__ */ he({
20946
+ const dm = /* @__PURE__ */ ((a) => (t) => Bl(t, a))([1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1, 1, -1, 1, 1]), pm = /* @__PURE__ */ ((a) => (t, e) => Bl(t, a(e), "translate(-50%,-50%)"))((a) => [1 / a, 1 / a, 1 / a, 1, -1 / a, -1 / a, -1 / a, -1, 1 / a, 1 / a, 1 / a, 1, 1, 1, 1, 1]), mm = ["geometry", "material"], b0 = /* @__PURE__ */ he({
20947
20947
  __name: "HTML",
20948
20948
  props: {
20949
20949
  geometry: { default: new Wt() },
@@ -21012,7 +21012,7 @@ const dm = /* @__PURE__ */ ((a) => (t) => Nl(t, a))([1, -1, 1, 1, 1, -1, 1, 1, 1
21012
21012
  ), Q(
21013
21013
  () => {
21014
21014
  var j;
21015
- return [r.value, M.instance.value, P.width.value, P.height.value, (j = i.default) == null ? void 0 : j.call(i)];
21015
+ return [r.value, M.instance, P.width.value, P.height.value, (j = i.default) == null ? void 0 : j.call(i)];
21016
21016
  },
21017
21017
  ([j, B]) => {
21018
21018
  var L, C, A, I, O, U;
@@ -21049,7 +21049,7 @@ const dm = /* @__PURE__ */ ((a) => (t) => Nl(t, a))([1, -1, 1, 1, 1, -1, 1, 1, 1
21049
21049
  const le = be(!0), { onBeforeRender: ue } = Ne();
21050
21050
  ue(() => {
21051
21051
  var j, B, L, C, A, I, O;
21052
- if (r.value && x.activeCamera.value && M.instance.value) {
21052
+ if (r.value && x.activeCamera.value && M.instance) {
21053
21053
  (j = x.activeCamera.value) == null || j.updateMatrixWorld(), r.value.updateWorldMatrix(!0, !1);
21054
21054
  const U = d.value ? D.value : Ta(r.value, x.activeCamera.value, {
21055
21055
  width: P.width.value || 0,
@@ -21276,7 +21276,7 @@ class xm {
21276
21276
  ));
21277
21277
  }
21278
21278
  }
21279
- const Bl = class Qn {
21279
+ const Ul = class Qn {
21280
21280
  constructor({
21281
21281
  trackGPU: t = !1,
21282
21282
  logsPerSecond: e = 30,
@@ -21425,8 +21425,8 @@ const Bl = class Qn {
21425
21425
  }, this.threeRendererPatched = !0;
21426
21426
  }
21427
21427
  };
21428
- Bl.Panel = xm;
21429
- let wm = Bl;
21428
+ Ul.Panel = xm;
21429
+ let wm = Ul;
21430
21430
  const E0 = he({
21431
21431
  name: "StatsGl",
21432
21432
  props: [
@@ -21452,13 +21452,13 @@ const E0 = he({
21452
21452
  const n = document.body, s = e.container;
21453
21453
  n == null || n.appendChild(s);
21454
21454
  const { renderer: i } = Mt(), { onAfterRender: o } = Ne();
21455
- e.init(i.instance.value), o(() => e.update(), Number.POSITIVE_INFINITY), Qe(() => {
21455
+ e.init(i.instance), o(() => e.update(), Number.POSITIVE_INFINITY), Qe(() => {
21456
21456
  n == null || n.removeChild(s);
21457
21457
  });
21458
21458
  }
21459
21459
  });
21460
21460
  async function M0(a, t) {
21461
- const e = new cl(), n = (t == null ? void 0 : t.fileName) || "scene";
21461
+ const e = new ul(), n = (t == null ? void 0 : t.fileName) || "scene";
21462
21462
  e.parse(
21463
21463
  a,
21464
21464
  (s) => {
@@ -21476,12 +21476,12 @@ async function M0(a, t) {
21476
21476
  );
21477
21477
  }
21478
21478
  function bm(a, t) {
21479
- Ul(new Blob([a], { type: "text/plain" }), t);
21479
+ Fl(new Blob([a], { type: "text/plain" }), t);
21480
21480
  }
21481
21481
  function Tm(a, t) {
21482
- Ul(new Blob([a], { type: "application/octet-stream" }), t);
21482
+ Fl(new Blob([a], { type: "application/octet-stream" }), t);
21483
21483
  }
21484
- function Ul(a, t) {
21484
+ function Fl(a, t) {
21485
21485
  const e = document.createElement("a");
21486
21486
  e.style.display = "none", document.body.appendChild(e), e.href = URL.createObjectURL(a), e.download = t, e.click(), e.remove();
21487
21487
  }
@@ -21569,7 +21569,7 @@ const Mm = ["args"], Sm = ["color"], A0 = /* @__PURE__ */ he({
21569
21569
  }
21570
21570
  return m.push(_[_.length - 1]), m;
21571
21571
  }
21572
- const s = new tr(), i = new Pl(), o = new Td(i, s), { sizes: r, invalidate: l } = Ee(), c = xe(() => Array.isArray(e.vertexColors));
21572
+ const s = new tr(), i = new Cl(), o = new Td(i, s), { sizes: r, invalidate: l } = Ee(), c = xe(() => Array.isArray(e.vertexColors));
21573
21573
  function f(h, g) {
21574
21574
  h.color = rn(g.color), h.linewidth = g.lineWidth, h.alphaToCoverage = g.alphaToCoverage, h.worldUnits = g.worldUnits, h.vertexColors = Array.isArray(g.vertexColors), h.dashed = g.dashed, h.dashScale = g.dashScale, h.dashSize = g.dashSize, h.dashOffset = g.dashOffset, h.gapSize = g.gapSize, h.needsUpdate = !0;
21575
21575
  }
@@ -21709,7 +21709,7 @@ const Mm = ["args"], Sm = ["color"], A0 = /* @__PURE__ */ he({
21709
21709
  setup(a, { expose: t }) {
21710
21710
  const e = a, n = xe(() => {
21711
21711
  const i = e.start instanceof F ? e.start : new F(...e.start), o = e.end instanceof F ? e.end : new F(...e.end), r = e.mid instanceof F ? e.mid : Array.isArray(e.mid) ? new F(...e.mid) : new F(o.x, i.y, o.z);
21712
- return new Xa(i, r, o).getPoints(e.segments);
21712
+ return new Za(i, r, o).getPoints(e.segments);
21713
21713
  }), s = te();
21714
21714
  return t({ instance: s }), (i, o) => (ae(), cn(sr, {
21715
21715
  ref_key: "lineRef",
@@ -22094,7 +22094,7 @@ const Mm = ["args"], Sm = ["color"], A0 = /* @__PURE__ */ he({
22094
22094
  __name: "Tube",
22095
22095
  props: {
22096
22096
  args: { default: () => [
22097
- new Xa(new F(-1, 0, 0), new F(0, 1, 0), new F(1, 0, 0)),
22097
+ new Za(new F(-1, 0, 0), new F(0, 1, 0), new F(1, 0, 0)),
22098
22098
  20,
22099
22099
  0.2,
22100
22100
  8,
@@ -22169,14 +22169,14 @@ class a1 extends Dt {
22169
22169
  }
22170
22170
  set near(e) {
22171
22171
  for (const n of this.lights)
22172
- n.shadow.camera.near = this.near;
22172
+ n.shadow.camera.near = e;
22173
22173
  }
22174
22174
  get far() {
22175
22175
  return this.lights[0].shadow.camera.far;
22176
22176
  }
22177
22177
  set far(e) {
22178
22178
  for (const n of this.lights)
22179
- n.shadow.camera.far = this.far;
22179
+ n.shadow.camera.far = e;
22180
22180
  }
22181
22181
  get lights() {
22182
22182
  return this.children.filter((e) => "isDirectionalLight" in e);
@@ -22200,7 +22200,7 @@ class a1 extends Dt {
22200
22200
  );
22201
22201
  }
22202
22202
  }
22203
- const l1 = ["count", "radius", "intensity", "ambient", "cast-shadow", "bias", "map-size", "size", "near", "far", "position"], Fl = /* @__PURE__ */ he({
22203
+ const l1 = ["count", "radius", "intensity", "ambient", "cast-shadow", "bias", "map-size", "size", "near", "far", "position"], Gl = /* @__PURE__ */ he({
22204
22204
  __name: "component",
22205
22205
  props: {
22206
22206
  count: { default: 8 },
@@ -22266,7 +22266,7 @@ class h1 {
22266
22266
  magFilter: ui,
22267
22267
  minFilter: ui
22268
22268
  };
22269
- this.progressiveLightMap1 = new Ot(this.res, this.res, s), this.progressiveLightMap2 = new Ot(this.res, this.res, s), this.discardMat = new zl(), this.targetMat = new Wa({ fog: !1 }), this.previousShadowMap = { value: this.progressiveLightMap1.texture }, this.averagingWindow = { value: 100 }, this.targetMat.onBeforeCompile = (i) => {
22269
+ this.progressiveLightMap1 = new Ot(this.res, this.res, s), this.progressiveLightMap2 = new Ot(this.res, this.res, s), this.discardMat = new Nl(), this.targetMat = new $a({ fog: !1 }), this.previousShadowMap = { value: this.progressiveLightMap1.texture }, this.averagingWindow = { value: 100 }, this.targetMat.onBeforeCompile = (i) => {
22270
22270
  i.vertexShader = `varying vec2 vUv;
22271
22271
  ${i.vertexShader.slice(0, -1)}
22272
22272
  vUv = uv;
@@ -22391,7 +22391,7 @@ const f1 = /* @__PURE__ */ _i(
22391
22391
  ref: c
22392
22392
  }, [
22393
22393
  Ie(_.$slots, "default", {}, () => [
22394
- ln(Fl, {
22394
+ ln(Gl, {
22395
22395
  ambient: 0.25,
22396
22396
  bias: 1e-3,
22397
22397
  count: 8,
@@ -23286,7 +23286,7 @@ const T1 = ["object", "duration", "offset"], E1 = /* @__PURE__ */ he({
23286
23286
  rotation: Math.max(2e-3, 5e-3 * Math.random()) * f.value
23287
23287
  })), g = (E, S) => E / 6 * S * c.value, { state: b } = Bn(o.value), { renderer: _, camera: m } = Mt(), v = xe(() => {
23288
23288
  var E;
23289
- return (E = _.instance.value) == null ? void 0 : E.outputColorSpace;
23289
+ return (E = _.instance) == null ? void 0 : E.outputColorSpace;
23290
23290
  }), { onBeforeRender: p } = Ne();
23291
23291
  return p(() => {
23292
23292
  var E, S;
@@ -23302,7 +23302,7 @@ const T1 = ["object", "duration", "offset"], E1 = /* @__PURE__ */ he({
23302
23302
  ref: d,
23303
23303
  position: [0, 0, N(i) / 2 * N(s)]
23304
23304
  }, [
23305
- (ae(!0), ce(Qa, null, Ja(N(h), ({ scale: w, x: M, y, density: x }, T) => (ae(), ce("TresMesh", {
23305
+ (ae(!0), ce(Ja, null, el(N(h), ({ scale: w, x: M, y, density: x }, T) => (ae(), ce("TresMesh", {
23306
23306
  key: `${T}`,
23307
23307
  position: [M, y, -T * N(s)]
23308
23308
  }, [
@@ -23447,10 +23447,10 @@ float PCSS (sampler2D shadowMap, vec4 coords) {
23447
23447
  ), Ci.shadowmap_pars_fragment = u, c.shadowMap.enabled = !0;
23448
23448
  }
23449
23449
  function l(c, f, u) {
23450
- f.traverse((d) => {
23450
+ c instanceof ka && (f.traverse((d) => {
23451
23451
  var h, g;
23452
23452
  "material" in d && d.material && (c.properties.remove(d.material), typeof d.material == "object" && "dispose" in d.material && typeof d.material.dispose == "function" && ((g = (h = d.material).dispose) == null || g.call(h)));
23453
- }), c.info.programs && (c.info.programs.length = 0), c.compile(f, u);
23453
+ }), c.info.programs && (c.info.programs.length = 0)), c.compile(f, u);
23454
23454
  }
23455
23455
  return Qe(() => {
23456
23456
  o.value && (Ci.shadowmap_pars_fragment = n, l(s, i.value, o.value));
@@ -23581,7 +23581,7 @@ class W1 {
23581
23581
  this.size,
23582
23582
  this.size
23583
23583
  ));
23584
- const e = t ?? new Za(
23584
+ const e = t ?? new qa(
23585
23585
  this.context.getImageData(0, 0, this.size, this.size).data,
23586
23586
  this.size,
23587
23587
  this.size,
@@ -23594,7 +23594,7 @@ class W1 {
23594
23594
  return e.needsUpdate = !0, e;
23595
23595
  }
23596
23596
  }
23597
- function Gl(a, t, e, n, s) {
23597
+ function Hl(a, t, e, n, s) {
23598
23598
  return je.mapLinear(je.clamp(a, t, e), t, e, n, s);
23599
23599
  }
23600
23600
  function $1(a, t) {
@@ -23609,7 +23609,7 @@ function X1(a, t) {
23609
23609
  return H1(t.data).forEach(([e, n]) => {
23610
23610
  a.addColorStop(
23611
23611
  e,
23612
- `rgb(${Gl(
23612
+ `rgb(${Hl(
23613
23613
  n,
23614
23614
  t.valueMin,
23615
23615
  t.valueMax,
@@ -23624,7 +23624,7 @@ function Z1(a, t) {
23624
23624
  ([e, n]) => a.addColorStop(
23625
23625
  e,
23626
23626
  `rgb(${n.map(
23627
- (s) => Gl(s, t.valueMin, t.valueMax, 0, 255)
23627
+ (s) => Hl(s, t.valueMin, t.valueMax, 0, 255)
23628
23628
  )})`
23629
23629
  )
23630
23630
  );
@@ -23706,7 +23706,7 @@ class Q1 {
23706
23706
  }
23707
23707
  let _o = null;
23708
23708
  function J1() {
23709
- return _o === null && (_o = new Za(new Uint8Array([0, 0, 0, 0]), 1, 1)), _o;
23709
+ return _o === null && (_o = new qa(new Uint8Array([0, 0, 0, 0]), 1, 1)), _o;
23710
23710
  }
23711
23711
  const eg = ["object"], nv = /* @__PURE__ */ he({
23712
23712
  __name: "component",
@@ -23842,7 +23842,7 @@ const eg = ["object"], nv = /* @__PURE__ */ he({
23842
23842
  #include <tonemapping_fragment>
23843
23843
  #include <${n >= 154 ? "colorspace_fragment" : "encodings_fragment"}>
23844
23844
  }`
23845
- }, c = new Et(l), f = new ja(void 0, c), u = c.uniforms, d = { immediate: !0 };
23845
+ }, c = new Et(l), f = new Va(void 0, c), u = c.uniforms, d = { immediate: !0 };
23846
23846
  [
23847
23847
  [u.uPixelRatio, Mt().sizes.aspectRatio],
23848
23848
  [u.uSize, s.size],
@@ -24015,7 +24015,7 @@ const eg = ["object"], nv = /* @__PURE__ */ he({
24015
24015
  scale: s.value * 4
24016
24016
  }, b.value), {
24017
24017
  default: Hs(() => [
24018
- ln(N(Fl), Fe({
24018
+ ln(N(Gl), Fe({
24019
24019
  position: d.value,
24020
24020
  count: b.value.count ?? 8,
24021
24021
  radius: b.value.radius ?? s.value,
@@ -24135,10 +24135,10 @@ const lg = /* @__PURE__ */ he({
24135
24135
  let b = 1;
24136
24136
  g(() => {
24137
24137
  if (u && d.value && f.value && (s.frames === Number.POSITIVE_INFINITY || b < s.frames)) {
24138
- const m = r.instance.value.autoClear;
24139
- r.instance.value.autoClear = !0;
24138
+ const m = r.instance.autoClear;
24139
+ r.instance.autoClear = !0;
24140
24140
  const v = hr(d.value).virtualScene;
24141
- u.update(r.instance.value, v), r.instance.value.autoClear = m, b++;
24141
+ u.update(r.instance, v), r.instance.autoClear = m, b++;
24142
24142
  }
24143
24143
  }, -1), Q([h, d], ([m, v]) => {
24144
24144
  if (m && (v != null && v.virtualScene)) {
@@ -24290,7 +24290,7 @@ export {
24290
24290
  jg as PositionalAudio,
24291
24291
  K0 as Precipitation,
24292
24292
  I0 as QuadraticBezierLine,
24293
- Fl as RandomizedLights,
24293
+ Gl as RandomizedLights,
24294
24294
  Vg as Reflector,
24295
24295
  B0 as Ring,
24296
24296
  U0 as RoundedBox,
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tresjs/cientos",
3
3
  "type": "module",
4
- "version": "5.0.0-next.1",
4
+ "version": "5.0.0-next.2",
5
5
  "packageManager": "pnpm@10.11.0",
6
6
  "description": "Collection of useful helpers and fully functional, ready-made abstractions for Tres",
7
7
  "author": "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)",