@tresjs/core 5.0.2 → 5.1.0

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/tres.js CHANGED
@@ -1,52 +1,51 @@
1
1
  /**
2
2
  * name: @tresjs/core
3
- * version: v5.0.2
3
+ * version: v5.1.0
4
4
  * (c) 2025
5
5
  * description: Declarative ThreeJS using Vue Components
6
6
  * author: Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)
7
7
  */
8
- import { reactive as Do, toValue as D, watch as At, onUnmounted as ie, defineComponent as ot, renderSlot as Io, unref as ke, ref as Ae, computed as J, watchEffect as $, readonly as zt, shallowRef as it, isRef as me, useSlots as ko, getCurrentInstance as $t, onMounted as Kt, createElementBlock as xo, openBlock as Ro, normalizeStyle as Lo, normalizeClass as Fo, createRenderer as Mo, h as Wt, provide as qe, Fragment as No } from "vue";
8
+ import { reactive as Io, toValue as I, watch as At, onUnmounted as ie, defineComponent as ot, renderSlot as Do, unref as ke, ref as Ae, computed as J, watchEffect as $, readonly as zt, shallowRef as it, isRef as me, useSlots as ko, getCurrentInstance as $t, onMounted as Kt, createElementBlock as xo, openBlock as Ro, normalizeStyle as Lo, normalizeClass as Fo, createRenderer as Mo, h as Wt, provide as qe, Fragment as No } from "vue";
9
9
  import * as vr from "three";
10
- import { Layers as Vo, Scene as yr, MathUtils as Bo, Clock as Uo, WebGLRenderer as br, Mesh as He, Material as Ho, Vector3 as I, Vector2 as Y, Ray as st, SphereGeometry as jo, Object3D as je, Matrix4 as Te, BufferAttribute as Cr, Triangle as wr, Line3 as zo, Plane as ze, Raycaster as $o, Quaternion as ut, Sphere as Ko, MeshBasicMaterial as Ar, DoubleSide as Wo, Color as xe, PCFSoftShadowMap as Go, ACESFilmicToneMapping as Yo, PerspectiveCamera as qo, ArrowHelper as Xo, Line as Qo, BufferGeometry as Gt, Float32BufferAttribute as Yt, LineBasicMaterial as Zo, BackSide as Jo, HemisphereLightHelper as ei, SpotLightHelper as ti, PointLightHelper as ni, DirectionalLightHelper as ri } from "three";
11
- import { useAsyncState as oi, whenever as qt, tryOnScopeDispose as ii, createEventHook as Ee, useRafFn as Tr, useDevicePixelRatio as si, useTimeout as ui, unrefElement as ai, useWindowSize as li, useElementSize as ci, refDebounced as Xt, createInjectionState as fi, useFps as di, useMemory as pi, promiseTimeout as hi } from "@vueuse/core";
12
- const _i = "@tresjs/core", mi = "module", gi = "5.0.2", Ei = "pnpm@10.17.0", vi = "Declarative ThreeJS using Vue Components", yi = "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)", bi = "MIT", Ci = { type: "git", url: "git+https://github.com/Tresjs/tres.git" }, wi = ["vue", "3d", "threejs", "three", "threejs-vue"], Ai = !1, Ti = { ".": { types: "./dist/index.d.ts", import: "./dist/tres.js", default: "./dist/tres.js" }, "./components": { types: "./dist/src/components/index.d.ts" }, "./composables": { types: "./dist/src/composables/index.d.ts" }, "./types": { types: "./dist/src/types/index.d.ts" }, "./utils": { types: "./dist/src/utils/index.d.ts" }, "./*": "./*" }, Oi = "./dist/tres.js", Si = "./dist/index.d.ts", Pi = ["*.d.ts", "dist"], Di = { access: "public" }, Ii = { dev: "pnpm --filter='./playground/vue' dev", "dev:nuxt": "pnpm --filter='./playground/nuxt' dev", build: "vite build", test: "vitest", "test:ci": "vitest run", "test:ui": "vitest --ui --coverage.enabled=true", release: "release-it", coverage: "vitest run --coverage", lint: "eslint .", "lint:fix": "eslint . --fix", typecheck: "vue-tsc --noEmit", "docs:dev": "pnpm --filter='./docs' dev", "docs:generate": "pnpm --filter='./docs' generate", "docs:prepare": "pnpm --filter='./docs' prepare", "docs:lint": "pnpm --filter='./docs' lint", "docs:typecheck": "pnpm --filter='./docs' typecheck" }, ki = { three: ">=0.133", vue: ">=3.4" }, xi = { "@pmndrs/pointer-events": "^6.6.17", "@vue/devtools-api": "^7.7.2", "@vueuse/core": "^13.9.0", radashi: "^12.6.2" }, Ri = { "@release-it/conventional-changelog": "^10.0.0", "@stackblitz/sdk": "^1.11.0", "@tresjs/cientos": "5.0.0-alpha.1", "@tresjs/eslint-config": "^1.4.0", "@tresjs/leches": "1.0.0-next.0", "@types/three": "^0.180.0", "@typescript-eslint/eslint-plugin": "^8.42.0", "@typescript-eslint/parser": "^8.42.0", "@vitejs/plugin-vue": "^6.0.1", "@vitest/coverage-c8": "^0.33.0", "@vitest/coverage-v8": "^3.2.4", "@vitest/ui": "^3.2.4", "@vue/test-utils": "^2.4.6", eslint: "^9.34.0", "eslint-plugin-vue": "^10.4.0", esno: "^4.8.0", gsap: "^3.13.0", jsdom: "^27.0.0", kolorist: "^1.8.0", ohmyfetch: "^0.4.21", pathe: "^2.0.3", "release-it": "^19.0.4", "rollup-plugin-analyzer": "^4.0.0", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-visualizer": "^6.0.3", sponsorkit: "^17.0.0", three: "^0.180.0", unocss: "^65.5.0", unplugin: "^2.3.10", "unplugin-vue-components": "^29.0.0", vite: "^7.1.6", "vite-plugin-banner": "^0.8.1", "vite-plugin-dts": "4.5.4", "vite-plugin-inspect": "^11.3.3", "vite-plugin-require-transform": "^1.0.21", "vite-svg-loader": "^5.1.0", vitepress: "1.6.4", vitest: "3.2.4", vue: "3.5.21", "vue-demi": "^0.14.10", "vue-tsc": "^3.0.6" }, Li = { onlyBuiltDependencies: ["better-sqlite3"], ignoredBuiltDependencies: ["vue-demi"], overrides: { ipx: "^3.0.3", vue: "^3.5.21", "vue-router": "^4.5.1" } }, Fi = { unimport: "4.1.1" }, Mi = {
10
+ import { Layers as Vo, Scene as yr, MathUtils as Bo, Clock as Uo, WebGLRenderer as Cr, Mesh as He, Material as Ho, Vector3 as D, Vector2 as Y, Ray as st, SphereGeometry as jo, Object3D as je, Matrix4 as Te, BufferAttribute as br, Triangle as wr, Line3 as zo, Plane as ze, Raycaster as $o, Quaternion as at, Sphere as Ko, MeshBasicMaterial as Ar, DoubleSide as Wo, Color as xe, PCFSoftShadowMap as Go, ACESFilmicToneMapping as Yo, PerspectiveCamera as qo, ArrowHelper as Xo, Line as Qo, BufferGeometry as Gt, Float32BufferAttribute as Yt, LineBasicMaterial as Zo, BackSide as Jo, HemisphereLightHelper as ei, SpotLightHelper as ti, PointLightHelper as ni, DirectionalLightHelper as ri } from "three";
11
+ import { useAsyncState as oi, whenever as qt, tryOnScopeDispose as ii, createEventHook as Ee, useRafFn as Tr, useDevicePixelRatio as si, useTimeout as ai, unrefElement as ui, useWindowSize as li, useElementSize as ci, refDebounced as Xt, createInjectionState as fi, useFps as di, useMemory as pi, promiseTimeout as hi } from "@vueuse/core";
12
+ const _i = "@tresjs/core", mi = "module", gi = "5.1.0", Ei = "pnpm@10.17.0", vi = "Declarative ThreeJS using Vue Components", yi = "Alvaro Saburido <hola@alvarosaburido.dev> (https://github.com/alvarosabu/)", Ci = "MIT", bi = { type: "git", url: "git+https://github.com/Tresjs/tres.git", directory: "packages/core" }, wi = ["vue", "3d", "threejs", "three", "threejs-vue"], Ai = !1, Ti = { ".": { types: "./dist/index.d.ts", import: "./dist/tres.js", default: "./dist/tres.js" }, "./components": { types: "./dist/src/components/index.d.ts" }, "./composables": { types: "./dist/src/composables/index.d.ts" }, "./types": { types: "./dist/src/types/index.d.ts" }, "./utils": { types: "./dist/src/utils/index.d.ts" }, "./*": "./*" }, Oi = "./dist/tres.js", Si = "./dist/index.d.ts", Pi = ["*.d.ts", "dist"], Ii = { access: "public" }, Di = { build: "vite build", test: "vitest", "test:ci": "vitest run", "test:ui": "vitest --ui --coverage.enabled=true", coverage: "vitest run --coverage", lint: "eslint .", "lint:fix": "eslint . --fix", typecheck: "vue-tsc --noEmit" }, ki = { three: ">=0.133", vue: ">=3.4" }, xi = { "@pmndrs/pointer-events": "^6.6.17", "@vue/devtools-api": "^7.7.2", "@vueuse/core": "catalog:", radashi: "^12.6.2" }, Ri = { "@tresjs/eslint-config": "workspace:*", "@types/three": "catalog:", "@typescript-eslint/eslint-plugin": "catalog:", "@typescript-eslint/parser": "catalog:", "@vitejs/plugin-vue": "catalog:", "@vitest/coverage-v8": "3.2.4", "@vitest/ui": "catalog:", "@vue/test-utils": "catalog:", eslint: "catalog:", "eslint-plugin-vue": "catalog:", jsdom: "catalog:", kolorist: "catalog:", pathe: "catalog:", "rollup-plugin-analyzer": "catalog:", "rollup-plugin-copy": "^3.5.0", "rollup-plugin-visualizer": "catalog:", three: "catalog:", vite: "catalog:", "vite-plugin-banner": "catalog:", "vite-plugin-dts": "catalog:", "vite-plugin-inspect": "^11.3.3", vitest: "catalog:", vue: "catalog:", "vue-demi": "^0.14.10", "vue-tsc": "catalog:" }, Li = { implicitDependencies: ["!@tresjs/core-*"] }, Fi = {
13
13
  name: _i,
14
14
  type: mi,
15
15
  version: gi,
16
16
  packageManager: Ei,
17
17
  description: vi,
18
18
  author: yi,
19
- license: bi,
20
- repository: Ci,
19
+ license: Ci,
20
+ repository: bi,
21
21
  keywords: wi,
22
22
  sideEffects: Ai,
23
23
  exports: Ti,
24
24
  module: Oi,
25
25
  types: Si,
26
26
  files: Pi,
27
- publishConfig: Di,
28
- scripts: Ii,
27
+ publishConfig: Ii,
28
+ scripts: Di,
29
29
  peerDependencies: ki,
30
30
  dependencies: xi,
31
31
  devDependencies: Ri,
32
- pnpm: Li,
33
- resolutions: Fi
32
+ nx: Li
34
33
  };
35
34
  /*! #__NO_SIDE_EFFECTS__ */
36
35
  // @__NO_SIDE_EFFECTS__
37
- function Ni(e) {
36
+ function Mi(e) {
38
37
  const t = /* @__PURE__ */ Object.create(null);
39
38
  for (const n of e.split(","))
40
39
  t[n] = 1;
41
40
  return (n) => n in t;
42
41
  }
43
- const Vi = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", Bi = /* @__PURE__ */ Ni(Vi);
42
+ const Ni = "html,body,base,head,link,meta,style,title,address,article,aside,footer,header,hgroup,h1,h2,h3,h4,h5,h6,nav,section,div,dd,dl,dt,figcaption,figure,picture,hr,img,li,main,ol,p,pre,ul,a,b,abbr,bdi,bdo,br,cite,code,data,dfn,em,i,kbd,mark,q,rp,rt,ruby,s,samp,small,span,strong,sub,sup,time,u,var,wbr,area,audio,map,track,video,embed,object,param,source,canvas,script,noscript,del,ins,caption,col,colgroup,table,thead,tbody,td,th,tr,button,datalist,fieldset,form,input,label,legend,meter,optgroup,option,output,progress,select,textarea,details,dialog,menu,summary,template,blockquote,iframe,tfoot", Vi = /* @__PURE__ */ Mi(Ni);
44
43
  function Qt(e) {
45
44
  var t;
46
- const n = ((t = e?.replace(/([A-Z])+/g, Ui)) == null ? void 0 : t.split(/(?=[A-Z])|[\.\-\s_]/).map((r) => r.toLowerCase())) ?? [];
45
+ const n = ((t = e?.replace(/([A-Z])+/g, Bi)) == null ? void 0 : t.split(/(?=[A-Z])|[\.\-\s_]/).map((r) => r.toLowerCase())) ?? [];
47
46
  return n.length === 0 ? "" : n.length === 1 ? n[0] : n.reduce((r, o) => `${r}${o.charAt(0).toUpperCase()}${o.slice(1)}`);
48
47
  }
49
- function Ui(e) {
48
+ function Bi(e) {
50
49
  if (!e || e.length === 0)
51
50
  return "";
52
51
  const t = e.toLowerCase();
@@ -76,34 +75,34 @@ function Sr(e) {
76
75
  return typeof e == "number" && !Number.isNaN(e);
77
76
  }
78
77
  function Tt(e) {
79
- return Hi(e, "[object Object]");
78
+ return Ui(e, "[object Object]");
80
79
  }
81
80
  function Ot(e) {
82
81
  return typeof e == "string";
83
82
  }
84
- function Hi(e, t) {
83
+ function Ui(e, t) {
85
84
  return Object.prototype.toString.call(e) === t;
86
85
  }
87
- function at(e) {
86
+ function ut(e) {
88
87
  return typeof e > "u";
89
88
  }
90
- const B = (e) => (t) => Tt(t) && e in t && !!t[e], lt = B("isObject3D"), $e = B("isMesh"), Pr = B("isCamera"), ji = B("isOrthographicCamera"), Dr = B("isPerspectiveCamera"), Ir = B("isColor"), zi = (e) => Ot(e) || Sr(e) || Ir(e), Zt = (e) => e instanceof Vo, kr = B("isBufferGeometry"), xr = B("isMaterial"), Rr = B("isLight"), Lr = B("isFog"), Fr = B("isScene"), fl = B("isGroup"), ct = (e) => e !== null && typeof e == "object" && "set" in e && typeof e.set == "function", $i = (e) => ct(e) && "copy" in e && typeof e.copy == "function", Ki = (e) => !!e?.constructor, re = (e) => Pr(e) || ji(e) || Dr(e), Wi = (e) => (
89
+ const B = (e) => (t) => Tt(t) && e in t && !!t[e], lt = B("isObject3D"), $e = B("isMesh"), Pr = B("isCamera"), Hi = B("isOrthographicCamera"), Ir = B("isPerspectiveCamera"), Dr = B("isColor"), ji = (e) => Ot(e) || Sr(e) || Dr(e), Zt = (e) => e instanceof Vo, kr = B("isBufferGeometry"), xr = B("isMaterial"), Rr = B("isLight"), Lr = B("isFog"), Fr = B("isScene"), cl = B("isGroup"), ct = (e) => e !== null && typeof e == "object" && "set" in e && typeof e.set == "function", zi = (e) => ct(e) && "copy" in e && typeof e.copy == "function", $i = (e) => !!e?.constructor, re = (e) => Pr(e) || Hi(e) || Ir(e), Ki = (e) => (
91
90
  // NOTE: TresObject is currently defined as
92
91
  // TresObject3D | THREE.BufferGeometry | THREE.Material | THREE.Fog
93
92
  lt(e) || kr(e) || xr(e) || Lr(e)
94
- ), Gi = B("isPrimitive"), Yi = (e) => Wi(e) && "__tres" in e, qi = (e, t) => {
93
+ ), Wi = B("isPrimitive"), Gi = (e) => Ki(e) && "__tres" in e, Yi = (e, t) => {
95
94
  let n = 0;
96
95
  for (let r = 0; r < e.length; r++)
97
96
  t(e[r], r) && (e[n] = e[r], n++);
98
97
  return e.length = n, e;
99
- }, dl = !0, Fe = "[TresJS ▲ ■ ●] ";
98
+ }, fl = !0, Fe = "[TresJS ▲ ■ ●] ";
100
99
  function Jt(...e) {
101
100
  typeof e[0] == "string" ? e[0] = Fe + e[0] : e.unshift(Fe), console.error(...e);
102
101
  }
103
102
  function Me(...e) {
104
103
  typeof e[0] == "string" ? e[0] = Fe + e[0] : e.unshift(Fe), console.warn(...e);
105
104
  }
106
- function pl(e, t) {
105
+ function dl(e, t) {
107
106
  }
108
107
  function en(e) {
109
108
  ((n) => "map" in n && !!n.map)(e) && e.map.dispose(), e.dispose();
@@ -128,16 +127,16 @@ function Ve(e, t) {
128
127
  function tn(...e) {
129
128
  return e.map((t, n) => n === 0 ? t : t.charAt(0).toUpperCase() + t.slice(1)).join("");
130
129
  }
131
- function Xi(e, t, n) {
130
+ function qi(e, t, n) {
132
131
  const r = /-\d+$/;
133
132
  if (Ot(n)) {
134
133
  if (r.test(n)) {
135
- const s = n.replace(r, ""), { target: u, key: a } = Ve(e, s);
136
- if (!Array.isArray(u[a])) {
137
- const l = u[a], c = [];
134
+ const s = n.replace(r, ""), { target: a, key: u } = Ve(e, s);
135
+ if (!Array.isArray(a[u])) {
136
+ const l = a[u], c = [];
138
137
  c.__tresDetach = () => {
139
- c.every((f) => at(f)) && (u[a] = l);
140
- }, u[a] = c;
138
+ c.every((f) => ut(f)) && (a[u] = l);
139
+ }, a[u] = c;
141
140
  }
142
141
  }
143
142
  const { target: o, key: i } = Ve(e, n);
@@ -145,7 +144,7 @@ function Xi(e, t, n) {
145
144
  } else
146
145
  t.__tres.previousAttach = n(e, t);
147
146
  }
148
- function Qi(e, t, n) {
147
+ function Xi(e, t, n) {
149
148
  if (Ot(n)) {
150
149
  const { target: r, key: o } = Ve(e, n), i = t.__tres.previousAttach;
151
150
  i === void 0 ? delete r[o] : r[o] = i, "__tresDetach" in r && r.__tresDetach();
@@ -169,24 +168,24 @@ function ft(e) {
169
168
  const t = e?.__tres?.root;
170
169
  t?.renderer && t.renderer.canBeInvalidated.value && t.renderer.invalidate();
171
170
  }
172
- function Zi(e, t, n, r, o) {
171
+ function Qi(e, t, n, r, o) {
173
172
  const i = [...t.__tres.objects], s = se(t);
174
173
  if (e = se(e), s === e)
175
174
  return !0;
176
- const u = X(e, t.__tres ?? {}, o), a = t.parent ?? t.__tres.parent ?? null, l = { ...t.__tres.memoizedProps };
175
+ const a = X(e, t.__tres ?? {}, o), u = t.parent ?? t.__tres.parent ?? null, l = { ...t.__tres.memoizedProps };
177
176
  delete l.object;
178
177
  for (const c of i)
179
178
  Mr(c, o), Nr(c, o);
180
179
  s.__tres.objects = [], r.remove(t);
181
180
  for (const [c, f] of Object.entries(l))
182
- r.patchProp(u, c, u[c], f);
183
- n(e), r.insert(t, a);
181
+ r.patchProp(a, c, a[c], f);
182
+ n(e), r.insert(t, u);
184
183
  for (const c of i)
185
184
  r.insert(c, t);
186
185
  return !0;
187
186
  }
188
187
  function se(e) {
189
- if (Gi(e)) {
188
+ if (Wi(e)) {
190
189
  const t = e;
191
190
  return t.object.__tres = t.__tres, t.object;
192
191
  } else
@@ -194,29 +193,29 @@ function se(e) {
194
193
  }
195
194
  function Mr(e, t) {
196
195
  const n = e.__tres?.parent || t.scene.value;
197
- e.__tres && (e.__tres.parent = null), n && n.__tres && "objects" in n.__tres && qi(n.__tres.objects, (r) => r !== e), e.__tres?.attach ? Qi(n, e, e.__tres.attach) : (e.parent?.remove?.(se(e)), e.parent = null);
196
+ e.__tres && (e.__tres.parent = null), n && n.__tres && "objects" in n.__tres && Yi(n.__tres.objects, (r) => r !== e), e.__tres?.attach ? Xi(n, e, e.__tres.attach) : (e.parent?.remove?.(se(e)), e.parent = null);
198
197
  }
199
198
  function Nr(e, t) {
200
199
  e.traverse?.((n) => {
201
200
  re(n) && t.camera.deregisterCamera(n);
202
201
  }), re(e) && t.camera.deregisterCamera(e), ft(e);
203
202
  }
204
- function Ji(e, t, n) {
205
- const r = new e(n?.manager), o = Do({
203
+ function Zi(e, t, n) {
204
+ const r = new e(n?.manager), o = Io({
206
205
  loaded: 0,
207
206
  total: 0,
208
207
  percentage: 0
209
208
  });
210
209
  n?.extensions && n.extensions(r);
211
- const i = D(t), s = oi(
212
- (a) => new Promise((l, c) => {
213
- const f = a || i || "";
214
- r.load(f, (_) => {
215
- l(_);
216
- }, (_) => {
217
- o.loaded = _.loaded, o.total = _.total, o.percentage = o.loaded / o.total * 100;
218
- }, (_) => {
219
- c(_);
210
+ const i = I(t), s = oi(
211
+ (u) => new Promise((l, c) => {
212
+ const f = u || i || "";
213
+ r.load(f, (h) => {
214
+ l(h);
215
+ }, (h) => {
216
+ o.loaded = h.loaded, o.total = h.total, o.percentage = o.loaded / o.total * 100;
217
+ }, (h) => {
218
+ c(h);
220
219
  });
221
220
  }),
222
221
  n?.initialValue ?? null,
@@ -224,25 +223,25 @@ function Ji(e, t, n) {
224
223
  ...n?.asyncOptions,
225
224
  immediate: n?.asyncOptions?.immediate ?? !0
226
225
  }
227
- ), u = At(() => D(t), (a) => {
228
- if (a) {
226
+ ), a = At(() => I(t), (u) => {
227
+ if (u) {
229
228
  const l = s.state.value;
230
- l && typeof l == "object" && "scene" in l && l.scene && Ne(l.scene), s.execute(0, a);
229
+ l && typeof l == "object" && "scene" in l && l.scene && Ne(l.scene), s.execute(0, u);
231
230
  }
232
231
  });
233
232
  return ie(() => {
234
- u();
235
- const a = s.state.value;
236
- a && typeof a == "object" && "scene" in a && a.scene && Ne(a.scene);
233
+ a();
234
+ const u = s.state.value;
235
+ u && typeof u == "object" && "scene" in u && u.scene && Ne(u.scene);
237
236
  }), {
238
237
  ...s,
239
- load: (a) => {
240
- s.execute(0, a);
238
+ load: (u) => {
239
+ s.execute(0, u);
241
240
  },
242
241
  progress: o
243
242
  };
244
243
  }
245
- const hl = /* @__PURE__ */ ot({
244
+ const pl = /* @__PURE__ */ ot({
246
245
  __name: "component",
247
246
  props: {
248
247
  loader: {},
@@ -251,32 +250,32 @@ const hl = /* @__PURE__ */ ot({
251
250
  },
252
251
  emits: ["loaded", "error"],
253
252
  setup(e, { emit: t }) {
254
- const n = e, r = t, { state: o, isLoading: i, error: s } = Ji(n.loader, n.path, { manager: n.manager });
255
- return qt(s, (u) => {
256
- u && r("error", u);
257
- }), qt(o, (u) => {
258
- u && r("loaded", u);
259
- }), (u, a) => Io(u.$slots, "default", {
253
+ const n = e, r = t, { state: o, isLoading: i, error: s } = Zi(n.loader, n.path, { manager: n.manager });
254
+ return qt(s, (a) => {
255
+ a && r("error", a);
256
+ }), qt(o, (a) => {
257
+ a && r("loaded", a);
258
+ }), (a, u) => Do(a.$slots, "default", {
260
259
  state: ke(o),
261
260
  isLoading: ke(i),
262
261
  error: ke(s)
263
262
  });
264
263
  }
265
- }), es = ({ sizes: e }) => {
264
+ }), Ji = ({ sizes: e }) => {
266
265
  const t = Ae([]), n = J(() => t.value[0]), r = (s) => {
267
- const u = Pr(s) ? s : t.value.find((l) => l.uuid === s);
268
- if (!u)
266
+ const a = Pr(s) ? s : t.value.find((l) => l.uuid === s);
267
+ if (!a)
269
268
  return;
270
- const a = t.value.filter(({ uuid: l }) => l !== u.uuid);
271
- t.value = [u, ...a];
272
- }, o = (s, u = !1) => {
273
- t.value.some(({ uuid: a }) => a === s.uuid) || (t.value.push(s), u && r(s.uuid));
269
+ const u = t.value.filter(({ uuid: l }) => l !== a.uuid);
270
+ t.value = [a, ...u];
271
+ }, o = (s, a = !1) => {
272
+ t.value.some(({ uuid: u }) => u === s.uuid) || (t.value.push(s), a && r(s.uuid));
274
273
  }, i = (s) => {
275
- t.value = t.value.filter(({ uuid: u }) => u !== s.uuid);
274
+ t.value = t.value.filter(({ uuid: a }) => a !== s.uuid);
276
275
  };
277
276
  return $(() => {
278
277
  e.aspectRatio.value && t.value.forEach((s) => {
279
- Dr(s) && (s.aspect = e.aspectRatio.value, s.updateProjectionMatrix());
278
+ Ir(s) && (s.aspect = e.aspectRatio.value, s.updateProjectionMatrix());
280
279
  });
281
280
  }), {
282
281
  activeCamera: n,
@@ -286,7 +285,7 @@ const hl = /* @__PURE__ */ ot({
286
285
  setActiveCamera: r
287
286
  };
288
287
  };
289
- function ts(e) {
288
+ function es(e) {
290
289
  const t = { nodes: {}, materials: {}, meshes: {} };
291
290
  return e && e.traverse((n) => {
292
291
  n.name && (t.nodes[n.name] = n), $e(n) && (t.meshes[n.name] || (t.meshes[n.name] = n), (Array.isArray(n.material) ? n.material : [n.material]).forEach((r) => {
@@ -294,18 +293,18 @@ function ts(e) {
294
293
  }));
295
294
  }), t;
296
295
  }
297
- const _l = (e) => J(() => {
298
- const t = D(e);
296
+ const hl = (e) => J(() => {
297
+ const t = I(e);
299
298
  if (t)
300
- return ts(t);
299
+ return es(t);
301
300
  });
302
301
  function nn() {
303
302
  const e = /* @__PURE__ */ new Map(), t = /* @__PURE__ */ new Set();
304
303
  let n = 0, r = !1;
305
304
  const o = () => {
306
305
  const l = Array.from(e.entries()).sort((c, f) => {
307
- const _ = c[1].priority - f[1].priority;
308
- return _ === 0 ? c[1].addI - f[1].addI : _;
306
+ const h = c[1].priority - f[1].priority;
307
+ return h === 0 ? c[1].addI - f[1].addI : h;
309
308
  });
310
309
  t.clear(), l.forEach((c) => t.add(c[0]));
311
310
  }, i = (l) => {
@@ -325,7 +324,7 @@ function nn() {
325
324
  return e.size;
326
325
  } };
327
326
  }
328
- const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), ns = (e, t, n) => {
327
+ const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), ts = (e, t, n) => {
329
328
  if (!Q(e.setPixelRatio))
330
329
  return;
331
330
  let r = 0;
@@ -334,16 +333,16 @@ const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), ns = (e, t, n) => {
334
333
  r = Bo.clamp(t, o, i);
335
334
  } else Sr(n) ? r = n : r = t;
336
335
  r !== e.getPixelRatio?.() && e.setPixelRatio(r);
337
- }, rs = (e) => {
336
+ }, ns = (e) => {
338
337
  const t = new Uo(), n = {
339
338
  before: Ee(),
340
339
  after: Ee()
341
340
  }, { pause: r, resume: o, isActive: i } = Tr(() => {
342
- const a = () => ({
341
+ const u = () => ({
343
342
  delta: t.getDelta(),
344
343
  elapsed: t.elapsedTime
345
344
  });
346
- n.before.trigger(a()), e(), n.after.trigger(a());
345
+ n.before.trigger(u()), e(), n.after.trigger(u());
347
346
  }, {
348
347
  immediate: !1
349
348
  });
@@ -359,7 +358,7 @@ const dt = Ae({}), pt = (e) => Object.assign(dt.value, e), ns = (e, t, n) => {
359
358
  onLoop: n.after.on
360
359
  };
361
360
  };
362
- function os({
361
+ function rs({
363
362
  scene: e,
364
363
  canvas: t,
365
364
  options: n,
@@ -370,32 +369,32 @@ function os({
370
369
  scene: e,
371
370
  camera: o,
372
371
  canvas: t
373
- }) : new br({
372
+ }) : new Cr({
374
373
  ...n,
375
- canvas: ai(t)
376
- }), u = Ae(D(n.renderMode) === "manual" ? 0 : 1), a = 60, l = J(() => D(n.renderMode) === "on-demand" && u.value === 0), c = () => e.value.traverse((E) => {
374
+ canvas: ui(t)
375
+ }), a = Ae(I(n.renderMode) === "manual" ? 0 : 1), u = 60, l = J(() => I(n.renderMode) === "on-demand" && a.value === 0), c = () => e.value.traverse((E) => {
377
376
  E instanceof He && E.material instanceof Ho && (E.material.needsUpdate = !0);
378
377
  }), f = (E = 1) => {
379
- l.value && (u.value = Math.min(a, u.value + E));
380
- }, _ = () => {
381
- if (D(n.renderMode) !== "manual")
378
+ l.value && (a.value = Math.min(u, a.value + E));
379
+ }, h = () => {
380
+ if (I(n.renderMode) !== "manual")
382
381
  throw new Error("advance can only be called in manual render mode.");
383
- u.value = 1;
382
+ a.value = 1;
384
383
  }, d = () => {
385
- D(n.renderMode) === "on-demand" && f();
386
- }, h = J(() => D(n.renderMode) === "always"), v = (E) => Tt(E) && "isRenderer" in E && !!E.isRenderer, p = Ee();
384
+ I(n.renderMode) === "on-demand" && f();
385
+ }, _ = J(() => I(n.renderMode) === "always"), v = (E) => Tt(E) && "isRenderer" in E && !!E.isRenderer, p = Ee();
387
386
  let g = !1;
388
387
  v(s) && (s.init(), p.trigger(s));
389
- const b = Ee(), C = () => {
390
- u.value = h.value ? 1 : Math.max(0, u.value - 1), b.trigger(s);
388
+ const C = Ee(), b = () => {
389
+ a.value = _.value ? 1 : Math.max(0, a.value - 1), C.trigger(s);
391
390
  };
392
391
  let P = (E) => {
393
392
  o.activeCamera.value && (s.render(e.value, o.activeCamera.value), E());
394
393
  };
395
394
  const M = (E) => {
396
395
  P = E;
397
- }, A = rs(() => {
398
- u.value && P(C);
396
+ }, A = ns(() => {
397
+ a.value && P(b);
399
398
  });
400
399
  p.on(A.start), At([r.width, r.height], () => {
401
400
  s.setSize(r.width.value, r.height.value), !g && s.domElement.width && s.domElement.height && (p.trigger(s), g = !0), d();
@@ -404,12 +403,12 @@ function os({
404
403
  });
405
404
  const { pixelRatio: O } = si();
406
405
  $(() => {
407
- ns(s, O.value, D(n.dpr));
408
- }), D(n.renderMode) === "on-demand" && f(), D(n.renderMode) === "manual" && ui(100, {
409
- callback: _
406
+ ts(s, O.value, I(n.dpr));
407
+ }), I(n.renderMode) === "on-demand" && f(), I(n.renderMode) === "manual" && ai(100, {
408
+ callback: h
410
409
  });
411
410
  const T = J(() => {
412
- const E = D(n.clearColor), x = D(n.clearAlpha), R = typeof E == "string" && E.length === 9 && E.startsWith("#");
411
+ const E = I(n.clearColor), x = I(n.clearAlpha), R = typeof E == "string" && E.length === 9 && E.startsWith("#");
413
412
  return R && x !== void 0 && Me(`clearColor with alpha (e.g. ${E}) and clearAlpha cannot both be set, using clearColor as source of truth`), R ? {
414
413
  alpha: Number.parseInt(E.slice(7, 9), 16) / 255,
415
414
  color: E.slice(0, 7)
@@ -441,24 +440,24 @@ function os({
441
440
  }), {
442
441
  loop: A,
443
442
  instance: s,
444
- advance: _,
443
+ advance: h,
445
444
  onReady: p.on,
446
- onRender: b.on,
445
+ onRender: C.on,
447
446
  invalidate: f,
448
447
  canBeInvalidated: l,
449
- mode: D(n.renderMode),
448
+ mode: I(n.renderMode),
450
449
  replaceRenderFunction: M
451
450
  };
452
451
  }
453
- function is(e, t, n = 10) {
454
- const r = D(e) ? li() : ci(J(() => D(t).parentElement)), o = zt(Xt(r.width, n)), i = zt(Xt(r.height, n)), s = J(() => o.value / i.value);
452
+ function os(e, t, n = 10) {
453
+ const r = I(e) ? li() : ci(J(() => I(t).parentElement)), o = zt(Xt(r.width, n)), i = zt(Xt(r.height, n)), s = J(() => o.value / i.value);
455
454
  return {
456
455
  height: i,
457
456
  width: o,
458
457
  aspectRatio: s
459
458
  };
460
459
  }
461
- class ss {
460
+ class is {
462
461
  nativeEvent;
463
462
  NONE = 0;
464
463
  CAPTURING_PHASE = 1;
@@ -565,8 +564,8 @@ class ss {
565
564
  return t in this.nativeEvent ? this.nativeEvent[t] : n;
566
565
  }
567
566
  }
568
- const Xe = new I();
569
- class L extends ss {
567
+ const Xe = new D();
568
+ class L extends is {
570
569
  type;
571
570
  bubbles;
572
571
  internalPointer;
@@ -665,7 +664,7 @@ class L extends ss {
665
664
  case "screen-ray":
666
665
  case "ray":
667
666
  case "sphere":
668
- return this._ray = new st(this.intersection.pointerPosition, new I(0, 0, -1).applyQuaternion(this.intersection.pointerQuaternion));
667
+ return this._ray = new st(this.intersection.pointerPosition, new D(0, 0, -1).applyQuaternion(this.intersection.pointerQuaternion));
669
668
  case "lines":
670
669
  return this._ray = new st(this.intersection.details.line.start, this.intersection.details.line.end.clone().sub(this.intersection.details.line.start).normalize());
671
670
  }
@@ -678,7 +677,7 @@ class L extends ss {
678
677
  get unprojectedPoint() {
679
678
  if (this._unprojectedPoint == null) {
680
679
  const t = this.pointer;
681
- this._unprojectedPoint = new I(t.x, t.y, 0).unproject(this.camera);
680
+ this._unprojectedPoint = new D(t.x, t.y, 0).unproject(this.camera);
682
681
  }
683
682
  return this._unprojectedPoint;
684
683
  }
@@ -691,11 +690,11 @@ class L extends ss {
691
690
  get delta() {
692
691
  throw new Error("not supported");
693
692
  }
694
- constructor(t, n, r, o, i, s, u = i.object, a = u, l = {
693
+ constructor(t, n, r, o, i, s, a = i.object, u = a, l = {
695
694
  stopped: !n,
696
695
  stoppedImmediate: !1
697
696
  }) {
698
- super(r), this.type = t, this.bubbles = n, this.internalPointer = o, this.intersection = i, this.camera = s, this.currentObject = u, this.object = a, this.propagationState = l;
697
+ super(r), this.type = t, this.bubbles = n, this.internalPointer = o, this.intersection = i, this.camera = s, this.currentObject = a, this.object = u, this.propagationState = l;
699
698
  }
700
699
  stopPropagation() {
701
700
  this.propagationState.stopped = !0;
@@ -757,7 +756,7 @@ const Br = {
757
756
  pointerover: "onPointerOver",
758
757
  pointerup: "onPointerUp",
759
758
  wheel: "onWheel"
760
- }, us = Object.keys(Br);
759
+ }, ss = Object.keys(Br);
761
760
  function as(e, t) {
762
761
  if (e._listeners != null && t in e._listeners)
763
762
  return e._listeners[t];
@@ -765,22 +764,22 @@ function as(e, t) {
765
764
  if (e.isVoidObject && t === "click" && e.parent?.__r3f != null && (n = e.parent.__r3f.root.getState().onPointerMissed), e.__r3f != null && (n = e.__r3f.handlers[Br[t]]), n != null)
766
765
  return [n];
767
766
  }
768
- const ls = 1e10, cs = new jo(ls), rn = /* @__PURE__ */ new Map();
767
+ const us = 1e10, ls = new jo(us), rn = /* @__PURE__ */ new Map();
769
768
  function Ur(e) {
770
769
  let t = rn.get(e);
771
- return t == null && (t = new He(cs), t.isVoidObject = !0, t.parent = e, t.pointerEventsOrder = -1 / 0, rn.set(e, t)), t;
770
+ return t == null && (t = new He(ls), t.isVoidObject = !0, t.parent = e, t.pointerEventsOrder = -1 / 0, rn.set(e, t)), t;
772
771
  }
773
- function fs(e, t, n) {
772
+ function cs(e, t, n) {
774
773
  const r = t.normal ?? t.face?.normal;
775
774
  return r == null ? !1 : (e.setFromNormalAndCoplanarPoint(r, t.localPoint), e.applyMatrix4(n), !0);
776
775
  }
777
- function ds(e, t, n) {
776
+ function fs(e, t, n) {
778
777
  if (t === "none" || t === "listener" && !e)
779
778
  return !1;
780
779
  if (n === "all")
781
780
  return !0;
782
781
  if (typeof n == "function")
783
- return ({ id: i, type: s, state: u }) => n(i, s, u);
782
+ return ({ id: i, type: s, state: a }) => n(i, s, a);
784
783
  let r, o;
785
784
  return "deny" in n ? (o = !0, r = n.deny) : (o = !1, r = n.allow), Array.isArray(r) ? (i) => on(r.includes(i.type), o) : (i) => on(r === i.type, o);
786
785
  }
@@ -788,24 +787,24 @@ function on(e, t) {
788
787
  return t ? !e : e;
789
788
  }
790
789
  function Hr(e, t, n, r = !1, o, i, s) {
791
- const u = r || ps(e, t), a = t.pointerEvents ?? o, l = a ?? t.defaultPointerEvents ?? "listener", c = t.pointerEventsType ?? i ?? "all", f = t.pointerEventsOrder ?? s ?? 0, _ = ds(u, l, c), d = n.length;
790
+ const a = r || ds(e, t), u = t.pointerEvents ?? o, l = u ?? t.defaultPointerEvents ?? "listener", c = t.pointerEventsType ?? i ?? "all", f = t.pointerEventsOrder ?? s ?? 0, h = fs(a, l, c), d = n.length;
792
791
  if (d === 1)
793
- (_ === !0 || typeof _ == "function" && _(n[0])) && Qe(n[0], t, l, c, f);
794
- else if (_ === !0)
792
+ (h === !0 || typeof h == "function" && h(n[0])) && Qe(n[0], t, l, c, f);
793
+ else if (h === !0)
795
794
  for (let p = 0; p < d; p++)
796
795
  Qe(n[p], t, l, c, f);
797
- else if (typeof _ == "function")
796
+ else if (typeof h == "function")
798
797
  for (let p = 0; p < d; p++) {
799
798
  const g = n[p];
800
- _(g) && Qe(g, t, l, c, f);
799
+ h(g) && Qe(g, t, l, c, f);
801
800
  }
802
801
  if (t.children.length === 0 || t.intersectChildren === !1)
803
802
  return;
804
- const h = t.interactableDescendants ?? t.children, v = h.length;
803
+ const _ = t.interactableDescendants ?? t.children, v = _.length;
805
804
  for (let p = 0; p < v; p++)
806
- Hr(e, h[p], n, u, a, c, f);
805
+ Hr(e, _[p], n, a, u, c, f);
807
806
  }
808
- function ps(e, t) {
807
+ function ds(e, t) {
809
808
  if (t.ancestorsHaveListeners || e === "pointer" && t.ancestorsHavePointerListeners || e === "wheel" && t.ancestorsHaveWheelListeners || t.__r3f != null && t.__r3f?.eventCount > 0 && (e === "wheel" && t.__r3f.handlers.onWheel != null || e === "pointer" && Object.keys(t.__r3f.handlers).some((o) => o != "onWheel")))
810
809
  return !0;
811
810
  if (t._listeners == null)
@@ -817,7 +816,7 @@ function ps(e, t) {
817
816
  const n = Object.entries(t._listeners), r = n.length;
818
817
  for (let o = 0; o < r; o++) {
819
818
  const i = n[o];
820
- if (i[0] !== "wheel" && us.includes(i[0]) && i[1] != null && i[1].length > 0)
819
+ if (i[0] !== "wheel" && ss.includes(i[0]) && i[1] != null && i[1].length > 0)
821
820
  return !0;
822
821
  }
823
822
  return !1;
@@ -825,38 +824,38 @@ function ps(e, t) {
825
824
  function Qe({ intersector: e, options: t }, n, r, o, i) {
826
825
  t.filter?.(n, r, o, i) !== !1 && e.executeIntersection(n, i);
827
826
  }
828
- function hs(e, t, { customSort: n = _s } = {}, r) {
827
+ function ps(e, t, { customSort: n = hs } = {}, r) {
829
828
  let o, i, s;
830
- const u = e.length;
831
- for (let a = 0; a < u; a++) {
832
- const l = e[a], c = t?.[a];
833
- (o == null || n(l, c, o, i) < 0) && (s = a, o = l, i = c);
829
+ const a = e.length;
830
+ for (let u = 0; u < a; u++) {
831
+ const l = e[u], c = t?.[u];
832
+ (o == null || n(l, c, o, i) < 0) && (s = u, o = l, i = c);
834
833
  }
835
834
  return s;
836
835
  }
837
- function _s(e, t = 0, n, r = 0) {
836
+ function hs(e, t = 0, n, r = 0) {
838
837
  return t != r ? r - t : e.distance - n.distance;
839
838
  }
840
839
  const sn = 1e7;
841
- function ms(e, t, n, r, o, i = 0) {
842
- const s = t.direction.clone().multiplyScalar(sn), u = sn;
840
+ function _s(e, t, n, r, o, i = 0) {
841
+ const s = t.direction.clone().multiplyScalar(sn), a = sn;
843
842
  return {
844
- distance: u + i,
843
+ distance: a + i,
845
844
  object: Ur(e),
846
845
  point: s,
847
846
  normal: t.origin.clone().sub(s).normalize(),
848
- details: n(s, u),
847
+ details: n(s, a),
849
848
  pointerPosition: r,
850
849
  pointerQuaternion: o,
851
850
  pointOnFace: s,
852
851
  localPoint: s
853
852
  };
854
853
  }
855
- function gs(e, t, n) {
854
+ function ms(e, t, n) {
856
855
  for (; n > 0; )
857
856
  e.push(t), --n;
858
857
  }
859
- const Ze = Symbol("buttonsDownTime"), Es = Symbol("buttonsClickTime");
858
+ const Ze = Symbol("buttonsDownTime"), gs = Symbol("buttonsClickTime");
860
859
  globalThis.pointerEventspointerMap ??= /* @__PURE__ */ new Map();
861
860
  je.prototype.setPointerCapture = function(e) {
862
861
  St(e)?.setCapture(this);
@@ -871,7 +870,7 @@ je.prototype.hasPointerCapture = function(e) {
871
870
  function St(e) {
872
871
  return globalThis.pointerEventspointerMap?.get(e);
873
872
  }
874
- class vs {
873
+ class Es {
875
874
  id;
876
875
  type;
877
876
  state;
@@ -899,8 +898,8 @@ class vs {
899
898
  //to handle interaction before first move (after exit)
900
899
  wasMoved = !1;
901
900
  onFirstMove = [];
902
- constructor(t, n, r, o, i, s, u, a, l = {}) {
903
- this.id = t, this.type = n, this.state = r, this.intersector = o, this.getCamera = i, this.onMoveCommited = s, this.parentSetPointerCapture = u, this.parentReleasePointerCapture = a, this.options = l, globalThis.pointerEventspointerMap?.set(t, this);
901
+ constructor(t, n, r, o, i, s, a, u, l = {}) {
902
+ this.id = t, this.type = n, this.state = r, this.intersector = o, this.getCamera = i, this.onMoveCommited = s, this.parentSetPointerCapture = a, this.parentReleasePointerCapture = u, this.options = l, globalThis.pointerEventspointerMap?.set(t, this);
904
903
  }
905
904
  getPointerCapture() {
906
905
  return this.pointerCapture;
@@ -937,20 +936,20 @@ class vs {
937
936
  o != null && o.object != i?.object && N(new L("pointerout", !0, t, this, o, r));
938
937
  const s = this.pointerEntered;
939
938
  this.pointerEntered = [], this.pointerEnteredHelper.length = 0, jr(i?.object, this.pointerEntered, s, this.pointerEnteredHelper);
940
- const u = s.length;
941
- for (let a = 0; a < u; a++) {
942
- const l = s[a];
939
+ const a = s.length;
940
+ for (let u = 0; u < a; u++) {
941
+ const l = s[u];
943
942
  N(new L("pointerleave", !1, t, this, o, r, l));
944
943
  }
945
944
  i != null && o?.object != i.object && N(new L("pointerover", !0, t, this, i, r));
946
- for (let a = this.pointerEnteredHelper.length - 1; a >= 0; a--) {
947
- const l = this.pointerEnteredHelper[a];
945
+ for (let u = this.pointerEnteredHelper.length - 1; u >= 0; u--) {
946
+ const l = this.pointerEnteredHelper[u];
948
947
  N(new L("pointerenter", !1, t, this, i, r, l));
949
948
  }
950
949
  if (n && i != null && N(new L("pointermove", !0, t, this, i, r)), this.prevIntersection = this.intersection, this.prevEnabled = this.enabled, !this.wasMoved && this.intersector.isReady()) {
951
950
  this.wasMoved = !0;
952
- const a = this.onFirstMove.length;
953
- for (let l = 0; l < a; l++)
951
+ const u = this.onFirstMove.length;
952
+ for (let l = 0; l < u; l++)
954
953
  this.onFirstMove[l](r);
955
954
  this.onFirstMove.length = 0;
956
955
  }
@@ -993,16 +992,16 @@ class vs {
993
992
  return;
994
993
  const { clickThesholdMs: n, contextMenuButton: r = 2, dblClickThresholdMs: o = 500, clickThresholdMs: i = n ?? 300 } = this.options;
995
994
  this.pointerCapture = void 0;
996
- const s = ys(this.buttonsDownTime, this.intersection.object[Ze], t.button, t.timeStamp, i), u = this.getCamera();
997
- if (s && t.button === r && N(new L("contextmenu", !0, t, this, this.intersection, u)), N(new L("pointerup", !0, t, this, this.intersection, u)), !s || t.button === r)
995
+ const s = vs(this.buttonsDownTime, this.intersection.object[Ze], t.button, t.timeStamp, i), a = this.getCamera();
996
+ if (s && t.button === r && N(new L("contextmenu", !0, t, this, this.intersection, a)), N(new L("pointerup", !0, t, this, this.intersection, a)), !s || t.button === r)
998
997
  return;
999
- N(new L("click", !0, t, this, this.intersection, u));
1000
- const { object: a } = this.intersection, l = a[Es] ??= /* @__PURE__ */ new Map(), c = l.get(t.button);
998
+ N(new L("click", !0, t, this, this.intersection, a));
999
+ const { object: u } = this.intersection, l = u[gs] ??= /* @__PURE__ */ new Map(), c = l.get(t.button);
1001
1000
  if (c == null || t.timeStamp - c > o) {
1002
1001
  l.set(t.button, t.timeStamp);
1003
1002
  return;
1004
1003
  }
1005
- N(new L("dblclick", !0, t, this, this.intersection, u)), l.delete(t.button);
1004
+ N(new L("dblclick", !0, t, this, this.intersection, a)), l.delete(t.button);
1006
1005
  }
1007
1006
  cancel(t) {
1008
1007
  if (this.enabled) {
@@ -1044,30 +1043,30 @@ function jr(e, t, n, r) {
1044
1043
  const o = n.indexOf(e);
1045
1044
  o != -1 ? n.splice(o, 1) : r.push(e), t.push(e), jr(e.parent, t, n, r);
1046
1045
  }
1047
- function ys(e, t, n, r, o) {
1046
+ function vs(e, t, n, r, o) {
1048
1047
  if (t == null)
1049
1048
  return !1;
1050
1049
  const i = t.get(n);
1051
1050
  return !(i == null || r - i > o || i != e.get(n));
1052
1051
  }
1053
- const he = new wr(), Je = new wr(), un = new Y(), an = new Y(), ln = new Y(), et = new I(), bs = new Te(), Pe = new I();
1052
+ const he = new wr(), Je = new wr(), an = new Y(), un = new Y(), ln = new Y(), et = new D(), ys = new Te(), Pe = new D();
1054
1053
  function Cs(e, t, n) {
1055
- Pe.copy(t).applyMatrix4(bs.copy(n.matrixWorld).invert());
1054
+ Pe.copy(t).applyMatrix4(ys.copy(n.matrixWorld).invert());
1056
1055
  const r = n.geometry.attributes.uv;
1057
- if (r == null || !(r instanceof Cr))
1056
+ if (r == null || !(r instanceof br))
1058
1057
  return !1;
1059
1058
  let o;
1060
- return ws(n, (i, s, u) => {
1061
- n.getVertexPosition(i, he.a), n.getVertexPosition(s, he.b), n.getVertexPosition(u, he.c);
1062
- const a = he.closestPointToPoint(Pe, et).distanceTo(Pe);
1063
- o != null && a >= o || (o = a, Je.copy(he), un.fromBufferAttribute(r, i), an.fromBufferAttribute(r, s), ln.fromBufferAttribute(r, u));
1064
- }), o == null ? !1 : (Je.closestPointToPoint(Pe, et), Je.getInterpolation(et, un, an, ln, e), !0);
1059
+ return bs(n, (i, s, a) => {
1060
+ n.getVertexPosition(i, he.a), n.getVertexPosition(s, he.b), n.getVertexPosition(a, he.c);
1061
+ const u = he.closestPointToPoint(Pe, et).distanceTo(Pe);
1062
+ o != null && u >= o || (o = u, Je.copy(he), an.fromBufferAttribute(r, i), un.fromBufferAttribute(r, s), ln.fromBufferAttribute(r, a));
1063
+ }), o == null ? !1 : (Je.closestPointToPoint(Pe, et), Je.getInterpolation(et, an, un, ln, e), !0);
1065
1064
  }
1066
- function ws(e, t) {
1065
+ function bs(e, t) {
1067
1066
  const n = e.geometry.drawRange;
1068
1067
  if (e.geometry.index != null) {
1069
- const s = e.geometry.index, u = Math.max(0, n.start), a = Math.min(s.count, n.start + n.count);
1070
- for (let l = u; l < a; l += 3)
1068
+ const s = e.geometry.index, a = Math.max(0, n.start), u = Math.min(s.count, n.start + n.count);
1069
+ for (let l = a; l < u; l += 3)
1071
1070
  t(s.getX(l), s.getX(l + 1), s.getX(l + 2));
1072
1071
  return;
1073
1072
  }
@@ -1080,22 +1079,22 @@ function ws(e, t) {
1080
1079
  }
1081
1080
  new Te();
1082
1081
  new zo();
1083
- new I();
1082
+ new D();
1084
1083
  new ze();
1085
1084
  new st();
1086
1085
  new Y();
1087
- new I(0, 0, 0), new I(0, 0, 1);
1088
- const cn = new Te(), As = new I();
1089
- new I(0, 0, -1);
1086
+ new D(0, 0, 0), new D(0, 0, 1);
1087
+ const cn = new Te(), ws = new D();
1088
+ new D(0, 0, -1);
1090
1089
  new ze();
1091
- const fn = new Y(), Ts = new I();
1092
- class Os {
1090
+ const fn = new Y(), As = new D();
1091
+ class Ts {
1093
1092
  prepareTransformation;
1094
1093
  options;
1095
1094
  raycaster = new $o();
1096
- cameraQuaternion = new ut();
1097
- fromPosition = new I();
1098
- fromQuaternion = new ut();
1095
+ cameraQuaternion = new at();
1096
+ fromPosition = new D();
1097
+ fromQuaternion = new at();
1099
1098
  coords = new Y();
1100
1099
  viewPlane = new ze();
1101
1100
  intersects = [];
@@ -1113,10 +1112,10 @@ class Os {
1113
1112
  if (!this.startIntersection(r))
1114
1113
  return t;
1115
1114
  this.viewPlane.constant -= o.distanceViewPlane;
1116
- const i = this.raycaster.ray.intersectPlane(this.viewPlane, new I());
1115
+ const i = this.raycaster.ray.intersectPlane(this.viewPlane, new D());
1117
1116
  if (i == null)
1118
1117
  return t;
1119
- t.object.updateWorldMatrix(!0, !1), fs(this.viewPlane, t, t.object.matrixWorld);
1118
+ t.object.updateWorldMatrix(!0, !1), cs(this.viewPlane, t, t.object.matrixWorld);
1120
1119
  let s = t.uv;
1121
1120
  return t.object instanceof He && Cs(fn, i, t.object) && (s = fn.clone()), {
1122
1121
  ...t,
@@ -1135,17 +1134,17 @@ class Os {
1135
1134
  }
1136
1135
  startIntersection(t) {
1137
1136
  const n = this.prepareTransformation(t, this.coords);
1138
- return n == null ? !1 : (n.updateWorldMatrix(!0, !1), n.matrixWorld.decompose(this.fromPosition, this.fromQuaternion, As), this.raycaster.setFromCamera(this.coords, n), this.viewPlane.setFromNormalAndCoplanarPoint(n.getWorldDirection(Ts), this.raycaster.ray.origin), !0);
1137
+ return n == null ? !1 : (n.updateWorldMatrix(!0, !1), n.matrixWorld.decompose(this.fromPosition, this.fromQuaternion, ws), this.raycaster.setFromCamera(this.coords, n), this.viewPlane.setFromNormalAndCoplanarPoint(n.getWorldDirection(As), this.raycaster.ray.origin), !0);
1139
1138
  }
1140
1139
  executeIntersection(t, n) {
1141
1140
  const r = this.intersects.length;
1142
- t.raycast(this.raycaster, this.intersects), gs(this.pointerEventsOrders, n, this.intersects.length - r);
1141
+ t.raycast(this.raycaster, this.intersects), ms(this.pointerEventsOrders, n, this.intersects.length - r);
1143
1142
  }
1144
1143
  finalizeIntersection(t) {
1145
- const n = this.fromPosition.clone(), r = this.cameraQuaternion.clone(), o = this.raycaster.ray.direction.clone(), i = hs(this.intersects, this.pointerEventsOrders, this.options), s = i == null ? void 0 : this.intersects[i];
1146
- return this.intersects.length = 0, this.pointerEventsOrders.length = 0, s == null ? ms(t, this.raycaster.ray, (u, a) => ({
1144
+ const n = this.fromPosition.clone(), r = this.cameraQuaternion.clone(), o = this.raycaster.ray.direction.clone(), i = ps(this.intersects, this.pointerEventsOrders, this.options), s = i == null ? void 0 : this.intersects[i];
1145
+ return this.intersects.length = 0, this.pointerEventsOrders.length = 0, s == null ? _s(t, this.raycaster.ray, (a, u) => ({
1147
1146
  type: "screen-ray",
1148
- distanceViewPlane: a,
1147
+ distanceViewPlane: u,
1149
1148
  screenPoint: this.coords.clone(),
1150
1149
  direction: o
1151
1150
  }), n, r) : (s.object.updateWorldMatrix(!0, !1), cn.copy(s.object.matrixWorld).invert(), Object.assign(s, {
@@ -1162,35 +1161,35 @@ class Os {
1162
1161
  }));
1163
1162
  }
1164
1163
  }
1165
- new I();
1164
+ new D();
1166
1165
  new Y();
1167
1166
  new Te();
1168
- new I();
1169
- new ut();
1167
+ new D();
1168
+ new at();
1170
1169
  new ze();
1171
1170
  new Ko();
1172
- new I();
1173
- new I();
1174
- new I();
1175
- new I(1e-4, 1e-4, 1e-4);
1171
+ new D();
1172
+ new D();
1173
+ new D();
1174
+ new D(1e-4, 1e-4, 1e-4);
1176
1175
  new Te();
1177
- let Ss = 23412;
1178
- function Ps() {
1179
- return Ss++;
1176
+ let Os = 23412;
1177
+ function Ss() {
1178
+ return Os++;
1180
1179
  }
1181
- function Ds(e, t, n) {
1180
+ function Ps(e, t, n) {
1182
1181
  if (!(t instanceof globalThis.MouseEvent))
1183
1182
  return n.set(0, 0);
1184
- const { width: r, height: o, top: i, left: s } = e.getBoundingClientRect(), u = t.clientX - s, a = t.clientY - i;
1185
- return n.set(u / r * 2 - 1, -(a / o) * 2 + 1);
1183
+ const { width: r, height: o, top: i, left: s } = e.getBoundingClientRect(), a = t.clientX - s, u = t.clientY - i;
1184
+ return n.set(a / r * 2 - 1, -(u / o) * 2 + 1);
1186
1185
  }
1187
1186
  function Is(e, t, n, r) {
1188
- return ks(
1187
+ return Ds(
1189
1188
  e,
1190
1189
  //backwards compatibility
1191
1190
  typeof t == "function" ? t : () => t,
1192
1191
  n,
1193
- Ds.bind(null, e),
1192
+ Ps.bind(null, e),
1194
1193
  e.setPointerCapture.bind(e),
1195
1194
  (o) => {
1196
1195
  e.hasPointerCapture(o) && e.releasePointerCapture(o);
@@ -1201,11 +1200,11 @@ function Is(e, t, n, r) {
1201
1200
  }
1202
1201
  );
1203
1202
  }
1204
- function ks(e, t, n, r, o, i, s = {}) {
1205
- const u = s?.forwardPointerCapture ?? !0, a = /* @__PURE__ */ new Map(), l = s.pointerTypePrefix ?? "forward-", c = (O, T) => {
1206
- let E = a.get(O.pointerId);
1207
- return E != null || (E = new vs(Ps(), `${l}${O.pointerType}`, O.pointerState, new Os((x, R) => (r(x, R), t()), s), t, void 0, u ? o.bind(null, O.pointerId) : void 0, u ? i.bind(null, O.pointerId) : void 0, s), T != "move" && T != "wheel" && (E.setIntersection(E.computeIntersection("pointer", n, O)), E.commit(O, !1)), a.set(O.pointerId, E)), E;
1208
- }, f = /* @__PURE__ */ new Map(), _ = /* @__PURE__ */ new Map(), d = [], h = [], v = (O, T, E) => {
1203
+ function Ds(e, t, n, r, o, i, s = {}) {
1204
+ const a = s?.forwardPointerCapture ?? !0, u = /* @__PURE__ */ new Map(), l = s.pointerTypePrefix ?? "forward-", c = (O, T) => {
1205
+ let E = u.get(O.pointerId);
1206
+ return E != null || (E = new Es(Ss(), `${l}${O.pointerType}`, O.pointerState, new Ts((x, R) => (r(x, R), t()), s), t, void 0, a ? o.bind(null, O.pointerId) : void 0, a ? i.bind(null, O.pointerId) : void 0, s), T != "move" && T != "wheel" && (E.setIntersection(E.computeIntersection("pointer", n, O)), E.commit(O, !1)), u.set(O.pointerId, E)), E;
1207
+ }, f = /* @__PURE__ */ new Map(), h = /* @__PURE__ */ new Map(), d = [], _ = [], v = (O, T, E) => {
1209
1208
  switch (O) {
1210
1209
  case "move":
1211
1210
  E.move(n, T);
@@ -1227,22 +1226,22 @@ function ks(e, t, n, r, o, i, s = {}) {
1227
1226
  E.up(T);
1228
1227
  return;
1229
1228
  case "exit":
1230
- _.delete(E), f.delete(E), E.exit(T);
1229
+ h.delete(E), f.delete(E), E.exit(T);
1231
1230
  return;
1232
1231
  }
1233
1232
  }, p = (O, T) => {
1234
1233
  const E = c(T, O);
1235
- O === "move" && _.set(E, T), O === "wheel" && f.set(E, T), s.batchEvents ?? !0 ? h.push({ type: O, event: T }) : v(O, T, E);
1236
- }, g = p.bind(null, "move"), b = p.bind(null, "cancel"), C = p.bind(null, "down"), P = p.bind(null, "up"), M = p.bind(null, "wheel"), A = p.bind(null, "exit");
1237
- return e.addEventListener("pointermove", g), e.addEventListener("pointercancel", b), e.addEventListener("pointerdown", C), e.addEventListener("pointerup", P), e.addEventListener("wheel", M), e.addEventListener("pointerleave", A), {
1234
+ O === "move" && h.set(E, T), O === "wheel" && f.set(E, T), s.batchEvents ?? !0 ? _.push({ type: O, event: T }) : v(O, T, E);
1235
+ }, g = p.bind(null, "move"), C = p.bind(null, "cancel"), b = p.bind(null, "down"), P = p.bind(null, "up"), M = p.bind(null, "wheel"), A = p.bind(null, "exit");
1236
+ return e.addEventListener("pointermove", g), e.addEventListener("pointercancel", C), e.addEventListener("pointerdown", b), e.addEventListener("pointerup", P), e.addEventListener("wheel", M), e.addEventListener("pointerleave", A), {
1238
1237
  destroy() {
1239
- e.removeEventListener("pointermove", g), e.removeEventListener("pointercancel", b), e.removeEventListener("pointerdown", C), e.removeEventListener("pointerup", P), e.removeEventListener("wheel", M), e.removeEventListener("pointerleave", A), _.clear(), f.clear();
1238
+ e.removeEventListener("pointermove", g), e.removeEventListener("pointercancel", C), e.removeEventListener("pointerdown", b), e.removeEventListener("pointerup", P), e.removeEventListener("wheel", M), e.removeEventListener("pointerleave", A), h.clear(), f.clear();
1240
1239
  },
1241
1240
  update() {
1242
- const O = h.length;
1241
+ const O = _.length;
1243
1242
  for (let T = 0; T < O; T++) {
1244
- const { type: E, event: x } = h[T], R = c(x, E);
1245
- if (E === "move" && (d.push(R), _.get(R) != x)) {
1243
+ const { type: E, event: x } = _[T], R = c(x, E);
1244
+ if (E === "move" && (d.push(R), h.get(R) != x)) {
1246
1245
  R.emitMove(x);
1247
1246
  continue;
1248
1247
  }
@@ -1252,8 +1251,8 @@ function ks(e, t, n, r, o, i, s = {}) {
1252
1251
  }
1253
1252
  v(E, x, R);
1254
1253
  }
1255
- if (h.length = 0, s.intersectEveryFrame ?? !1)
1256
- for (const [T, E] of _.entries())
1254
+ if (_.length = 0, s.intersectEveryFrame ?? !1)
1255
+ for (const [T, E] of h.entries())
1257
1256
  d.includes(T) || T.move(n, E);
1258
1257
  d.length = 0;
1259
1258
  }
@@ -1262,41 +1261,41 @@ function ks(e, t, n, r, o, i, s = {}) {
1262
1261
  function dn(e) {
1263
1262
  return e.button != null;
1264
1263
  }
1265
- function xs({
1264
+ function ks({
1266
1265
  canvas: e,
1267
1266
  contextParts: { scene: t, camera: n, renderer: r }
1268
1267
  }) {
1269
- const { update: o, destroy: i } = Is(D(e), () => D(n.activeCamera), t.value), { off: s } = r.loop.onLoop(o);
1268
+ const { update: o, destroy: i } = Is(I(e), () => I(n.activeCamera), t.value), { off: s } = r.loop.onLoop(o);
1270
1269
  ie(i), ie(s);
1271
- const u = Ur(t.value), a = Ee();
1272
- return u.addEventListener("click", a.trigger), {
1273
- onPointerMissed: a.on
1270
+ const a = Ur(t.value), u = Ee();
1271
+ return a.addEventListener("click", u.trigger), {
1272
+ onPointerMissed: u.on
1274
1273
  };
1275
1274
  }
1276
- const Rs = "useTres", [Ls, Fs] = fi(({
1275
+ const xs = "useTres", [Rs, Ls] = fi(({
1277
1276
  scene: e,
1278
1277
  canvas: t,
1279
1278
  windowSize: n,
1280
1279
  rendererOptions: r
1281
1280
  }) => {
1282
- const o = it(e), i = is(n, t), s = es({ sizes: i }), u = os(
1281
+ const o = it(e), i = os(n, t), s = Ji({ sizes: i }), a = rs(
1283
1282
  {
1284
1283
  scene: o,
1285
1284
  canvas: t,
1286
1285
  options: r,
1287
1286
  contextParts: { sizes: i, camera: s }
1288
1287
  }
1289
- ), a = xs({
1288
+ ), u = ks({
1290
1289
  canvas: t,
1291
- contextParts: { scene: o, camera: s, renderer: u }
1290
+ contextParts: { scene: o, camera: s, renderer: a }
1292
1291
  }), l = {
1293
1292
  sizes: i,
1294
1293
  scene: o,
1295
1294
  camera: s,
1296
- renderer: u,
1295
+ renderer: a,
1297
1296
  controls: Ae(null),
1298
1297
  extend: pt,
1299
- events: a
1298
+ events: u
1300
1299
  };
1301
1300
  return l.scene.value.__tres = {
1302
1301
  root: l
@@ -1304,14 +1303,14 @@ const Rs = "useTres", [Ls, Fs] = fi(({
1304
1303
  }, {
1305
1304
  injectionKey: "useTres"
1306
1305
  }), zr = () => {
1307
- const e = Fs();
1306
+ const e = Ls();
1308
1307
  if (!e)
1309
1308
  throw new Error(`useTresContext must be used together with useTresContextProvider.
1310
1309
  You probably tried to use it above or on the same level as a TresCanvas component.
1311
1310
  It should be used in child components of a TresCanvas instance.`);
1312
1311
  return e;
1313
1312
  };
1314
- function Ms() {
1313
+ function Fs() {
1315
1314
  const { scene: e, renderer: t, camera: n, sizes: r, controls: o, extend: i, events: s } = zr();
1316
1315
  return {
1317
1316
  scene: e,
@@ -1325,8 +1324,8 @@ function Ms() {
1325
1324
  advance: t.advance
1326
1325
  };
1327
1326
  }
1328
- const ml = () => {
1329
- const e = Ms(), { renderer: t } = zr(), n = nn(), r = nn();
1327
+ const _l = () => {
1328
+ const e = Fs(), { renderer: t } = zr(), n = nn(), r = nn();
1330
1329
  t.loop.onBeforeLoop((i) => {
1331
1330
  n.trigger({ ...e, ...i });
1332
1331
  }), t.loop.onLoop((i) => {
@@ -1342,26 +1341,26 @@ const ml = () => {
1342
1341
  render: o
1343
1342
  };
1344
1343
  };
1345
- function Ns(e, t = {}, n = {}) {
1344
+ function Ms(e, t = {}, n = {}) {
1346
1345
  let r = e;
1347
- const o = (u) => {
1348
- r = u;
1346
+ const o = (a) => {
1347
+ r = a;
1349
1348
  };
1350
1349
  let i = new Proxy({}, {});
1351
1350
  const s = {
1352
- has(u, a) {
1353
- return a in t || a in r;
1351
+ has(a, u) {
1352
+ return u in t || u in r;
1354
1353
  },
1355
- get(u, a, l) {
1356
- return a in t ? t[a](r) : r[a];
1354
+ get(a, u, l) {
1355
+ return u in t ? t[u](r) : r[u];
1357
1356
  },
1358
- set(u, a, l) {
1359
- return n[a] ? n[a](l, r, i, o) : r[a] = l, !0;
1357
+ set(a, u, l) {
1358
+ return n[u] ? n[u](l, r, i, o) : r[u] = l, !0;
1360
1359
  }
1361
1360
  };
1362
1361
  return i = new Proxy({}, s), i;
1363
1362
  }
1364
- const Vs = [
1363
+ const Ns = [
1365
1364
  "onClick",
1366
1365
  "onContextmenu",
1367
1366
  "onPointermove",
@@ -1375,7 +1374,7 @@ const Vs = [
1375
1374
  "onPointercancel",
1376
1375
  "onLostpointercapture",
1377
1376
  "onWheel"
1378
- ], Bs = {
1377
+ ], Vs = {
1379
1378
  onClick: "click",
1380
1379
  onContextmenu: "contextmenu",
1381
1380
  onPointermove: "pointermove",
@@ -1389,42 +1388,43 @@ const Vs = [
1389
1388
  onPointercancel: "pointercancel",
1390
1389
  onLostpointercapture: "lostpointercapture",
1391
1390
  onWheel: "wheel"
1392
- }, pn = (e) => Vs.includes(e), Us = (e) => {
1391
+ }, pn = (e) => Ns.includes(e), Bs = (e) => {
1393
1392
  const t = e.scene.value;
1394
- function n(c, f, _, d) {
1395
- if (d || (d = {}), d.args || (d.args = []), Bi(c))
1393
+ function n(c, f, h, d) {
1394
+ if (d || (d = {}), d.args || (d.args = []), Vi(c))
1396
1395
  return null;
1397
- let h = c.replace("Tres", ""), v;
1396
+ c.includes("-") && (c = c.replace(/-([a-z])/g, (p, g) => g.toUpperCase()).replace(/^[a-z]/, (p) => p.toUpperCase()));
1397
+ let _ = c.replace("Tres", ""), v;
1398
1398
  if (c === "primitive") {
1399
1399
  (!Tt(d.object) || me(d.object)) && Jt(
1400
1400
  "Tres primitives need an 'object' prop, whose value is an object or shallowRef<object>"
1401
- ), h = d.object.type;
1401
+ ), _ = d.object.type;
1402
1402
  const p = {};
1403
- v = Ns(
1403
+ v = Ms(
1404
1404
  d.object,
1405
1405
  {
1406
- object: (b) => b,
1406
+ object: (C) => C,
1407
1407
  isPrimitive: () => !0,
1408
1408
  __tres: () => p
1409
1409
  },
1410
1410
  {
1411
- object: (b, C, P, M) => {
1412
- Zi(b, P, M, { patchProp: i, remove: o, insert: r }, e);
1411
+ object: (C, b, P, M) => {
1412
+ Qi(C, P, M, { patchProp: i, remove: o, insert: r }, e);
1413
1413
  },
1414
- __tres: (b) => {
1415
- Object.assign(p, b);
1414
+ __tres: (C) => {
1415
+ Object.assign(p, C);
1416
1416
  }
1417
1417
  }
1418
1418
  );
1419
1419
  } else {
1420
- const p = dt.value[h];
1420
+ const p = dt.value[_];
1421
1421
  p || Jt(
1422
- `${h} is not defined on the THREE namespace. Use extend to add it to the catalog.`
1422
+ `${_} is not defined on the THREE namespace. Use extend to add it to the catalog.`
1423
1423
  ), v = new p(...d.args);
1424
1424
  }
1425
1425
  return v ? (re(v) && (d?.position || v.position.set(3, 3, 3), d?.lookAt || v.lookAt(0, 0, 0)), v = X(v, {
1426
- ...Yi(v) ? v.__tres : {},
1427
- type: h,
1426
+ ...Gi(v) ? v.__tres : {},
1427
+ type: _,
1428
1428
  memoizedProps: d,
1429
1429
  primitive: c === "primitive",
1430
1430
  attach: d.attach
@@ -1434,17 +1434,17 @@ const Vs = [
1434
1434
  if (!c)
1435
1435
  return;
1436
1436
  f = f || t;
1437
- const _ = c.__tres ? c : X(c, {}, e), d = f.__tres ? f : X(f, {}, e);
1438
- c = se(_), f = se(d), re(c) && e.camera?.registerCamera(c), _.__tres.attach ? Xi(d, _, _.__tres.attach) : lt(c) && lt(d) && (d.add(c), c.dispatchEvent({ type: "added" })), _.__tres.parent = d, d.__tres.objects && !d.__tres.objects.includes(_) && d.__tres.objects.push(_);
1437
+ const h = c.__tres ? c : X(c, {}, e), d = f.__tres ? f : X(f, {}, e);
1438
+ c = se(h), f = se(d), re(c) && e.camera?.registerCamera(c), h.__tres.attach ? qi(d, h, h.__tres.attach) : lt(c) && lt(d) && (d.add(c), c.dispatchEvent({ type: "added" })), h.__tres.parent = d, d.__tres.objects && !d.__tres.objects.includes(h) && d.__tres.objects.push(h);
1439
1439
  }
1440
1440
  function o(c, f) {
1441
1441
  if (!c)
1442
1442
  return;
1443
- f = at(f) ? "default" : f;
1444
- const _ = c.__tres?.dispose;
1445
- at(_) || (_ === null ? f = !1 : f = _);
1446
- const d = c.__tres?.primitive, h = f === "default" ? !d : !!f;
1447
- if (c.__tres && "objects" in c.__tres && [...c.__tres.objects].forEach((v) => o(v, f)), h && c.children && [...c.children].forEach((v) => o(v, f)), Mr(c, e), Nr(c, e), h && !Fr(c)) {
1443
+ f = ut(f) ? "default" : f;
1444
+ const h = c.__tres?.dispose;
1445
+ ut(h) || (h === null ? f = !1 : f = h);
1446
+ const d = c.__tres?.primitive, _ = f === "default" ? !d : !!f;
1447
+ if (c.__tres && "objects" in c.__tres && [...c.__tres.objects].forEach((v) => o(v, f)), _ && c.children && [...c.children].forEach((v) => o(v, f)), Mr(c, e), Nr(c, e), _ && !Fr(c)) {
1448
1448
  if (Q(f))
1449
1449
  f(c);
1450
1450
  else if (Q(c.dispose))
@@ -1455,70 +1455,70 @@ const Vs = [
1455
1455
  }
1456
1456
  "__tres" in c && delete c.__tres;
1457
1457
  }
1458
- function i(c, f, _, d) {
1458
+ function i(c, f, h, d) {
1459
1459
  if (!c)
1460
1460
  return;
1461
- let h = c;
1461
+ let _ = c;
1462
1462
  const v = f;
1463
1463
  if (c.__tres && (c.__tres.memoizedProps[f] = d), f === "attach") {
1464
- const C = c.__tres?.parent || c.parent;
1465
- o(c), X(c, { attach: d }, e), C && r(c, C);
1464
+ const b = c.__tres?.parent || c.parent;
1465
+ o(c), X(c, { attach: d }, e), b && r(c, b);
1466
1466
  return;
1467
1467
  }
1468
1468
  if (f === "dispose") {
1469
1469
  c.__tres || (c = X(c, {}, e)), c.__tres.dispose = d;
1470
1470
  return;
1471
1471
  }
1472
- pn(f) && Q(d) && c.addEventListener(Bs[f], d);
1473
- let p = Qt(v), g = h?.[p];
1472
+ pn(f) && Q(d) && c.addEventListener(Vs[f], d);
1473
+ let p = Qt(v), g = _?.[p];
1474
1474
  if (v === "args") {
1475
- const C = c, P = _ ?? [], M = d ?? [], A = c.__tres?.type || c.type;
1475
+ const b = c, P = h ?? [], M = d ?? [], A = c.__tres?.type || c.type;
1476
1476
  if (A && P.length && !Or(P, M)) {
1477
1477
  const O = new dt.value[A](...d), T = Object.getOwnPropertyDescriptors(O);
1478
1478
  Object.entries(T).forEach(([E, x]) => {
1479
- if (!(!x.writable && !x.set) && E in C)
1479
+ if (!(!x.writable && !x.set) && E in b)
1480
1480
  try {
1481
- C[E] = O[E];
1481
+ b[E] = O[E];
1482
1482
  } catch (R) {
1483
1483
  console.warn(`Could not set property ${E} on ${A}:`, R);
1484
1484
  }
1485
- }), h = C;
1485
+ }), _ = b;
1486
1486
  }
1487
1487
  return;
1488
1488
  }
1489
- if (h.type === "BufferGeometry") {
1489
+ if (_.type === "BufferGeometry") {
1490
1490
  if (v === "args")
1491
1491
  return;
1492
- h.setAttribute(
1492
+ _.setAttribute(
1493
1493
  Qt(v),
1494
- new Cr(...d)
1494
+ new br(...d)
1495
1495
  );
1496
1496
  return;
1497
1497
  }
1498
1498
  if (v.includes("-") && g === void 0) {
1499
- const C = Ve(h, v);
1500
- if (g = C.target, h = C.target, p = C.key, g && p) {
1499
+ const b = Ve(_, v);
1500
+ if (g = b.target, _ = b.target, p = b.key, g && p) {
1501
1501
  g[p] = d, re(c) && c.updateProjectionMatrix(), ft(c);
1502
1502
  return;
1503
1503
  }
1504
1504
  }
1505
- let b = d;
1506
- if (b === "" && (b = !0), Q(g)) {
1507
- pn(f) || (Array.isArray(b) ? c[p](...b) : c[p](b)), p.startsWith("on") && Q(b) && (h[p] = b);
1505
+ let C = d;
1506
+ if (C === "" && (C = !0), Q(g)) {
1507
+ pn(f) || (Array.isArray(C) ? c[p](...C) : c[p](C)), p.startsWith("on") && Q(C) && (_[p] = C);
1508
1508
  return;
1509
1509
  }
1510
- Zt(g) && Zt(b) ? g.mask = b.mask : Ir(g) && zi(b) ? g.set(b) : $i(g) && Ki(b) && g.constructor === b.constructor ? g.copy(b) : ct(g) && Array.isArray(b) ? "fromArray" in g && typeof g.fromArray == "function" ? g.fromArray(b) : g.set(...b) : ct(g) && typeof b == "number" ? "setScalar" in g && typeof g.setScalar == "function" ? g.setScalar(b) : g.set(b) : h[p] = b, re(c) && c.updateProjectionMatrix(), ft(c);
1510
+ Zt(g) && Zt(C) ? g.mask = C.mask : Dr(g) && ji(C) ? g.set(C) : zi(g) && $i(C) && g.constructor === C.constructor ? g.copy(C) : ct(g) && Array.isArray(C) ? "fromArray" in g && typeof g.fromArray == "function" ? g.fromArray(C) : g.set(...C) : ct(g) && typeof C == "number" ? "setScalar" in g && typeof g.setScalar == "function" ? g.setScalar(C) : g.set(C) : _[p] = C, re(c) && c.updateProjectionMatrix(), ft(c);
1511
1511
  }
1512
1512
  function s(c) {
1513
1513
  return c?.__tres?.parent || null;
1514
1514
  }
1515
- function u(c) {
1515
+ function a(c) {
1516
1516
  const f = X(new je(), { type: "Comment" }, e);
1517
1517
  return f.name = c, f;
1518
1518
  }
1519
- function a(c) {
1520
- const _ = s(c)?.__tres?.objects || [], d = _.indexOf(c);
1521
- return d < 0 || d >= _.length - 1 ? null : _[d + 1];
1519
+ function u(c) {
1520
+ const h = s(c)?.__tres?.objects || [], d = h.indexOf(c);
1521
+ return d < 0 || d >= h.length - 1 ? null : h[d + 1];
1522
1522
  }
1523
1523
  const l = () => {
1524
1524
  };
@@ -1529,17 +1529,17 @@ const Vs = [
1529
1529
  patchProp: i,
1530
1530
  parentNode: s,
1531
1531
  createText: l,
1532
- createComment: u,
1532
+ createComment: a,
1533
1533
  setText: l,
1534
1534
  setElementText: l,
1535
- nextSibling: a,
1535
+ nextSibling: u,
1536
1536
  querySelector: l,
1537
1537
  setScopeId: l,
1538
1538
  cloneNode: l,
1539
1539
  insertStaticContent: l
1540
1540
  };
1541
- }, Hs = ["asset-load"];
1542
- class js {
1541
+ }, Us = ["asset-load"];
1542
+ class Hs {
1543
1543
  subscribers = /* @__PURE__ */ new Set();
1544
1544
  messageQueue = [];
1545
1545
  maxQueueSize = 100;
@@ -1554,7 +1554,7 @@ class js {
1554
1554
  data: n,
1555
1555
  timestamp: Date.now()
1556
1556
  };
1557
- this.subscribers.size > 0 ? this.subscribers.forEach((o) => o(r)) : Hs.includes(t) && this.queueMessage(r);
1557
+ this.subscribers.size > 0 ? this.subscribers.forEach((o) => o(r)) : Us.includes(t) && this.queueMessage(r);
1558
1558
  }
1559
1559
  /**
1560
1560
  * Queue a message for later delivery
@@ -1598,26 +1598,26 @@ class js {
1598
1598
  this.messageQueue = [];
1599
1599
  }
1600
1600
  }
1601
- var zs = Object.create, $r = Object.defineProperty, $s = Object.getOwnPropertyDescriptor, Pt = Object.getOwnPropertyNames, Ks = Object.getPrototypeOf, Ws = Object.prototype.hasOwnProperty, Gs = (e, t) => function() {
1601
+ var js = Object.create, $r = Object.defineProperty, zs = Object.getOwnPropertyDescriptor, Pt = Object.getOwnPropertyNames, $s = Object.getPrototypeOf, Ks = Object.prototype.hasOwnProperty, Ws = (e, t) => function() {
1602
1602
  return e && (t = (0, e[Pt(e)[0]])(e = 0)), t;
1603
- }, Ys = (e, t) => function() {
1603
+ }, Gs = (e, t) => function() {
1604
1604
  return t || (0, e[Pt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
1605
- }, qs = (e, t, n, r) => {
1605
+ }, Ys = (e, t, n, r) => {
1606
1606
  if (t && typeof t == "object" || typeof t == "function")
1607
1607
  for (let o of Pt(t))
1608
- !Ws.call(e, o) && o !== n && $r(e, o, { get: () => t[o], enumerable: !(r = $s(t, o)) || r.enumerable });
1608
+ !Ks.call(e, o) && o !== n && $r(e, o, { get: () => t[o], enumerable: !(r = zs(t, o)) || r.enumerable });
1609
1609
  return e;
1610
- }, Xs = (e, t, n) => (n = e != null ? zs(Ks(e)) : {}, qs(
1610
+ }, qs = (e, t, n) => (n = e != null ? js($s(e)) : {}, Ys(
1611
1611
  // If the importer is in node compatibility mode or this is not an ESM
1612
1612
  // file that has been converted to a CommonJS file using a Babel-
1613
1613
  // compatible transform (i.e. "__esModule" has not been set), then set
1614
1614
  // "default" to the CommonJS "module.exports" for node compatibility.
1615
1615
  $r(n, "default", { value: e, enumerable: !0 }),
1616
1616
  e
1617
- )), Oe = Gs({
1617
+ )), Oe = Ws({
1618
1618
  "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
1619
1619
  }
1620
- }), Qs = Ys({
1620
+ }), Xs = Gs({
1621
1621
  "../../node_modules/.pnpm/rfdc@1.4.1/node_modules/rfdc/index.js"(e, t) {
1622
1622
  Oe(), t.exports = r;
1623
1623
  function n(i) {
@@ -1626,65 +1626,65 @@ var zs = Object.create, $r = Object.defineProperty, $s = Object.getOwnPropertyDe
1626
1626
  function r(i) {
1627
1627
  if (i = i || {}, i.circles) return o(i);
1628
1628
  const s = /* @__PURE__ */ new Map();
1629
- if (s.set(Date, (f) => new Date(f)), s.set(Map, (f, _) => new Map(a(Array.from(f), _))), s.set(Set, (f, _) => new Set(a(Array.from(f), _))), i.constructorHandlers)
1629
+ if (s.set(Date, (f) => new Date(f)), s.set(Map, (f, h) => new Map(u(Array.from(f), h))), s.set(Set, (f, h) => new Set(u(Array.from(f), h))), i.constructorHandlers)
1630
1630
  for (const f of i.constructorHandlers)
1631
1631
  s.set(f[0], f[1]);
1632
- let u = null;
1632
+ let a = null;
1633
1633
  return i.proto ? c : l;
1634
- function a(f, _) {
1635
- const d = Object.keys(f), h = new Array(d.length);
1634
+ function u(f, h) {
1635
+ const d = Object.keys(f), _ = new Array(d.length);
1636
1636
  for (let v = 0; v < d.length; v++) {
1637
1637
  const p = d[v], g = f[p];
1638
- typeof g != "object" || g === null ? h[p] = g : g.constructor !== Object && (u = s.get(g.constructor)) ? h[p] = u(g, _) : ArrayBuffer.isView(g) ? h[p] = n(g) : h[p] = _(g);
1638
+ typeof g != "object" || g === null ? _[p] = g : g.constructor !== Object && (a = s.get(g.constructor)) ? _[p] = a(g, h) : ArrayBuffer.isView(g) ? _[p] = n(g) : _[p] = h(g);
1639
1639
  }
1640
- return h;
1640
+ return _;
1641
1641
  }
1642
1642
  function l(f) {
1643
1643
  if (typeof f != "object" || f === null) return f;
1644
- if (Array.isArray(f)) return a(f, l);
1645
- if (f.constructor !== Object && (u = s.get(f.constructor)))
1646
- return u(f, l);
1647
- const _ = {};
1644
+ if (Array.isArray(f)) return u(f, l);
1645
+ if (f.constructor !== Object && (a = s.get(f.constructor)))
1646
+ return a(f, l);
1647
+ const h = {};
1648
1648
  for (const d in f) {
1649
1649
  if (Object.hasOwnProperty.call(f, d) === !1) continue;
1650
- const h = f[d];
1651
- typeof h != "object" || h === null ? _[d] = h : h.constructor !== Object && (u = s.get(h.constructor)) ? _[d] = u(h, l) : ArrayBuffer.isView(h) ? _[d] = n(h) : _[d] = l(h);
1650
+ const _ = f[d];
1651
+ typeof _ != "object" || _ === null ? h[d] = _ : _.constructor !== Object && (a = s.get(_.constructor)) ? h[d] = a(_, l) : ArrayBuffer.isView(_) ? h[d] = n(_) : h[d] = l(_);
1652
1652
  }
1653
- return _;
1653
+ return h;
1654
1654
  }
1655
1655
  function c(f) {
1656
1656
  if (typeof f != "object" || f === null) return f;
1657
- if (Array.isArray(f)) return a(f, c);
1658
- if (f.constructor !== Object && (u = s.get(f.constructor)))
1659
- return u(f, c);
1660
- const _ = {};
1657
+ if (Array.isArray(f)) return u(f, c);
1658
+ if (f.constructor !== Object && (a = s.get(f.constructor)))
1659
+ return a(f, c);
1660
+ const h = {};
1661
1661
  for (const d in f) {
1662
- const h = f[d];
1663
- typeof h != "object" || h === null ? _[d] = h : h.constructor !== Object && (u = s.get(h.constructor)) ? _[d] = u(h, c) : ArrayBuffer.isView(h) ? _[d] = n(h) : _[d] = c(h);
1662
+ const _ = f[d];
1663
+ typeof _ != "object" || _ === null ? h[d] = _ : _.constructor !== Object && (a = s.get(_.constructor)) ? h[d] = a(_, c) : ArrayBuffer.isView(_) ? h[d] = n(_) : h[d] = c(_);
1664
1664
  }
1665
- return _;
1665
+ return h;
1666
1666
  }
1667
1667
  }
1668
1668
  function o(i) {
1669
- const s = [], u = [], a = /* @__PURE__ */ new Map();
1670
- if (a.set(Date, (d) => new Date(d)), a.set(Map, (d, h) => new Map(c(Array.from(d), h))), a.set(Set, (d, h) => new Set(c(Array.from(d), h))), i.constructorHandlers)
1669
+ const s = [], a = [], u = /* @__PURE__ */ new Map();
1670
+ if (u.set(Date, (d) => new Date(d)), u.set(Map, (d, _) => new Map(c(Array.from(d), _))), u.set(Set, (d, _) => new Set(c(Array.from(d), _))), i.constructorHandlers)
1671
1671
  for (const d of i.constructorHandlers)
1672
- a.set(d[0], d[1]);
1672
+ u.set(d[0], d[1]);
1673
1673
  let l = null;
1674
- return i.proto ? _ : f;
1675
- function c(d, h) {
1674
+ return i.proto ? h : f;
1675
+ function c(d, _) {
1676
1676
  const v = Object.keys(d), p = new Array(v.length);
1677
1677
  for (let g = 0; g < v.length; g++) {
1678
- const b = v[g], C = d[b];
1679
- if (typeof C != "object" || C === null)
1680
- p[b] = C;
1681
- else if (C.constructor !== Object && (l = a.get(C.constructor)))
1682
- p[b] = l(C, h);
1683
- else if (ArrayBuffer.isView(C))
1684
- p[b] = n(C);
1678
+ const C = v[g], b = d[C];
1679
+ if (typeof b != "object" || b === null)
1680
+ p[C] = b;
1681
+ else if (b.constructor !== Object && (l = u.get(b.constructor)))
1682
+ p[C] = l(b, _);
1683
+ else if (ArrayBuffer.isView(b))
1684
+ p[C] = n(b);
1685
1685
  else {
1686
- const P = s.indexOf(C);
1687
- P !== -1 ? p[b] = u[P] : p[b] = h(C);
1686
+ const P = s.indexOf(b);
1687
+ P !== -1 ? p[C] = a[P] : p[C] = _(b);
1688
1688
  }
1689
1689
  }
1690
1690
  return p;
@@ -1692,47 +1692,47 @@ var zs = Object.create, $r = Object.defineProperty, $s = Object.getOwnPropertyDe
1692
1692
  function f(d) {
1693
1693
  if (typeof d != "object" || d === null) return d;
1694
1694
  if (Array.isArray(d)) return c(d, f);
1695
- if (d.constructor !== Object && (l = a.get(d.constructor)))
1695
+ if (d.constructor !== Object && (l = u.get(d.constructor)))
1696
1696
  return l(d, f);
1697
- const h = {};
1698
- s.push(d), u.push(h);
1697
+ const _ = {};
1698
+ s.push(d), a.push(_);
1699
1699
  for (const v in d) {
1700
1700
  if (Object.hasOwnProperty.call(d, v) === !1) continue;
1701
1701
  const p = d[v];
1702
1702
  if (typeof p != "object" || p === null)
1703
- h[v] = p;
1704
- else if (p.constructor !== Object && (l = a.get(p.constructor)))
1705
- h[v] = l(p, f);
1703
+ _[v] = p;
1704
+ else if (p.constructor !== Object && (l = u.get(p.constructor)))
1705
+ _[v] = l(p, f);
1706
1706
  else if (ArrayBuffer.isView(p))
1707
- h[v] = n(p);
1707
+ _[v] = n(p);
1708
1708
  else {
1709
1709
  const g = s.indexOf(p);
1710
- g !== -1 ? h[v] = u[g] : h[v] = f(p);
1710
+ g !== -1 ? _[v] = a[g] : _[v] = f(p);
1711
1711
  }
1712
1712
  }
1713
- return s.pop(), u.pop(), h;
1713
+ return s.pop(), a.pop(), _;
1714
1714
  }
1715
- function _(d) {
1715
+ function h(d) {
1716
1716
  if (typeof d != "object" || d === null) return d;
1717
- if (Array.isArray(d)) return c(d, _);
1718
- if (d.constructor !== Object && (l = a.get(d.constructor)))
1719
- return l(d, _);
1720
- const h = {};
1721
- s.push(d), u.push(h);
1717
+ if (Array.isArray(d)) return c(d, h);
1718
+ if (d.constructor !== Object && (l = u.get(d.constructor)))
1719
+ return l(d, h);
1720
+ const _ = {};
1721
+ s.push(d), a.push(_);
1722
1722
  for (const v in d) {
1723
1723
  const p = d[v];
1724
1724
  if (typeof p != "object" || p === null)
1725
- h[v] = p;
1726
- else if (p.constructor !== Object && (l = a.get(p.constructor)))
1727
- h[v] = l(p, _);
1725
+ _[v] = p;
1726
+ else if (p.constructor !== Object && (l = u.get(p.constructor)))
1727
+ _[v] = l(p, h);
1728
1728
  else if (ArrayBuffer.isView(p))
1729
- h[v] = n(p);
1729
+ _[v] = n(p);
1730
1730
  else {
1731
1731
  const g = s.indexOf(p);
1732
- g !== -1 ? h[v] = u[g] : h[v] = _(p);
1732
+ g !== -1 ? _[v] = a[g] : _[v] = h(p);
1733
1733
  }
1734
1734
  }
1735
- return s.pop(), u.pop(), h;
1735
+ return s.pop(), a.pop(), _;
1736
1736
  }
1737
1737
  }
1738
1738
  }
@@ -1746,14 +1746,14 @@ Kr && (y.self, y.top);
1746
1746
  var hn;
1747
1747
  typeof navigator < "u" && ((hn = navigator.userAgent) == null || hn.toLowerCase().includes("electron"));
1748
1748
  Oe();
1749
- var Zs = Xs(Qs()), Js = /(?:^|[-_/])(\w)/g;
1750
- function eu(e, t) {
1749
+ var Qs = qs(Xs()), Zs = /(?:^|[-_/])(\w)/g;
1750
+ function Js(e, t) {
1751
1751
  return t ? t.toUpperCase() : "";
1752
1752
  }
1753
- function tu(e) {
1754
- return e && `${e}`.replace(Js, eu);
1753
+ function ea(e) {
1754
+ return e && `${e}`.replace(Zs, Js);
1755
1755
  }
1756
- function nu(e, t) {
1756
+ function ta(e, t) {
1757
1757
  let n = e.replace(/^[a-z]:/i, "").replace(/\\/g, "/");
1758
1758
  n.endsWith(`index${t}`) && (n = n.replace(`/index${t}`, t));
1759
1759
  const r = n.lastIndexOf("/"), o = n.substring(r + 1);
@@ -1762,34 +1762,34 @@ function nu(e, t) {
1762
1762
  return o.substring(0, i);
1763
1763
  }
1764
1764
  }
1765
- var _n = (0, Zs.default)({ circles: !0 });
1766
- const ru = {
1765
+ var _n = (0, Qs.default)({ circles: !0 });
1766
+ const na = {
1767
1767
  trailing: !0
1768
1768
  };
1769
- function ue(e, t = 25, n = {}) {
1770
- if (n = { ...ru, ...n }, !Number.isFinite(t))
1769
+ function ae(e, t = 25, n = {}) {
1770
+ if (n = { ...na, ...n }, !Number.isFinite(t))
1771
1771
  throw new TypeError("Expected `wait` to be a finite number");
1772
- let r, o, i = [], s, u;
1773
- const a = (l, c) => (s = ou(e, l, c), s.finally(() => {
1774
- if (s = null, n.trailing && u && !o) {
1775
- const f = a(l, u);
1776
- return u = null, f;
1772
+ let r, o, i = [], s, a;
1773
+ const u = (l, c) => (s = ra(e, l, c), s.finally(() => {
1774
+ if (s = null, n.trailing && a && !o) {
1775
+ const f = u(l, a);
1776
+ return a = null, f;
1777
1777
  }
1778
1778
  }), s);
1779
1779
  return function(...l) {
1780
- return s ? (n.trailing && (u = l), s) : new Promise((c) => {
1780
+ return s ? (n.trailing && (a = l), s) : new Promise((c) => {
1781
1781
  const f = !o && n.leading;
1782
1782
  clearTimeout(o), o = setTimeout(() => {
1783
1783
  o = null;
1784
- const _ = n.leading ? r : a(this, l);
1784
+ const h = n.leading ? r : u(this, l);
1785
1785
  for (const d of i)
1786
- d(_);
1786
+ d(h);
1787
1787
  i = [];
1788
- }, t), f ? (r = a(this, l), c(r)) : i.push(c);
1788
+ }, t), f ? (r = u(this, l), c(r)) : i.push(c);
1789
1789
  });
1790
1790
  };
1791
1791
  }
1792
- async function ou(e, t, n) {
1792
+ async function ra(e, t, n) {
1793
1793
  return await e.apply(t, n);
1794
1794
  }
1795
1795
  function ht(e, t = {}, n) {
@@ -1799,15 +1799,15 @@ function ht(e, t = {}, n) {
1799
1799
  }
1800
1800
  return t;
1801
1801
  }
1802
- const iu = { run: (e) => e() }, su = () => iu, Wr = typeof console.createTask < "u" ? console.createTask : su;
1803
- function uu(e, t) {
1802
+ const oa = { run: (e) => e() }, ia = () => oa, Wr = typeof console.createTask < "u" ? console.createTask : ia;
1803
+ function sa(e, t) {
1804
1804
  const n = t.shift(), r = Wr(n);
1805
1805
  return e.reduce(
1806
1806
  (o, i) => o.then(() => r.run(() => i(...t))),
1807
1807
  Promise.resolve()
1808
1808
  );
1809
1809
  }
1810
- function au(e, t) {
1810
+ function aa(e, t) {
1811
1811
  const n = t.shift(), r = Wr(n);
1812
1812
  return Promise.all(e.map((o) => r.run(() => o(...t))));
1813
1813
  }
@@ -1815,7 +1815,7 @@ function tt(e, t) {
1815
1815
  for (const n of [...e])
1816
1816
  n(t);
1817
1817
  }
1818
- class lu {
1818
+ class ua {
1819
1819
  constructor() {
1820
1820
  this._hooks = {}, this._before = void 0, this._after = void 0, this._deprecatedMessages = void 0, this._deprecatedHooks = {}, this.hook = this.hook.bind(this), this.callHook = this.callHook.bind(this), this.callHookWith = this.callHookWith.bind(this);
1821
1821
  }
@@ -1884,10 +1884,10 @@ class lu {
1884
1884
  delete this._hooks[t];
1885
1885
  }
1886
1886
  callHook(t, ...n) {
1887
- return n.unshift(t), this.callHookWith(uu, t, ...n);
1887
+ return n.unshift(t), this.callHookWith(sa, t, ...n);
1888
1888
  }
1889
1889
  callHookParallel(t, ...n) {
1890
- return n.unshift(t), this.callHookWith(au, t, ...n);
1890
+ return n.unshift(t), this.callHookWith(aa, t, ...n);
1891
1891
  }
1892
1892
  callHookWith(t, n, ...r) {
1893
1893
  const o = this._before || this._after ? { name: n, args: r, context: {} } : void 0;
@@ -1918,30 +1918,30 @@ class lu {
1918
1918
  }
1919
1919
  }
1920
1920
  function Gr() {
1921
- return new lu();
1921
+ return new ua();
1922
1922
  }
1923
- var cu = Object.create, Yr = Object.defineProperty, fu = Object.getOwnPropertyDescriptor, Dt = Object.getOwnPropertyNames, du = Object.getPrototypeOf, pu = Object.prototype.hasOwnProperty, hu = (e, t) => function() {
1924
- return e && (t = (0, e[Dt(e)[0]])(e = 0)), t;
1923
+ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDescriptor, It = Object.getOwnPropertyNames, fa = Object.getPrototypeOf, da = Object.prototype.hasOwnProperty, pa = (e, t) => function() {
1924
+ return e && (t = (0, e[It(e)[0]])(e = 0)), t;
1925
1925
  }, qr = (e, t) => function() {
1926
- return t || (0, e[Dt(e)[0]])((t = { exports: {} }).exports, t), t.exports;
1927
- }, _u = (e, t, n, r) => {
1926
+ return t || (0, e[It(e)[0]])((t = { exports: {} }).exports, t), t.exports;
1927
+ }, ha = (e, t, n, r) => {
1928
1928
  if (t && typeof t == "object" || typeof t == "function")
1929
- for (let o of Dt(t))
1930
- !pu.call(e, o) && o !== n && Yr(e, o, { get: () => t[o], enumerable: !(r = fu(t, o)) || r.enumerable });
1929
+ for (let o of It(t))
1930
+ !da.call(e, o) && o !== n && Yr(e, o, { get: () => t[o], enumerable: !(r = ca(t, o)) || r.enumerable });
1931
1931
  return e;
1932
- }, mu = (e, t, n) => (n = e != null ? cu(du(e)) : {}, _u(
1932
+ }, _a = (e, t, n) => (n = e != null ? la(fa(e)) : {}, ha(
1933
1933
  // If the importer is in node compatibility mode or this is not an ESM
1934
1934
  // file that has been converted to a CommonJS file using a Babel-
1935
1935
  // compatible transform (i.e. "__esModule" has not been set), then set
1936
1936
  // "default" to the CommonJS "module.exports" for node compatibility.
1937
1937
  Yr(n, "default", { value: e, enumerable: !0 }),
1938
1938
  e
1939
- )), m = hu({
1939
+ )), m = pa({
1940
1940
  "../../node_modules/.pnpm/tsup@8.4.0_@microsoft+api-extractor@7.51.1_@types+node@22.13.14__jiti@2.4.2_postcss@8.5_96eb05a9d65343021e53791dd83f3773/node_modules/tsup/assets/esm_shims.js"() {
1941
1941
  }
1942
- }), gu = qr({
1942
+ }), ma = qr({
1943
1943
  "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) {
1944
- m(), function(n) {
1944
+ m(), (function(n) {
1945
1945
  var r = {
1946
1946
  // latin
1947
1947
  À: "A",
@@ -2995,7 +2995,7 @@ var cu = Object.create, Yr = Object.defineProperty, fu = Object.getOwnPropertyDe
2995
2995
  ü: "u",
2996
2996
  ö: "o"
2997
2997
  }
2998
- }, u = {
2998
+ }, a = {
2999
2999
  ar: {
3000
3000
  "∆": "delta",
3001
3001
  "∞": "la-nihaya",
@@ -3275,12 +3275,12 @@ var cu = Object.create, Yr = Object.defineProperty, fu = Object.getOwnPropertyDe
3275
3275
  "∑": "tong",
3276
3276
  "¤": "tien te"
3277
3277
  }
3278
- }, a = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), l = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(p, g) {
3279
- var b = "-", C = "", P = "", M = !0, A = {}, O, T, E, x, R, Ut, de, te, Ht, z, w, Se, H, ne, K = "";
3278
+ }, u = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), l = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(p, g) {
3279
+ var C = "-", b = "", P = "", M = !0, A = {}, O, T, E, x, R, Ut, de, te, Ht, z, w, Se, H, ne, K = "";
3280
3280
  if (typeof p != "string")
3281
3281
  return "";
3282
- if (typeof g == "string" && (b = g), de = u.en, te = s.en, typeof g == "object") {
3283
- O = g.maintainCase || !1, A = g.custom && typeof g.custom == "object" ? g.custom : A, E = +g.truncate > 1 && g.truncate || !1, x = g.uric || !1, R = g.uricNoSlash || !1, Ut = g.mark || !1, M = !(g.symbols === !1 || g.lang === !1), b = g.separator || b, x && (K += a), R && (K += l), Ut && (K += c), de = g.lang && u[g.lang] && M ? u[g.lang] : M ? u.en : {}, te = g.lang && s[g.lang] ? s[g.lang] : g.lang === !1 || g.lang === !0 ? {} : s.en, g.titleCase && typeof g.titleCase.length == "number" && Array.prototype.toString.call(g.titleCase) ? (g.titleCase.forEach(function(U) {
3282
+ if (typeof g == "string" && (C = g), de = a.en, te = s.en, typeof g == "object") {
3283
+ O = g.maintainCase || !1, A = g.custom && typeof g.custom == "object" ? g.custom : A, E = +g.truncate > 1 && g.truncate || !1, x = g.uric || !1, R = g.uricNoSlash || !1, Ut = g.mark || !1, M = !(g.symbols === !1 || g.lang === !1), C = g.separator || C, x && (K += u), R && (K += l), Ut && (K += c), de = g.lang && a[g.lang] && M ? a[g.lang] : M ? a.en : {}, te = g.lang && s[g.lang] ? s[g.lang] : g.lang === !1 || g.lang === !0 ? {} : s.en, g.titleCase && typeof g.titleCase.length == "number" && Array.prototype.toString.call(g.titleCase) ? (g.titleCase.forEach(function(U) {
3284
3284
  A[U + ""] = U + "";
3285
3285
  }), T = !0) : T = !!g.titleCase, g.custom && typeof g.custom.length == "number" && Array.prototype.toString.call(g.custom) && g.custom.forEach(function(U) {
3286
3286
  A[U + ""] = U + "";
@@ -3291,25 +3291,25 @@ var cu = Object.create, Yr = Object.defineProperty, fu = Object.getOwnPropertyDe
3291
3291
  for (w in A)
3292
3292
  K += w;
3293
3293
  }
3294
- for (K += b, K = d(K), p = p.replace(/(^\s+|\s+$)/g, ""), H = !1, ne = !1, z = 0, Se = p.length; z < Se; z++)
3295
- w = p[z], h(w, A) ? H = !1 : te[w] ? (w = H && te[w].match(/[A-Za-z0-9]/) ? " " + te[w] : te[w], H = !1) : w in r ? (z + 1 < Se && o.indexOf(p[z + 1]) >= 0 ? (P += w, w = "") : ne === !0 ? (w = i[P] + r[w], P = "") : w = H && r[w].match(/[A-Za-z0-9]/) ? " " + r[w] : r[w], H = !1, ne = !1) : w in i ? (P += w, w = "", z === Se - 1 && (w = i[P]), ne = !0) : /* process symbol chars */ de[w] && !(x && a.indexOf(w) !== -1) && !(R && l.indexOf(w) !== -1) ? (w = H || C.substr(-1).match(/[A-Za-z0-9]/) ? b + de[w] : de[w], w += p[z + 1] !== void 0 && p[z + 1].match(/[A-Za-z0-9]/) ? b : "", H = !0) : (ne === !0 ? (w = i[P] + w, P = "", ne = !1) : H && (/[A-Za-z0-9]/.test(w) || C.substr(-1).match(/A-Za-z0-9]/)) && (w = " " + w), H = !1), C += w.replace(new RegExp("[^\\w\\s" + K + "_-]", "g"), b);
3296
- return T && (C = C.replace(/(\w)(\S*)/g, function(U, pe, jt) {
3294
+ for (K += C, K = d(K), p = p.replace(/(^\s+|\s+$)/g, ""), H = !1, ne = !1, z = 0, Se = p.length; z < Se; z++)
3295
+ w = p[z], _(w, A) ? H = !1 : te[w] ? (w = H && te[w].match(/[A-Za-z0-9]/) ? " " + te[w] : te[w], H = !1) : w in r ? (z + 1 < Se && o.indexOf(p[z + 1]) >= 0 ? (P += w, w = "") : ne === !0 ? (w = i[P] + r[w], P = "") : w = H && r[w].match(/[A-Za-z0-9]/) ? " " + r[w] : r[w], H = !1, ne = !1) : w in i ? (P += w, w = "", z === Se - 1 && (w = i[P]), ne = !0) : /* process symbol chars */ de[w] && !(x && u.indexOf(w) !== -1) && !(R && l.indexOf(w) !== -1) ? (w = H || b.substr(-1).match(/[A-Za-z0-9]/) ? C + de[w] : de[w], w += p[z + 1] !== void 0 && p[z + 1].match(/[A-Za-z0-9]/) ? C : "", H = !0) : (ne === !0 ? (w = i[P] + w, P = "", ne = !1) : H && (/[A-Za-z0-9]/.test(w) || b.substr(-1).match(/A-Za-z0-9]/)) && (w = " " + w), H = !1), b += w.replace(new RegExp("[^\\w\\s" + K + "_-]", "g"), C);
3296
+ return T && (b = b.replace(/(\w)(\S*)/g, function(U, pe, jt) {
3297
3297
  var Ye = pe.toUpperCase() + (jt !== null ? jt : "");
3298
3298
  return Object.keys(A).indexOf(Ye.toLowerCase()) < 0 ? Ye : Ye.toLowerCase();
3299
- })), C = C.replace(/\s+/g, b).replace(new RegExp("\\" + b + "+", "g"), b).replace(new RegExp("(^\\" + b + "+|\\" + b + "+$)", "g"), ""), E && C.length > E && (Ht = C.charAt(E) === b, C = C.slice(0, E), Ht || (C = C.slice(0, C.lastIndexOf(b)))), !O && !T && (C = C.toLowerCase()), C;
3300
- }, _ = function(p) {
3301
- return function(b) {
3302
- return f(b, p);
3299
+ })), b = b.replace(/\s+/g, C).replace(new RegExp("\\" + C + "+", "g"), C).replace(new RegExp("(^\\" + C + "+|\\" + C + "+$)", "g"), ""), E && b.length > E && (Ht = b.charAt(E) === C, b = b.slice(0, E), Ht || (b = b.slice(0, b.lastIndexOf(C)))), !O && !T && (b = b.toLowerCase()), b;
3300
+ }, h = function(p) {
3301
+ return function(C) {
3302
+ return f(C, p);
3303
3303
  };
3304
3304
  }, d = function(p) {
3305
3305
  return p.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
3306
- }, h = function(v, p) {
3306
+ }, _ = function(v, p) {
3307
3307
  for (var g in p)
3308
3308
  if (p[g] === v)
3309
3309
  return !0;
3310
3310
  };
3311
3311
  if (typeof t < "u" && t.exports)
3312
- t.exports = f, t.exports.createSlug = _;
3312
+ t.exports = f, t.exports.createSlug = h;
3313
3313
  else if (typeof define < "u" && define.amd)
3314
3314
  define([], function() {
3315
3315
  return f;
@@ -3318,14 +3318,14 @@ var cu = Object.create, Yr = Object.defineProperty, fu = Object.getOwnPropertyDe
3318
3318
  try {
3319
3319
  if (n.getSlug || n.createSlug)
3320
3320
  throw "speakingurl: globals exists /(getSlug|createSlug)/";
3321
- n.getSlug = f, n.createSlug = _;
3321
+ n.getSlug = f, n.createSlug = h;
3322
3322
  } catch {
3323
3323
  }
3324
- }(e);
3324
+ })(e);
3325
3325
  }
3326
- }), Eu = qr({
3326
+ }), ga = qr({
3327
3327
  "../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) {
3328
- m(), t.exports = gu();
3328
+ m(), t.exports = ma();
3329
3329
  }
3330
3330
  });
3331
3331
  m();
@@ -3336,20 +3336,20 @@ m();
3336
3336
  m();
3337
3337
  m();
3338
3338
  m();
3339
- function vu(e) {
3339
+ function Ea(e) {
3340
3340
  var t;
3341
3341
  const n = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
3342
3342
  return n === "index" && ((t = e.__file) != null && t.endsWith("index.vue")) ? "" : n;
3343
3343
  }
3344
- function yu(e) {
3344
+ function va(e) {
3345
3345
  const t = e.__file;
3346
3346
  if (t)
3347
- return tu(nu(t, ".vue"));
3347
+ return ea(ta(t, ".vue"));
3348
3348
  }
3349
3349
  function mn(e, t) {
3350
3350
  return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
3351
3351
  }
3352
- function It(e) {
3352
+ function Dt(e) {
3353
3353
  if (e.__VUE_DEVTOOLS_NEXT_APP_RECORD__)
3354
3354
  return e.__VUE_DEVTOOLS_NEXT_APP_RECORD__;
3355
3355
  if (e.root)
@@ -3357,12 +3357,12 @@ function It(e) {
3357
3357
  }
3358
3358
  function Xr(e) {
3359
3359
  var t, n;
3360
- const r = (t = e.subTree) == null ? void 0 : t.type, o = It(e);
3360
+ const r = (t = e.subTree) == null ? void 0 : t.type, o = Dt(e);
3361
3361
  return o ? ((n = o?.types) == null ? void 0 : n.Fragment) === r : !1;
3362
3362
  }
3363
3363
  function Ke(e) {
3364
3364
  var t, n, r;
3365
- const o = vu(e?.type || {});
3365
+ const o = Ea(e?.type || {});
3366
3366
  if (o)
3367
3367
  return o;
3368
3368
  if (e?.root === e)
@@ -3373,10 +3373,10 @@ function Ke(e) {
3373
3373
  for (const s in (r = e.appContext) == null ? void 0 : r.components)
3374
3374
  if (e.appContext.components[s] === e?.type)
3375
3375
  return mn(e, s);
3376
- const i = yu(e?.type || {});
3376
+ const i = va(e?.type || {});
3377
3377
  return i || "Anonymous Component";
3378
3378
  }
3379
- function bu(e) {
3379
+ function ya(e) {
3380
3380
  var t, n, r;
3381
3381
  const o = (r = (n = (t = e?.appContext) == null ? void 0 : t.app) == null ? void 0 : n.__VUE_DEVTOOLS_NEXT_APP_RECORD_ID__) != null ? r : 0, i = e === e?.root ? "root" : e.uid;
3382
3382
  return `${o}:${i}`;
@@ -3384,7 +3384,7 @@ function bu(e) {
3384
3384
  function _t(e, t) {
3385
3385
  return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
3386
3386
  }
3387
- function Cu() {
3387
+ function Ca() {
3388
3388
  const e = {
3389
3389
  top: 0,
3390
3390
  bottom: 0,
@@ -3399,12 +3399,12 @@ function Cu() {
3399
3399
  };
3400
3400
  return e;
3401
3401
  }
3402
- var De;
3403
- function wu(e) {
3404
- return De || (De = document.createRange()), De.selectNode(e), De.getBoundingClientRect();
3402
+ var Ie;
3403
+ function ba(e) {
3404
+ return Ie || (Ie = document.createRange()), Ie.selectNode(e), Ie.getBoundingClientRect();
3405
3405
  }
3406
- function Au(e) {
3407
- const t = Cu();
3406
+ function wa(e) {
3407
+ const t = Ca();
3408
3408
  if (!e.children)
3409
3409
  return t;
3410
3410
  for (let n = 0, r = e.children.length; n < r; n++) {
@@ -3414,13 +3414,13 @@ function Au(e) {
3414
3414
  i = ee(o.component);
3415
3415
  else if (o.el) {
3416
3416
  const s = o.el;
3417
- s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i = wu(s));
3417
+ s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i = ba(s));
3418
3418
  }
3419
- i && Tu(t, i);
3419
+ i && Aa(t, i);
3420
3420
  }
3421
3421
  return t;
3422
3422
  }
3423
- function Tu(e, t) {
3423
+ function Aa(e, t) {
3424
3424
  return (!e.top || t.top < e.top) && (e.top = t.top), (!e.bottom || t.bottom > e.bottom) && (e.bottom = t.bottom), (!e.left || t.left < e.left) && (e.left = t.left), (!e.right || t.right > e.right) && (e.right = t.right), e;
3425
3425
  }
3426
3426
  var gn = {
@@ -3433,13 +3433,13 @@ var gn = {
3433
3433
  };
3434
3434
  function ee(e) {
3435
3435
  const t = e.subTree.el;
3436
- return typeof window > "u" ? gn : Xr(e) ? Au(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? ee(e.subTree.component) : gn;
3436
+ return typeof window > "u" ? gn : Xr(e) ? wa(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? ee(e.subTree.component) : gn;
3437
3437
  }
3438
3438
  m();
3439
3439
  function kt(e) {
3440
- return Xr(e) ? Ou(e.subTree) : e.subTree ? [e.subTree.el] : [];
3440
+ return Xr(e) ? Ta(e.subTree) : e.subTree ? [e.subTree.el] : [];
3441
3441
  }
3442
- function Ou(e) {
3442
+ function Ta(e) {
3443
3443
  if (!e.children)
3444
3444
  return [];
3445
3445
  const t = [];
@@ -3456,7 +3456,7 @@ var Qr = "__vue-devtools-component-inspector__", Zr = "__vue-devtools-component-
3456
3456
  borderRadius: "5px",
3457
3457
  transition: "all 0.1s ease-in",
3458
3458
  pointerEvents: "none"
3459
- }, Su = {
3459
+ }, Oa = {
3460
3460
  fontFamily: "Arial, Helvetica, sans-serif",
3461
3461
  padding: "5px 8px",
3462
3462
  borderRadius: "4px",
@@ -3469,7 +3469,7 @@ var Qr = "__vue-devtools-component-inspector__", Zr = "__vue-devtools-component-
3469
3469
  lineHeight: "24px",
3470
3470
  backgroundColor: "#42b883",
3471
3471
  boxShadow: "0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1)"
3472
- }, Pu = {
3472
+ }, Sa = {
3473
3473
  display: "inline-block",
3474
3474
  fontWeight: 400,
3475
3475
  fontStyle: "normal",
@@ -3479,13 +3479,13 @@ var Qr = "__vue-devtools-component-inspector__", Zr = "__vue-devtools-component-
3479
3479
  function ce() {
3480
3480
  return document.getElementById(Qr);
3481
3481
  }
3482
- function Du() {
3482
+ function Pa() {
3483
3483
  return document.getElementById(Zr);
3484
3484
  }
3485
- function Iu() {
3485
+ function Ia() {
3486
3486
  return document.getElementById(eo);
3487
3487
  }
3488
- function ku() {
3488
+ function Da() {
3489
3489
  return document.getElementById(Jr);
3490
3490
  }
3491
3491
  function xt(e) {
@@ -3506,16 +3506,16 @@ function Rt(e) {
3506
3506
  });
3507
3507
  const r = document.createElement("span");
3508
3508
  r.id = Zr, Object.assign(r.style, {
3509
- ...Su,
3509
+ ...Oa,
3510
3510
  top: e.bounds.top < 35 ? 0 : "-35px"
3511
3511
  });
3512
3512
  const o = document.createElement("span");
3513
3513
  o.id = Jr, o.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`;
3514
3514
  const i = document.createElement("i");
3515
- return i.id = eo, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style, Pu), r.appendChild(o), r.appendChild(i), n.appendChild(r), document.body.appendChild(n), n;
3515
+ return i.id = eo, i.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`, Object.assign(i.style, Sa), r.appendChild(o), r.appendChild(i), n.appendChild(r), document.body.appendChild(n), n;
3516
3516
  }
3517
3517
  function Lt(e) {
3518
- const t = ce(), n = Du(), r = ku(), o = Iu();
3518
+ const t = ce(), n = Pa(), r = Da(), o = Ia();
3519
3519
  t && (Object.assign(t.style, {
3520
3520
  ...to,
3521
3521
  ...xt(e.bounds)
@@ -3523,7 +3523,7 @@ function Lt(e) {
3523
3523
  top: e.bounds.top < 35 ? 0 : "-35px"
3524
3524
  }), r.innerHTML = `&lt;${e.name}&gt;&nbsp;&nbsp;`, o.innerHTML = `${Math.round(e.bounds.width * 100) / 100} x ${Math.round(e.bounds.height * 100) / 100}`);
3525
3525
  }
3526
- function xu(e) {
3526
+ function ka(e) {
3527
3527
  const t = ee(e);
3528
3528
  if (!t.width && !t.height)
3529
3529
  return;
@@ -3545,20 +3545,20 @@ function gt(e) {
3545
3545
  }
3546
3546
  }
3547
3547
  }
3548
- function Ru(e, t) {
3548
+ function xa(e, t) {
3549
3549
  if (e.preventDefault(), e.stopPropagation(), mt) {
3550
- const n = bu(mt);
3550
+ const n = ya(mt);
3551
3551
  t(n);
3552
3552
  }
3553
3553
  }
3554
3554
  var Ue = null;
3555
- function Lu() {
3555
+ function Ra() {
3556
3556
  no(), window.removeEventListener("mouseover", gt), window.removeEventListener("click", Ue, !0), Ue = null;
3557
3557
  }
3558
- function Fu() {
3558
+ function La() {
3559
3559
  return window.addEventListener("mouseover", gt), new Promise((e) => {
3560
3560
  function t(n) {
3561
- n.preventDefault(), n.stopPropagation(), Ru(n, (r) => {
3561
+ n.preventDefault(), n.stopPropagation(), xa(n, (r) => {
3562
3562
  window.removeEventListener("click", t, !0), Ue = null, window.removeEventListener("mouseover", gt);
3563
3563
  const o = ce();
3564
3564
  o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
@@ -3567,7 +3567,7 @@ function Fu() {
3567
3567
  Ue = t, window.addEventListener("click", t, !0);
3568
3568
  });
3569
3569
  }
3570
- function Mu(e) {
3570
+ function Fa(e) {
3571
3571
  const t = _t(F.value, e.id);
3572
3572
  if (t) {
3573
3573
  const [n] = kt(t);
@@ -3600,36 +3600,36 @@ function Mu(e) {
3600
3600
  m();
3601
3601
  var En, vn;
3602
3602
  (vn = (En = y).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null || (En.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0);
3603
- function Nu(e) {
3603
+ function Ma(e) {
3604
3604
  let t = 0;
3605
3605
  const n = setInterval(() => {
3606
3606
  y.__VUE_INSPECTOR__ && (clearInterval(n), t += 30, e()), t >= /* 5s */
3607
3607
  5e3 && clearInterval(n);
3608
3608
  }, 30);
3609
3609
  }
3610
- function Vu() {
3610
+ function Na() {
3611
3611
  const e = y.__VUE_INSPECTOR__, t = e.openInEditor;
3612
3612
  e.openInEditor = async (...n) => {
3613
3613
  e.disable(), t(...n);
3614
3614
  };
3615
3615
  }
3616
- function Bu() {
3616
+ function Va() {
3617
3617
  return new Promise((e) => {
3618
3618
  function t() {
3619
- Vu(), e(y.__VUE_INSPECTOR__);
3619
+ Na(), e(y.__VUE_INSPECTOR__);
3620
3620
  }
3621
- y.__VUE_INSPECTOR__ ? t() : Nu(() => {
3621
+ y.__VUE_INSPECTOR__ ? t() : Ma(() => {
3622
3622
  t();
3623
3623
  });
3624
3624
  });
3625
3625
  }
3626
3626
  m();
3627
3627
  m();
3628
- function Uu(e) {
3628
+ function Ba(e) {
3629
3629
  return !!(e && e.__v_isReadonly);
3630
3630
  }
3631
3631
  function ro(e) {
3632
- return Uu(e) ? ro(e.__v_raw) : !!(e && e.__v_isReactive);
3632
+ return Ba(e) ? ro(e.__v_raw) : !!(e && e.__v_isReactive);
3633
3633
  }
3634
3634
  function nt(e) {
3635
3635
  return !!(e && e.__v_isRef === !0);
@@ -3638,15 +3638,15 @@ function _e(e) {
3638
3638
  const t = e && e.__v_raw;
3639
3639
  return t ? _e(t) : e;
3640
3640
  }
3641
- var Hu = class {
3641
+ var Ua = class {
3642
3642
  constructor() {
3643
- this.refEditor = new ju();
3643
+ this.refEditor = new Ha();
3644
3644
  }
3645
3645
  set(e, t, n, r) {
3646
3646
  const o = Array.isArray(t) ? t : t.split(".");
3647
3647
  for (; o.length > 1; ) {
3648
- const u = o.shift();
3649
- e instanceof Map ? e = e.get(u) : e instanceof Set ? e = Array.from(e.values())[u] : e = e[u], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
3648
+ const a = o.shift();
3649
+ e instanceof Map ? e = e.get(a) : e instanceof Set ? e = Array.from(e.values())[a] : e = e[a], this.refEditor.isRef(e) && (e = this.refEditor.get(e));
3650
3650
  }
3651
3651
  const i = o[0], s = this.refEditor.get(e)[i];
3652
3652
  r ? r(e, i, n) : this.refEditor.isRef(s) ? this.refEditor.set(s, n) : e[i] = n;
@@ -3676,7 +3676,7 @@ var Hu = class {
3676
3676
  }
3677
3677
  };
3678
3678
  }
3679
- }, ju = class {
3679
+ }, Ha = class {
3680
3680
  set(e, t) {
3681
3681
  if (nt(e))
3682
3682
  e.value = t;
@@ -3709,8 +3709,8 @@ var Hu = class {
3709
3709
  m();
3710
3710
  m();
3711
3711
  m();
3712
- var zu = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
3713
- function $u() {
3712
+ var ja = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
3713
+ function za() {
3714
3714
  if (!Kr || typeof localStorage > "u" || localStorage === null)
3715
3715
  return {
3716
3716
  recordingState: !1,
@@ -3720,7 +3720,7 @@ function $u() {
3720
3720
  performanceEventEnabled: !1,
3721
3721
  selected: ""
3722
3722
  };
3723
- const e = localStorage.getItem(zu);
3723
+ const e = localStorage.getItem(ja);
3724
3724
  return e ? JSON.parse(e) : {
3725
3725
  recordingState: !1,
3726
3726
  mouseEventEnabled: !1,
@@ -3733,30 +3733,30 @@ function $u() {
3733
3733
  m();
3734
3734
  m();
3735
3735
  m();
3736
- var yn, bn;
3737
- (bn = (yn = y).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (yn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
3738
- var Ku = new Proxy(y.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
3736
+ var yn, Cn;
3737
+ (Cn = (yn = y).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (yn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
3738
+ var $a = new Proxy(y.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
3739
3739
  get(e, t, n) {
3740
3740
  return Reflect.get(e, t, n);
3741
3741
  }
3742
3742
  });
3743
- function Wu(e, t) {
3744
- k.timelineLayersState[t.id] = !1, Ku.push({
3743
+ function Ka(e, t) {
3744
+ k.timelineLayersState[t.id] = !1, $a.push({
3745
3745
  ...e,
3746
3746
  descriptorId: t.id,
3747
- appRecord: It(t.app)
3747
+ appRecord: Dt(t.app)
3748
3748
  });
3749
3749
  }
3750
- var Cn, wn;
3751
- (wn = (Cn = y).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null || (Cn.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
3750
+ var bn, wn;
3751
+ (wn = (bn = y).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null || (bn.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
3752
3752
  var Ft = new Proxy(y.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
3753
3753
  get(e, t, n) {
3754
3754
  return Reflect.get(e, t, n);
3755
3755
  }
3756
- }), oo = ue(() => {
3756
+ }), oo = ae(() => {
3757
3757
  fe.hooks.callHook("sendInspectorToClient", io());
3758
3758
  });
3759
- function Gu(e, t) {
3759
+ function Wa(e, t) {
3760
3760
  var n, r;
3761
3761
  Ft.push({
3762
3762
  options: e,
@@ -3765,7 +3765,7 @@ function Gu(e, t) {
3765
3765
  stateFilterPlaceholder: (r = e.stateFilterPlaceholder) != null ? r : "Search state...",
3766
3766
  treeFilter: "",
3767
3767
  selectedNodeId: "",
3768
- appRecord: It(t.app)
3768
+ appRecord: Dt(t.app)
3769
3769
  }), oo();
3770
3770
  }
3771
3771
  function io() {
@@ -3786,34 +3786,34 @@ function io() {
3786
3786
  function Re(e, t) {
3787
3787
  return Ft.find((n) => n.options.id === e && (t ? n.descriptor.app === t : !0));
3788
3788
  }
3789
- function Yu() {
3789
+ function Ga() {
3790
3790
  const e = Gr();
3791
3791
  e.hook("addInspector", ({ inspector: r, plugin: o }) => {
3792
- Gu(r, o.descriptor);
3792
+ Wa(r, o.descriptor);
3793
3793
  });
3794
- const t = ue(async ({ inspectorId: r, plugin: o }) => {
3794
+ const t = ae(async ({ inspectorId: r, plugin: o }) => {
3795
3795
  var i;
3796
3796
  if (!r || !((i = o?.descriptor) != null && i.app) || k.highPerfModeEnabled)
3797
3797
  return;
3798
- const s = Re(r, o.descriptor.app), u = {
3798
+ const s = Re(r, o.descriptor.app), a = {
3799
3799
  app: o.descriptor.app,
3800
3800
  inspectorId: r,
3801
3801
  filter: s?.treeFilter || "",
3802
3802
  rootNodes: []
3803
3803
  };
3804
- await new Promise((a) => {
3804
+ await new Promise((u) => {
3805
3805
  e.callHookWith(
3806
3806
  async (l) => {
3807
- await Promise.all(l.map((c) => c(u))), a();
3807
+ await Promise.all(l.map((c) => c(a))), u();
3808
3808
  },
3809
3809
  "getInspectorTree"
3810
3810
  /* GET_INSPECTOR_TREE */
3811
3811
  );
3812
3812
  }), e.callHookWith(
3813
- async (a) => {
3814
- await Promise.all(a.map((l) => l({
3813
+ async (u) => {
3814
+ await Promise.all(u.map((l) => l({
3815
3815
  inspectorId: r,
3816
- rootNodes: u.rootNodes
3816
+ rootNodes: a.rootNodes
3817
3817
  })));
3818
3818
  },
3819
3819
  "sendInspectorTreeToClient"
@@ -3821,22 +3821,22 @@ function Yu() {
3821
3821
  );
3822
3822
  }, 120);
3823
3823
  e.hook("sendInspectorTree", t);
3824
- const n = ue(async ({ inspectorId: r, plugin: o }) => {
3824
+ const n = ae(async ({ inspectorId: r, plugin: o }) => {
3825
3825
  var i;
3826
3826
  if (!r || !((i = o?.descriptor) != null && i.app) || k.highPerfModeEnabled)
3827
3827
  return;
3828
- const s = Re(r, o.descriptor.app), u = {
3828
+ const s = Re(r, o.descriptor.app), a = {
3829
3829
  app: o.descriptor.app,
3830
3830
  inspectorId: r,
3831
3831
  nodeId: s?.selectedNodeId || "",
3832
3832
  state: null
3833
- }, a = {
3833
+ }, u = {
3834
3834
  currentTab: `custom-inspector:${r}`
3835
3835
  };
3836
- u.nodeId && await new Promise((l) => {
3836
+ a.nodeId && await new Promise((l) => {
3837
3837
  e.callHookWith(
3838
3838
  async (c) => {
3839
- await Promise.all(c.map((f) => f(u, a))), l();
3839
+ await Promise.all(c.map((f) => f(a, u))), l();
3840
3840
  },
3841
3841
  "getInspectorState"
3842
3842
  /* GET_INSPECTOR_STATE */
@@ -3845,8 +3845,8 @@ function Yu() {
3845
3845
  async (l) => {
3846
3846
  await Promise.all(l.map((c) => c({
3847
3847
  inspectorId: r,
3848
- nodeId: u.nodeId,
3849
- state: u.state
3848
+ nodeId: a.nodeId,
3849
+ state: a.state
3850
3850
  })));
3851
3851
  },
3852
3852
  "sendInspectorStateToClient"
@@ -3857,13 +3857,13 @@ function Yu() {
3857
3857
  const s = Re(r, i.descriptor.app);
3858
3858
  s && (s.selectedNodeId = o);
3859
3859
  }), e.hook("timelineLayerAdded", ({ options: r, plugin: o }) => {
3860
- Wu(r, o.descriptor);
3860
+ Ka(r, o.descriptor);
3861
3861
  }), e.hook("timelineEventAdded", ({ options: r, plugin: o }) => {
3862
3862
  var i;
3863
3863
  const s = ["performance", "component-event", "keyboard", "mouse"];
3864
3864
  k.highPerfModeEnabled || !((i = k.timelineLayersState) != null && i[o.descriptor.id]) && !s.includes(r.layerId) || e.callHookWith(
3865
- async (u) => {
3866
- await Promise.all(u.map((a) => a(r)));
3865
+ async (a) => {
3866
+ await Promise.all(a.map((u) => u(r)));
3867
3867
  },
3868
3868
  "sendTimelineEventToClient"
3869
3869
  /* SEND_TIMELINE_EVENT_TO_CLIENT */
@@ -3873,10 +3873,10 @@ function Yu() {
3873
3873
  if (!o)
3874
3874
  return null;
3875
3875
  const i = o.id.toString();
3876
- return [...o.instanceMap].filter(([u]) => u.split(":")[0] === i).map(([, u]) => u);
3876
+ return [...o.instanceMap].filter(([a]) => a.split(":")[0] === i).map(([, a]) => a);
3877
3877
  }), e.hook("getComponentBounds", async ({ instance: r }) => ee(r)), e.hook("getComponentName", ({ instance: r }) => Ke(r)), e.hook("componentHighlight", ({ uid: r }) => {
3878
3878
  const o = F.value.instanceMap.get(r);
3879
- o && xu(o);
3879
+ o && ka(o);
3880
3880
  }), e.hook("componentUnhighlight", () => {
3881
3881
  no();
3882
3882
  }), e;
@@ -3885,14 +3885,14 @@ var An, Tn;
3885
3885
  (Tn = (An = y).__VUE_DEVTOOLS_KIT_APP_RECORDS__) != null || (An.__VUE_DEVTOOLS_KIT_APP_RECORDS__ = []);
3886
3886
  var On, Sn;
3887
3887
  (Sn = (On = y).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__) != null || (On.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = {});
3888
- var Pn, Dn;
3889
- (Dn = (Pn = y).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null || (Pn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "");
3890
- var In, kn;
3891
- (kn = (In = y).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null || (In.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []);
3888
+ var Pn, In;
3889
+ (In = (Pn = y).__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__) != null || (Pn.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = "");
3890
+ var Dn, kn;
3891
+ (kn = (Dn = y).__VUE_DEVTOOLS_KIT_CUSTOM_TABS__) != null || (Dn.__VUE_DEVTOOLS_KIT_CUSTOM_TABS__ = []);
3892
3892
  var xn, Rn;
3893
3893
  (Rn = (xn = y).__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__) != null || (xn.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__ = []);
3894
3894
  var Z = "__VUE_DEVTOOLS_KIT_GLOBAL_STATE__";
3895
- function qu() {
3895
+ function Ya() {
3896
3896
  return {
3897
3897
  connected: !1,
3898
3898
  clientConnected: !1,
@@ -3904,15 +3904,15 @@ function qu() {
3904
3904
  highPerfModeEnabled: !0,
3905
3905
  devtoolsClientDetected: {},
3906
3906
  perfUniqueGroupId: 0,
3907
- timelineLayersState: $u()
3907
+ timelineLayersState: za()
3908
3908
  };
3909
3909
  }
3910
3910
  var Ln, Fn;
3911
- (Fn = (Ln = y)[Z]) != null || (Ln[Z] = qu());
3912
- var Xu = ue((e) => {
3911
+ (Fn = (Ln = y)[Z]) != null || (Ln[Z] = Ya());
3912
+ var qa = ae((e) => {
3913
3913
  fe.hooks.callHook("devtoolsStateUpdated", { state: e });
3914
3914
  });
3915
- ue((e, t) => {
3915
+ ae((e, t) => {
3916
3916
  fe.hooks.callHook("devtoolsConnectedUpdated", { state: e, oldState: t });
3917
3917
  });
3918
3918
  var We = new Proxy(y.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
@@ -3925,7 +3925,7 @@ var We = new Proxy(y.__VUE_DEVTOOLS_KIT_APP_RECORDS__, {
3925
3925
  }
3926
3926
  });
3927
3927
  function so() {
3928
- Xu({
3928
+ qa({
3929
3929
  ...y[Z],
3930
3930
  appRecords: We.value,
3931
3931
  activeAppRecordId: F.id,
@@ -3933,10 +3933,10 @@ function so() {
3933
3933
  commands: y.__VUE_DEVTOOLS_KIT_CUSTOM_COMMANDS__
3934
3934
  });
3935
3935
  }
3936
- function Qu(e) {
3936
+ function Xa(e) {
3937
3937
  y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD__ = e, so();
3938
3938
  }
3939
- function Zu(e) {
3939
+ function Qa(e) {
3940
3940
  y.__VUE_DEVTOOLS_KIT_ACTIVE_APP_RECORD_ID__ = e, so();
3941
3941
  }
3942
3942
  var k = new Proxy(y[Z], {
@@ -3950,21 +3950,21 @@ var k = new Proxy(y[Z], {
3950
3950
  return { ...y[Z] }, e[t] = n, y[Z][t] = n, !0;
3951
3951
  }
3952
3952
  });
3953
- function Ju(e = {}) {
3953
+ function Za(e = {}) {
3954
3954
  var t, n, r;
3955
- const { file: o, host: i, baseUrl: s = window.location.origin, line: u = 0, column: a = 0 } = e;
3955
+ const { file: o, host: i, baseUrl: s = window.location.origin, line: a = 0, column: u = 0 } = e;
3956
3956
  if (o) {
3957
3957
  if (i === "chrome-extension") {
3958
3958
  const l = o.replace(/\\/g, "\\\\"), c = (n = (t = window.VUE_DEVTOOLS_CONFIG) == null ? void 0 : t.openInEditorHost) != null ? n : "/";
3959
3959
  fetch(`${c}__open-in-editor?file=${encodeURI(o)}`).then((f) => {
3960
3960
  if (!f.ok) {
3961
- const _ = `Opening component ${l} failed`;
3962
- console.log(`%c${_}`, "color:red");
3961
+ const h = `Opening component ${l} failed`;
3962
+ console.log(`%c${h}`, "color:red");
3963
3963
  }
3964
3964
  });
3965
3965
  } else if (k.vitePluginDetected) {
3966
3966
  const l = (r = y.__VUE_DEVTOOLS_OPEN_IN_EDITOR_BASE_URL__) != null ? r : s;
3967
- y.__VUE_INSPECTOR__.openInEditor(l, o, u, a);
3967
+ y.__VUE_INSPECTOR__.openInEditor(l, o, a, u);
3968
3968
  }
3969
3969
  }
3970
3970
  }
@@ -3989,7 +3989,7 @@ function Et(e) {
3989
3989
  function Nt(e) {
3990
3990
  return `__VUE_DEVTOOLS_NEXT_PLUGIN_SETTINGS__${e}__`;
3991
3991
  }
3992
- function ea(e) {
3992
+ function Ja(e) {
3993
3993
  var t, n, r;
3994
3994
  const o = (n = (t = Mt.find((i) => {
3995
3995
  var s;
@@ -3997,7 +3997,7 @@ function ea(e) {
3997
3997
  })) == null ? void 0 : t[0]) != null ? n : null;
3998
3998
  return (r = o?.settings) != null ? r : null;
3999
3999
  }
4000
- function uo(e, t) {
4000
+ function ao(e, t) {
4001
4001
  var n, r, o;
4002
4002
  const i = Nt(e);
4003
4003
  if (i) {
@@ -4006,23 +4006,23 @@ function uo(e, t) {
4006
4006
  return JSON.parse(s);
4007
4007
  }
4008
4008
  if (e) {
4009
- const s = (r = (n = Mt.find((u) => u[0].id === e)) == null ? void 0 : n[0]) != null ? r : null;
4009
+ const s = (r = (n = Mt.find((a) => a[0].id === e)) == null ? void 0 : n[0]) != null ? r : null;
4010
4010
  return Et((o = s?.settings) != null ? o : {});
4011
4011
  }
4012
4012
  return Et(t);
4013
4013
  }
4014
- function ta(e, t) {
4014
+ function eu(e, t) {
4015
4015
  const n = Nt(e);
4016
4016
  localStorage.getItem(n) || localStorage.setItem(n, JSON.stringify(Et(t)));
4017
4017
  }
4018
- function na(e, t, n) {
4018
+ function tu(e, t, n) {
4019
4019
  const r = Nt(e), o = localStorage.getItem(r), i = JSON.parse(o || "{}"), s = {
4020
4020
  ...i,
4021
4021
  [t]: n
4022
4022
  };
4023
4023
  localStorage.setItem(r, JSON.stringify(s)), fe.hooks.callHookWith(
4024
- (u) => {
4025
- u.forEach((a) => a({
4024
+ (a) => {
4025
+ a.forEach((u) => u({
4026
4026
  pluginId: e,
4027
4027
  key: t,
4028
4028
  oldValue: i[t],
@@ -4045,7 +4045,7 @@ m();
4045
4045
  m();
4046
4046
  m();
4047
4047
  m();
4048
- var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVTOOLS_HOOK = Gr(), ra = {
4048
+ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVTOOLS_HOOK = Gr(), nu = {
4049
4049
  vueAppInit(e) {
4050
4050
  V.hook("app:init", e);
4051
4051
  },
@@ -4076,12 +4076,12 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
4076
4076
  perfEnd(e) {
4077
4077
  return V.hook("perf:end", e);
4078
4078
  }
4079
- }, ao = {
4080
- on: ra,
4079
+ }, uo = {
4080
+ on: nu,
4081
4081
  setupDevToolsPlugin(e, t) {
4082
4082
  return V.callHook("devtools-plugin:setup", e, t);
4083
4083
  }
4084
- }, oa = class {
4084
+ }, ru = class {
4085
4085
  constructor({ plugin: e, ctx: t }) {
4086
4086
  this.hooks = t.hooks, this.plugin = e;
4087
4087
  }
@@ -4145,7 +4145,7 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
4145
4145
  }
4146
4146
  // custom inspector
4147
4147
  addInspector(e) {
4148
- this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && ta(e.id, this.plugin.descriptor.settings);
4148
+ this.hooks.callHook("addInspector", { inspector: e, plugin: this.plugin }), this.plugin.descriptor.settings && eu(e.id, this.plugin.descriptor.settings);
4149
4149
  }
4150
4150
  sendInspectorTree(e) {
4151
4151
  k.highPerfModeEnabled || this.hooks.callHook("sendInspectorTree", { inspectorId: e, plugin: this.plugin });
@@ -4171,7 +4171,7 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
4171
4171
  }
4172
4172
  // settings
4173
4173
  getSettings(e) {
4174
- return uo(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
4174
+ return ao(e ?? this.plugin.descriptor.id, this.plugin.descriptor.settings);
4175
4175
  }
4176
4176
  // utilities
4177
4177
  getComponentInstances(e) {
@@ -4193,21 +4193,21 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
4193
4193
  /* COMPONENT_UNHIGHLIGHT */
4194
4194
  );
4195
4195
  }
4196
- }, ia = oa;
4196
+ }, ou = ru;
4197
4197
  m();
4198
4198
  m();
4199
4199
  m();
4200
4200
  m();
4201
- var sa = "__vue_devtool_undefined__", ua = "__vue_devtool_infinity__", aa = "__vue_devtool_negative_infinity__", la = "__vue_devtool_nan__";
4201
+ var iu = "__vue_devtool_undefined__", su = "__vue_devtool_infinity__", au = "__vue_devtool_negative_infinity__", uu = "__vue_devtool_nan__";
4202
4202
  m();
4203
4203
  m();
4204
- var ca = {
4205
- [sa]: "undefined",
4206
- [la]: "NaN",
4207
- [ua]: "Infinity",
4208
- [aa]: "-Infinity"
4204
+ var lu = {
4205
+ [iu]: "undefined",
4206
+ [uu]: "NaN",
4207
+ [su]: "Infinity",
4208
+ [au]: "-Infinity"
4209
4209
  };
4210
- Object.entries(ca).reduce((e, [t, n]) => (e[n] = t, e), {});
4210
+ Object.entries(lu).reduce((e, [t, n]) => (e[n] = t, e), {});
4211
4211
  m();
4212
4212
  m();
4213
4213
  m();
@@ -4215,14 +4215,14 @@ m();
4215
4215
  m();
4216
4216
  var Un, Hn;
4217
4217
  (Hn = (Un = y).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null || (Un.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
4218
- function fa(e, t) {
4219
- return ao.setupDevToolsPlugin(e, t);
4218
+ function cu(e, t) {
4219
+ return uo.setupDevToolsPlugin(e, t);
4220
4220
  }
4221
- function da(e, t) {
4221
+ function fu(e, t) {
4222
4222
  const [n, r] = e;
4223
4223
  if (n.app !== t)
4224
4224
  return;
4225
- const o = new ia({
4225
+ const o = new ou({
4226
4226
  plugin: {
4227
4227
  setupFn: r,
4228
4228
  descriptor: n
@@ -4235,21 +4235,21 @@ function da(e, t) {
4235
4235
  }
4236
4236
  function lo(e, t) {
4237
4237
  y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.has(e) || k.highPerfModeEnabled && !t?.inspectingComponent || (y.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__.add(e), Mt.forEach((n) => {
4238
- da(n, e);
4238
+ fu(n, e);
4239
4239
  }));
4240
4240
  }
4241
4241
  m();
4242
4242
  m();
4243
- var ve = "__VUE_DEVTOOLS_ROUTER__", ae = "__VUE_DEVTOOLS_ROUTER_INFO__", jn, zn;
4244
- (zn = (jn = y)[ae]) != null || (jn[ae] = {
4243
+ var ve = "__VUE_DEVTOOLS_ROUTER__", ue = "__VUE_DEVTOOLS_ROUTER_INFO__", jn, zn;
4244
+ (zn = (jn = y)[ue]) != null || (jn[ue] = {
4245
4245
  currentRoute: null,
4246
4246
  routes: []
4247
4247
  });
4248
4248
  var $n, Kn;
4249
4249
  (Kn = ($n = y)[ve]) != null || ($n[ve] = {});
4250
- new Proxy(y[ae], {
4250
+ new Proxy(y[ue], {
4251
4251
  get(e, t) {
4252
- return y[ae][t];
4252
+ return y[ue][t];
4253
4253
  }
4254
4254
  });
4255
4255
  new Proxy(y[ve], {
@@ -4258,7 +4258,7 @@ new Proxy(y[ve], {
4258
4258
  return y[ve];
4259
4259
  }
4260
4260
  });
4261
- function pa(e) {
4261
+ function du(e) {
4262
4262
  const t = /* @__PURE__ */ new Map();
4263
4263
  return (e?.getRoutes() || []).filter((n) => !t.has(n.path) && t.set(n.path, 1));
4264
4264
  }
@@ -4273,38 +4273,38 @@ function Vt(e) {
4273
4273
  };
4274
4274
  });
4275
4275
  }
4276
- function ha(e) {
4276
+ function pu(e) {
4277
4277
  if (e) {
4278
- const { fullPath: t, hash: n, href: r, path: o, name: i, matched: s, params: u, query: a } = e;
4278
+ const { fullPath: t, hash: n, href: r, path: o, name: i, matched: s, params: a, query: u } = e;
4279
4279
  return {
4280
4280
  fullPath: t,
4281
4281
  hash: n,
4282
4282
  href: r,
4283
4283
  path: o,
4284
4284
  name: i,
4285
- params: u,
4286
- query: a,
4285
+ params: a,
4286
+ query: u,
4287
4287
  matched: Vt(s)
4288
4288
  };
4289
4289
  }
4290
4290
  return e;
4291
4291
  }
4292
- function _a(e, t) {
4292
+ function hu(e, t) {
4293
4293
  function n() {
4294
4294
  var r;
4295
- const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, i = ha(o?.currentRoute.value), s = Vt(pa(o)), u = console.warn;
4295
+ const o = (r = e.app) == null ? void 0 : r.config.globalProperties.$router, i = pu(o?.currentRoute.value), s = Vt(du(o)), a = console.warn;
4296
4296
  console.warn = () => {
4297
- }, y[ae] = {
4297
+ }, y[ue] = {
4298
4298
  currentRoute: i ? _n(i) : {},
4299
4299
  routes: _n(s)
4300
- }, y[ve] = o, console.warn = u;
4300
+ }, y[ve] = o, console.warn = a;
4301
4301
  }
4302
- n(), ao.on.componentUpdated(ue(() => {
4302
+ n(), uo.on.componentUpdated(ae(() => {
4303
4303
  var r;
4304
- ((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !k.highPerfModeEnabled && fe.hooks.callHook("routerInfoUpdated", { state: y[ae] }));
4304
+ ((r = t.value) == null ? void 0 : r.app) === e.app && (n(), !k.highPerfModeEnabled && fe.hooks.callHook("routerInfoUpdated", { state: y[ue] }));
4305
4305
  }, 200));
4306
4306
  }
4307
- function ma(e) {
4307
+ function _u(e) {
4308
4308
  return {
4309
4309
  // get inspector tree
4310
4310
  async getInspectorTree(t) {
@@ -4344,11 +4344,11 @@ function ma(e) {
4344
4344
  },
4345
4345
  // edit inspector state
4346
4346
  editInspectorState(t) {
4347
- const n = new Hu(), r = {
4347
+ const n = new Ua(), r = {
4348
4348
  ...t,
4349
4349
  app: F.value.app,
4350
- set: (o, i = t.path, s = t.state.value, u) => {
4351
- n.set(o, i, s, u || n.createDefaultSetCallback(t.state));
4350
+ set: (o, i = t.path, s = t.state.value, a) => {
4351
+ n.set(o, i, s, a || n.createDefaultSetCallback(t.state));
4352
4352
  }
4353
4353
  };
4354
4354
  e.callHookWith(
@@ -4369,11 +4369,11 @@ function ma(e) {
4369
4369
  },
4370
4370
  // inspect component inspector
4371
4371
  inspectComponentInspector() {
4372
- return Fu();
4372
+ return La();
4373
4373
  },
4374
4374
  // cancel inspect component inspector
4375
4375
  cancelInspectComponentInspector() {
4376
- return Lu();
4376
+ return Ra();
4377
4377
  },
4378
4378
  // get component render code
4379
4379
  getComponentRenderCode(t) {
@@ -4383,16 +4383,16 @@ function ma(e) {
4383
4383
  },
4384
4384
  // scroll to component
4385
4385
  scrollToComponent(t) {
4386
- return Mu({ id: t });
4386
+ return Fa({ id: t });
4387
4387
  },
4388
4388
  // open in editor
4389
- openInEditor: Ju,
4389
+ openInEditor: Za,
4390
4390
  // get vue inspector
4391
- getVueInspector: Bu,
4391
+ getVueInspector: Va,
4392
4392
  // toggle app
4393
4393
  toggleApp(t, n) {
4394
4394
  const r = We.value.find((o) => o.id === t);
4395
- r && (Zu(t), Qu(r), _a(r, F), oo(), lo(r.app, n));
4395
+ r && (Qa(t), Xa(r), hu(r, F), oo(), lo(r.app, n));
4396
4396
  },
4397
4397
  // inspect dom
4398
4398
  inspectDOM(t) {
@@ -4403,12 +4403,12 @@ function ma(e) {
4403
4403
  }
4404
4404
  },
4405
4405
  updatePluginSettings(t, n, r) {
4406
- na(t, n, r);
4406
+ tu(t, n, r);
4407
4407
  },
4408
4408
  getPluginSettings(t) {
4409
4409
  return {
4410
- options: ea(t),
4411
- values: uo(t)
4410
+ options: Ja(t),
4411
+ values: ao(t)
4412
4412
  };
4413
4413
  }
4414
4414
  };
@@ -4418,7 +4418,7 @@ var Wn, Gn;
4418
4418
  (Gn = (Wn = y).__VUE_DEVTOOLS_ENV__) != null || (Wn.__VUE_DEVTOOLS_ENV__ = {
4419
4419
  vitePluginDetected: !1
4420
4420
  });
4421
- var Yn = Yu(), qn, Xn;
4421
+ var Yn = Ga(), qn, Xn;
4422
4422
  (Xn = (qn = y).__VUE_DEVTOOLS_KIT_CONTEXT__) != null || (qn.__VUE_DEVTOOLS_KIT_CONTEXT__ = {
4423
4423
  hooks: Yn,
4424
4424
  get state() {
@@ -4429,11 +4429,11 @@ var Yn = Yu(), qn, Xn;
4429
4429
  appRecords: We.value
4430
4430
  };
4431
4431
  },
4432
- api: ma(Yn)
4432
+ api: _u(Yn)
4433
4433
  });
4434
4434
  var fe = y.__VUE_DEVTOOLS_KIT_CONTEXT__;
4435
4435
  m();
4436
- mu(Eu());
4436
+ _a(ga());
4437
4437
  var Qn, Zn;
4438
4438
  (Zn = (Qn = y).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null || (Qn.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
4439
4439
  id: 0,
@@ -4441,22 +4441,22 @@ var Qn, Zn;
4441
4441
  });
4442
4442
  m();
4443
4443
  m();
4444
- function ga(e) {
4444
+ function mu(e) {
4445
4445
  k.highPerfModeEnabled = e ?? !k.highPerfModeEnabled, !e && F.value && lo(F.value.app);
4446
4446
  }
4447
4447
  m();
4448
4448
  m();
4449
4449
  m();
4450
- function Ea(e) {
4450
+ function gu(e) {
4451
4451
  k.devtoolsClientDetected = {
4452
4452
  ...k.devtoolsClientDetected,
4453
4453
  ...e
4454
4454
  };
4455
4455
  const t = Object.values(k.devtoolsClientDetected).some(Boolean);
4456
- ga(!t);
4456
+ mu(!t);
4457
4457
  }
4458
4458
  var Jn, er;
4459
- (er = (Jn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Jn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = Ea);
4459
+ (er = (Jn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Jn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = gu);
4460
4460
  m();
4461
4461
  m();
4462
4462
  m();
@@ -4464,7 +4464,7 @@ m();
4464
4464
  m();
4465
4465
  m();
4466
4466
  m();
4467
- var va = class {
4467
+ var Eu = class {
4468
4468
  constructor() {
4469
4469
  this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
4470
4470
  }
@@ -4482,7 +4482,7 @@ var va = class {
4482
4482
  }
4483
4483
  }, co = class {
4484
4484
  constructor(e) {
4485
- this.generateIdentifier = e, this.kv = new va();
4485
+ this.generateIdentifier = e, this.kv = new Eu();
4486
4486
  }
4487
4487
  register(e, t) {
4488
4488
  this.kv.getByValue(e) || (t || (t = this.generateIdentifier(e)), this.kv.set(t, e));
@@ -4496,7 +4496,7 @@ var va = class {
4496
4496
  getValue(e) {
4497
4497
  return this.kv.getByKey(e);
4498
4498
  }
4499
- }, ya = class extends co {
4499
+ }, vu = class extends co {
4500
4500
  constructor() {
4501
4501
  super((e) => e.name), this.classToAllowedProps = /* @__PURE__ */ new Map();
4502
4502
  }
@@ -4509,7 +4509,7 @@ var va = class {
4509
4509
  };
4510
4510
  m();
4511
4511
  m();
4512
- function ba(e) {
4512
+ function yu(e) {
4513
4513
  if ("values" in Object)
4514
4514
  return Object.values(e);
4515
4515
  const t = [];
@@ -4517,8 +4517,8 @@ function ba(e) {
4517
4517
  e.hasOwnProperty(n) && t.push(e[n]);
4518
4518
  return t;
4519
4519
  }
4520
- function Ca(e, t) {
4521
- const n = ba(e);
4520
+ function Cu(e, t) {
4521
+ const n = yu(e);
4522
4522
  if ("find" in n)
4523
4523
  return n.find(t);
4524
4524
  const r = n;
@@ -4541,7 +4541,7 @@ function tr(e, t) {
4541
4541
  return r;
4542
4542
  }
4543
4543
  }
4544
- var wa = class {
4544
+ var bu = class {
4545
4545
  constructor() {
4546
4546
  this.transfomers = {};
4547
4547
  }
@@ -4549,7 +4549,7 @@ var wa = class {
4549
4549
  this.transfomers[e.name] = e;
4550
4550
  }
4551
4551
  findApplicable(e) {
4552
- return Ca(this.transfomers, (t) => t.isApplicable(e));
4552
+ return Cu(this.transfomers, (t) => t.isApplicable(e));
4553
4553
  }
4554
4554
  findByName(e) {
4555
4555
  return this.transfomers[e];
@@ -4557,7 +4557,7 @@ var wa = class {
4557
4557
  };
4558
4558
  m();
4559
4559
  m();
4560
- var Aa = (e) => Object.prototype.toString.call(e).slice(8, -1), fo = (e) => typeof e > "u", Ta = (e) => e === null, ye = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, vt = (e) => ye(e) && Object.keys(e).length === 0, G = (e) => Array.isArray(e), Oa = (e) => typeof e == "string", Sa = (e) => typeof e == "number" && !isNaN(e), Pa = (e) => typeof e == "boolean", Da = (e) => e instanceof RegExp, be = (e) => e instanceof Map, Ce = (e) => e instanceof Set, po = (e) => Aa(e) === "Symbol", Ia = (e) => e instanceof Date && !isNaN(e.valueOf()), ka = (e) => e instanceof Error, nr = (e) => typeof e == "number" && isNaN(e), xa = (e) => Pa(e) || Ta(e) || fo(e) || Sa(e) || Oa(e) || po(e), Ra = (e) => typeof e == "bigint", La = (e) => e === 1 / 0 || e === -1 / 0, Fa = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Ma = (e) => e instanceof URL;
4560
+ var wu = (e) => Object.prototype.toString.call(e).slice(8, -1), fo = (e) => typeof e > "u", Au = (e) => e === null, ye = (e) => typeof e != "object" || e === null || e === Object.prototype ? !1 : Object.getPrototypeOf(e) === null ? !0 : Object.getPrototypeOf(e) === Object.prototype, vt = (e) => ye(e) && Object.keys(e).length === 0, G = (e) => Array.isArray(e), Tu = (e) => typeof e == "string", Ou = (e) => typeof e == "number" && !isNaN(e), Su = (e) => typeof e == "boolean", Pu = (e) => e instanceof RegExp, Ce = (e) => e instanceof Map, be = (e) => e instanceof Set, po = (e) => wu(e) === "Symbol", Iu = (e) => e instanceof Date && !isNaN(e.valueOf()), Du = (e) => e instanceof Error, nr = (e) => typeof e == "number" && isNaN(e), ku = (e) => Su(e) || Au(e) || fo(e) || Ou(e) || Tu(e) || po(e), xu = (e) => typeof e == "bigint", Ru = (e) => e === 1 / 0 || e === -1 / 0, Lu = (e) => ArrayBuffer.isView(e) && !(e instanceof DataView), Fu = (e) => e instanceof URL;
4561
4561
  m();
4562
4562
  var ho = (e) => e.replace(/\./g, "\\."), rt = (e) => e.map(String).map(ho).join("."), ge = (e) => {
4563
4563
  const t = [];
@@ -4589,9 +4589,9 @@ function j(e, t, n, r) {
4589
4589
  var _o = [
4590
4590
  j(fo, "undefined", () => null, () => {
4591
4591
  }),
4592
- j(Ra, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
4593
- j(Ia, "Date", (e) => e.toISOString(), (e) => new Date(e)),
4594
- j(ka, "Error", (e, t) => {
4592
+ j(xu, "bigint", (e) => e.toString(), (e) => typeof BigInt < "u" ? BigInt(e) : (console.error("Please add a BigInt polyfill."), e)),
4593
+ j(Iu, "Date", (e) => e.toISOString(), (e) => new Date(e)),
4594
+ j(Du, "Error", (e, t) => {
4595
4595
  const n = {
4596
4596
  name: e.name,
4597
4597
  message: e.message
@@ -4605,22 +4605,22 @@ var _o = [
4605
4605
  n[r] = e[r];
4606
4606
  }), n;
4607
4607
  }),
4608
- j(Da, "regexp", (e) => "" + e, (e) => {
4608
+ j(Pu, "regexp", (e) => "" + e, (e) => {
4609
4609
  const t = e.slice(1, e.lastIndexOf("/")), n = e.slice(e.lastIndexOf("/") + 1);
4610
4610
  return new RegExp(t, n);
4611
4611
  }),
4612
4612
  j(
4613
- Ce,
4613
+ be,
4614
4614
  "set",
4615
4615
  // (sets only exist in es6+)
4616
4616
  // eslint-disable-next-line es5/no-es6-methods
4617
4617
  (e) => [...e.values()],
4618
4618
  (e) => new Set(e)
4619
4619
  ),
4620
- j(be, "map", (e) => [...e.entries()], (e) => new Map(e)),
4621
- j((e) => nr(e) || La(e), "number", (e) => nr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
4620
+ j(Ce, "map", (e) => [...e.entries()], (e) => new Map(e)),
4621
+ j((e) => nr(e) || Ru(e), "number", (e) => nr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
4622
4622
  j((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
4623
- j(Ma, "URL", (e) => e.toString(), (e) => new URL(e))
4623
+ j(Fu, "URL", (e) => e.toString(), (e) => new URL(e))
4624
4624
  ];
4625
4625
  function Ge(e, t, n, r) {
4626
4626
  return {
@@ -4635,7 +4635,7 @@ var mo = Ge((e, t) => po(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
4635
4635
  if (!r)
4636
4636
  throw new Error("Trying to deserialize unknown symbol");
4637
4637
  return r;
4638
- }), Na = [
4638
+ }), Mu = [
4639
4639
  Int8Array,
4640
4640
  Uint8Array,
4641
4641
  Int16Array,
@@ -4645,8 +4645,8 @@ var mo = Ge((e, t) => po(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
4645
4645
  Float32Array,
4646
4646
  Float64Array,
4647
4647
  Uint8ClampedArray
4648
- ].reduce((e, t) => (e[t.name] = t, e), {}), go = Ge(Fa, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
4649
- const n = Na[t[1]];
4648
+ ].reduce((e, t) => (e[t.name] = t, e), {}), go = Ge(Lu, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
4649
+ const n = Mu[t[1]];
4650
4650
  if (!n)
4651
4651
  throw new Error("Trying to deserialize unknown typed array");
4652
4652
  return new n(e);
@@ -4672,8 +4672,8 @@ var vo = Ge(Eo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
4672
4672
  if (!r)
4673
4673
  throw new Error("Trying to deserialize unknown custom value");
4674
4674
  return r.deserialize(e);
4675
- }), Va = [vo, mo, yo, go], rr = (e, t) => {
4676
- const n = tr(Va, (o) => o.isApplicable(e, t));
4675
+ }), Nu = [vo, mo, yo, go], rr = (e, t) => {
4676
+ const n = tr(Nu, (o) => o.isApplicable(e, t));
4677
4677
  if (n)
4678
4678
  return {
4679
4679
  value: n.transform(e, t),
@@ -4685,11 +4685,11 @@ var vo = Ge(Eo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
4685
4685
  value: r.transform(e, t),
4686
4686
  type: r.annotation
4687
4687
  };
4688
- }, bo = {};
4688
+ }, Co = {};
4689
4689
  _o.forEach((e) => {
4690
- bo[e.annotation] = e;
4690
+ Co[e.annotation] = e;
4691
4691
  });
4692
- var Ba = (e, t, n) => {
4692
+ var Vu = (e, t, n) => {
4693
4693
  if (G(t))
4694
4694
  switch (t[0]) {
4695
4695
  case "symbol":
@@ -4704,7 +4704,7 @@ var Ba = (e, t, n) => {
4704
4704
  throw new Error("Unknown transformation: " + t);
4705
4705
  }
4706
4706
  else {
4707
- const r = bo[t];
4707
+ const r = Co[t];
4708
4708
  if (!r)
4709
4709
  throw new Error("Unknown transformation: " + t);
4710
4710
  return r.untransform(e, n);
@@ -4719,7 +4719,7 @@ var oe = (e, t) => {
4719
4719
  n.next(), t--;
4720
4720
  return n.next().value;
4721
4721
  };
4722
- function Co(e) {
4722
+ function bo(e) {
4723
4723
  if (Le(e, "__proto__"))
4724
4724
  throw new Error("__proto__ is not allowed as a property");
4725
4725
  if (Le(e, "prototype"))
@@ -4727,13 +4727,13 @@ function Co(e) {
4727
4727
  if (Le(e, "constructor"))
4728
4728
  throw new Error("constructor is not allowed as a property");
4729
4729
  }
4730
- var Ua = (e, t) => {
4731
- Co(t);
4730
+ var Bu = (e, t) => {
4731
+ bo(t);
4732
4732
  for (let n = 0; n < t.length; n++) {
4733
4733
  const r = t[n];
4734
- if (Ce(e))
4734
+ if (be(e))
4735
4735
  e = oe(e, +r);
4736
- else if (be(e)) {
4736
+ else if (Ce(e)) {
4737
4737
  const o = +r, i = +t[++n] == 0 ? "key" : "value", s = oe(e, o);
4738
4738
  switch (i) {
4739
4739
  case "key":
@@ -4748,23 +4748,23 @@ var Ua = (e, t) => {
4748
4748
  }
4749
4749
  return e;
4750
4750
  }, yt = (e, t, n) => {
4751
- if (Co(t), t.length === 0)
4751
+ if (bo(t), t.length === 0)
4752
4752
  return n(e);
4753
4753
  let r = e;
4754
4754
  for (let i = 0; i < t.length - 1; i++) {
4755
4755
  const s = t[i];
4756
4756
  if (G(r)) {
4757
- const u = +s;
4758
- r = r[u];
4757
+ const a = +s;
4758
+ r = r[a];
4759
4759
  } else if (ye(r))
4760
4760
  r = r[s];
4761
- else if (Ce(r)) {
4762
- const u = +s;
4763
- r = oe(r, u);
4764
- } else if (be(r)) {
4761
+ else if (be(r)) {
4762
+ const a = +s;
4763
+ r = oe(r, a);
4764
+ } else if (Ce(r)) {
4765
4765
  if (i === t.length - 2)
4766
4766
  break;
4767
- const a = +s, l = +t[++i] == 0 ? "key" : "value", c = oe(r, a);
4767
+ const u = +s, l = +t[++i] == 0 ? "key" : "value", c = oe(r, u);
4768
4768
  switch (l) {
4769
4769
  case "key":
4770
4770
  r = c;
@@ -4776,16 +4776,16 @@ var Ua = (e, t) => {
4776
4776
  }
4777
4777
  }
4778
4778
  const o = t[t.length - 1];
4779
- if (G(r) ? r[+o] = n(r[+o]) : ye(r) && (r[o] = n(r[o])), Ce(r)) {
4779
+ if (G(r) ? r[+o] = n(r[+o]) : ye(r) && (r[o] = n(r[o])), be(r)) {
4780
4780
  const i = oe(r, +o), s = n(i);
4781
4781
  i !== s && (r.delete(i), r.add(s));
4782
4782
  }
4783
- if (be(r)) {
4783
+ if (Ce(r)) {
4784
4784
  const i = +t[t.length - 2], s = oe(r, i);
4785
4785
  switch (+o == 0 ? "key" : "value") {
4786
4786
  case "key": {
4787
- const a = n(s);
4788
- r.set(a, r.get(s)), a !== s && r.delete(s);
4787
+ const u = n(s);
4788
+ r.set(u, r.get(s)), u !== s && r.delete(s);
4789
4789
  break;
4790
4790
  }
4791
4791
  case "value": {
@@ -4796,26 +4796,26 @@ var Ua = (e, t) => {
4796
4796
  }
4797
4797
  return e;
4798
4798
  };
4799
- function bt(e, t, n = []) {
4799
+ function Ct(e, t, n = []) {
4800
4800
  if (!e)
4801
4801
  return;
4802
4802
  if (!G(e)) {
4803
- le(e, (i, s) => bt(i, t, [...n, ...ge(s)]));
4803
+ le(e, (i, s) => Ct(i, t, [...n, ...ge(s)]));
4804
4804
  return;
4805
4805
  }
4806
4806
  const [r, o] = e;
4807
4807
  o && le(o, (i, s) => {
4808
- bt(i, t, [...n, ...ge(s)]);
4808
+ Ct(i, t, [...n, ...ge(s)]);
4809
4809
  }), t(r, n);
4810
4810
  }
4811
- function Ha(e, t, n) {
4812
- return bt(t, (r, o) => {
4813
- e = yt(e, o, (i) => Ba(i, r, n));
4811
+ function Uu(e, t, n) {
4812
+ return Ct(t, (r, o) => {
4813
+ e = yt(e, o, (i) => Vu(i, r, n));
4814
4814
  }), e;
4815
4815
  }
4816
- function ja(e, t) {
4816
+ function Hu(e, t) {
4817
4817
  function n(r, o) {
4818
- const i = Ua(e, ge(o));
4818
+ const i = Bu(e, ge(o));
4819
4819
  r.map(ge).forEach((s) => {
4820
4820
  e = yt(e, s, () => i);
4821
4821
  });
@@ -4829,63 +4829,63 @@ function ja(e, t) {
4829
4829
  le(t, n);
4830
4830
  return e;
4831
4831
  }
4832
- var za = (e, t) => ye(e) || G(e) || be(e) || Ce(e) || Eo(e, t);
4833
- function $a(e, t, n) {
4832
+ var ju = (e, t) => ye(e) || G(e) || Ce(e) || be(e) || Eo(e, t);
4833
+ function zu(e, t, n) {
4834
4834
  const r = n.get(e);
4835
4835
  r ? r.push(t) : n.set(e, [t]);
4836
4836
  }
4837
- function Ka(e, t) {
4837
+ function $u(e, t) {
4838
4838
  const n = {};
4839
4839
  let r;
4840
4840
  return e.forEach((o) => {
4841
4841
  if (o.length <= 1)
4842
4842
  return;
4843
- t || (o = o.map((u) => u.map(String)).sort((u, a) => u.length - a.length));
4843
+ t || (o = o.map((a) => a.map(String)).sort((a, u) => a.length - u.length));
4844
4844
  const [i, ...s] = o;
4845
4845
  i.length === 0 ? r = s.map(rt) : n[rt(i)] = s.map(rt);
4846
4846
  }), r ? vt(n) ? [r] : [r, n] : vt(n) ? void 0 : n;
4847
4847
  }
4848
4848
  var wo = (e, t, n, r, o = [], i = [], s = /* @__PURE__ */ new Map()) => {
4849
- var u;
4850
- const a = xa(e);
4851
- if (!a) {
4852
- $a(e, o, t);
4853
- const h = s.get(e);
4854
- if (h)
4849
+ var a;
4850
+ const u = ku(e);
4851
+ if (!u) {
4852
+ zu(e, o, t);
4853
+ const _ = s.get(e);
4854
+ if (_)
4855
4855
  return r ? {
4856
4856
  transformedValue: null
4857
- } : h;
4857
+ } : _;
4858
4858
  }
4859
- if (!za(e, n)) {
4860
- const h = rr(e, n), v = h ? {
4861
- transformedValue: h.value,
4862
- annotations: [h.type]
4859
+ if (!ju(e, n)) {
4860
+ const _ = rr(e, n), v = _ ? {
4861
+ transformedValue: _.value,
4862
+ annotations: [_.type]
4863
4863
  } : {
4864
4864
  transformedValue: e
4865
4865
  };
4866
- return a || s.set(e, v), v;
4866
+ return u || s.set(e, v), v;
4867
4867
  }
4868
4868
  if (Le(i, e))
4869
4869
  return {
4870
4870
  transformedValue: null
4871
4871
  };
4872
- const l = rr(e, n), c = (u = l?.value) != null ? u : e, f = G(c) ? [] : {}, _ = {};
4873
- le(c, (h, v) => {
4872
+ const l = rr(e, n), c = (a = l?.value) != null ? a : e, f = G(c) ? [] : {}, h = {};
4873
+ le(c, (_, v) => {
4874
4874
  if (v === "__proto__" || v === "constructor" || v === "prototype")
4875
4875
  throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);
4876
- const p = wo(h, t, n, r, [...o, v], [...i, e], s);
4877
- f[v] = p.transformedValue, G(p.annotations) ? _[v] = p.annotations : ye(p.annotations) && le(p.annotations, (g, b) => {
4878
- _[ho(v) + "." + b] = g;
4876
+ const p = wo(_, t, n, r, [...o, v], [...i, e], s);
4877
+ f[v] = p.transformedValue, G(p.annotations) ? h[v] = p.annotations : ye(p.annotations) && le(p.annotations, (g, C) => {
4878
+ h[ho(v) + "." + C] = g;
4879
4879
  });
4880
4880
  });
4881
- const d = vt(_) ? {
4881
+ const d = vt(h) ? {
4882
4882
  transformedValue: f,
4883
4883
  annotations: l ? [l.type] : void 0
4884
4884
  } : {
4885
4885
  transformedValue: f,
4886
- annotations: l ? [l.type, _] : _
4886
+ annotations: l ? [l.type, h] : h
4887
4887
  };
4888
- return a || s.set(e, d), d;
4888
+ return u || s.set(e, d), d;
4889
4889
  };
4890
4890
  m();
4891
4891
  m();
@@ -4895,13 +4895,13 @@ function Ao(e) {
4895
4895
  function or(e) {
4896
4896
  return Ao(e) === "Array";
4897
4897
  }
4898
- function Wa(e) {
4898
+ function Ku(e) {
4899
4899
  if (Ao(e) !== "Object")
4900
4900
  return !1;
4901
4901
  const t = Object.getPrototypeOf(e);
4902
4902
  return !!t && t.constructor === Object && t === Object.prototype;
4903
4903
  }
4904
- function Ga(e, t, n, r, o) {
4904
+ function Wu(e, t, n, r, o) {
4905
4905
  const i = {}.propertyIsEnumerable.call(r, t) ? "enumerable" : "nonenumerable";
4906
4906
  i === "enumerable" && (e[t] = n), o && i === "nonenumerable" && Object.defineProperty(e, t, {
4907
4907
  value: n,
@@ -4910,17 +4910,17 @@ function Ga(e, t, n, r, o) {
4910
4910
  configurable: !0
4911
4911
  });
4912
4912
  }
4913
- function Ct(e, t = {}) {
4913
+ function bt(e, t = {}) {
4914
4914
  if (or(e))
4915
- return e.map((o) => Ct(o, t));
4916
- if (!Wa(e))
4915
+ return e.map((o) => bt(o, t));
4916
+ if (!Ku(e))
4917
4917
  return e;
4918
4918
  const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
4919
4919
  return [...n, ...r].reduce((o, i) => {
4920
4920
  if (or(t.props) && !t.props.includes(i))
4921
4921
  return o;
4922
- const s = e[i], u = Ct(s, t);
4923
- return Ga(o, i, u, e, t.nonenumerable), o;
4922
+ const s = e[i], a = bt(s, t);
4923
+ return Wu(o, i, a, e, t.nonenumerable), o;
4924
4924
  }, {});
4925
4925
  }
4926
4926
  var S = class {
@@ -4928,10 +4928,10 @@ var S = class {
4928
4928
  * @param dedupeReferentialEqualities If true, SuperJSON will make sure only one instance of referentially equal objects are serialized and the rest are replaced with `null`.
4929
4929
  */
4930
4930
  constructor({ dedupe: e = !1 } = {}) {
4931
- this.classRegistry = new ya(), this.symbolRegistry = new co((t) => {
4931
+ this.classRegistry = new vu(), this.symbolRegistry = new co((t) => {
4932
4932
  var n;
4933
4933
  return (n = t.description) != null ? n : "";
4934
- }), this.customTransformerRegistry = new wa(), this.allowedErrorProps = [], this.dedupe = e;
4934
+ }), this.customTransformerRegistry = new bu(), this.allowedErrorProps = [], this.dedupe = e;
4935
4935
  }
4936
4936
  serialize(e) {
4937
4937
  const t = /* @__PURE__ */ new Map(), n = wo(e, t, this, this.dedupe), r = {
@@ -4941,7 +4941,7 @@ var S = class {
4941
4941
  ...r.meta,
4942
4942
  values: n.annotations
4943
4943
  });
4944
- const o = Ka(t, this.dedupe);
4944
+ const o = $u(t, this.dedupe);
4945
4945
  return o && (r.meta = {
4946
4946
  ...r.meta,
4947
4947
  referentialEqualities: o
@@ -4949,8 +4949,8 @@ var S = class {
4949
4949
  }
4950
4950
  deserialize(e) {
4951
4951
  const { json: t, meta: n } = e;
4952
- let r = Ct(t);
4953
- return n?.values && (r = Ha(r, n.values, this)), n?.referentialEqualities && (r = ja(r, n.referentialEqualities)), r;
4952
+ let r = bt(t);
4953
+ return n?.values && (r = Uu(r, n.values, this)), n?.referentialEqualities && (r = Hu(r, n.referentialEqualities)), r;
4954
4954
  }
4955
4955
  stringify(e) {
4956
4956
  return JSON.stringify(this.serialize(e));
@@ -5008,8 +5008,8 @@ m();
5008
5008
  m();
5009
5009
  var ir, sr;
5010
5010
  (sr = (ir = y).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null || (ir.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []);
5011
- var ur, ar;
5012
- (ar = (ur = y).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null || (ur.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null);
5011
+ var ar, ur;
5012
+ (ur = (ar = y).__VUE_DEVTOOLS_KIT_RPC_CLIENT__) != null || (ar.__VUE_DEVTOOLS_KIT_RPC_CLIENT__ = null);
5013
5013
  var lr, cr;
5014
5014
  (cr = (lr = y).__VUE_DEVTOOLS_KIT_RPC_SERVER__) != null || (lr.__VUE_DEVTOOLS_KIT_RPC_SERVER__ = null);
5015
5015
  var fr, dr;
@@ -5025,7 +5025,7 @@ m();
5025
5025
  m();
5026
5026
  m();
5027
5027
  m();
5028
- function Ya(e, t) {
5028
+ function Gu(e, t) {
5029
5029
  const n = `▲ ■ ●${e}`;
5030
5030
  typeof gr == "function" ? gr(n, t) : console.log(n);
5031
5031
  }
@@ -5036,21 +5036,21 @@ function Bt(e) {
5036
5036
  let t = 0;
5037
5037
  return e.traverse((n) => {
5038
5038
  if ($e(n) && n.type !== "HightlightMesh") {
5039
- const r = n.geometry, o = r.attributes.position.count * 3 * Float32Array.BYTES_PER_ELEMENT, i = r.index ? r.index.count * Uint32Array.BYTES_PER_ELEMENT : 0, s = r.attributes.normal ? r.attributes.normal.count * 3 * Float32Array.BYTES_PER_ELEMENT : 0, u = r.attributes.uv ? r.attributes.uv.count * 2 * Float32Array.BYTES_PER_ELEMENT : 0, a = o + i + s + u;
5040
- t += a;
5039
+ const r = n.geometry, o = r.attributes.position.count * 3 * Float32Array.BYTES_PER_ELEMENT, i = r.index ? r.index.count * Uint32Array.BYTES_PER_ELEMENT : 0, s = r.attributes.normal ? r.attributes.normal.count * 3 * Float32Array.BYTES_PER_ELEMENT : 0, a = r.attributes.uv ? r.attributes.uv.count * 2 * Float32Array.BYTES_PER_ELEMENT : 0, u = o + i + s + a;
5040
+ t += u;
5041
5041
  }
5042
5042
  }), t;
5043
5043
  }
5044
5044
  function Er(e, t, n) {
5045
5045
  e.push(t), e.length > n && e.shift();
5046
5046
  }
5047
- function qa(e) {
5047
+ function Yu(e) {
5048
5048
  return (e / 1024).toFixed(2);
5049
5049
  }
5050
- function Xa(e) {
5050
+ function qu(e) {
5051
5051
  if (!e)
5052
5052
  return;
5053
- typeof window < "u" && !window.__TRES__DEVTOOLS__ && (window.__TRES__DEVTOOLS__ = new js());
5053
+ typeof window < "u" && !window.__TRES__DEVTOOLS__ && (window.__TRES__DEVTOOLS__ = new Hs());
5054
5054
  const t = {
5055
5055
  maxFrames: 160,
5056
5056
  fps: {
@@ -5063,11 +5063,11 @@ function Xa(e) {
5063
5063
  accumulator: []
5064
5064
  }
5065
5065
  }, n = 100, r = di({ every: n }), { isSupported: o, memory: i } = pi({ interval: n }), s = 160;
5066
- let u = performance.now(), a = 0;
5067
- const l = 1, c = ({ timestamp: _ }) => {
5068
- e.scene.value && (t.memory.allocatedMem = Bt(e.scene.value)), _ - u >= n && (u = _, Er(t.fps.accumulator, r.value, s), t.fps.value = r.value, o.value && i.value?.usedJSHeapSize && (Er(t.memory.accumulator, i.value.usedJSHeapSize / 1024 / 1024, s), t.memory.accumulator.length > 0 && (t.memory.currentMem = t.memory.accumulator.reduce((d, h) => d + h, 0) / t.memory.accumulator.length)));
5069
- }, { pause: f } = Tr(({ delta: _ }) => {
5070
- window.__TRES__DEVTOOLS__ && (c({ timestamp: performance.now() }), a += _, a >= l && (window.__TRES__DEVTOOLS__.send("context", e), window.__TRES__DEVTOOLS__.send("performance", t), a = 0));
5066
+ let a = performance.now(), u = 0;
5067
+ const l = 1, c = ({ timestamp: h }) => {
5068
+ e.scene.value && (t.memory.allocatedMem = Bt(e.scene.value)), h - a >= n && (a = h, Er(t.fps.accumulator, r.value, s), t.fps.value = r.value, o.value && i.value?.usedJSHeapSize && (Er(t.memory.accumulator, i.value.usedJSHeapSize / 1024 / 1024, s), t.memory.accumulator.length > 0 && (t.memory.currentMem = t.memory.accumulator.reduce((d, _) => d + _, 0) / t.memory.accumulator.length)));
5069
+ }, { pause: f } = Tr(({ delta: h }) => {
5070
+ window.__TRES__DEVTOOLS__ && (c({ timestamp: performance.now() }), u += h, u >= l && (window.__TRES__DEVTOOLS__.send("context", e), window.__TRES__DEVTOOLS__.send("performance", t), u = 0));
5071
5071
  }, { immediate: !0 });
5072
5072
  ie(() => {
5073
5073
  f();
@@ -5082,7 +5082,7 @@ const To = (e, t) => {
5082
5082
  return r;
5083
5083
  }
5084
5084
  };
5085
- class Qa extends vr.Mesh {
5085
+ class Xu extends vr.Mesh {
5086
5086
  type = "HightlightMesh";
5087
5087
  createTime;
5088
5088
  constructor(...t) {
@@ -5107,7 +5107,7 @@ const Oo = (e) => {
5107
5107
  });
5108
5108
  const n = Bt(e);
5109
5109
  return n > 0 && t.tags.push({
5110
- label: `${qa(n)} KB`,
5110
+ label: `${Yu(n)} KB`,
5111
5111
  textColor: 15707189,
5112
5112
  backgroundColor: 16775644,
5113
5113
  tooltip: "Memory usage"
@@ -5133,7 +5133,7 @@ const Oo = (e) => {
5133
5133
  tooltip: "Position"
5134
5134
  })), t;
5135
5135
  };
5136
- function Za(e, t, n = "") {
5136
+ function Qu(e, t, n = "") {
5137
5137
  const r = n ? `${n}.${e}` : e;
5138
5138
  return {
5139
5139
  id: `context-${t}-${r}`,
@@ -5153,27 +5153,27 @@ function So(e, t, n = "") {
5153
5153
  function wt(e, t, n = /* @__PURE__ */ new WeakSet(), r = 0, o = 4, i, s = "") {
5154
5154
  if (r >= o || !e || n.has(e))
5155
5155
  return;
5156
- const u = r === 0 ? e?.scene?.value?.uuid || Math.random().toString(36).slice(2, 11) : i;
5157
- n.add(e), Object.entries(e).forEach(([a, l]) => {
5158
- if (a.startsWith("_") || typeof l == "function")
5156
+ const a = r === 0 ? e?.scene?.value?.uuid || Math.random().toString(36).slice(2, 11) : i;
5157
+ n.add(e), Object.entries(e).forEach(([u, l]) => {
5158
+ if (u.startsWith("_") || typeof l == "function")
5159
5159
  return;
5160
- const c = s ? `${s}.${a}` : a, f = Za(a, u, s);
5161
- a !== "scene" && (me(l) ? (f.tags.push({
5160
+ const c = s ? `${s}.${u}` : u, f = Qu(u, a, s);
5161
+ u !== "scene" && (me(l) ? (f.tags.push({
5162
5162
  label: `Ref<${typeof l.value}>`,
5163
5163
  textColor: 4372611,
5164
5164
  backgroundColor: 15793395
5165
- }), l.value && typeof l.value == "object" ? wt(l.value, f, n, r + 1, o, u, c) : f.label = `${a}: ${JSON.stringify(l.value)}`) : l && typeof l == "object" && !Array.isArray(l) ? Object.keys(l).length > 0 ? n.has(l) ? f.tags.push({
5165
+ }), l.value && typeof l.value == "object" ? wt(l.value, f, n, r + 1, o, a, c) : f.label = `${u}: ${JSON.stringify(l.value)}`) : l && typeof l == "object" && !Array.isArray(l) ? Object.keys(l).length > 0 ? n.has(l) ? f.tags.push({
5166
5166
  label: "Circular",
5167
5167
  textColor: 16711680,
5168
5168
  backgroundColor: 16773360
5169
- }) : wt(l, f, n, r + 1, o, u, c) : f.label = `${a}: {}` : Array.isArray(l) ? (f.label = `${a}: Array(${l.length})`, f.tags.push({
5169
+ }) : wt(l, f, n, r + 1, o, a, c) : f.label = `${u}: {}` : Array.isArray(l) ? (f.label = `${u}: Array(${l.length})`, f.tags.push({
5170
5170
  label: `length: ${l.length}`,
5171
5171
  textColor: 9738662,
5172
5172
  backgroundColor: 16316922
5173
- })) : f.label = `${a}: ${JSON.stringify(l)}`, t.children.push(f));
5173
+ })) : f.label = `${u}: ${JSON.stringify(l)}`, t.children.push(f));
5174
5174
  });
5175
5175
  }
5176
- const Ja = (e) => (t) => {
5176
+ const Zu = (e) => (t) => {
5177
5177
  if (t.inspectorId === we) {
5178
5178
  const n = Oo(e.scene.value);
5179
5179
  So(e.scene.value, n, t.filter);
@@ -5185,7 +5185,7 @@ const Ja = (e) => (t) => {
5185
5185
  };
5186
5186
  wt(e, r), t.rootNodes = [n, r];
5187
5187
  }
5188
- }, el = (e, { highlightMesh: t, prevInstance: n }) => (r) => {
5188
+ }, Ju = (e, { highlightMesh: t, prevInstance: n }) => (r) => {
5189
5189
  if (r.inspectorId !== we)
5190
5190
  return;
5191
5191
  const o = new Ar({
@@ -5202,24 +5202,24 @@ const Ja = (e) => (t) => {
5202
5202
  const i = r.nodeId.match(/^scene-(.+)$/), s = i ? i[1] : null;
5203
5203
  if (!s)
5204
5204
  return;
5205
- const [u] = e.scene.value.getObjectsByProperty("uuid", s);
5206
- if (!u)
5205
+ const [a] = e.scene.value.getObjectsByProperty("uuid", s);
5206
+ if (!a)
5207
5207
  return;
5208
- if (n && t && t.parent && n.remove(t), $e(u)) {
5209
- const a = new Qa(u.geometry.clone(), o);
5210
- u.add(a), t = a, n = u;
5208
+ if (n && t && t.parent && n.remove(t), $e(a)) {
5209
+ const u = new Xu(a.geometry.clone(), o);
5210
+ a.add(u), t = u, n = a;
5211
5211
  }
5212
5212
  if (r.state = {
5213
- object: Object.entries(u).map(([a, l]) => a === "children" ? { key: a, value: l.filter((c) => c.type !== "HightlightMesh") } : { key: a, value: l, editable: !0 }).filter(({ key: a }) => a !== "parent")
5214
- }, Fr(u)) {
5215
- const a = {
5213
+ object: Object.entries(a).map(([u, l]) => u === "children" ? { key: u, value: l.filter((c) => c.type !== "HightlightMesh") } : { key: u, value: l, editable: !0 }).filter(({ key: u }) => u !== "parent")
5214
+ }, Fr(a)) {
5215
+ const u = {
5216
5216
  ...r.state,
5217
5217
  state: [
5218
5218
  {
5219
5219
  key: "Scene Info",
5220
5220
  value: {
5221
- objects: u.children.length,
5222
- memory: Bt(u),
5221
+ objects: a.children.length,
5222
+ memory: Bt(a),
5223
5223
  calls: e.renderer.instance.info.render.calls,
5224
5224
  triangles: e.renderer.instance.info.render.triangles,
5225
5225
  points: e.renderer.instance.info.render.points,
@@ -5228,13 +5228,13 @@ const Ja = (e) => (t) => {
5228
5228
  }
5229
5229
  ]
5230
5230
  };
5231
- "programs" in e.renderer.instance.info && a.state.push({
5231
+ "programs" in e.renderer.instance.info && u.state.push({
5232
5232
  key: "Programs",
5233
5233
  value: e.renderer.instance.info.programs?.map((l) => ({
5234
5234
  ...l,
5235
5235
  programName: l.name
5236
5236
  }))
5237
- }), r.state = a;
5237
+ }), r.state = u;
5238
5238
  }
5239
5239
  } else if (r.nodeId.includes("context")) {
5240
5240
  const i = r.nodeId.match(/^context-([^-]+(?:-[^-]+)*)-(.+)$/), s = i ? i[2] : "context";
@@ -5248,15 +5248,15 @@ const Ja = (e) => (t) => {
5248
5248
  };
5249
5249
  return;
5250
5250
  }
5251
- const u = s.split(".");
5252
- let a = e;
5253
- for (const l of u) {
5254
- if (!a || typeof a != "object")
5251
+ const a = s.split(".");
5252
+ let u = e;
5253
+ for (const l of a) {
5254
+ if (!u || typeof u != "object")
5255
5255
  break;
5256
- a = me(a[l]) ? a[l].value : a[l];
5256
+ u = me(u[l]) ? u[l].value : u[l];
5257
5257
  }
5258
- a !== void 0 && (r.state = {
5259
- object: Object.entries(a).filter(([l]) => !l.startsWith("_") && l !== "parent").map(([l, c]) => me(c) ? {
5258
+ u !== void 0 && (r.state = {
5259
+ object: Object.entries(u).filter(([l]) => !l.startsWith("_") && l !== "parent").map(([l, c]) => me(c) ? {
5260
5260
  key: l,
5261
5261
  value: c.value,
5262
5262
  editable: !1
@@ -5275,31 +5275,31 @@ const Ja = (e) => (t) => {
5275
5275
  })
5276
5276
  });
5277
5277
  }
5278
- }, tl = (e, t, n, r) => {
5278
+ }, el = (e, t, n, r) => {
5279
5279
  const o = To(e, t);
5280
5280
  if (!o) {
5281
5281
  console.warn("Object with UUID not found in the scene.");
5282
5282
  return;
5283
5283
  }
5284
5284
  let i = o;
5285
- for (let u = 0; u < n.length - 1; u++)
5286
- if (i[n[u]] !== void 0)
5287
- i = i[n[u]];
5285
+ for (let a = 0; a < n.length - 1; a++)
5286
+ if (i[n[a]] !== void 0)
5287
+ i = i[n[a]];
5288
5288
  else {
5289
5289
  console.warn(`Property path is not valid: ${n.join(".")}`);
5290
5290
  return;
5291
5291
  }
5292
5292
  const s = n[n.length - 1];
5293
5293
  i[s] !== void 0 ? i[s] = r : console.warn(`Property path is not valid: ${n.join(".")}`);
5294
- }, nl = (e) => (t) => {
5294
+ }, tl = (e) => (t) => {
5295
5295
  if (t.inspectorId === we && t.nodeId.includes("scene")) {
5296
5296
  const n = t.nodeId.match(/^scene-(.+)$/), r = n ? n[1] : null;
5297
5297
  if (!r)
5298
5298
  return;
5299
- tl(e.scene.value, r, t.path, t.state.value);
5299
+ el(e.scene.value, r, t.path, t.state.value);
5300
5300
  }
5301
5301
  }, we = "tres:inspector";
5302
- function rl(e, t) {
5302
+ function nl(e, t) {
5303
5303
  const n = {
5304
5304
  id: "dev.esm.tres",
5305
5305
  label: "TresJS 🪐",
@@ -5308,10 +5308,10 @@ function rl(e, t) {
5308
5308
  homepage: "https://docs.tresjs.org",
5309
5309
  app: e
5310
5310
  }, r = null, o = null;
5311
- Xa(t), fa(
5311
+ qu(t), cu(
5312
5312
  n,
5313
5313
  (i) => {
5314
- typeof i.now != "function" && Ya(
5314
+ typeof i.now != "function" && Gu(
5315
5315
  "You seem to be using an outdated version of Vue Devtools. Are you still using the Beta release instead of the stable one? You can find the links at https://devtools.vuejs.org/guide/installation.html."
5316
5316
  ), i.addInspector({
5317
5317
  id: we,
@@ -5322,14 +5322,14 @@ function rl(e, t) {
5322
5322
  i.sendInspectorTree(we);
5323
5323
  }, 1e3), setInterval(() => {
5324
5324
  i.notifyComponentUpdate();
5325
- }, 5e3), i.on.getInspectorTree(Ja(t)), i.on.getInspectorState(el(t, {
5325
+ }, 5e3), i.on.getInspectorTree(Zu(t)), i.on.getInspectorState(Ju(t, {
5326
5326
  highlightMesh: r,
5327
5327
  prevInstance: o
5328
- })), i.on.editInspectorState(nl(t));
5328
+ })), i.on.editInspectorState(tl(t));
5329
5329
  }
5330
5330
  );
5331
5331
  }
5332
- const ol = ["data-scene", "data-tres"], il = /* @__PURE__ */ ot({
5332
+ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
5333
5333
  __name: "TresCanvas",
5334
5334
  props: {
5335
5335
  camera: {},
@@ -5359,42 +5359,42 @@ const ol = ["data-scene", "data-tres"], il = /* @__PURE__ */ ot({
5359
5359
  },
5360
5360
  emits: ["ready", "pointermissed", "render", "beforeLoop", "loop", "click", "contextmenu", "pointermove", "pointerenter", "pointerleave", "pointerover", "pointerout", "dblclick", "pointerdown", "pointerup", "pointercancel", "lostpointercapture", "wheel"],
5361
5361
  setup(e, { expose: t, emit: n }) {
5362
- const r = e, o = n, i = ko(), s = Ae(), u = it(new yr()), a = $t();
5362
+ const r = e, o = n, i = ko(), s = Ae(), a = it(new yr()), u = $t();
5363
5363
  pt(vr);
5364
- const l = (h, v = !1) => ot({
5364
+ const l = (_, v = !1) => ot({
5365
5365
  setup() {
5366
5366
  const p = $t()?.appContext;
5367
- p && (p.app = a?.appContext.app);
5367
+ p && (p.app = u?.appContext.app);
5368
5368
  const g = {};
5369
- function b(C) {
5370
- C && (C.parent && b(C.parent), C.provides && Object.assign(g, C.provides));
5369
+ function C(b) {
5370
+ b && (b.parent && C(b.parent), b.provides && Object.assign(g, b.provides));
5371
5371
  }
5372
- return a?.parent && r.enableProvideBridge && (b(a.parent), Reflect.ownKeys(g).forEach((C) => {
5373
- qe(C, g[C]);
5374
- })), qe(Rs, h), qe("extend", pt), typeof window < "u" && p?.app && rl(p?.app, h), () => Wt(No, null, v ? [] : i.default());
5372
+ return u?.parent && r.enableProvideBridge && (C(u.parent), Reflect.ownKeys(g).forEach((b) => {
5373
+ qe(b, g[b]);
5374
+ })), qe(xs, _), qe("extend", pt), typeof window < "u" && p?.app && nl(p?.app, _), () => Wt(No, null, v ? [] : i.default());
5375
5375
  }
5376
- }), c = (h, v = !1) => {
5377
- const p = l(h, v), { render: g } = Mo(Us(h));
5378
- g(Wt(p), u.value);
5379
- }, f = (h, v = !1) => {
5380
- Ne(h.scene.value), v && (h.renderer.instance.dispose(), h.renderer.instance instanceof br && (h.renderer.instance.renderLists.dispose(), h.renderer.instance.forceContextLoss())), u.value.__tres = {
5381
- root: h
5376
+ }), c = (_, v = !1) => {
5377
+ const p = l(_, v), { render: g } = Mo(Bs(_));
5378
+ g(Wt(p), a.value);
5379
+ }, f = (_, v = !1) => {
5380
+ Ne(_.scene.value), v && (_.renderer.instance.dispose(), _.renderer.instance instanceof Cr && (_.renderer.instance.renderLists.dispose(), _.renderer.instance.forceContextLoss())), a.value.__tres = {
5381
+ root: _
5382
5382
  };
5383
- }, _ = it(null);
5384
- t({ context: _, dispose: () => f(_.value, !0) });
5383
+ }, h = it(null);
5384
+ t({ context: h, dispose: () => f(h.value, !0) });
5385
5385
  const d = () => {
5386
- f(_.value), c(_.value, !0);
5386
+ f(h.value), c(h.value, !0);
5387
5387
  };
5388
5388
  return Kt(() => {
5389
- const h = s;
5390
- _.value = Ls({
5391
- scene: u.value,
5392
- canvas: h,
5389
+ const _ = s;
5390
+ h.value = Rs({
5391
+ scene: a.value,
5392
+ canvas: _,
5393
5393
  windowSize: r.windowSize ?? !1,
5394
5394
  rendererOptions: r
5395
5395
  });
5396
- const { camera: v, renderer: p } = _.value, { registerCamera: g, cameras: b, activeCamera: C, deregisterCamera: P } = v;
5397
- c(_.value);
5396
+ const { camera: v, renderer: p } = h.value, { registerCamera: g, cameras: C, activeCamera: b, deregisterCamera: P } = v;
5397
+ c(h.value);
5398
5398
  const M = () => {
5399
5399
  const A = new qo(
5400
5400
  45,
@@ -5404,73 +5404,73 @@ const ol = ["data-scene", "data-tres"], il = /* @__PURE__ */ ot({
5404
5404
  );
5405
5405
  A.position.set(3, 3, 3), A.lookAt(0, 0, 0), g(A);
5406
5406
  const O = $(() => {
5407
- b.value.length >= 2 && (A.removeFromParent(), P(A), O?.());
5407
+ C.value.length >= 2 && (A.removeFromParent(), P(A), O?.());
5408
5408
  });
5409
5409
  };
5410
- _.value.events.onPointerMissed((A) => {
5410
+ h.value.events.onPointerMissed((A) => {
5411
5411
  o("pointermissed", A);
5412
5412
  }), At(
5413
5413
  () => r.camera,
5414
5414
  (A, O) => {
5415
- A && g(D(A), !0), O && (D(O).removeFromParent(), P(D(O)));
5415
+ A && g(I(A), !0), O && (I(O).removeFromParent(), P(I(O)));
5416
5416
  },
5417
5417
  {
5418
5418
  immediate: !0
5419
5419
  }
5420
- ), C.value || M(), p.onRender(() => {
5421
- _.value && o("render", _.value);
5420
+ ), b.value || M(), p.onRender(() => {
5421
+ h.value && o("render", h.value);
5422
5422
  }), p.loop.onLoop((A) => {
5423
- _.value && o("loop", { ..._.value, ...A });
5423
+ h.value && o("loop", { ...h.value, ...A });
5424
5424
  }), p.loop.onBeforeLoop((A) => {
5425
- _.value && o("beforeLoop", { ..._.value, ...A });
5425
+ h.value && o("beforeLoop", { ...h.value, ...A });
5426
5426
  }), p.onReady(() => {
5427
- o("ready", _.value);
5427
+ o("ready", h.value);
5428
5428
  });
5429
5429
  }), Kt(async () => {
5430
- await hi(3e3), _.value && (!_.value.sizes.width || !_.value.sizes.height.value) && console.warn("TresCanvas: The canvas has no area, so nothing can be rendered. Set it manually on the parent element or use the prop windowSize.");
5431
- }), ie(d), (h, v) => (Ro(), xo("canvas", {
5430
+ await hi(3e3), h.value && (!h.value.sizes.width || !h.value.sizes.height.value) && console.warn("TresCanvas: The canvas has no area, so nothing can be rendered. Set it manually on the parent element or use the prop windowSize.");
5431
+ }), ie(d), (_, v) => (Ro(), xo("canvas", {
5432
5432
  ref_key: "canvasRef",
5433
5433
  ref: s,
5434
- "data-scene": u.value.uuid,
5435
- class: Fo(h.$attrs.class),
5436
- "data-tres": `tresjs ${ke(Mi).version}`,
5434
+ "data-scene": a.value.uuid,
5435
+ class: Fo(_.$attrs.class),
5436
+ "data-tres": `tresjs ${ke(Fi).version}`,
5437
5437
  style: Lo({
5438
5438
  display: "block",
5439
5439
  width: "100%",
5440
5440
  height: "100%",
5441
- position: h.windowSize ? "fixed" : "relative",
5441
+ position: e.windowSize ? "fixed" : "relative",
5442
5442
  top: 0,
5443
5443
  left: 0,
5444
5444
  pointerEvents: "auto",
5445
5445
  touchAction: "none",
5446
- ...h.$attrs.style
5446
+ ..._.$attrs.style
5447
5447
  })
5448
- }, null, 14, ol));
5448
+ }, null, 14, rl));
5449
5449
  }
5450
5450
  });
5451
- function gl(e) {
5452
- return typeof e == "number" ? [e, e, e] : e instanceof I ? [e.x, e.y, e.z] : e;
5451
+ function ml(e) {
5452
+ return typeof e == "number" ? [e, e, e] : e instanceof D ? [e.x, e.y, e.z] : e;
5453
5453
  }
5454
- function El(e) {
5454
+ function gl(e) {
5455
5455
  return e instanceof xe ? e : Array.isArray(e) ? new xe(...e) : new xe(e);
5456
5456
  }
5457
- const sl = [
5457
+ const il = [
5458
5458
  "TresCanvas",
5459
5459
  "TresLeches",
5460
5460
  "TresScene"
5461
- ], vl = {
5461
+ ], El = {
5462
5462
  template: {
5463
5463
  compilerOptions: {
5464
- isCustomElement: (e) => e.startsWith("Tres") && !sl.includes(e) || e === "primitive"
5464
+ isCustomElement: (e) => (/^Tres[A-Z]/.test(e) || e.startsWith("tres-")) && !il.includes(e) || e === "primitive"
5465
5465
  }
5466
5466
  }
5467
5467
  };
5468
5468
  let q = null;
5469
- const yl = {
5469
+ const vl = {
5470
5470
  updated: (e, t) => {
5471
5471
  const r = ((i) => {
5472
5472
  let s = i.value;
5473
- return i.value && $e(i.value) && (s = i.value.position), Array.isArray(i.value) && (s = new I(...s)), s;
5473
+ return i.value && $e(i.value) && (s = i.value.position), Array.isArray(i.value) && (s = new D(...s)), s;
5474
5474
  })(t);
5475
5475
  if (!r) {
5476
5476
  Me(`v-distance-to: problem with binding value: ${t.value}`);
@@ -5496,8 +5496,8 @@ class Po extends Qo {
5496
5496
  o.setAttribute("position", new Yt(r, 3)), o.computeBoundingSphere();
5497
5497
  const i = new Zo({ fog: !1 });
5498
5498
  super(o, i), this.light = t, this.color = n, this.type = "RectAreaLightHelper";
5499
- const s = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], u = new Gt();
5500
- u.setAttribute("position", new Yt(s, 3)), u.computeBoundingSphere(), this.add(new He(u, new Ar({ side: Jo, fog: !1 })));
5499
+ const s = [1, 1, 0, -1, 1, 0, -1, -1, 0, 1, 1, 0, -1, -1, 0, 1, -1, 0], a = new Gt();
5500
+ a.setAttribute("position", new Yt(s, 3)), a.computeBoundingSphere(), this.add(new He(a, new Ar({ side: Jo, fog: !1 })));
5501
5501
  }
5502
5502
  updateMatrixWorld() {
5503
5503
  if (this.scale.set(0.5 * this.light.width, 0.5 * this.light.height, 1), this.color !== void 0)
@@ -5513,30 +5513,30 @@ class Po extends Qo {
5513
5513
  this.geometry.dispose(), this.material.dispose(), this.children[0].geometry.dispose(), this.children[0].material.dispose();
5514
5514
  }
5515
5515
  }
5516
- let Ie, W;
5517
- const ul = {
5516
+ let De, W;
5517
+ const sl = {
5518
5518
  DirectionalLight: ri,
5519
5519
  PointLight: ni,
5520
5520
  SpotLight: ti,
5521
5521
  HemisphereLight: ei,
5522
5522
  RectAreaLight: Po
5523
- }, bl = {
5523
+ }, yl = {
5524
5524
  mounted: (e) => {
5525
5525
  if (!Rr(e)) {
5526
5526
  Me(`${e.type} is not a light`);
5527
5527
  return;
5528
5528
  }
5529
- Ie = ul[e.type], e.parent?.add(new Ie(e, 1, e.color.getHex()));
5529
+ De = sl[e.type], e.parent?.add(new De(e, 1, e.color.getHex()));
5530
5530
  },
5531
5531
  updated: (e) => {
5532
- W = e.parent.children.find((t) => t instanceof Ie), !(W instanceof Po) && W.update();
5532
+ W = e.parent.children.find((t) => t instanceof De), !(W instanceof Po) && W.update();
5533
5533
  },
5534
5534
  unmounted: (e) => {
5535
5535
  if (!e.isLight) {
5536
5536
  Me(`${e.type} is not a light`);
5537
5537
  return;
5538
5538
  }
5539
- W = e.parent.children.find((t) => t instanceof Ie), W && W.dispose && W.dispose(), e.parent && e.parent.remove(W);
5539
+ W = e.parent.children.find((t) => t instanceof De), W && W.dispose && W.dispose(), e.parent && e.parent.remove(W);
5540
5540
  }
5541
5541
  }, Cl = {
5542
5542
  mounted: (e, t) => {
@@ -5546,58 +5546,58 @@ const ul = {
5546
5546
  }
5547
5547
  console.log("v-log", e);
5548
5548
  }
5549
- }, wl = {
5549
+ }, bl = {
5550
5550
  install(e) {
5551
- e.component("TresCanvas", il);
5551
+ e.component("TresCanvas", ol);
5552
5552
  }
5553
5553
  };
5554
5554
  export {
5555
- js as DevtoolsMessenger,
5556
- il as TresCanvas,
5557
- hl as UseLoader,
5558
- ts as buildGraph,
5555
+ Hs as DevtoolsMessenger,
5556
+ ol as TresCanvas,
5557
+ pl as UseLoader,
5558
+ es as buildGraph,
5559
5559
  dt as catalogue,
5560
- wl as default,
5560
+ bl as default,
5561
5561
  Ne as dispose,
5562
5562
  pt as extend,
5563
5563
  kr as isBufferGeometry,
5564
5564
  Pr as isCamera,
5565
- Ki as isClassInstance,
5566
- Ir as isColor,
5567
- zi as isColorRepresentation,
5568
- $i as isCopyable,
5565
+ $i as isClassInstance,
5566
+ Dr as isColor,
5567
+ ji as isColorRepresentation,
5568
+ zi as isCopyable,
5569
5569
  Lr as isFog,
5570
- fl as isGroup,
5570
+ cl as isGroup,
5571
5571
  Zt as isLayers,
5572
5572
  Rr as isLight,
5573
5573
  xr as isMaterial,
5574
5574
  $e as isMesh,
5575
5575
  lt as isObject3D,
5576
- ji as isOrthographicCamera,
5577
- Dr as isPerspectiveCamera,
5578
- dl as isProd,
5576
+ Hi as isOrthographicCamera,
5577
+ Ir as isPerspectiveCamera,
5578
+ fl as isProd,
5579
5579
  Fr as isScene,
5580
5580
  re as isTresCamera,
5581
- Yi as isTresInstance,
5582
- Wi as isTresObject,
5583
- Gi as isTresPrimitive,
5581
+ Gi as isTresInstance,
5582
+ Ki as isTresObject,
5583
+ Wi as isTresPrimitive,
5584
5584
  ct as isVectorLike,
5585
5585
  Jt as logError,
5586
- pl as logMessage,
5586
+ dl as logMessage,
5587
5587
  Me as logWarning,
5588
- El as normalizeColor,
5589
- gl as normalizeVectorFlexibleParam,
5590
- rl as registerTresDevtools,
5591
- vl as templateCompilerOptions,
5592
- es as useCameraManager,
5593
- _l as useGraph,
5594
- Ji as useLoader,
5595
- ml as useLoop,
5596
- os as useRendererManager,
5597
- Ms as useTres,
5588
+ gl as normalizeColor,
5589
+ ml as normalizeVectorFlexibleParam,
5590
+ nl as registerTresDevtools,
5591
+ El as templateCompilerOptions,
5592
+ Ji as useCameraManager,
5593
+ hl as useGraph,
5594
+ Zi as useLoader,
5595
+ _l as useLoop,
5596
+ rs as useRendererManager,
5597
+ Fs as useTres,
5598
5598
  zr as useTresContext,
5599
- Ls as useTresContextProvider,
5600
- yl as vDistanceTo,
5601
- bl as vLightHelper,
5599
+ Rs as useTresContextProvider,
5600
+ vl as vDistanceTo,
5601
+ yl as vLightHelper,
5602
5602
  Cl as vLog
5603
5603
  };