@tresjs/core 5.0.3 → 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/src/utils/index.d.ts +2 -2
- package/dist/src/utils/is/tres.d.ts +1 -1
- package/dist/tres.js +283 -282
- package/package.json +6 -25
package/dist/tres.js
CHANGED
|
@@ -1,23 +1,23 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* name: tresjs
|
|
3
|
-
* version:
|
|
2
|
+
* name: @tresjs/core
|
|
3
|
+
* version: v5.1.0
|
|
4
4
|
* (c) 2025
|
|
5
|
-
* description:
|
|
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 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
|
|
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
|
|
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
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",
|
|
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
|
-
type:
|
|
15
|
-
version:
|
|
14
|
+
type: mi,
|
|
15
|
+
version: gi,
|
|
16
16
|
packageManager: Ei,
|
|
17
17
|
description: vi,
|
|
18
18
|
author: yi,
|
|
19
|
-
license:
|
|
20
|
-
repository:
|
|
19
|
+
license: Ci,
|
|
20
|
+
repository: bi,
|
|
21
21
|
keywords: wi,
|
|
22
22
|
sideEffects: Ai,
|
|
23
23
|
exports: Ti,
|
|
@@ -369,7 +369,7 @@ function rs({
|
|
|
369
369
|
scene: e,
|
|
370
370
|
camera: o,
|
|
371
371
|
canvas: t
|
|
372
|
-
}) : new
|
|
372
|
+
}) : new Cr({
|
|
373
373
|
...n,
|
|
374
374
|
canvas: ui(t)
|
|
375
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) => {
|
|
@@ -383,10 +383,10 @@ function rs({
|
|
|
383
383
|
}, d = () => {
|
|
384
384
|
I(n.renderMode) === "on-demand" && f();
|
|
385
385
|
}, _ = J(() => I(n.renderMode) === "always"), v = (E) => Tt(E) && "isRenderer" in E && !!E.isRenderer, p = Ee();
|
|
386
|
-
let
|
|
386
|
+
let g = !1;
|
|
387
387
|
v(s) && (s.init(), p.trigger(s));
|
|
388
|
-
const
|
|
389
|
-
a.value = _.value ? 1 : Math.max(0, a.value - 1),
|
|
388
|
+
const C = Ee(), b = () => {
|
|
389
|
+
a.value = _.value ? 1 : Math.max(0, a.value - 1), C.trigger(s);
|
|
390
390
|
};
|
|
391
391
|
let P = (E) => {
|
|
392
392
|
o.activeCamera.value && (s.render(e.value, o.activeCamera.value), E());
|
|
@@ -394,10 +394,10 @@ function rs({
|
|
|
394
394
|
const M = (E) => {
|
|
395
395
|
P = E;
|
|
396
396
|
}, A = ns(() => {
|
|
397
|
-
a.value && P(
|
|
397
|
+
a.value && P(b);
|
|
398
398
|
});
|
|
399
399
|
p.on(A.start), At([r.width, r.height], () => {
|
|
400
|
-
s.setSize(r.width.value, r.height.value), !
|
|
400
|
+
s.setSize(r.width.value, r.height.value), !g && s.domElement.width && s.domElement.height && (p.trigger(s), g = !0), d();
|
|
401
401
|
}, {
|
|
402
402
|
immediate: !0
|
|
403
403
|
});
|
|
@@ -442,7 +442,7 @@ function rs({
|
|
|
442
442
|
instance: s,
|
|
443
443
|
advance: h,
|
|
444
444
|
onReady: p.on,
|
|
445
|
-
onRender:
|
|
445
|
+
onRender: C.on,
|
|
446
446
|
invalidate: f,
|
|
447
447
|
canBeInvalidated: l,
|
|
448
448
|
mode: I(n.renderMode),
|
|
@@ -795,8 +795,8 @@ function Hr(e, t, n, r = !1, o, i, s) {
|
|
|
795
795
|
Qe(n[p], t, l, c, f);
|
|
796
796
|
else if (typeof h == "function")
|
|
797
797
|
for (let p = 0; p < d; p++) {
|
|
798
|
-
const
|
|
799
|
-
h(
|
|
798
|
+
const g = n[p];
|
|
799
|
+
h(g) && Qe(g, t, l, c, f);
|
|
800
800
|
}
|
|
801
801
|
if (t.children.length === 0 || t.intersectChildren === !1)
|
|
802
802
|
return;
|
|
@@ -851,11 +851,11 @@ function _s(e, t, n, r, o, i = 0) {
|
|
|
851
851
|
localPoint: s
|
|
852
852
|
};
|
|
853
853
|
}
|
|
854
|
-
function
|
|
854
|
+
function ms(e, t, n) {
|
|
855
855
|
for (; n > 0; )
|
|
856
856
|
e.push(t), --n;
|
|
857
857
|
}
|
|
858
|
-
const Ze = Symbol("buttonsDownTime"),
|
|
858
|
+
const Ze = Symbol("buttonsDownTime"), gs = Symbol("buttonsClickTime");
|
|
859
859
|
globalThis.pointerEventspointerMap ??= /* @__PURE__ */ new Map();
|
|
860
860
|
je.prototype.setPointerCapture = function(e) {
|
|
861
861
|
St(e)?.setCapture(this);
|
|
@@ -996,7 +996,7 @@ class Es {
|
|
|
996
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)
|
|
997
997
|
return;
|
|
998
998
|
N(new L("click", !0, t, this, this.intersection, a));
|
|
999
|
-
const { object: u } = this.intersection, l = u[
|
|
999
|
+
const { object: u } = this.intersection, l = u[gs] ??= /* @__PURE__ */ new Map(), c = l.get(t.button);
|
|
1000
1000
|
if (c == null || t.timeStamp - c > o) {
|
|
1001
1001
|
l.set(t.button, t.timeStamp);
|
|
1002
1002
|
return;
|
|
@@ -1050,19 +1050,19 @@ function vs(e, t, n, r, o) {
|
|
|
1050
1050
|
return !(i == null || r - i > o || i != e.get(n));
|
|
1051
1051
|
}
|
|
1052
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();
|
|
1053
|
-
function
|
|
1053
|
+
function Cs(e, t, n) {
|
|
1054
1054
|
Pe.copy(t).applyMatrix4(ys.copy(n.matrixWorld).invert());
|
|
1055
1055
|
const r = n.geometry.attributes.uv;
|
|
1056
|
-
if (r == null || !(r instanceof
|
|
1056
|
+
if (r == null || !(r instanceof br))
|
|
1057
1057
|
return !1;
|
|
1058
1058
|
let o;
|
|
1059
|
-
return
|
|
1059
|
+
return bs(n, (i, s, a) => {
|
|
1060
1060
|
n.getVertexPosition(i, he.a), n.getVertexPosition(s, he.b), n.getVertexPosition(a, he.c);
|
|
1061
1061
|
const u = he.closestPointToPoint(Pe, et).distanceTo(Pe);
|
|
1062
1062
|
o != null && u >= o || (o = u, Je.copy(he), an.fromBufferAttribute(r, i), un.fromBufferAttribute(r, s), ln.fromBufferAttribute(r, a));
|
|
1063
1063
|
}), o == null ? !1 : (Je.closestPointToPoint(Pe, et), Je.getInterpolation(et, an, un, ln, e), !0);
|
|
1064
1064
|
}
|
|
1065
|
-
function
|
|
1065
|
+
function bs(e, t) {
|
|
1066
1066
|
const n = e.geometry.drawRange;
|
|
1067
1067
|
if (e.geometry.index != null) {
|
|
1068
1068
|
const s = e.geometry.index, a = Math.max(0, n.start), u = Math.min(s.count, n.start + n.count);
|
|
@@ -1117,7 +1117,7 @@ class Ts {
|
|
|
1117
1117
|
return t;
|
|
1118
1118
|
t.object.updateWorldMatrix(!0, !1), cs(this.viewPlane, t, t.object.matrixWorld);
|
|
1119
1119
|
let s = t.uv;
|
|
1120
|
-
return t.object instanceof He &&
|
|
1120
|
+
return t.object instanceof He && Cs(fn, i, t.object) && (s = fn.clone()), {
|
|
1121
1121
|
...t,
|
|
1122
1122
|
details: {
|
|
1123
1123
|
...o,
|
|
@@ -1138,7 +1138,7 @@ class Ts {
|
|
|
1138
1138
|
}
|
|
1139
1139
|
executeIntersection(t, n) {
|
|
1140
1140
|
const r = this.intersects.length;
|
|
1141
|
-
t.raycast(this.raycaster, this.intersects),
|
|
1141
|
+
t.raycast(this.raycaster, this.intersects), ms(this.pointerEventsOrders, n, this.intersects.length - r);
|
|
1142
1142
|
}
|
|
1143
1143
|
finalizeIntersection(t) {
|
|
1144
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];
|
|
@@ -1232,10 +1232,10 @@ function Ds(e, t, n, r, o, i, s = {}) {
|
|
|
1232
1232
|
}, p = (O, T) => {
|
|
1233
1233
|
const E = c(T, O);
|
|
1234
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
|
-
},
|
|
1236
|
-
return e.addEventListener("pointermove",
|
|
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), {
|
|
1237
1237
|
destroy() {
|
|
1238
|
-
e.removeEventListener("pointermove",
|
|
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();
|
|
1239
1239
|
},
|
|
1240
1240
|
update() {
|
|
1241
1241
|
const O = _.length;
|
|
@@ -1393,25 +1393,26 @@ const Ns = [
|
|
|
1393
1393
|
function n(c, f, h, d) {
|
|
1394
1394
|
if (d || (d = {}), d.args || (d.args = []), Vi(c))
|
|
1395
1395
|
return null;
|
|
1396
|
+
c.includes("-") && (c = c.replace(/-([a-z])/g, (p, g) => g.toUpperCase()).replace(/^[a-z]/, (p) => p.toUpperCase()));
|
|
1396
1397
|
let _ = c.replace("Tres", ""), v;
|
|
1397
1398
|
if (c === "primitive") {
|
|
1398
|
-
(!Tt(d.object) ||
|
|
1399
|
+
(!Tt(d.object) || me(d.object)) && Jt(
|
|
1399
1400
|
"Tres primitives need an 'object' prop, whose value is an object or shallowRef<object>"
|
|
1400
1401
|
), _ = d.object.type;
|
|
1401
1402
|
const p = {};
|
|
1402
1403
|
v = Ms(
|
|
1403
1404
|
d.object,
|
|
1404
1405
|
{
|
|
1405
|
-
object: (
|
|
1406
|
+
object: (C) => C,
|
|
1406
1407
|
isPrimitive: () => !0,
|
|
1407
1408
|
__tres: () => p
|
|
1408
1409
|
},
|
|
1409
1410
|
{
|
|
1410
|
-
object: (
|
|
1411
|
-
Qi(
|
|
1411
|
+
object: (C, b, P, M) => {
|
|
1412
|
+
Qi(C, P, M, { patchProp: i, remove: o, insert: r }, e);
|
|
1412
1413
|
},
|
|
1413
|
-
__tres: (
|
|
1414
|
-
Object.assign(p,
|
|
1414
|
+
__tres: (C) => {
|
|
1415
|
+
Object.assign(p, C);
|
|
1415
1416
|
}
|
|
1416
1417
|
}
|
|
1417
1418
|
);
|
|
@@ -1460,8 +1461,8 @@ const Ns = [
|
|
|
1460
1461
|
let _ = c;
|
|
1461
1462
|
const v = f;
|
|
1462
1463
|
if (c.__tres && (c.__tres.memoizedProps[f] = d), f === "attach") {
|
|
1463
|
-
const
|
|
1464
|
-
o(c), X(c, { attach: d }, e),
|
|
1464
|
+
const b = c.__tres?.parent || c.parent;
|
|
1465
|
+
o(c), X(c, { attach: d }, e), b && r(c, b);
|
|
1465
1466
|
return;
|
|
1466
1467
|
}
|
|
1467
1468
|
if (f === "dispose") {
|
|
@@ -1469,19 +1470,19 @@ const Ns = [
|
|
|
1469
1470
|
return;
|
|
1470
1471
|
}
|
|
1471
1472
|
pn(f) && Q(d) && c.addEventListener(Vs[f], d);
|
|
1472
|
-
let p = Qt(v),
|
|
1473
|
+
let p = Qt(v), g = _?.[p];
|
|
1473
1474
|
if (v === "args") {
|
|
1474
|
-
const
|
|
1475
|
+
const b = c, P = h ?? [], M = d ?? [], A = c.__tres?.type || c.type;
|
|
1475
1476
|
if (A && P.length && !Or(P, M)) {
|
|
1476
1477
|
const O = new dt.value[A](...d), T = Object.getOwnPropertyDescriptors(O);
|
|
1477
1478
|
Object.entries(T).forEach(([E, x]) => {
|
|
1478
|
-
if (!(!x.writable && !x.set) && E in
|
|
1479
|
+
if (!(!x.writable && !x.set) && E in b)
|
|
1479
1480
|
try {
|
|
1480
|
-
|
|
1481
|
+
b[E] = O[E];
|
|
1481
1482
|
} catch (R) {
|
|
1482
1483
|
console.warn(`Could not set property ${E} on ${A}:`, R);
|
|
1483
1484
|
}
|
|
1484
|
-
}), _ =
|
|
1485
|
+
}), _ = b;
|
|
1485
1486
|
}
|
|
1486
1487
|
return;
|
|
1487
1488
|
}
|
|
@@ -1490,23 +1491,23 @@ const Ns = [
|
|
|
1490
1491
|
return;
|
|
1491
1492
|
_.setAttribute(
|
|
1492
1493
|
Qt(v),
|
|
1493
|
-
new
|
|
1494
|
+
new br(...d)
|
|
1494
1495
|
);
|
|
1495
1496
|
return;
|
|
1496
1497
|
}
|
|
1497
|
-
if (v.includes("-") &&
|
|
1498
|
-
const
|
|
1499
|
-
if (
|
|
1500
|
-
|
|
1498
|
+
if (v.includes("-") && g === void 0) {
|
|
1499
|
+
const b = Ve(_, v);
|
|
1500
|
+
if (g = b.target, _ = b.target, p = b.key, g && p) {
|
|
1501
|
+
g[p] = d, re(c) && c.updateProjectionMatrix(), ft(c);
|
|
1501
1502
|
return;
|
|
1502
1503
|
}
|
|
1503
1504
|
}
|
|
1504
|
-
let
|
|
1505
|
-
if (
|
|
1506
|
-
pn(f) || (Array.isArray(
|
|
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);
|
|
1507
1508
|
return;
|
|
1508
1509
|
}
|
|
1509
|
-
Zt(
|
|
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);
|
|
1510
1511
|
}
|
|
1511
1512
|
function s(c) {
|
|
1512
1513
|
return c?.__tres?.parent || null;
|
|
@@ -1633,8 +1634,8 @@ var js = Object.create, $r = Object.defineProperty, zs = Object.getOwnPropertyDe
|
|
|
1633
1634
|
function u(f, h) {
|
|
1634
1635
|
const d = Object.keys(f), _ = new Array(d.length);
|
|
1635
1636
|
for (let v = 0; v < d.length; v++) {
|
|
1636
|
-
const p = d[v],
|
|
1637
|
-
typeof
|
|
1637
|
+
const p = d[v], g = f[p];
|
|
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);
|
|
1638
1639
|
}
|
|
1639
1640
|
return _;
|
|
1640
1641
|
}
|
|
@@ -1673,17 +1674,17 @@ var js = Object.create, $r = Object.defineProperty, zs = Object.getOwnPropertyDe
|
|
|
1673
1674
|
return i.proto ? h : f;
|
|
1674
1675
|
function c(d, _) {
|
|
1675
1676
|
const v = Object.keys(d), p = new Array(v.length);
|
|
1676
|
-
for (let
|
|
1677
|
-
const
|
|
1678
|
-
if (typeof
|
|
1679
|
-
p[
|
|
1680
|
-
else if (
|
|
1681
|
-
p[
|
|
1682
|
-
else if (ArrayBuffer.isView(
|
|
1683
|
-
p[
|
|
1677
|
+
for (let g = 0; g < v.length; g++) {
|
|
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);
|
|
1684
1685
|
else {
|
|
1685
|
-
const P = s.indexOf(
|
|
1686
|
-
P !== -1 ? p[
|
|
1686
|
+
const P = s.indexOf(b);
|
|
1687
|
+
P !== -1 ? p[C] = a[P] : p[C] = _(b);
|
|
1687
1688
|
}
|
|
1688
1689
|
}
|
|
1689
1690
|
return p;
|
|
@@ -1705,8 +1706,8 @@ var js = Object.create, $r = Object.defineProperty, zs = Object.getOwnPropertyDe
|
|
|
1705
1706
|
else if (ArrayBuffer.isView(p))
|
|
1706
1707
|
_[v] = n(p);
|
|
1707
1708
|
else {
|
|
1708
|
-
const
|
|
1709
|
-
|
|
1709
|
+
const g = s.indexOf(p);
|
|
1710
|
+
g !== -1 ? _[v] = a[g] : _[v] = f(p);
|
|
1710
1711
|
}
|
|
1711
1712
|
}
|
|
1712
1713
|
return s.pop(), a.pop(), _;
|
|
@@ -1727,8 +1728,8 @@ var js = Object.create, $r = Object.defineProperty, zs = Object.getOwnPropertyDe
|
|
|
1727
1728
|
else if (ArrayBuffer.isView(p))
|
|
1728
1729
|
_[v] = n(p);
|
|
1729
1730
|
else {
|
|
1730
|
-
const
|
|
1731
|
-
|
|
1731
|
+
const g = s.indexOf(p);
|
|
1732
|
+
g !== -1 ? _[v] = a[g] : _[v] = h(p);
|
|
1732
1733
|
}
|
|
1733
1734
|
}
|
|
1734
1735
|
return s.pop(), a.pop(), _;
|
|
@@ -1935,12 +1936,12 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
1935
1936
|
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
1936
1937
|
Yr(n, "default", { value: e, enumerable: !0 }),
|
|
1937
1938
|
e
|
|
1938
|
-
)),
|
|
1939
|
+
)), m = pa({
|
|
1939
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"() {
|
|
1940
1941
|
}
|
|
1941
|
-
}),
|
|
1942
|
+
}), ma = qr({
|
|
1942
1943
|
"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/lib/speakingurl.js"(e, t) {
|
|
1943
|
-
|
|
1944
|
+
m(), (function(n) {
|
|
1944
1945
|
var r = {
|
|
1945
1946
|
// latin
|
|
1946
1947
|
À: "A",
|
|
@@ -3274,14 +3275,14 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
3274
3275
|
"∑": "tong",
|
|
3275
3276
|
"¤": "tien te"
|
|
3276
3277
|
}
|
|
3277
|
-
}, u = [";", "?", ":", "@", "&", "=", "+", "$", ",", "/"].join(""), l = [";", "?", ":", "@", "&", "=", "+", "$", ","].join(""), c = [".", "!", "~", "*", "'", "(", ")"].join(""), f = function(p,
|
|
3278
|
-
var
|
|
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 = "";
|
|
3279
3280
|
if (typeof p != "string")
|
|
3280
3281
|
return "";
|
|
3281
|
-
if (typeof
|
|
3282
|
-
O =
|
|
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) {
|
|
3283
3284
|
A[U + ""] = U + "";
|
|
3284
|
-
}), T = !0) : T = !!
|
|
3285
|
+
}), T = !0) : T = !!g.titleCase, g.custom && typeof g.custom.length == "number" && Array.prototype.toString.call(g.custom) && g.custom.forEach(function(U) {
|
|
3285
3286
|
A[U + ""] = U + "";
|
|
3286
3287
|
}), Object.keys(A).forEach(function(U) {
|
|
3287
3288
|
var pe;
|
|
@@ -3290,21 +3291,21 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
3290
3291
|
for (w in A)
|
|
3291
3292
|
K += w;
|
|
3292
3293
|
}
|
|
3293
|
-
for (K +=
|
|
3294
|
-
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 ||
|
|
3295
|
-
return T && (
|
|
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) {
|
|
3296
3297
|
var Ye = pe.toUpperCase() + (jt !== null ? jt : "");
|
|
3297
3298
|
return Object.keys(A).indexOf(Ye.toLowerCase()) < 0 ? Ye : Ye.toLowerCase();
|
|
3298
|
-
})),
|
|
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;
|
|
3299
3300
|
}, h = function(p) {
|
|
3300
|
-
return function(
|
|
3301
|
-
return f(
|
|
3301
|
+
return function(C) {
|
|
3302
|
+
return f(C, p);
|
|
3302
3303
|
};
|
|
3303
3304
|
}, d = function(p) {
|
|
3304
3305
|
return p.replace(/[-\\^$*+?.()|[\]{}\/]/g, "\\$&");
|
|
3305
3306
|
}, _ = function(v, p) {
|
|
3306
|
-
for (var
|
|
3307
|
-
if (p[
|
|
3307
|
+
for (var g in p)
|
|
3308
|
+
if (p[g] === v)
|
|
3308
3309
|
return !0;
|
|
3309
3310
|
};
|
|
3310
3311
|
if (typeof t < "u" && t.exports)
|
|
@@ -3322,19 +3323,19 @@ var la = Object.create, Yr = Object.defineProperty, ca = Object.getOwnPropertyDe
|
|
|
3322
3323
|
}
|
|
3323
3324
|
})(e);
|
|
3324
3325
|
}
|
|
3325
|
-
}),
|
|
3326
|
+
}), ga = qr({
|
|
3326
3327
|
"../../node_modules/.pnpm/speakingurl@14.0.1/node_modules/speakingurl/index.js"(e, t) {
|
|
3327
|
-
|
|
3328
|
+
m(), t.exports = ma();
|
|
3328
3329
|
}
|
|
3329
3330
|
});
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3337
|
-
|
|
3331
|
+
m();
|
|
3332
|
+
m();
|
|
3333
|
+
m();
|
|
3334
|
+
m();
|
|
3335
|
+
m();
|
|
3336
|
+
m();
|
|
3337
|
+
m();
|
|
3338
|
+
m();
|
|
3338
3339
|
function Ea(e) {
|
|
3339
3340
|
var t;
|
|
3340
3341
|
const n = e.name || e._componentTag || e.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ || e.__name;
|
|
@@ -3345,7 +3346,7 @@ function va(e) {
|
|
|
3345
3346
|
if (t)
|
|
3346
3347
|
return ea(ta(t, ".vue"));
|
|
3347
3348
|
}
|
|
3348
|
-
function
|
|
3349
|
+
function mn(e, t) {
|
|
3349
3350
|
return e.type.__VUE_DEVTOOLS_COMPONENT_GUSSED_NAME__ = t, t;
|
|
3350
3351
|
}
|
|
3351
3352
|
function Dt(e) {
|
|
@@ -3368,10 +3369,10 @@ function Ke(e) {
|
|
|
3368
3369
|
return "Root";
|
|
3369
3370
|
for (const s in (n = (t = e.parent) == null ? void 0 : t.type) == null ? void 0 : n.components)
|
|
3370
3371
|
if (e.parent.type.components[s] === e?.type)
|
|
3371
|
-
return
|
|
3372
|
+
return mn(e, s);
|
|
3372
3373
|
for (const s in (r = e.appContext) == null ? void 0 : r.components)
|
|
3373
3374
|
if (e.appContext.components[s] === e?.type)
|
|
3374
|
-
return
|
|
3375
|
+
return mn(e, s);
|
|
3375
3376
|
const i = va(e?.type || {});
|
|
3376
3377
|
return i || "Anonymous Component";
|
|
3377
3378
|
}
|
|
@@ -3383,7 +3384,7 @@ function ya(e) {
|
|
|
3383
3384
|
function _t(e, t) {
|
|
3384
3385
|
return t = t || `${e.id}:root`, e.instanceMap.get(t) || e.instanceMap.get(":root");
|
|
3385
3386
|
}
|
|
3386
|
-
function
|
|
3387
|
+
function Ca() {
|
|
3387
3388
|
const e = {
|
|
3388
3389
|
top: 0,
|
|
3389
3390
|
bottom: 0,
|
|
@@ -3399,11 +3400,11 @@ function ba() {
|
|
|
3399
3400
|
return e;
|
|
3400
3401
|
}
|
|
3401
3402
|
var Ie;
|
|
3402
|
-
function
|
|
3403
|
+
function ba(e) {
|
|
3403
3404
|
return Ie || (Ie = document.createRange()), Ie.selectNode(e), Ie.getBoundingClientRect();
|
|
3404
3405
|
}
|
|
3405
3406
|
function wa(e) {
|
|
3406
|
-
const t =
|
|
3407
|
+
const t = Ca();
|
|
3407
3408
|
if (!e.children)
|
|
3408
3409
|
return t;
|
|
3409
3410
|
for (let n = 0, r = e.children.length; n < r; n++) {
|
|
@@ -3413,7 +3414,7 @@ function wa(e) {
|
|
|
3413
3414
|
i = ee(o.component);
|
|
3414
3415
|
else if (o.el) {
|
|
3415
3416
|
const s = o.el;
|
|
3416
|
-
s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i =
|
|
3417
|
+
s.nodeType === 1 || s.getBoundingClientRect ? i = s.getBoundingClientRect() : s.nodeType === 3 && s.data.trim() && (i = ba(s));
|
|
3417
3418
|
}
|
|
3418
3419
|
i && Aa(t, i);
|
|
3419
3420
|
}
|
|
@@ -3422,7 +3423,7 @@ function wa(e) {
|
|
|
3422
3423
|
function Aa(e, t) {
|
|
3423
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;
|
|
3424
3425
|
}
|
|
3425
|
-
var
|
|
3426
|
+
var gn = {
|
|
3426
3427
|
top: 0,
|
|
3427
3428
|
left: 0,
|
|
3428
3429
|
right: 0,
|
|
@@ -3432,9 +3433,9 @@ var mn = {
|
|
|
3432
3433
|
};
|
|
3433
3434
|
function ee(e) {
|
|
3434
3435
|
const t = e.subTree.el;
|
|
3435
|
-
return typeof window > "u" ?
|
|
3436
|
+
return typeof window > "u" ? gn : Xr(e) ? wa(e.subTree) : t?.nodeType === 1 ? t?.getBoundingClientRect() : e.subTree.component ? ee(e.subTree.component) : gn;
|
|
3436
3437
|
}
|
|
3437
|
-
|
|
3438
|
+
m();
|
|
3438
3439
|
function kt(e) {
|
|
3439
3440
|
return Xr(e) ? Ta(e.subTree) : e.subTree ? [e.subTree.el] : [];
|
|
3440
3441
|
}
|
|
@@ -3533,32 +3534,32 @@ function no() {
|
|
|
3533
3534
|
const e = ce();
|
|
3534
3535
|
e && (e.style.display = "none");
|
|
3535
3536
|
}
|
|
3536
|
-
var
|
|
3537
|
-
function
|
|
3537
|
+
var mt = null;
|
|
3538
|
+
function gt(e) {
|
|
3538
3539
|
const t = e.target;
|
|
3539
3540
|
if (t) {
|
|
3540
3541
|
const n = t.__vueParentComponent;
|
|
3541
|
-
if (n && (
|
|
3542
|
+
if (n && (mt = n, n.vnode.el)) {
|
|
3542
3543
|
const o = ee(n), i = Ke(n);
|
|
3543
3544
|
ce() ? Lt({ bounds: o, name: i }) : Rt({ bounds: o, name: i });
|
|
3544
3545
|
}
|
|
3545
3546
|
}
|
|
3546
3547
|
}
|
|
3547
3548
|
function xa(e, t) {
|
|
3548
|
-
if (e.preventDefault(), e.stopPropagation(),
|
|
3549
|
-
const n = ya(
|
|
3549
|
+
if (e.preventDefault(), e.stopPropagation(), mt) {
|
|
3550
|
+
const n = ya(mt);
|
|
3550
3551
|
t(n);
|
|
3551
3552
|
}
|
|
3552
3553
|
}
|
|
3553
3554
|
var Ue = null;
|
|
3554
3555
|
function Ra() {
|
|
3555
|
-
no(), window.removeEventListener("mouseover",
|
|
3556
|
+
no(), window.removeEventListener("mouseover", gt), window.removeEventListener("click", Ue, !0), Ue = null;
|
|
3556
3557
|
}
|
|
3557
3558
|
function La() {
|
|
3558
|
-
return window.addEventListener("mouseover",
|
|
3559
|
+
return window.addEventListener("mouseover", gt), new Promise((e) => {
|
|
3559
3560
|
function t(n) {
|
|
3560
3561
|
n.preventDefault(), n.stopPropagation(), xa(n, (r) => {
|
|
3561
|
-
window.removeEventListener("click", t, !0), Ue = null, window.removeEventListener("mouseover",
|
|
3562
|
+
window.removeEventListener("click", t, !0), Ue = null, window.removeEventListener("mouseover", gt);
|
|
3562
3563
|
const o = ce();
|
|
3563
3564
|
o && (o.style.display = "none"), e(JSON.stringify({ id: r }));
|
|
3564
3565
|
});
|
|
@@ -3596,7 +3597,7 @@ function Fa(e) {
|
|
|
3596
3597
|
}, 1200);
|
|
3597
3598
|
}
|
|
3598
3599
|
}
|
|
3599
|
-
|
|
3600
|
+
m();
|
|
3600
3601
|
var En, vn;
|
|
3601
3602
|
(vn = (En = y).__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__) != null || (En.__VUE_DEVTOOLS_COMPONENT_INSPECTOR_ENABLED__ = !0);
|
|
3602
3603
|
function Ma(e) {
|
|
@@ -3622,8 +3623,8 @@ function Va() {
|
|
|
3622
3623
|
});
|
|
3623
3624
|
});
|
|
3624
3625
|
}
|
|
3625
|
-
|
|
3626
|
-
|
|
3626
|
+
m();
|
|
3627
|
+
m();
|
|
3627
3628
|
function Ba(e) {
|
|
3628
3629
|
return !!(e && e.__v_isReadonly);
|
|
3629
3630
|
}
|
|
@@ -3705,9 +3706,9 @@ var Ua = class {
|
|
|
3705
3706
|
return nt(e) || ro(e);
|
|
3706
3707
|
}
|
|
3707
3708
|
};
|
|
3708
|
-
|
|
3709
|
-
|
|
3710
|
-
|
|
3709
|
+
m();
|
|
3710
|
+
m();
|
|
3711
|
+
m();
|
|
3711
3712
|
var ja = "__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS_STATE__";
|
|
3712
3713
|
function za() {
|
|
3713
3714
|
if (!Kr || typeof localStorage > "u" || localStorage === null)
|
|
@@ -3729,11 +3730,11 @@ function za() {
|
|
|
3729
3730
|
selected: ""
|
|
3730
3731
|
};
|
|
3731
3732
|
}
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3735
|
-
var yn,
|
|
3736
|
-
(
|
|
3733
|
+
m();
|
|
3734
|
+
m();
|
|
3735
|
+
m();
|
|
3736
|
+
var yn, Cn;
|
|
3737
|
+
(Cn = (yn = y).__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS) != null || (yn.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS = []);
|
|
3737
3738
|
var $a = new Proxy(y.__VUE_DEVTOOLS_KIT_TIMELINE_LAYERS, {
|
|
3738
3739
|
get(e, t, n) {
|
|
3739
3740
|
return Reflect.get(e, t, n);
|
|
@@ -3746,8 +3747,8 @@ function Ka(e, t) {
|
|
|
3746
3747
|
appRecord: Dt(t.app)
|
|
3747
3748
|
});
|
|
3748
3749
|
}
|
|
3749
|
-
var
|
|
3750
|
-
(wn = (
|
|
3750
|
+
var bn, wn;
|
|
3751
|
+
(wn = (bn = y).__VUE_DEVTOOLS_KIT_INSPECTOR__) != null || (bn.__VUE_DEVTOOLS_KIT_INSPECTOR__ = []);
|
|
3751
3752
|
var Ft = new Proxy(y.__VUE_DEVTOOLS_KIT_INSPECTOR__, {
|
|
3752
3753
|
get(e, t, n) {
|
|
3753
3754
|
return Reflect.get(e, t, n);
|
|
@@ -3967,11 +3968,11 @@ function Za(e = {}) {
|
|
|
3967
3968
|
}
|
|
3968
3969
|
}
|
|
3969
3970
|
}
|
|
3970
|
-
|
|
3971
|
-
|
|
3972
|
-
|
|
3973
|
-
|
|
3974
|
-
|
|
3971
|
+
m();
|
|
3972
|
+
m();
|
|
3973
|
+
m();
|
|
3974
|
+
m();
|
|
3975
|
+
m();
|
|
3975
3976
|
var Mn, Nn;
|
|
3976
3977
|
(Nn = (Mn = y).__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__) != null || (Mn.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__ = []);
|
|
3977
3978
|
var Mt = new Proxy(y.__VUE_DEVTOOLS_KIT_PLUGIN_BUFFER__, {
|
|
@@ -4033,17 +4034,17 @@ function tu(e, t, n) {
|
|
|
4033
4034
|
/* SET_PLUGIN_SETTINGS */
|
|
4034
4035
|
);
|
|
4035
4036
|
}
|
|
4036
|
-
|
|
4037
|
-
|
|
4038
|
-
|
|
4039
|
-
|
|
4040
|
-
|
|
4041
|
-
|
|
4042
|
-
|
|
4043
|
-
|
|
4044
|
-
|
|
4045
|
-
|
|
4046
|
-
|
|
4037
|
+
m();
|
|
4038
|
+
m();
|
|
4039
|
+
m();
|
|
4040
|
+
m();
|
|
4041
|
+
m();
|
|
4042
|
+
m();
|
|
4043
|
+
m();
|
|
4044
|
+
m();
|
|
4045
|
+
m();
|
|
4046
|
+
m();
|
|
4047
|
+
m();
|
|
4047
4048
|
var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVTOOLS_HOOK = Gr(), nu = {
|
|
4048
4049
|
vueAppInit(e) {
|
|
4049
4050
|
V.hook("app:init", e);
|
|
@@ -4193,13 +4194,13 @@ var Vn, Bn, V = (Bn = (Vn = y).__VUE_DEVTOOLS_HOOK) != null ? Bn : Vn.__VUE_DEVT
|
|
|
4193
4194
|
);
|
|
4194
4195
|
}
|
|
4195
4196
|
}, ou = ru;
|
|
4196
|
-
|
|
4197
|
-
|
|
4198
|
-
|
|
4199
|
-
|
|
4197
|
+
m();
|
|
4198
|
+
m();
|
|
4199
|
+
m();
|
|
4200
|
+
m();
|
|
4200
4201
|
var iu = "__vue_devtool_undefined__", su = "__vue_devtool_infinity__", au = "__vue_devtool_negative_infinity__", uu = "__vue_devtool_nan__";
|
|
4201
|
-
|
|
4202
|
-
|
|
4202
|
+
m();
|
|
4203
|
+
m();
|
|
4203
4204
|
var lu = {
|
|
4204
4205
|
[iu]: "undefined",
|
|
4205
4206
|
[uu]: "NaN",
|
|
@@ -4207,11 +4208,11 @@ var lu = {
|
|
|
4207
4208
|
[au]: "-Infinity"
|
|
4208
4209
|
};
|
|
4209
4210
|
Object.entries(lu).reduce((e, [t, n]) => (e[n] = t, e), {});
|
|
4210
|
-
|
|
4211
|
-
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4211
|
+
m();
|
|
4212
|
+
m();
|
|
4213
|
+
m();
|
|
4214
|
+
m();
|
|
4215
|
+
m();
|
|
4215
4216
|
var Un, Hn;
|
|
4216
4217
|
(Hn = (Un = y).__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__) != null || (Un.__VUE_DEVTOOLS_KIT__REGISTERED_PLUGIN_APPS__ = /* @__PURE__ */ new Set());
|
|
4217
4218
|
function cu(e, t) {
|
|
@@ -4237,8 +4238,8 @@ function lo(e, t) {
|
|
|
4237
4238
|
fu(n, e);
|
|
4238
4239
|
}));
|
|
4239
4240
|
}
|
|
4240
|
-
|
|
4241
|
-
|
|
4241
|
+
m();
|
|
4242
|
+
m();
|
|
4242
4243
|
var ve = "__VUE_DEVTOOLS_ROUTER__", ue = "__VUE_DEVTOOLS_ROUTER_INFO__", jn, zn;
|
|
4243
4244
|
(zn = (jn = y)[ue]) != null || (jn[ue] = {
|
|
4244
4245
|
currentRoute: null,
|
|
@@ -4412,7 +4413,7 @@ function _u(e) {
|
|
|
4412
4413
|
}
|
|
4413
4414
|
};
|
|
4414
4415
|
}
|
|
4415
|
-
|
|
4416
|
+
m();
|
|
4416
4417
|
var Wn, Gn;
|
|
4417
4418
|
(Gn = (Wn = y).__VUE_DEVTOOLS_ENV__) != null || (Wn.__VUE_DEVTOOLS_ENV__ = {
|
|
4418
4419
|
vitePluginDetected: !1
|
|
@@ -4431,38 +4432,38 @@ var Yn = Ga(), qn, Xn;
|
|
|
4431
4432
|
api: _u(Yn)
|
|
4432
4433
|
});
|
|
4433
4434
|
var fe = y.__VUE_DEVTOOLS_KIT_CONTEXT__;
|
|
4434
|
-
|
|
4435
|
-
_a(
|
|
4435
|
+
m();
|
|
4436
|
+
_a(ga());
|
|
4436
4437
|
var Qn, Zn;
|
|
4437
4438
|
(Zn = (Qn = y).__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__) != null || (Qn.__VUE_DEVTOOLS_NEXT_APP_RECORD_INFO__ = {
|
|
4438
4439
|
id: 0,
|
|
4439
4440
|
appIds: /* @__PURE__ */ new Set()
|
|
4440
4441
|
});
|
|
4441
|
-
|
|
4442
|
-
|
|
4443
|
-
function
|
|
4442
|
+
m();
|
|
4443
|
+
m();
|
|
4444
|
+
function mu(e) {
|
|
4444
4445
|
k.highPerfModeEnabled = e ?? !k.highPerfModeEnabled, !e && F.value && lo(F.value.app);
|
|
4445
4446
|
}
|
|
4446
|
-
|
|
4447
|
-
|
|
4448
|
-
|
|
4449
|
-
function
|
|
4447
|
+
m();
|
|
4448
|
+
m();
|
|
4449
|
+
m();
|
|
4450
|
+
function gu(e) {
|
|
4450
4451
|
k.devtoolsClientDetected = {
|
|
4451
4452
|
...k.devtoolsClientDetected,
|
|
4452
4453
|
...e
|
|
4453
4454
|
};
|
|
4454
4455
|
const t = Object.values(k.devtoolsClientDetected).some(Boolean);
|
|
4455
|
-
|
|
4456
|
+
mu(!t);
|
|
4456
4457
|
}
|
|
4457
4458
|
var Jn, er;
|
|
4458
|
-
(er = (Jn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Jn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ =
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4459
|
+
(er = (Jn = y).__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__) != null || (Jn.__VUE_DEVTOOLS_UPDATE_CLIENT_DETECTED__ = gu);
|
|
4460
|
+
m();
|
|
4461
|
+
m();
|
|
4462
|
+
m();
|
|
4463
|
+
m();
|
|
4464
|
+
m();
|
|
4465
|
+
m();
|
|
4466
|
+
m();
|
|
4466
4467
|
var Eu = class {
|
|
4467
4468
|
constructor() {
|
|
4468
4469
|
this.keyToValue = /* @__PURE__ */ new Map(), this.valueToKey = /* @__PURE__ */ new Map();
|
|
@@ -4506,8 +4507,8 @@ var Eu = class {
|
|
|
4506
4507
|
return this.classToAllowedProps.get(e);
|
|
4507
4508
|
}
|
|
4508
4509
|
};
|
|
4509
|
-
|
|
4510
|
-
|
|
4510
|
+
m();
|
|
4511
|
+
m();
|
|
4511
4512
|
function yu(e) {
|
|
4512
4513
|
if ("values" in Object)
|
|
4513
4514
|
return Object.values(e);
|
|
@@ -4516,7 +4517,7 @@ function yu(e) {
|
|
|
4516
4517
|
e.hasOwnProperty(n) && t.push(e[n]);
|
|
4517
4518
|
return t;
|
|
4518
4519
|
}
|
|
4519
|
-
function
|
|
4520
|
+
function Cu(e, t) {
|
|
4520
4521
|
const n = yu(e);
|
|
4521
4522
|
if ("find" in n)
|
|
4522
4523
|
return n.find(t);
|
|
@@ -4540,7 +4541,7 @@ function tr(e, t) {
|
|
|
4540
4541
|
return r;
|
|
4541
4542
|
}
|
|
4542
4543
|
}
|
|
4543
|
-
var
|
|
4544
|
+
var bu = class {
|
|
4544
4545
|
constructor() {
|
|
4545
4546
|
this.transfomers = {};
|
|
4546
4547
|
}
|
|
@@ -4548,17 +4549,17 @@ var Cu = class {
|
|
|
4548
4549
|
this.transfomers[e.name] = e;
|
|
4549
4550
|
}
|
|
4550
4551
|
findApplicable(e) {
|
|
4551
|
-
return
|
|
4552
|
+
return Cu(this.transfomers, (t) => t.isApplicable(e));
|
|
4552
4553
|
}
|
|
4553
4554
|
findByName(e) {
|
|
4554
4555
|
return this.transfomers[e];
|
|
4555
4556
|
}
|
|
4556
4557
|
};
|
|
4557
|
-
|
|
4558
|
-
|
|
4559
|
-
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,
|
|
4560
|
-
|
|
4561
|
-
var ho = (e) => e.replace(/\./g, "\\."), rt = (e) => e.map(String).map(ho).join("."),
|
|
4558
|
+
m();
|
|
4559
|
+
m();
|
|
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
|
+
m();
|
|
4562
|
+
var ho = (e) => e.replace(/\./g, "\\."), rt = (e) => e.map(String).map(ho).join("."), ge = (e) => {
|
|
4562
4563
|
const t = [];
|
|
4563
4564
|
let n = "";
|
|
4564
4565
|
for (let o = 0; o < e.length; o++) {
|
|
@@ -4576,7 +4577,7 @@ var ho = (e) => e.replace(/\./g, "\\."), rt = (e) => e.map(String).map(ho).join(
|
|
|
4576
4577
|
const r = n;
|
|
4577
4578
|
return t.push(r), t;
|
|
4578
4579
|
};
|
|
4579
|
-
|
|
4580
|
+
m();
|
|
4580
4581
|
function j(e, t, n, r) {
|
|
4581
4582
|
return {
|
|
4582
4583
|
isApplicable: e,
|
|
@@ -4609,14 +4610,14 @@ var _o = [
|
|
|
4609
4610
|
return new RegExp(t, n);
|
|
4610
4611
|
}),
|
|
4611
4612
|
j(
|
|
4612
|
-
|
|
4613
|
+
be,
|
|
4613
4614
|
"set",
|
|
4614
4615
|
// (sets only exist in es6+)
|
|
4615
4616
|
// eslint-disable-next-line es5/no-es6-methods
|
|
4616
4617
|
(e) => [...e.values()],
|
|
4617
4618
|
(e) => new Set(e)
|
|
4618
4619
|
),
|
|
4619
|
-
j(
|
|
4620
|
+
j(Ce, "map", (e) => [...e.entries()], (e) => new Map(e)),
|
|
4620
4621
|
j((e) => nr(e) || Ru(e), "number", (e) => nr(e) ? "NaN" : e > 0 ? "Infinity" : "-Infinity", Number),
|
|
4621
4622
|
j((e) => e === 0 && 1 / e === -1 / 0, "number", () => "-0", Number),
|
|
4622
4623
|
j(Fu, "URL", (e) => e.toString(), (e) => new URL(e))
|
|
@@ -4629,7 +4630,7 @@ function Ge(e, t, n, r) {
|
|
|
4629
4630
|
untransform: r
|
|
4630
4631
|
};
|
|
4631
4632
|
}
|
|
4632
|
-
var
|
|
4633
|
+
var mo = Ge((e, t) => po(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) => ["symbol", t.symbolRegistry.getIdentifier(e)], (e) => e.description, (e, t, n) => {
|
|
4633
4634
|
const r = n.symbolRegistry.getValue(t[1]);
|
|
4634
4635
|
if (!r)
|
|
4635
4636
|
throw new Error("Trying to deserialize unknown symbol");
|
|
@@ -4644,7 +4645,7 @@ var go = Ge((e, t) => po(e) ? !!t.symbolRegistry.getIdentifier(e) : !1, (e, t) =
|
|
|
4644
4645
|
Float32Array,
|
|
4645
4646
|
Float64Array,
|
|
4646
4647
|
Uint8ClampedArray
|
|
4647
|
-
].reduce((e, t) => (e[t.name] = t, e), {}),
|
|
4648
|
+
].reduce((e, t) => (e[t.name] = t, e), {}), go = Ge(Lu, (e) => ["typed-array", e.constructor.name], (e) => [...e], (e, t) => {
|
|
4648
4649
|
const n = Mu[t[1]];
|
|
4649
4650
|
if (!n)
|
|
4650
4651
|
throw new Error("Trying to deserialize unknown typed array");
|
|
@@ -4671,7 +4672,7 @@ var vo = Ge(Eo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
4671
4672
|
if (!r)
|
|
4672
4673
|
throw new Error("Trying to deserialize unknown custom value");
|
|
4673
4674
|
return r.deserialize(e);
|
|
4674
|
-
}), Nu = [vo,
|
|
4675
|
+
}), Nu = [vo, mo, yo, go], rr = (e, t) => {
|
|
4675
4676
|
const n = tr(Nu, (o) => o.isApplicable(e, t));
|
|
4676
4677
|
if (n)
|
|
4677
4678
|
return {
|
|
@@ -4684,32 +4685,32 @@ var vo = Ge(Eo, (e, t) => ["class", t.classRegistry.getIdentifier(e.constructor)
|
|
|
4684
4685
|
value: r.transform(e, t),
|
|
4685
4686
|
type: r.annotation
|
|
4686
4687
|
};
|
|
4687
|
-
},
|
|
4688
|
+
}, Co = {};
|
|
4688
4689
|
_o.forEach((e) => {
|
|
4689
|
-
|
|
4690
|
+
Co[e.annotation] = e;
|
|
4690
4691
|
});
|
|
4691
4692
|
var Vu = (e, t, n) => {
|
|
4692
4693
|
if (G(t))
|
|
4693
4694
|
switch (t[0]) {
|
|
4694
4695
|
case "symbol":
|
|
4695
|
-
return
|
|
4696
|
+
return mo.untransform(e, t, n);
|
|
4696
4697
|
case "class":
|
|
4697
4698
|
return vo.untransform(e, t, n);
|
|
4698
4699
|
case "custom":
|
|
4699
4700
|
return yo.untransform(e, t, n);
|
|
4700
4701
|
case "typed-array":
|
|
4701
|
-
return
|
|
4702
|
+
return go.untransform(e, t, n);
|
|
4702
4703
|
default:
|
|
4703
4704
|
throw new Error("Unknown transformation: " + t);
|
|
4704
4705
|
}
|
|
4705
4706
|
else {
|
|
4706
|
-
const r =
|
|
4707
|
+
const r = Co[t];
|
|
4707
4708
|
if (!r)
|
|
4708
4709
|
throw new Error("Unknown transformation: " + t);
|
|
4709
4710
|
return r.untransform(e, n);
|
|
4710
4711
|
}
|
|
4711
4712
|
};
|
|
4712
|
-
|
|
4713
|
+
m();
|
|
4713
4714
|
var oe = (e, t) => {
|
|
4714
4715
|
if (t > e.size)
|
|
4715
4716
|
throw new Error("index out of bounds");
|
|
@@ -4718,7 +4719,7 @@ var oe = (e, t) => {
|
|
|
4718
4719
|
n.next(), t--;
|
|
4719
4720
|
return n.next().value;
|
|
4720
4721
|
};
|
|
4721
|
-
function
|
|
4722
|
+
function bo(e) {
|
|
4722
4723
|
if (Le(e, "__proto__"))
|
|
4723
4724
|
throw new Error("__proto__ is not allowed as a property");
|
|
4724
4725
|
if (Le(e, "prototype"))
|
|
@@ -4727,12 +4728,12 @@ function Co(e) {
|
|
|
4727
4728
|
throw new Error("constructor is not allowed as a property");
|
|
4728
4729
|
}
|
|
4729
4730
|
var Bu = (e, t) => {
|
|
4730
|
-
|
|
4731
|
+
bo(t);
|
|
4731
4732
|
for (let n = 0; n < t.length; n++) {
|
|
4732
4733
|
const r = t[n];
|
|
4733
|
-
if (
|
|
4734
|
+
if (be(e))
|
|
4734
4735
|
e = oe(e, +r);
|
|
4735
|
-
else if (
|
|
4736
|
+
else if (Ce(e)) {
|
|
4736
4737
|
const o = +r, i = +t[++n] == 0 ? "key" : "value", s = oe(e, o);
|
|
4737
4738
|
switch (i) {
|
|
4738
4739
|
case "key":
|
|
@@ -4747,7 +4748,7 @@ var Bu = (e, t) => {
|
|
|
4747
4748
|
}
|
|
4748
4749
|
return e;
|
|
4749
4750
|
}, yt = (e, t, n) => {
|
|
4750
|
-
if (
|
|
4751
|
+
if (bo(t), t.length === 0)
|
|
4751
4752
|
return n(e);
|
|
4752
4753
|
let r = e;
|
|
4753
4754
|
for (let i = 0; i < t.length - 1; i++) {
|
|
@@ -4757,10 +4758,10 @@ var Bu = (e, t) => {
|
|
|
4757
4758
|
r = r[a];
|
|
4758
4759
|
} else if (ye(r))
|
|
4759
4760
|
r = r[s];
|
|
4760
|
-
else if (
|
|
4761
|
+
else if (be(r)) {
|
|
4761
4762
|
const a = +s;
|
|
4762
4763
|
r = oe(r, a);
|
|
4763
|
-
} else if (
|
|
4764
|
+
} else if (Ce(r)) {
|
|
4764
4765
|
if (i === t.length - 2)
|
|
4765
4766
|
break;
|
|
4766
4767
|
const u = +s, l = +t[++i] == 0 ? "key" : "value", c = oe(r, u);
|
|
@@ -4775,11 +4776,11 @@ var Bu = (e, t) => {
|
|
|
4775
4776
|
}
|
|
4776
4777
|
}
|
|
4777
4778
|
const o = t[t.length - 1];
|
|
4778
|
-
if (G(r) ? r[+o] = n(r[+o]) : ye(r) && (r[o] = n(r[o])),
|
|
4779
|
+
if (G(r) ? r[+o] = n(r[+o]) : ye(r) && (r[o] = n(r[o])), be(r)) {
|
|
4779
4780
|
const i = oe(r, +o), s = n(i);
|
|
4780
4781
|
i !== s && (r.delete(i), r.add(s));
|
|
4781
4782
|
}
|
|
4782
|
-
if (
|
|
4783
|
+
if (Ce(r)) {
|
|
4783
4784
|
const i = +t[t.length - 2], s = oe(r, i);
|
|
4784
4785
|
switch (+o == 0 ? "key" : "value") {
|
|
4785
4786
|
case "key": {
|
|
@@ -4795,40 +4796,40 @@ var Bu = (e, t) => {
|
|
|
4795
4796
|
}
|
|
4796
4797
|
return e;
|
|
4797
4798
|
};
|
|
4798
|
-
function
|
|
4799
|
+
function Ct(e, t, n = []) {
|
|
4799
4800
|
if (!e)
|
|
4800
4801
|
return;
|
|
4801
4802
|
if (!G(e)) {
|
|
4802
|
-
le(e, (i, s) =>
|
|
4803
|
+
le(e, (i, s) => Ct(i, t, [...n, ...ge(s)]));
|
|
4803
4804
|
return;
|
|
4804
4805
|
}
|
|
4805
4806
|
const [r, o] = e;
|
|
4806
4807
|
o && le(o, (i, s) => {
|
|
4807
|
-
|
|
4808
|
+
Ct(i, t, [...n, ...ge(s)]);
|
|
4808
4809
|
}), t(r, n);
|
|
4809
4810
|
}
|
|
4810
4811
|
function Uu(e, t, n) {
|
|
4811
|
-
return
|
|
4812
|
+
return Ct(t, (r, o) => {
|
|
4812
4813
|
e = yt(e, o, (i) => Vu(i, r, n));
|
|
4813
4814
|
}), e;
|
|
4814
4815
|
}
|
|
4815
4816
|
function Hu(e, t) {
|
|
4816
4817
|
function n(r, o) {
|
|
4817
|
-
const i = Bu(e,
|
|
4818
|
-
r.map(
|
|
4818
|
+
const i = Bu(e, ge(o));
|
|
4819
|
+
r.map(ge).forEach((s) => {
|
|
4819
4820
|
e = yt(e, s, () => i);
|
|
4820
4821
|
});
|
|
4821
4822
|
}
|
|
4822
4823
|
if (G(t)) {
|
|
4823
4824
|
const [r, o] = t;
|
|
4824
4825
|
r.forEach((i) => {
|
|
4825
|
-
e = yt(e,
|
|
4826
|
+
e = yt(e, ge(i), () => e);
|
|
4826
4827
|
}), o && le(o, n);
|
|
4827
4828
|
} else
|
|
4828
4829
|
le(t, n);
|
|
4829
4830
|
return e;
|
|
4830
4831
|
}
|
|
4831
|
-
var ju = (e, t) => ye(e) || G(e) ||
|
|
4832
|
+
var ju = (e, t) => ye(e) || G(e) || Ce(e) || be(e) || Eo(e, t);
|
|
4832
4833
|
function zu(e, t, n) {
|
|
4833
4834
|
const r = n.get(e);
|
|
4834
4835
|
r ? r.push(t) : n.set(e, [t]);
|
|
@@ -4873,8 +4874,8 @@ var wo = (e, t, n, r, o = [], i = [], s = /* @__PURE__ */ new Map()) => {
|
|
|
4873
4874
|
if (v === "__proto__" || v === "constructor" || v === "prototype")
|
|
4874
4875
|
throw new Error(`Detected property ${v}. This is a prototype pollution risk, please remove it from your object.`);
|
|
4875
4876
|
const p = wo(_, t, n, r, [...o, v], [...i, e], s);
|
|
4876
|
-
f[v] = p.transformedValue, G(p.annotations) ? h[v] = p.annotations : ye(p.annotations) && le(p.annotations, (
|
|
4877
|
-
h[ho(v) + "." +
|
|
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;
|
|
4878
4879
|
});
|
|
4879
4880
|
});
|
|
4880
4881
|
const d = vt(h) ? {
|
|
@@ -4886,8 +4887,8 @@ var wo = (e, t, n, r, o = [], i = [], s = /* @__PURE__ */ new Map()) => {
|
|
|
4886
4887
|
};
|
|
4887
4888
|
return u || s.set(e, d), d;
|
|
4888
4889
|
};
|
|
4889
|
-
|
|
4890
|
-
|
|
4890
|
+
m();
|
|
4891
|
+
m();
|
|
4891
4892
|
function Ao(e) {
|
|
4892
4893
|
return Object.prototype.toString.call(e).slice(8, -1);
|
|
4893
4894
|
}
|
|
@@ -4909,16 +4910,16 @@ function Wu(e, t, n, r, o) {
|
|
|
4909
4910
|
configurable: !0
|
|
4910
4911
|
});
|
|
4911
4912
|
}
|
|
4912
|
-
function
|
|
4913
|
+
function bt(e, t = {}) {
|
|
4913
4914
|
if (or(e))
|
|
4914
|
-
return e.map((o) =>
|
|
4915
|
+
return e.map((o) => bt(o, t));
|
|
4915
4916
|
if (!Ku(e))
|
|
4916
4917
|
return e;
|
|
4917
4918
|
const n = Object.getOwnPropertyNames(e), r = Object.getOwnPropertySymbols(e);
|
|
4918
4919
|
return [...n, ...r].reduce((o, i) => {
|
|
4919
4920
|
if (or(t.props) && !t.props.includes(i))
|
|
4920
4921
|
return o;
|
|
4921
|
-
const s = e[i], a =
|
|
4922
|
+
const s = e[i], a = bt(s, t);
|
|
4922
4923
|
return Wu(o, i, a, e, t.nonenumerable), o;
|
|
4923
4924
|
}, {});
|
|
4924
4925
|
}
|
|
@@ -4930,7 +4931,7 @@ var S = class {
|
|
|
4930
4931
|
this.classRegistry = new vu(), this.symbolRegistry = new co((t) => {
|
|
4931
4932
|
var n;
|
|
4932
4933
|
return (n = t.description) != null ? n : "";
|
|
4933
|
-
}), this.customTransformerRegistry = new
|
|
4934
|
+
}), this.customTransformerRegistry = new bu(), this.allowedErrorProps = [], this.dedupe = e;
|
|
4934
4935
|
}
|
|
4935
4936
|
serialize(e) {
|
|
4936
4937
|
const t = /* @__PURE__ */ new Map(), n = wo(e, t, this, this.dedupe), r = {
|
|
@@ -4948,7 +4949,7 @@ var S = class {
|
|
|
4948
4949
|
}
|
|
4949
4950
|
deserialize(e) {
|
|
4950
4951
|
const { json: t, meta: n } = e;
|
|
4951
|
-
let r =
|
|
4952
|
+
let r = bt(t);
|
|
4952
4953
|
return n?.values && (r = Uu(r, n.values, this)), n?.referentialEqualities && (r = Hu(r, n.referentialEqualities)), r;
|
|
4953
4954
|
}
|
|
4954
4955
|
stringify(e) {
|
|
@@ -4982,29 +4983,29 @@ S.registerClass = S.defaultInstance.registerClass.bind(S.defaultInstance);
|
|
|
4982
4983
|
S.registerSymbol = S.defaultInstance.registerSymbol.bind(S.defaultInstance);
|
|
4983
4984
|
S.registerCustom = S.defaultInstance.registerCustom.bind(S.defaultInstance);
|
|
4984
4985
|
S.allowErrorProps = S.defaultInstance.allowErrorProps.bind(S.defaultInstance);
|
|
4985
|
-
|
|
4986
|
-
|
|
4987
|
-
|
|
4988
|
-
|
|
4989
|
-
|
|
4990
|
-
|
|
4991
|
-
|
|
4992
|
-
|
|
4993
|
-
|
|
4994
|
-
|
|
4995
|
-
|
|
4996
|
-
|
|
4997
|
-
|
|
4998
|
-
|
|
4999
|
-
|
|
5000
|
-
|
|
5001
|
-
|
|
5002
|
-
|
|
5003
|
-
|
|
5004
|
-
|
|
5005
|
-
|
|
5006
|
-
|
|
5007
|
-
|
|
4986
|
+
m();
|
|
4987
|
+
m();
|
|
4988
|
+
m();
|
|
4989
|
+
m();
|
|
4990
|
+
m();
|
|
4991
|
+
m();
|
|
4992
|
+
m();
|
|
4993
|
+
m();
|
|
4994
|
+
m();
|
|
4995
|
+
m();
|
|
4996
|
+
m();
|
|
4997
|
+
m();
|
|
4998
|
+
m();
|
|
4999
|
+
m();
|
|
5000
|
+
m();
|
|
5001
|
+
m();
|
|
5002
|
+
m();
|
|
5003
|
+
m();
|
|
5004
|
+
m();
|
|
5005
|
+
m();
|
|
5006
|
+
m();
|
|
5007
|
+
m();
|
|
5008
|
+
m();
|
|
5008
5009
|
var ir, sr;
|
|
5009
5010
|
(sr = (ir = y).__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__) != null || (ir.__VUE_DEVTOOLS_KIT_MESSAGE_CHANNELS__ = []);
|
|
5010
5011
|
var ar, ur;
|
|
@@ -5015,20 +5016,20 @@ var fr, dr;
|
|
|
5015
5016
|
(dr = (fr = y).__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__) != null || (fr.__VUE_DEVTOOLS_KIT_VITE_RPC_CLIENT__ = null);
|
|
5016
5017
|
var pr, hr;
|
|
5017
5018
|
(hr = (pr = y).__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__) != null || (pr.__VUE_DEVTOOLS_KIT_VITE_RPC_SERVER__ = null);
|
|
5018
|
-
var _r,
|
|
5019
|
-
(
|
|
5020
|
-
|
|
5021
|
-
|
|
5022
|
-
|
|
5023
|
-
|
|
5024
|
-
|
|
5025
|
-
|
|
5026
|
-
|
|
5019
|
+
var _r, mr;
|
|
5020
|
+
(mr = (_r = y).__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__) != null || (_r.__VUE_DEVTOOLS_KIT_BROADCAST_RPC_SERVER__ = null);
|
|
5021
|
+
m();
|
|
5022
|
+
m();
|
|
5023
|
+
m();
|
|
5024
|
+
m();
|
|
5025
|
+
m();
|
|
5026
|
+
m();
|
|
5027
|
+
m();
|
|
5027
5028
|
function Gu(e, t) {
|
|
5028
5029
|
const n = `▲ ■ ●${e}`;
|
|
5029
|
-
typeof
|
|
5030
|
+
typeof gr == "function" ? gr(n, t) : console.log(n);
|
|
5030
5031
|
}
|
|
5031
|
-
function
|
|
5032
|
+
function gr(e, t) {
|
|
5032
5033
|
throw new Error(e + t);
|
|
5033
5034
|
}
|
|
5034
5035
|
function Bt(e) {
|
|
@@ -5157,7 +5158,7 @@ function wt(e, t, n = /* @__PURE__ */ new WeakSet(), r = 0, o = 4, i, s = "") {
|
|
|
5157
5158
|
if (u.startsWith("_") || typeof l == "function")
|
|
5158
5159
|
return;
|
|
5159
5160
|
const c = s ? `${s}.${u}` : u, f = Qu(u, a, s);
|
|
5160
|
-
u !== "scene" && (
|
|
5161
|
+
u !== "scene" && (me(l) ? (f.tags.push({
|
|
5161
5162
|
label: `Ref<${typeof l.value}>`,
|
|
5162
5163
|
textColor: 4372611,
|
|
5163
5164
|
backgroundColor: 15793395
|
|
@@ -5241,7 +5242,7 @@ const Zu = (e) => (t) => {
|
|
|
5241
5242
|
r.state = {
|
|
5242
5243
|
object: Object.entries(e).filter(([l]) => !l.startsWith("_") && l !== "parent").map(([l, c]) => ({
|
|
5243
5244
|
key: l,
|
|
5244
|
-
value:
|
|
5245
|
+
value: me(c) ? c.value : c,
|
|
5245
5246
|
editable: !1
|
|
5246
5247
|
}))
|
|
5247
5248
|
};
|
|
@@ -5252,10 +5253,10 @@ const Zu = (e) => (t) => {
|
|
|
5252
5253
|
for (const l of a) {
|
|
5253
5254
|
if (!u || typeof u != "object")
|
|
5254
5255
|
break;
|
|
5255
|
-
u =
|
|
5256
|
+
u = me(u[l]) ? u[l].value : u[l];
|
|
5256
5257
|
}
|
|
5257
5258
|
u !== void 0 && (r.state = {
|
|
5258
|
-
object: Object.entries(u).filter(([l]) => !l.startsWith("_") && l !== "parent").map(([l, c]) =>
|
|
5259
|
+
object: Object.entries(u).filter(([l]) => !l.startsWith("_") && l !== "parent").map(([l, c]) => me(c) ? {
|
|
5259
5260
|
key: l,
|
|
5260
5261
|
value: c.value,
|
|
5261
5262
|
editable: !1
|
|
@@ -5364,19 +5365,19 @@ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
|
|
|
5364
5365
|
setup() {
|
|
5365
5366
|
const p = $t()?.appContext;
|
|
5366
5367
|
p && (p.app = u?.appContext.app);
|
|
5367
|
-
const
|
|
5368
|
-
function b
|
|
5369
|
-
|
|
5368
|
+
const g = {};
|
|
5369
|
+
function C(b) {
|
|
5370
|
+
b && (b.parent && C(b.parent), b.provides && Object.assign(g, b.provides));
|
|
5370
5371
|
}
|
|
5371
|
-
return u?.parent && r.enableProvideBridge && (
|
|
5372
|
-
qe(
|
|
5372
|
+
return u?.parent && r.enableProvideBridge && (C(u.parent), Reflect.ownKeys(g).forEach((b) => {
|
|
5373
|
+
qe(b, g[b]);
|
|
5373
5374
|
})), qe(xs, _), qe("extend", pt), typeof window < "u" && p?.app && nl(p?.app, _), () => Wt(No, null, v ? [] : i.default());
|
|
5374
5375
|
}
|
|
5375
5376
|
}), c = (_, v = !1) => {
|
|
5376
|
-
const p = l(_, v), { render:
|
|
5377
|
-
|
|
5377
|
+
const p = l(_, v), { render: g } = Mo(Bs(_));
|
|
5378
|
+
g(Wt(p), a.value);
|
|
5378
5379
|
}, f = (_, v = !1) => {
|
|
5379
|
-
Ne(_.scene.value), v && (_.renderer.instance.dispose(), _.renderer.instance instanceof
|
|
5380
|
+
Ne(_.scene.value), v && (_.renderer.instance.dispose(), _.renderer.instance instanceof Cr && (_.renderer.instance.renderLists.dispose(), _.renderer.instance.forceContextLoss())), a.value.__tres = {
|
|
5380
5381
|
root: _
|
|
5381
5382
|
};
|
|
5382
5383
|
}, h = it(null);
|
|
@@ -5392,7 +5393,7 @@ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
|
|
|
5392
5393
|
windowSize: r.windowSize ?? !1,
|
|
5393
5394
|
rendererOptions: r
|
|
5394
5395
|
});
|
|
5395
|
-
const { camera: v, renderer: p } = h.value, { registerCamera:
|
|
5396
|
+
const { camera: v, renderer: p } = h.value, { registerCamera: g, cameras: C, activeCamera: b, deregisterCamera: P } = v;
|
|
5396
5397
|
c(h.value);
|
|
5397
5398
|
const M = () => {
|
|
5398
5399
|
const A = new qo(
|
|
@@ -5401,9 +5402,9 @@ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
|
|
|
5401
5402
|
0.1,
|
|
5402
5403
|
1e3
|
|
5403
5404
|
);
|
|
5404
|
-
A.position.set(3, 3, 3), A.lookAt(0, 0, 0),
|
|
5405
|
+
A.position.set(3, 3, 3), A.lookAt(0, 0, 0), g(A);
|
|
5405
5406
|
const O = $(() => {
|
|
5406
|
-
|
|
5407
|
+
C.value.length >= 2 && (A.removeFromParent(), P(A), O?.());
|
|
5407
5408
|
});
|
|
5408
5409
|
};
|
|
5409
5410
|
h.value.events.onPointerMissed((A) => {
|
|
@@ -5411,12 +5412,12 @@ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
|
|
|
5411
5412
|
}), At(
|
|
5412
5413
|
() => r.camera,
|
|
5413
5414
|
(A, O) => {
|
|
5414
|
-
A &&
|
|
5415
|
+
A && g(I(A), !0), O && (I(O).removeFromParent(), P(I(O)));
|
|
5415
5416
|
},
|
|
5416
5417
|
{
|
|
5417
5418
|
immediate: !0
|
|
5418
5419
|
}
|
|
5419
|
-
),
|
|
5420
|
+
), b.value || M(), p.onRender(() => {
|
|
5420
5421
|
h.value && o("render", h.value);
|
|
5421
5422
|
}), p.loop.onLoop((A) => {
|
|
5422
5423
|
h.value && o("loop", { ...h.value, ...A });
|
|
@@ -5447,10 +5448,10 @@ const rl = ["data-scene", "data-tres"], ol = /* @__PURE__ */ ot({
|
|
|
5447
5448
|
}, null, 14, rl));
|
|
5448
5449
|
}
|
|
5449
5450
|
});
|
|
5450
|
-
function
|
|
5451
|
+
function ml(e) {
|
|
5451
5452
|
return typeof e == "number" ? [e, e, e] : e instanceof D ? [e.x, e.y, e.z] : e;
|
|
5452
5453
|
}
|
|
5453
|
-
function
|
|
5454
|
+
function gl(e) {
|
|
5454
5455
|
return e instanceof xe ? e : Array.isArray(e) ? new xe(...e) : new xe(e);
|
|
5455
5456
|
}
|
|
5456
5457
|
const il = [
|
|
@@ -5460,7 +5461,7 @@ const il = [
|
|
|
5460
5461
|
], El = {
|
|
5461
5462
|
template: {
|
|
5462
5463
|
compilerOptions: {
|
|
5463
|
-
isCustomElement: (e) => e.startsWith("
|
|
5464
|
+
isCustomElement: (e) => (/^Tres[A-Z]/.test(e) || e.startsWith("tres-")) && !il.includes(e) || e === "primitive"
|
|
5464
5465
|
}
|
|
5465
5466
|
}
|
|
5466
5467
|
};
|
|
@@ -5537,7 +5538,7 @@ const sl = {
|
|
|
5537
5538
|
}
|
|
5538
5539
|
W = e.parent.children.find((t) => t instanceof De), W && W.dispose && W.dispose(), e.parent && e.parent.remove(W);
|
|
5539
5540
|
}
|
|
5540
|
-
},
|
|
5541
|
+
}, Cl = {
|
|
5541
5542
|
mounted: (e, t) => {
|
|
5542
5543
|
if (t.arg) {
|
|
5543
5544
|
console.log(`v-log:${t.arg}`, e[t.arg]);
|
|
@@ -5545,7 +5546,7 @@ const sl = {
|
|
|
5545
5546
|
}
|
|
5546
5547
|
console.log("v-log", e);
|
|
5547
5548
|
}
|
|
5548
|
-
},
|
|
5549
|
+
}, bl = {
|
|
5549
5550
|
install(e) {
|
|
5550
5551
|
e.component("TresCanvas", ol);
|
|
5551
5552
|
}
|
|
@@ -5556,7 +5557,7 @@ export {
|
|
|
5556
5557
|
pl as UseLoader,
|
|
5557
5558
|
es as buildGraph,
|
|
5558
5559
|
dt as catalogue,
|
|
5559
|
-
|
|
5560
|
+
bl as default,
|
|
5560
5561
|
Ne as dispose,
|
|
5561
5562
|
pt as extend,
|
|
5562
5563
|
kr as isBufferGeometry,
|
|
@@ -5584,8 +5585,8 @@ export {
|
|
|
5584
5585
|
Jt as logError,
|
|
5585
5586
|
dl as logMessage,
|
|
5586
5587
|
Me as logWarning,
|
|
5587
|
-
|
|
5588
|
-
|
|
5588
|
+
gl as normalizeColor,
|
|
5589
|
+
ml as normalizeVectorFlexibleParam,
|
|
5589
5590
|
nl as registerTresDevtools,
|
|
5590
5591
|
El as templateCompilerOptions,
|
|
5591
5592
|
Ji as useCameraManager,
|
|
@@ -5598,5 +5599,5 @@ export {
|
|
|
5598
5599
|
Rs as useTresContextProvider,
|
|
5599
5600
|
vl as vDistanceTo,
|
|
5600
5601
|
yl as vLightHelper,
|
|
5601
|
-
|
|
5602
|
+
Cl as vLog
|
|
5602
5603
|
};
|