shop-components 0.1.51 → 0.1.53
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/device-viewer/slot.d.ts +2 -0
- package/dist/shop-components.mjs +444 -440
- package/dist/shop-components.umd.js +40 -40
- package/package.json +1 -1
package/dist/shop-components.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Copyright 2010-2024 Three.js Authors
|
|
4
4
|
* SPDX-License-Identifier: MIT
|
|
5
5
|
*/
|
|
6
|
-
const ed = "164", $s = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Ao = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, VS = 0, py = 1, $S = 2, r2 = 1, A3 = 2, Kn = 3,
|
|
6
|
+
const ed = "164", $s = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, Ao = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, VS = 0, py = 1, $S = 2, r2 = 1, A3 = 2, Kn = 3, Gt = 0, Ct = 1, ot = 2, Et = 0, Kr = 1, yf = 2, gy = 3, my = 4, e3 = 5, bs = 100, t3 = 101, i3 = 102, n3 = 103, r3 = 104, s3 = 200, o3 = 201, a3 = 202, l3 = 203, sm = 204, om = 205, c3 = 206, h3 = 207, u3 = 208, f3 = 209, d3 = 210, p3 = 211, g3 = 212, m3 = 213, v3 = 214, y3 = 0, w3 = 1, C3 = 2, wf = 3, x3 = 4, I3 = 5, b3 = 6, _3 = 7, s2 = 0, S3 = 1, M3 = 2, Ar = 0, o2 = 1, a2 = 2, l2 = 3, W0 = 4, P3 = 5, c2 = 6, h2 = 7, vy = "attached", T3 = "detached", u2 = 300, Ea = 301, La = 302, Oa = 303, am = 304, td = 306, Kt = 1e3, it = 1001, bc = 1002, ue = 1003, J0 = 1004, ca = 1005, we = 1006, rc = 1007, Vi = 1008, D3 = 1008, tn = 1009, lm = 1010, f2 = 1011, Z0 = 1012, sc = 1013, $i = 1014, Se = 1015, Oe = 1016, d2 = 1017, p2 = 1018, jc = 1020, E3 = 35902, L3 = 1021, O3 = 1022, _e = 1023, q3 = 1024, N3 = 1025, va = 1026, _c = 1027, qa = 1028, X0 = 1029, Q0 = 1030, id = 1031, Sc = 1033, Gd = 33776, Hd = 33777, Yd = 33778, Ud = 33779, yy = 35840, wy = 35841, Cy = 35842, xy = 35843, Iy = 36196, by = 37492, _y = 37496, Sy = 37808, My = 37809, Py = 37810, Ty = 37811, Dy = 37812, Ey = 37813, Ly = 37814, Oy = 37815, qy = 37816, Ny = 37817, By = 37818, zy = 37819, Ry = 37820, ky = 37821, Wd = 36492, jy = 36494, Ky = 36495, B3 = 36283, Fy = 36284, Gy = 36285, Hy = 36286, Na = 2300, Bs = 2301, Jd = 2302, Yy = 2400, Uy = 2401, Wy = 2402, z3 = 2500, R3 = 0, g2 = 1, cm = 2, k3 = 3200, V0 = 3201, m2 = 0, j3 = 1, Yn = "", ke = "srgb", lt = "srgb-linear", $0 = "display-p3", nd = "display-p3-linear", Cf = "linear", Ee = "srgb", xf = "rec709", If = "p3", eo = 7680, Jy = 519, K3 = 512, F3 = 513, G3 = 514, v2 = 515, H3 = 516, Y3 = 517, U3 = 518, W3 = 519, hm = 35044, Zy = "300 es", Jn = 2e3, bf = 2001;
|
|
7
7
|
class Gs {
|
|
8
8
|
addEventListener(A, e) {
|
|
9
9
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -807,7 +807,7 @@ let dM = 0, ct = class $u extends Gs {
|
|
|
807
807
|
return A;
|
|
808
808
|
if (A.applyMatrix3(this.matrix), A.x < 0 || A.x > 1)
|
|
809
809
|
switch (this.wrapS) {
|
|
810
|
-
case
|
|
810
|
+
case Kt:
|
|
811
811
|
A.x = A.x - Math.floor(A.x);
|
|
812
812
|
break;
|
|
813
813
|
case it:
|
|
@@ -819,7 +819,7 @@ let dM = 0, ct = class $u extends Gs {
|
|
|
819
819
|
}
|
|
820
820
|
if (A.y < 0 || A.y > 1)
|
|
821
821
|
switch (this.wrapT) {
|
|
822
|
-
case
|
|
822
|
+
case Kt:
|
|
823
823
|
A.y = A.y - Math.floor(A.y);
|
|
824
824
|
break;
|
|
825
825
|
case it:
|
|
@@ -1773,7 +1773,7 @@ function $d(n, A, e, t, i) {
|
|
|
1773
1773
|
return !0;
|
|
1774
1774
|
}
|
|
1775
1775
|
const vM = /* @__PURE__ */ new ve(), ml = /* @__PURE__ */ new O(), Ap = /* @__PURE__ */ new O();
|
|
1776
|
-
class
|
|
1776
|
+
class fi {
|
|
1777
1777
|
constructor(A = new O(), e = -1) {
|
|
1778
1778
|
this.isSphere = !0, this.center = A, this.radius = e;
|
|
1779
1779
|
}
|
|
@@ -2096,7 +2096,7 @@ class zA {
|
|
|
2096
2096
|
}
|
|
2097
2097
|
lookAt(A, e, t) {
|
|
2098
2098
|
const i = this.elements;
|
|
2099
|
-
return
|
|
2099
|
+
return ii.subVectors(A, e), ii.lengthSq() === 0 && (ii.z = 1), ii.normalize(), fr.crossVectors(t, ii), fr.lengthSq() === 0 && (Math.abs(t.z) === 1 ? ii.x += 1e-4 : ii.z += 1e-4, ii.normalize(), fr.crossVectors(t, ii)), fr.normalize(), ch.crossVectors(ii, fr), i[0] = fr.x, i[4] = ch.x, i[8] = ii.x, i[1] = fr.y, i[5] = ch.y, i[9] = ii.y, i[2] = fr.z, i[6] = ch.z, i[10] = ii.z, this;
|
|
2100
2100
|
}
|
|
2101
2101
|
multiply(A) {
|
|
2102
2102
|
return this.multiplyMatrices(this, A);
|
|
@@ -2352,7 +2352,7 @@ class zA {
|
|
|
2352
2352
|
return A[e] = t[0], A[e + 1] = t[1], A[e + 2] = t[2], A[e + 3] = t[3], A[e + 4] = t[4], A[e + 5] = t[5], A[e + 6] = t[6], A[e + 7] = t[7], A[e + 8] = t[8], A[e + 9] = t[9], A[e + 10] = t[10], A[e + 11] = t[11], A[e + 12] = t[12], A[e + 13] = t[13], A[e + 14] = t[14], A[e + 15] = t[15], A;
|
|
2353
2353
|
}
|
|
2354
2354
|
}
|
|
2355
|
-
const so = /* @__PURE__ */ new O(), ji = /* @__PURE__ */ new zA(), yM = /* @__PURE__ */ new O(0, 0, 0), wM = /* @__PURE__ */ new O(1, 1, 1), fr = /* @__PURE__ */ new O(), ch = /* @__PURE__ */ new O(),
|
|
2355
|
+
const so = /* @__PURE__ */ new O(), ji = /* @__PURE__ */ new zA(), yM = /* @__PURE__ */ new O(0, 0, 0), wM = /* @__PURE__ */ new O(1, 1, 1), fr = /* @__PURE__ */ new O(), ch = /* @__PURE__ */ new O(), ii = /* @__PURE__ */ new O(), ew = /* @__PURE__ */ new zA(), tw = /* @__PURE__ */ new Oi();
|
|
2356
2356
|
class In {
|
|
2357
2357
|
constructor(A = 0, e = 0, t = 0, i = In.DEFAULT_ORDER) {
|
|
2358
2358
|
this.isEuler = !0, this._x = A, this._y = e, this._z = t, this._order = i;
|
|
@@ -3244,7 +3244,7 @@ FA.NAMES = C2;
|
|
|
3244
3244
|
let _M = 0;
|
|
3245
3245
|
class wn extends Gs {
|
|
3246
3246
|
constructor() {
|
|
3247
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: _M++ }), this.uuid = Li(), this.name = "", this.type = "Material", this.blending = Kr, this.side =
|
|
3247
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: _M++ }), this.uuid = Li(), this.name = "", this.type = "Material", this.blending = Kr, this.side = Gt, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = sm, this.blendDst = om, this.blendEquation = bs, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.blendColor = new FA(0, 0, 0), this.blendAlpha = 0, this.depthFunc = wf, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = Jy, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = eo, this.stencilZFail = eo, this.stencilZPass = eo, this.stencilWrite = !1, this.clippingPlanes = null, this.clipIntersection = !1, this.clipShadows = !1, this.shadowSide = null, this.colorWrite = !0, this.precision = null, this.polygonOffset = !1, this.polygonOffsetFactor = 0, this.polygonOffsetUnits = 0, this.dithering = !1, this.alphaToCoverage = !1, this.premultipliedAlpha = !1, this.forceSinglePass = !1, this.visible = !0, this.toneMapped = !0, this.userData = {}, this.version = 0, this._alphaTest = 0;
|
|
3248
3248
|
}
|
|
3249
3249
|
get alphaTest() {
|
|
3250
3250
|
return this._alphaTest;
|
|
@@ -3290,7 +3290,7 @@ class wn extends Gs {
|
|
|
3290
3290
|
generator: "Material.toJSON"
|
|
3291
3291
|
}
|
|
3292
3292
|
};
|
|
3293
|
-
t.uuid = this.uuid, t.type = this.type, this.name !== "" && (t.name = this.name), this.color && this.color.isColor && (t.color = this.color.getHex()), this.roughness !== void 0 && (t.roughness = this.roughness), this.metalness !== void 0 && (t.metalness = this.metalness), this.sheen !== void 0 && (t.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (t.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (t.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (t.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (t.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (t.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (t.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (t.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (t.shininess = this.shininess), this.clearcoat !== void 0 && (t.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (t.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (t.clearcoatMap = this.clearcoatMap.toJSON(A).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (t.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(A).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (t.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(A).uuid, t.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (t.dispersion = this.dispersion), this.iridescence !== void 0 && (t.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (t.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (t.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (t.iridescenceMap = this.iridescenceMap.toJSON(A).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (t.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(A).uuid), this.anisotropy !== void 0 && (t.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (t.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (t.anisotropyMap = this.anisotropyMap.toJSON(A).uuid), this.map && this.map.isTexture && (t.map = this.map.toJSON(A).uuid), this.matcap && this.matcap.isTexture && (t.matcap = this.matcap.toJSON(A).uuid), this.alphaMap && this.alphaMap.isTexture && (t.alphaMap = this.alphaMap.toJSON(A).uuid), this.lightMap && this.lightMap.isTexture && (t.lightMap = this.lightMap.toJSON(A).uuid, t.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (t.aoMap = this.aoMap.toJSON(A).uuid, t.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (t.bumpMap = this.bumpMap.toJSON(A).uuid, t.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (t.normalMap = this.normalMap.toJSON(A).uuid, t.normalMapType = this.normalMapType, t.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (t.displacementMap = this.displacementMap.toJSON(A).uuid, t.displacementScale = this.displacementScale, t.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (t.roughnessMap = this.roughnessMap.toJSON(A).uuid), this.metalnessMap && this.metalnessMap.isTexture && (t.metalnessMap = this.metalnessMap.toJSON(A).uuid), this.emissiveMap && this.emissiveMap.isTexture && (t.emissiveMap = this.emissiveMap.toJSON(A).uuid), this.specularMap && this.specularMap.isTexture && (t.specularMap = this.specularMap.toJSON(A).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (t.specularIntensityMap = this.specularIntensityMap.toJSON(A).uuid), this.specularColorMap && this.specularColorMap.isTexture && (t.specularColorMap = this.specularColorMap.toJSON(A).uuid), this.envMap && this.envMap.isTexture && (t.envMap = this.envMap.toJSON(A).uuid, this.combine !== void 0 && (t.combine = this.combine)), this.envMapRotation !== void 0 && (t.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (t.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (t.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (t.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (t.gradientMap = this.gradientMap.toJSON(A).uuid), this.transmission !== void 0 && (t.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (t.transmissionMap = this.transmissionMap.toJSON(A).uuid), this.thickness !== void 0 && (t.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (t.thicknessMap = this.thicknessMap.toJSON(A).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (t.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (t.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (t.size = this.size), this.shadowSide !== null && (t.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (t.sizeAttenuation = this.sizeAttenuation), this.blending !== Kr && (t.blending = this.blending), this.side !==
|
|
3293
|
+
t.uuid = this.uuid, t.type = this.type, this.name !== "" && (t.name = this.name), this.color && this.color.isColor && (t.color = this.color.getHex()), this.roughness !== void 0 && (t.roughness = this.roughness), this.metalness !== void 0 && (t.metalness = this.metalness), this.sheen !== void 0 && (t.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (t.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (t.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (t.emissive = this.emissive.getHex()), this.emissiveIntensity !== void 0 && this.emissiveIntensity !== 1 && (t.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (t.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (t.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (t.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (t.shininess = this.shininess), this.clearcoat !== void 0 && (t.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (t.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (t.clearcoatMap = this.clearcoatMap.toJSON(A).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (t.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(A).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (t.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(A).uuid, t.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.dispersion !== void 0 && (t.dispersion = this.dispersion), this.iridescence !== void 0 && (t.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (t.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (t.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (t.iridescenceMap = this.iridescenceMap.toJSON(A).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (t.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(A).uuid), this.anisotropy !== void 0 && (t.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (t.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (t.anisotropyMap = this.anisotropyMap.toJSON(A).uuid), this.map && this.map.isTexture && (t.map = this.map.toJSON(A).uuid), this.matcap && this.matcap.isTexture && (t.matcap = this.matcap.toJSON(A).uuid), this.alphaMap && this.alphaMap.isTexture && (t.alphaMap = this.alphaMap.toJSON(A).uuid), this.lightMap && this.lightMap.isTexture && (t.lightMap = this.lightMap.toJSON(A).uuid, t.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (t.aoMap = this.aoMap.toJSON(A).uuid, t.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (t.bumpMap = this.bumpMap.toJSON(A).uuid, t.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (t.normalMap = this.normalMap.toJSON(A).uuid, t.normalMapType = this.normalMapType, t.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (t.displacementMap = this.displacementMap.toJSON(A).uuid, t.displacementScale = this.displacementScale, t.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (t.roughnessMap = this.roughnessMap.toJSON(A).uuid), this.metalnessMap && this.metalnessMap.isTexture && (t.metalnessMap = this.metalnessMap.toJSON(A).uuid), this.emissiveMap && this.emissiveMap.isTexture && (t.emissiveMap = this.emissiveMap.toJSON(A).uuid), this.specularMap && this.specularMap.isTexture && (t.specularMap = this.specularMap.toJSON(A).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (t.specularIntensityMap = this.specularIntensityMap.toJSON(A).uuid), this.specularColorMap && this.specularColorMap.isTexture && (t.specularColorMap = this.specularColorMap.toJSON(A).uuid), this.envMap && this.envMap.isTexture && (t.envMap = this.envMap.toJSON(A).uuid, this.combine !== void 0 && (t.combine = this.combine)), this.envMapRotation !== void 0 && (t.envMapRotation = this.envMapRotation.toArray()), this.envMapIntensity !== void 0 && (t.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (t.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (t.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (t.gradientMap = this.gradientMap.toJSON(A).uuid), this.transmission !== void 0 && (t.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (t.transmissionMap = this.transmissionMap.toJSON(A).uuid), this.thickness !== void 0 && (t.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (t.thicknessMap = this.thicknessMap.toJSON(A).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (t.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (t.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (t.size = this.size), this.shadowSide !== null && (t.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (t.sizeAttenuation = this.sizeAttenuation), this.blending !== Kr && (t.blending = this.blending), this.side !== Gt && (t.side = this.side), this.vertexColors === !0 && (t.vertexColors = !0), this.opacity < 1 && (t.opacity = this.opacity), this.transparent === !0 && (t.transparent = !0), this.blendSrc !== sm && (t.blendSrc = this.blendSrc), this.blendDst !== om && (t.blendDst = this.blendDst), this.blendEquation !== bs && (t.blendEquation = this.blendEquation), this.blendSrcAlpha !== null && (t.blendSrcAlpha = this.blendSrcAlpha), this.blendDstAlpha !== null && (t.blendDstAlpha = this.blendDstAlpha), this.blendEquationAlpha !== null && (t.blendEquationAlpha = this.blendEquationAlpha), this.blendColor && this.blendColor.isColor && (t.blendColor = this.blendColor.getHex()), this.blendAlpha !== 0 && (t.blendAlpha = this.blendAlpha), this.depthFunc !== wf && (t.depthFunc = this.depthFunc), this.depthTest === !1 && (t.depthTest = this.depthTest), this.depthWrite === !1 && (t.depthWrite = this.depthWrite), this.colorWrite === !1 && (t.colorWrite = this.colorWrite), this.stencilWriteMask !== 255 && (t.stencilWriteMask = this.stencilWriteMask), this.stencilFunc !== Jy && (t.stencilFunc = this.stencilFunc), this.stencilRef !== 0 && (t.stencilRef = this.stencilRef), this.stencilFuncMask !== 255 && (t.stencilFuncMask = this.stencilFuncMask), this.stencilFail !== eo && (t.stencilFail = this.stencilFail), this.stencilZFail !== eo && (t.stencilZFail = this.stencilZFail), this.stencilZPass !== eo && (t.stencilZPass = this.stencilZPass), this.stencilWrite === !0 && (t.stencilWrite = this.stencilWrite), this.rotation !== void 0 && this.rotation !== 0 && (t.rotation = this.rotation), this.polygonOffset === !0 && (t.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (t.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (t.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (t.linewidth = this.linewidth), this.dashSize !== void 0 && (t.dashSize = this.dashSize), this.gapSize !== void 0 && (t.gapSize = this.gapSize), this.scale !== void 0 && (t.scale = this.scale), this.dithering === !0 && (t.dithering = !0), this.alphaTest > 0 && (t.alphaTest = this.alphaTest), this.alphaHash === !0 && (t.alphaHash = !0), this.alphaToCoverage === !0 && (t.alphaToCoverage = !0), this.premultipliedAlpha === !0 && (t.premultipliedAlpha = !0), this.forceSinglePass === !0 && (t.forceSinglePass = !0), this.wireframe === !0 && (t.wireframe = !0), this.wireframeLinewidth > 1 && (t.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (t.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (t.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (t.flatShading = !0), this.visible === !1 && (t.visible = !1), this.toneMapped === !1 && (t.toneMapped = !1), this.fog === !1 && (t.fog = !1), Object.keys(this.userData).length > 0 && (t.userData = this.userData);
|
|
3294
3294
|
function i(r) {
|
|
3295
3295
|
const s = [];
|
|
3296
3296
|
for (const o in r) {
|
|
@@ -3327,7 +3327,7 @@ class wn extends Gs {
|
|
|
3327
3327
|
A === !0 && this.version++;
|
|
3328
3328
|
}
|
|
3329
3329
|
}
|
|
3330
|
-
class
|
|
3330
|
+
class oi extends wn {
|
|
3331
3331
|
constructor(A) {
|
|
3332
3332
|
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new FA(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new In(), this.combine = s2, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(A);
|
|
3333
3333
|
}
|
|
@@ -3378,7 +3378,7 @@ function PM(n) {
|
|
|
3378
3378
|
const A = n >> 10;
|
|
3379
3379
|
return Un.uint32View[0] = Un.mantissaTable[Un.offsetTable[A] + (n & 1023)] + Un.exponentTable[A], Un.floatView[0];
|
|
3380
3380
|
}
|
|
3381
|
-
const
|
|
3381
|
+
const si = {
|
|
3382
3382
|
toHalfFloat: MM,
|
|
3383
3383
|
fromHalfFloat: PM
|
|
3384
3384
|
}, et = /* @__PURE__ */ new O(), fh = /* @__PURE__ */ new uA();
|
|
@@ -3520,7 +3520,7 @@ class Lt extends he {
|
|
|
3520
3520
|
}
|
|
3521
3521
|
}
|
|
3522
3522
|
let TM = 0;
|
|
3523
|
-
const
|
|
3523
|
+
const wi = /* @__PURE__ */ new zA(), cp = /* @__PURE__ */ new Ie(), ho = /* @__PURE__ */ new O(), ni = /* @__PURE__ */ new ve(), yl = /* @__PURE__ */ new ve(), pt = /* @__PURE__ */ new O();
|
|
3524
3524
|
class Re extends Gs {
|
|
3525
3525
|
constructor() {
|
|
3526
3526
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: TM++ }), this.uuid = Li(), this.name = "", this.type = "BufferGeometry", this.index = null, this.attributes = {}, this.morphAttributes = {}, this.morphTargetsRelative = !1, this.groups = [], this.boundingBox = null, this.boundingSphere = null, this.drawRange = { start: 0, count: 1 / 0 }, this.userData = {};
|
|
@@ -3568,22 +3568,22 @@ class Re extends Gs {
|
|
|
3568
3568
|
return i !== void 0 && (i.transformDirection(A), i.needsUpdate = !0), this.boundingBox !== null && this.computeBoundingBox(), this.boundingSphere !== null && this.computeBoundingSphere(), this;
|
|
3569
3569
|
}
|
|
3570
3570
|
applyQuaternion(A) {
|
|
3571
|
-
return
|
|
3571
|
+
return wi.makeRotationFromQuaternion(A), this.applyMatrix4(wi), this;
|
|
3572
3572
|
}
|
|
3573
3573
|
rotateX(A) {
|
|
3574
|
-
return
|
|
3574
|
+
return wi.makeRotationX(A), this.applyMatrix4(wi), this;
|
|
3575
3575
|
}
|
|
3576
3576
|
rotateY(A) {
|
|
3577
|
-
return
|
|
3577
|
+
return wi.makeRotationY(A), this.applyMatrix4(wi), this;
|
|
3578
3578
|
}
|
|
3579
3579
|
rotateZ(A) {
|
|
3580
|
-
return
|
|
3580
|
+
return wi.makeRotationZ(A), this.applyMatrix4(wi), this;
|
|
3581
3581
|
}
|
|
3582
3582
|
translate(A, e, t) {
|
|
3583
|
-
return
|
|
3583
|
+
return wi.makeTranslation(A, e, t), this.applyMatrix4(wi), this;
|
|
3584
3584
|
}
|
|
3585
3585
|
scale(A, e, t) {
|
|
3586
|
-
return
|
|
3586
|
+
return wi.makeScale(A, e, t), this.applyMatrix4(wi), this;
|
|
3587
3587
|
}
|
|
3588
3588
|
lookAt(A) {
|
|
3589
3589
|
return cp.lookAt(A), cp.updateMatrix(), this.applyMatrix4(cp.matrix), this;
|
|
@@ -3613,14 +3613,14 @@ class Re extends Gs {
|
|
|
3613
3613
|
if (this.boundingBox.setFromBufferAttribute(A), e)
|
|
3614
3614
|
for (let t = 0, i = e.length; t < i; t++) {
|
|
3615
3615
|
const r = e[t];
|
|
3616
|
-
|
|
3616
|
+
ni.setFromBufferAttribute(r), this.morphTargetsRelative ? (pt.addVectors(this.boundingBox.min, ni.min), this.boundingBox.expandByPoint(pt), pt.addVectors(this.boundingBox.max, ni.max), this.boundingBox.expandByPoint(pt)) : (this.boundingBox.expandByPoint(ni.min), this.boundingBox.expandByPoint(ni.max));
|
|
3617
3617
|
}
|
|
3618
3618
|
} else
|
|
3619
3619
|
this.boundingBox.makeEmpty();
|
|
3620
3620
|
(isNaN(this.boundingBox.min.x) || isNaN(this.boundingBox.min.y) || isNaN(this.boundingBox.min.z)) && console.error('THREE.BufferGeometry.computeBoundingBox(): Computed min/max have NaN values. The "position" attribute is likely to have NaN values.', this);
|
|
3621
3621
|
}
|
|
3622
3622
|
computeBoundingSphere() {
|
|
3623
|
-
this.boundingSphere === null && (this.boundingSphere = new
|
|
3623
|
+
this.boundingSphere === null && (this.boundingSphere = new fi());
|
|
3624
3624
|
const A = this.attributes.position, e = this.morphAttributes.position;
|
|
3625
3625
|
if (A && A.isGLBufferAttribute) {
|
|
3626
3626
|
console.error("THREE.BufferGeometry.computeBoundingSphere(): GLBufferAttribute requires a manual bounding sphere.", this), this.boundingSphere.set(new O(), 1 / 0);
|
|
@@ -3628,12 +3628,12 @@ class Re extends Gs {
|
|
|
3628
3628
|
}
|
|
3629
3629
|
if (A) {
|
|
3630
3630
|
const t = this.boundingSphere.center;
|
|
3631
|
-
if (
|
|
3631
|
+
if (ni.setFromBufferAttribute(A), e)
|
|
3632
3632
|
for (let r = 0, s = e.length; r < s; r++) {
|
|
3633
3633
|
const o = e[r];
|
|
3634
|
-
yl.setFromBufferAttribute(o), this.morphTargetsRelative ? (pt.addVectors(
|
|
3634
|
+
yl.setFromBufferAttribute(o), this.morphTargetsRelative ? (pt.addVectors(ni.min, yl.min), ni.expandByPoint(pt), pt.addVectors(ni.max, yl.max), ni.expandByPoint(pt)) : (ni.expandByPoint(yl.min), ni.expandByPoint(yl.max));
|
|
3635
3635
|
}
|
|
3636
|
-
|
|
3636
|
+
ni.getCenter(t);
|
|
3637
3637
|
let i = 0;
|
|
3638
3638
|
for (let r = 0, s = A.count; r < s; r++)
|
|
3639
3639
|
pt.fromBufferAttribute(A, r), i = Math.max(i, t.distanceToSquared(pt));
|
|
@@ -3832,9 +3832,9 @@ class Re extends Gs {
|
|
|
3832
3832
|
this.dispatchEvent({ type: "dispose" });
|
|
3833
3833
|
}
|
|
3834
3834
|
}
|
|
3835
|
-
const lw = /* @__PURE__ */ new zA(), ns = /* @__PURE__ */ new Hs(), dh = /* @__PURE__ */ new
|
|
3835
|
+
const lw = /* @__PURE__ */ new zA(), ns = /* @__PURE__ */ new Hs(), dh = /* @__PURE__ */ new fi(), cw = /* @__PURE__ */ new O(), uo = /* @__PURE__ */ new O(), fo = /* @__PURE__ */ new O(), po = /* @__PURE__ */ new O(), hp = /* @__PURE__ */ new O(), ph = /* @__PURE__ */ new O(), gh = /* @__PURE__ */ new uA(), mh = /* @__PURE__ */ new uA(), vh = /* @__PURE__ */ new uA(), hw = /* @__PURE__ */ new O(), uw = /* @__PURE__ */ new O(), fw = /* @__PURE__ */ new O(), yh = /* @__PURE__ */ new O(), wh = /* @__PURE__ */ new O();
|
|
3836
3836
|
let Pe = class extends Ie {
|
|
3837
|
-
constructor(A = new Re(), e = new
|
|
3837
|
+
constructor(A = new Re(), e = new oi()) {
|
|
3838
3838
|
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = A, this.material = e, this.updateMorphTargets();
|
|
3839
3839
|
}
|
|
3840
3840
|
copy(A, e) {
|
|
@@ -3910,7 +3910,7 @@ let Pe = class extends Ie {
|
|
|
3910
3910
|
};
|
|
3911
3911
|
function DM(n, A, e, t, i, r, s, o) {
|
|
3912
3912
|
let a;
|
|
3913
|
-
if (A.side === Ct ? a = t.intersectTriangle(s, r, i, !0, o) : a = t.intersectTriangle(i, r, s, A.side ===
|
|
3913
|
+
if (A.side === Ct ? a = t.intersectTriangle(s, r, i, !0, o) : a = t.intersectTriangle(i, r, s, A.side === Gt, o), a === null)
|
|
3914
3914
|
return null;
|
|
3915
3915
|
wh.copy(o), wh.applyMatrix4(n.matrixWorld);
|
|
3916
3916
|
const l = e.ray.origin.distanceTo(wh);
|
|
@@ -4329,7 +4329,7 @@ class NM extends Xe {
|
|
|
4329
4329
|
}
|
|
4330
4330
|
}
|
|
4331
4331
|
const up = /* @__PURE__ */ new O(), BM = /* @__PURE__ */ new O(), zM = /* @__PURE__ */ new le();
|
|
4332
|
-
class
|
|
4332
|
+
class Zt {
|
|
4333
4333
|
constructor(A = new O(1, 0, 0), e = 0) {
|
|
4334
4334
|
this.isPlane = !0, this.normal = A, this.constant = e;
|
|
4335
4335
|
}
|
|
@@ -4399,9 +4399,9 @@ class Jt {
|
|
|
4399
4399
|
return new this.constructor().copy(this);
|
|
4400
4400
|
}
|
|
4401
4401
|
}
|
|
4402
|
-
const rs = /* @__PURE__ */ new
|
|
4402
|
+
const rs = /* @__PURE__ */ new fi(), xh = /* @__PURE__ */ new O();
|
|
4403
4403
|
class tv {
|
|
4404
|
-
constructor(A = new
|
|
4404
|
+
constructor(A = new Zt(), e = new Zt(), t = new Zt(), i = new Zt(), r = new Zt(), s = new Zt()) {
|
|
4405
4405
|
this.planes = [A, e, t, i, r, s];
|
|
4406
4406
|
}
|
|
4407
4407
|
set(A, e, t, i, r, s) {
|
|
@@ -8753,7 +8753,7 @@ function yP(n, A, e, t, i, r, s) {
|
|
|
8753
8753
|
uniforms: Ra(gn.background.uniforms),
|
|
8754
8754
|
vertexShader: gn.background.vertexShader,
|
|
8755
8755
|
fragmentShader: gn.background.fragmentShader,
|
|
8756
|
-
side:
|
|
8756
|
+
side: Gt,
|
|
8757
8757
|
depthTest: !1,
|
|
8758
8758
|
depthWrite: !1,
|
|
8759
8759
|
fog: !1
|
|
@@ -9101,7 +9101,7 @@ function xP(n, A, e, t) {
|
|
|
9101
9101
|
function IP(n) {
|
|
9102
9102
|
const A = this;
|
|
9103
9103
|
let e = null, t = 0, i = !1, r = !1;
|
|
9104
|
-
const s = new
|
|
9104
|
+
const s = new Zt(), o = new le(), a = { value: null, needsUpdate: !1 };
|
|
9105
9105
|
this.uniform = a, this.numPlanes = 0, this.numIntersection = 0, this.init = function(c, h) {
|
|
9106
9106
|
const f = c.length !== 0 || h || // enable state of previous frame - the clipping code has to
|
|
9107
9107
|
// run another frame in order to reset the state:
|
|
@@ -9327,7 +9327,7 @@ class yw {
|
|
|
9327
9327
|
_sceneToCubeUV(A, e, t, i) {
|
|
9328
9328
|
const o = new yt(90, 1, e, t), a = [1, -1, 1, 1, 1, 1], l = [1, 1, 1, -1, -1, -1], u = this._renderer, c = u.autoClear, h = u.toneMapping;
|
|
9329
9329
|
u.getClearColor(mw), u.toneMapping = Ar, u.autoClear = !1;
|
|
9330
|
-
const f = new
|
|
9330
|
+
const f = new oi({
|
|
9331
9331
|
name: "PMREM.Background",
|
|
9332
9332
|
side: Ct,
|
|
9333
9333
|
depthWrite: !1,
|
|
@@ -11673,7 +11673,7 @@ void main() {
|
|
|
11673
11673
|
}`;
|
|
11674
11674
|
function rD(n, A, e) {
|
|
11675
11675
|
let t = new tv();
|
|
11676
|
-
const i = new uA(), r = new uA(), s = new me(), o = new nv({ depthPacking: V0 }), a = new q2(), l = {}, u = e.maxTextureSize, c = { [
|
|
11676
|
+
const i = new uA(), r = new uA(), s = new me(), o = new nv({ depthPacking: V0 }), a = new q2(), l = {}, u = e.maxTextureSize, c = { [Gt]: Ct, [Ct]: Gt, [ot]: ot }, h = new $e({
|
|
11677
11677
|
defines: {
|
|
11678
11678
|
VSM_SAMPLES: 8
|
|
11679
11679
|
},
|
|
@@ -12318,7 +12318,7 @@ function oD(n, A, e, t, i, r, s) {
|
|
|
12318
12318
|
e.bindTexture(n.TEXTURE_CUBE_MAP, F.__webglTexture, n.TEXTURE0 + L);
|
|
12319
12319
|
}
|
|
12320
12320
|
const W = {
|
|
12321
|
-
[
|
|
12321
|
+
[Kt]: n.REPEAT,
|
|
12322
12322
|
[it]: n.CLAMP_TO_EDGE,
|
|
12323
12323
|
[bc]: n.MIRRORED_REPEAT
|
|
12324
12324
|
}, K = {
|
|
@@ -13521,8 +13521,8 @@ class N2 {
|
|
|
13521
13521
|
if (dt < 0 || dt === 1 / 0)
|
|
13522
13522
|
return;
|
|
13523
13523
|
DA.setup(sA, rA, UA, oA, QA);
|
|
13524
|
-
let
|
|
13525
|
-
if (QA !== null && (
|
|
13524
|
+
let mi, ye = GA;
|
|
13525
|
+
if (QA !== null && (mi = L.get(QA), ye = qA, ye.setIndex(mi)), sA.isMesh)
|
|
13526
13526
|
rA.wireframe === !0 ? (vA.setLineWidth(rA.wireframeLinewidth * dA()), ye.setMode(H.LINES)) : ye.setMode(H.TRIANGLES);
|
|
13527
13527
|
else if (sA.isLine) {
|
|
13528
13528
|
let Ae = rA.linewidth;
|
|
@@ -13540,7 +13540,7 @@ class N2 {
|
|
|
13540
13540
|
ye.render(Ye, dt);
|
|
13541
13541
|
};
|
|
13542
13542
|
function EA(z, $, oA) {
|
|
13543
|
-
z.transparent === !0 && z.side === ot && z.forceSinglePass === !1 ? (z.side = Ct, z.needsUpdate = !0,
|
|
13543
|
+
z.transparent === !0 && z.side === ot && z.forceSinglePass === !1 ? (z.side = Ct, z.needsUpdate = !0, Ai(z, $, oA), z.side = Gt, z.needsUpdate = !0, Ai(z, $, oA), z.side = ot) : Ai(z, $, oA);
|
|
13544
13544
|
}
|
|
13545
13545
|
this.compile = function(z, $, oA = null) {
|
|
13546
13546
|
oA === null && (oA = z), d = wA.get(oA), d.init($), y.push(d), oA.traverseVisible(function(sA) {
|
|
@@ -13675,10 +13675,10 @@ class N2 {
|
|
|
13675
13675
|
if (rA.viewport !== void 0 && (rA.viewport = void 0), d.setupLightsView(rA), j === !0 && cA.setGlobalState(v.clippingPlanes, rA), ft(z, oA, rA), _A.updateMultisampleRenderTarget(BA), _A.updateRenderTargetMipmap(BA), AA.has("WEBGL_multisampled_render_to_texture") === !1) {
|
|
13676
13676
|
let bA = !1;
|
|
13677
13677
|
for (let re = 0, Ye = $.length; re < Ye; re++) {
|
|
13678
|
-
const je = $[re], dt = je.object,
|
|
13678
|
+
const je = $[re], dt = je.object, mi = je.geometry, ye = je.material, Ae = je.group;
|
|
13679
13679
|
if (ye.side === ot && dt.layers.test(rA.layers)) {
|
|
13680
13680
|
const an = ye.side;
|
|
13681
|
-
ye.side = Ct, ye.needsUpdate = !0, Nt(dt, oA, rA,
|
|
13681
|
+
ye.side = Ct, ye.needsUpdate = !0, Nt(dt, oA, rA, mi, ye, Ae), ye.side = an, ye.needsUpdate = !0, bA = !0;
|
|
13682
13682
|
}
|
|
13683
13683
|
}
|
|
13684
13684
|
bA === !0 && (_A.updateMultisampleRenderTarget(BA), _A.updateRenderTargetMipmap(BA));
|
|
@@ -13693,9 +13693,9 @@ class N2 {
|
|
|
13693
13693
|
}
|
|
13694
13694
|
}
|
|
13695
13695
|
function Nt(z, $, oA, rA, sA, BA) {
|
|
13696
|
-
z.onBeforeRender(v, $, oA, rA, sA, BA), z.modelViewMatrix.multiplyMatrices(oA.matrixWorldInverse, z.matrixWorld), z.normalMatrix.getNormalMatrix(z.modelViewMatrix), sA.onBeforeRender(v, $, oA, rA, z, BA), sA.transparent === !0 && sA.side === ot && sA.forceSinglePass === !1 ? (sA.side = Ct, sA.needsUpdate = !0, v.renderBufferDirect(oA, $, rA, sA, z, BA), sA.side =
|
|
13696
|
+
z.onBeforeRender(v, $, oA, rA, sA, BA), z.modelViewMatrix.multiplyMatrices(oA.matrixWorldInverse, z.matrixWorld), z.normalMatrix.getNormalMatrix(z.modelViewMatrix), sA.onBeforeRender(v, $, oA, rA, z, BA), sA.transparent === !0 && sA.side === ot && sA.forceSinglePass === !1 ? (sA.side = Ct, sA.needsUpdate = !0, v.renderBufferDirect(oA, $, rA, sA, z, BA), sA.side = Gt, sA.needsUpdate = !0, v.renderBufferDirect(oA, $, rA, sA, z, BA), sA.side = ot) : v.renderBufferDirect(oA, $, rA, sA, z, BA), z.onAfterRender(v, $, oA, rA, sA, BA);
|
|
13697
13697
|
}
|
|
13698
|
-
function
|
|
13698
|
+
function Ai(z, $, oA) {
|
|
13699
13699
|
$.isScene !== !0 && ($ = tA);
|
|
13700
13700
|
const rA = yA.get(z), sA = d.state.lights, BA = d.state.shadowsArray, YA = sA.state.version, UA = eA.getParameters(z, sA.state, BA, $, oA), QA = eA.getProgramCacheKey(UA);
|
|
13701
13701
|
let ee = rA.programs;
|
|
@@ -13703,11 +13703,11 @@ class N2 {
|
|
|
13703
13703
|
let bA = ee.get(QA);
|
|
13704
13704
|
if (bA !== void 0) {
|
|
13705
13705
|
if (rA.currentProgram === bA && rA.lightsStateVersion === YA)
|
|
13706
|
-
return
|
|
13706
|
+
return gi(z, UA), bA;
|
|
13707
13707
|
} else
|
|
13708
13708
|
UA.uniforms = eA.getUniforms(z), z.onBuild(oA, UA, v), z.onBeforeCompile(UA, v), bA = eA.acquireProgram(UA, QA), ee.set(QA, bA), rA.uniforms = UA.uniforms;
|
|
13709
13709
|
const re = rA.uniforms;
|
|
13710
|
-
return (!z.isShaderMaterial && !z.isRawShaderMaterial || z.clipping === !0) && (re.clippingPlanes = cA.uniform),
|
|
13710
|
+
return (!z.isShaderMaterial && !z.isRawShaderMaterial || z.clipping === !0) && (re.clippingPlanes = cA.uniform), gi(z, UA), rA.needsLights = Xc(z), rA.lightsStateVersion = YA, rA.needsLights && (re.ambientLightColor.value = sA.state.ambient, re.lightProbe.value = sA.state.probe, re.directionalLights.value = sA.state.directional, re.directionalLightShadows.value = sA.state.directionalShadow, re.spotLights.value = sA.state.spot, re.spotLightShadows.value = sA.state.spotShadow, re.rectAreaLights.value = sA.state.rectArea, re.ltc_1.value = sA.state.rectAreaLTC1, re.ltc_2.value = sA.state.rectAreaLTC2, re.pointLights.value = sA.state.point, re.pointLightShadows.value = sA.state.pointShadow, re.hemisphereLights.value = sA.state.hemi, re.directionalShadowMap.value = sA.state.directionalShadowMap, re.directionalShadowMatrix.value = sA.state.directionalShadowMatrix, re.spotShadowMap.value = sA.state.spotShadowMap, re.spotLightMatrix.value = sA.state.spotLightMatrix, re.spotLightMap.value = sA.state.spotLightMap, re.pointShadowMap.value = sA.state.pointShadowMap, re.pointShadowMatrix.value = sA.state.pointShadowMatrix), rA.currentProgram = bA, rA.uniformsList = null, bA;
|
|
13711
13711
|
}
|
|
13712
13712
|
function on(z) {
|
|
13713
13713
|
if (z.uniformsList === null) {
|
|
@@ -13716,7 +13716,7 @@ class N2 {
|
|
|
13716
13716
|
}
|
|
13717
13717
|
return z.uniformsList;
|
|
13718
13718
|
}
|
|
13719
|
-
function
|
|
13719
|
+
function gi(z, $) {
|
|
13720
13720
|
const oA = yA.get(z);
|
|
13721
13721
|
oA.outputColorSpace = $.outputColorSpace, oA.batching = $.batching, oA.instancing = $.instancing, oA.instancingColor = $.instancingColor, oA.instancingMorph = $.instancingMorph, oA.skinning = $.skinning, oA.morphTargets = $.morphTargets, oA.morphNormals = $.morphNormals, oA.morphColors = $.morphColors, oA.morphTargetsCount = $.morphTargetsCount, oA.numClippingPlanes = $.numClippingPlanes, oA.numIntersection = $.numClipIntersection, oA.vertexAlphas = $.vertexAlphas, oA.vertexTangents = $.vertexTangents, oA.toneMapping = $.toneMapping;
|
|
13722
13722
|
}
|
|
@@ -13725,18 +13725,18 @@ class N2 {
|
|
|
13725
13725
|
const BA = $.fog, YA = rA.isMeshStandardMaterial ? $.environment : null, UA = x === null ? v.outputColorSpace : x.isXRRenderTarget === !0 ? x.texture.colorSpace : lt, QA = (rA.isMeshStandardMaterial ? R : gA).get(rA.envMap || YA), ee = rA.vertexColors === !0 && !!oA.attributes.color && oA.attributes.color.itemSize === 4, bA = !!oA.attributes.tangent && (!!rA.normalMap || rA.anisotropy > 0), re = !!oA.morphAttributes.position, Ye = !!oA.morphAttributes.normal, je = !!oA.morphAttributes.color;
|
|
13726
13726
|
let dt = Ar;
|
|
13727
13727
|
rA.toneMapped && (x === null || x.isXRRenderTarget === !0) && (dt = v.toneMapping);
|
|
13728
|
-
const
|
|
13728
|
+
const mi = oA.morphAttributes.position || oA.morphAttributes.normal || oA.morphAttributes.color, ye = mi !== void 0 ? mi.length : 0, Ae = yA.get(rA), an = d.state.lights;
|
|
13729
13729
|
if (j === !0 && (G === !0 || z !== b)) {
|
|
13730
13730
|
const Mt = z === b && rA.id === S;
|
|
13731
13731
|
cA.setState(rA, z, Mt);
|
|
13732
13732
|
}
|
|
13733
13733
|
let De = !1;
|
|
13734
13734
|
rA.version === Ae.__version ? (Ae.needsLights && Ae.lightsStateVersion !== an.state.version || Ae.outputColorSpace !== UA || sA.isBatchedMesh && Ae.batching === !1 || !sA.isBatchedMesh && Ae.batching === !0 || sA.isInstancedMesh && Ae.instancing === !1 || !sA.isInstancedMesh && Ae.instancing === !0 || sA.isSkinnedMesh && Ae.skinning === !1 || !sA.isSkinnedMesh && Ae.skinning === !0 || sA.isInstancedMesh && Ae.instancingColor === !0 && sA.instanceColor === null || sA.isInstancedMesh && Ae.instancingColor === !1 && sA.instanceColor !== null || sA.isInstancedMesh && Ae.instancingMorph === !0 && sA.morphTexture === null || sA.isInstancedMesh && Ae.instancingMorph === !1 && sA.morphTexture !== null || Ae.envMap !== QA || rA.fog === !0 && Ae.fog !== BA || Ae.numClippingPlanes !== void 0 && (Ae.numClippingPlanes !== cA.numPlanes || Ae.numIntersection !== cA.numIntersection) || Ae.vertexAlphas !== ee || Ae.vertexTangents !== bA || Ae.morphTargets !== re || Ae.morphNormals !== Ye || Ae.morphColors !== je || Ae.toneMapping !== dt || Ae.morphTargetsCount !== ye) && (De = !0) : (De = !0, Ae.__version = rA.version);
|
|
13735
|
-
let
|
|
13736
|
-
De === !0 && (
|
|
13735
|
+
let vi = Ae.currentProgram;
|
|
13736
|
+
De === !0 && (vi = Ai(rA, $, sA));
|
|
13737
13737
|
let sl = !1, En = !1, Xs = !1;
|
|
13738
|
-
const Ue =
|
|
13739
|
-
if (vA.useProgram(
|
|
13738
|
+
const Ue = vi.getUniforms(), yi = Ae.uniforms;
|
|
13739
|
+
if (vA.useProgram(vi.program) && (sl = !0, En = !0, Xs = !0), rA.id !== S && (S = rA.id, En = !0), sl || b !== z) {
|
|
13740
13740
|
Ue.setValue(H, "projectionMatrix", z.projectionMatrix), Ue.setValue(H, "viewMatrix", z.matrixWorldInverse);
|
|
13741
13741
|
const Mt = Ue.map.cameraPosition;
|
|
13742
13742
|
Mt !== void 0 && Mt.setValue(H, J.setFromMatrixPosition(z.matrixWorld)), TA.logarithmicDepthBuffer && Ue.setValue(
|
|
@@ -13752,14 +13752,14 @@ class N2 {
|
|
|
13752
13752
|
}
|
|
13753
13753
|
sA.isBatchedMesh && (Ue.setOptional(H, sA, "batchingTexture"), Ue.setValue(H, "batchingTexture", sA._matricesTexture, _A));
|
|
13754
13754
|
const ln = oA.morphAttributes;
|
|
13755
|
-
if ((ln.position !== void 0 || ln.normal !== void 0 || ln.color !== void 0) && IA.update(sA, oA,
|
|
13755
|
+
if ((ln.position !== void 0 || ln.normal !== void 0 || ln.color !== void 0) && IA.update(sA, oA, vi), (En || Ae.receiveShadow !== sA.receiveShadow) && (Ae.receiveShadow = sA.receiveShadow, Ue.setValue(H, "receiveShadow", sA.receiveShadow)), rA.isMeshGouraudMaterial && rA.envMap !== null && (yi.envMap.value = QA, yi.flipEnvMap.value = QA.isCubeTexture && QA.isRenderTargetTexture === !1 ? -1 : 1), rA.isMeshStandardMaterial && rA.envMap === null && $.environment !== null && (yi.envMapIntensity.value = $.environmentIntensity), En && (Ue.setValue(H, "toneMappingExposure", v.toneMappingExposure), Ae.needsLights && Dn(yi, Xs), BA && rA.fog === !0 && nA.refreshFogUniforms(yi, BA), nA.refreshMaterialUniforms(yi, rA, W, B, d.state.transmissionRenderTarget[z.id]), Af.upload(H, on(Ae), yi, _A)), rA.isShaderMaterial && rA.uniformsNeedUpdate === !0 && (Af.upload(H, on(Ae), yi, _A), rA.uniformsNeedUpdate = !1), rA.isSpriteMaterial && Ue.setValue(H, "center", sA.center), Ue.setValue(H, "modelViewMatrix", sA.modelViewMatrix), Ue.setValue(H, "normalMatrix", sA.normalMatrix), Ue.setValue(H, "modelMatrix", sA.matrixWorld), rA.isShaderMaterial || rA.isRawShaderMaterial) {
|
|
13756
13756
|
const Mt = rA.uniformsGroups;
|
|
13757
13757
|
for (let es = 0, ol = Mt.length; es < ol; es++) {
|
|
13758
|
-
const
|
|
13759
|
-
SA.update(
|
|
13758
|
+
const ei = Mt[es];
|
|
13759
|
+
SA.update(ei, vi), SA.bind(ei, vi);
|
|
13760
13760
|
}
|
|
13761
13761
|
}
|
|
13762
|
-
return
|
|
13762
|
+
return vi;
|
|
13763
13763
|
}
|
|
13764
13764
|
function Dn(z, $) {
|
|
13765
13765
|
z.ambientLightColor.needsUpdate = $, z.lightProbe.needsUpdate = $, z.directionalLights.needsUpdate = $, z.directionalLightShadows.needsUpdate = $, z.pointLights.needsUpdate = $, z.pointLightShadows.needsUpdate = $, z.spotLights.needsUpdate = $, z.spotLightShadows.needsUpdate = $, z.rectAreaLights.needsUpdate = $, z.hemisphereLights.needsUpdate = $;
|
|
@@ -13842,8 +13842,8 @@ class N2 {
|
|
|
13842
13842
|
return;
|
|
13843
13843
|
}
|
|
13844
13844
|
H.pixelStorei(H.UNPACK_FLIP_Y_WEBGL, rA.flipY), H.pixelStorei(H.UNPACK_PREMULTIPLY_ALPHA_WEBGL, rA.premultiplyAlpha), H.pixelStorei(H.UNPACK_ALIGNMENT, rA.unpackAlignment);
|
|
13845
|
-
const re = H.getParameter(H.UNPACK_ROW_LENGTH), Ye = H.getParameter(H.UNPACK_IMAGE_HEIGHT), je = H.getParameter(H.UNPACK_SKIP_PIXELS), dt = H.getParameter(H.UNPACK_SKIP_ROWS),
|
|
13846
|
-
H.pixelStorei(H.UNPACK_ROW_LENGTH, ye.width), H.pixelStorei(H.UNPACK_IMAGE_HEIGHT, ye.height), H.pixelStorei(H.UNPACK_SKIP_PIXELS, z.min.x), H.pixelStorei(H.UNPACK_SKIP_ROWS, z.min.y), H.pixelStorei(H.UNPACK_SKIP_IMAGES, z.min.z), oA.isDataTexture || oA.isData3DTexture ? H.texSubImage3D(bA, sA, $.x, $.y, $.z, BA, YA, UA, QA, ee, ye.data) : rA.isCompressedArrayTexture ? H.compressedTexSubImage3D(bA, sA, $.x, $.y, $.z, BA, YA, UA, QA, ye.data) : H.texSubImage3D(bA, sA, $.x, $.y, $.z, BA, YA, UA, QA, ee, ye), H.pixelStorei(H.UNPACK_ROW_LENGTH, re), H.pixelStorei(H.UNPACK_IMAGE_HEIGHT, Ye), H.pixelStorei(H.UNPACK_SKIP_PIXELS, je), H.pixelStorei(H.UNPACK_SKIP_ROWS, dt), H.pixelStorei(H.UNPACK_SKIP_IMAGES,
|
|
13845
|
+
const re = H.getParameter(H.UNPACK_ROW_LENGTH), Ye = H.getParameter(H.UNPACK_IMAGE_HEIGHT), je = H.getParameter(H.UNPACK_SKIP_PIXELS), dt = H.getParameter(H.UNPACK_SKIP_ROWS), mi = H.getParameter(H.UNPACK_SKIP_IMAGES), ye = oA.isCompressedTexture ? oA.mipmaps[sA] : oA.image;
|
|
13846
|
+
H.pixelStorei(H.UNPACK_ROW_LENGTH, ye.width), H.pixelStorei(H.UNPACK_IMAGE_HEIGHT, ye.height), H.pixelStorei(H.UNPACK_SKIP_PIXELS, z.min.x), H.pixelStorei(H.UNPACK_SKIP_ROWS, z.min.y), H.pixelStorei(H.UNPACK_SKIP_IMAGES, z.min.z), oA.isDataTexture || oA.isData3DTexture ? H.texSubImage3D(bA, sA, $.x, $.y, $.z, BA, YA, UA, QA, ee, ye.data) : rA.isCompressedArrayTexture ? H.compressedTexSubImage3D(bA, sA, $.x, $.y, $.z, BA, YA, UA, QA, ye.data) : H.texSubImage3D(bA, sA, $.x, $.y, $.z, BA, YA, UA, QA, ee, ye), H.pixelStorei(H.UNPACK_ROW_LENGTH, re), H.pixelStorei(H.UNPACK_IMAGE_HEIGHT, Ye), H.pixelStorei(H.UNPACK_SKIP_PIXELS, je), H.pixelStorei(H.UNPACK_SKIP_ROWS, dt), H.pixelStorei(H.UNPACK_SKIP_IMAGES, mi), sA === 0 && rA.generateMipmaps && H.generateMipmap(bA), vA.unbindTexture();
|
|
13847
13847
|
}, this.initTexture = function(z) {
|
|
13848
13848
|
z.isCubeTexture ? _A.setTextureCube(z, 0) : z.isData3DTexture ? _A.setTexture3D(z, 0) : z.isDataArrayTexture || z.isCompressedArrayTexture ? _A.setTexture2DArray(z, 0) : _A.setTexture2D(z, 0), vA.unbindTexture();
|
|
13849
13849
|
}, this.resetState = function() {
|
|
@@ -14041,7 +14041,7 @@ class rv {
|
|
|
14041
14041
|
};
|
|
14042
14042
|
}
|
|
14043
14043
|
}
|
|
14044
|
-
const Rw = /* @__PURE__ */ new O(), kw = /* @__PURE__ */ new me(), jw = /* @__PURE__ */ new me(), yD = /* @__PURE__ */ new O(), Kw = /* @__PURE__ */ new zA(), _h = /* @__PURE__ */ new O(), wp = /* @__PURE__ */ new
|
|
14044
|
+
const Rw = /* @__PURE__ */ new O(), kw = /* @__PURE__ */ new me(), jw = /* @__PURE__ */ new me(), yD = /* @__PURE__ */ new O(), Kw = /* @__PURE__ */ new zA(), _h = /* @__PURE__ */ new O(), wp = /* @__PURE__ */ new fi(), Fw = /* @__PURE__ */ new zA(), Cp = /* @__PURE__ */ new Hs();
|
|
14045
14045
|
class wD extends Pe {
|
|
14046
14046
|
constructor(A, e) {
|
|
14047
14047
|
super(A, e), this.isSkinnedMesh = !0, this.type = "SkinnedMesh", this.bindMode = vy, this.bindMatrix = new zA(), this.bindMatrixInverse = new zA(), this.boundingBox = null, this.boundingSphere = null;
|
|
@@ -14055,7 +14055,7 @@ class wD extends Pe {
|
|
|
14055
14055
|
}
|
|
14056
14056
|
computeBoundingSphere() {
|
|
14057
14057
|
const A = this.geometry;
|
|
14058
|
-
this.boundingSphere === null && (this.boundingSphere = new
|
|
14058
|
+
this.boundingSphere === null && (this.boundingSphere = new fi()), this.boundingSphere.makeEmpty();
|
|
14059
14059
|
const e = A.getAttribute("position");
|
|
14060
14060
|
for (let t = 0; t < e.count; t++)
|
|
14061
14061
|
this.getVertexPosition(t, _h), this.boundingSphere.expandByPoint(_h);
|
|
@@ -14105,7 +14105,7 @@ class B2 extends Ie {
|
|
|
14105
14105
|
super(), this.isBone = !0, this.type = "Bone";
|
|
14106
14106
|
}
|
|
14107
14107
|
}
|
|
14108
|
-
class
|
|
14108
|
+
class Ft extends ct {
|
|
14109
14109
|
constructor(A = null, e = 1, t = 1, i, r, s, o, a, l = ue, u = ue, c, h) {
|
|
14110
14110
|
super(null, s, o, a, l, u, i, r, c, h), this.isDataTexture = !0, this.image = { data: A, width: e, height: t }, this.generateMipmaps = !1, this.flipY = !1, this.unpackAlignment = 1;
|
|
14111
14111
|
}
|
|
@@ -14158,7 +14158,7 @@ class sv {
|
|
|
14158
14158
|
A = Math.ceil(A / 4) * 4, A = Math.max(A, 4);
|
|
14159
14159
|
const e = new Float32Array(A * A * 4);
|
|
14160
14160
|
e.set(this.boneMatrices);
|
|
14161
|
-
const t = new
|
|
14161
|
+
const t = new Ft(e, A, A, _e, Se);
|
|
14162
14162
|
return t.needsUpdate = !0, this.boneMatrices = e, this.boneTexture = t, this;
|
|
14163
14163
|
}
|
|
14164
14164
|
getBoneByName(A) {
|
|
@@ -14213,7 +14213,7 @@ class _f extends he {
|
|
|
14213
14213
|
return A.meshPerAttribute = this.meshPerAttribute, A.isInstancedBufferAttribute = !0, A;
|
|
14214
14214
|
}
|
|
14215
14215
|
}
|
|
14216
|
-
const yo = /* @__PURE__ */ new zA(), Hw = /* @__PURE__ */ new zA(), Sh = [], Yw = /* @__PURE__ */ new ve(), xD = /* @__PURE__ */ new zA(), wl = /* @__PURE__ */ new Pe(), Cl = /* @__PURE__ */ new
|
|
14216
|
+
const yo = /* @__PURE__ */ new zA(), Hw = /* @__PURE__ */ new zA(), Sh = [], Yw = /* @__PURE__ */ new ve(), xD = /* @__PURE__ */ new zA(), wl = /* @__PURE__ */ new Pe(), Cl = /* @__PURE__ */ new fi();
|
|
14217
14217
|
class ID extends Pe {
|
|
14218
14218
|
constructor(A, e, t) {
|
|
14219
14219
|
super(A, e), this.isInstancedMesh = !0, this.instanceMatrix = new _f(new Float32Array(t * 16), 16), this.instanceColor = null, this.morphTexture = null, this.count = t, this.boundingBox = null, this.boundingSphere = null;
|
|
@@ -14228,7 +14228,7 @@ class ID extends Pe {
|
|
|
14228
14228
|
}
|
|
14229
14229
|
computeBoundingSphere() {
|
|
14230
14230
|
const A = this.geometry, e = this.count;
|
|
14231
|
-
this.boundingSphere === null && (this.boundingSphere = new
|
|
14231
|
+
this.boundingSphere === null && (this.boundingSphere = new fi()), A.boundingSphere === null && A.computeBoundingSphere(), this.boundingSphere.makeEmpty();
|
|
14232
14232
|
for (let t = 0; t < e; t++)
|
|
14233
14233
|
this.getMatrixAt(t, yo), Cl.copy(A.boundingSphere).applyMatrix4(yo), this.boundingSphere.union(Cl);
|
|
14234
14234
|
}
|
|
@@ -14266,7 +14266,7 @@ class ID extends Pe {
|
|
|
14266
14266
|
}
|
|
14267
14267
|
setMorphAt(A, e) {
|
|
14268
14268
|
const t = e.morphTargetInfluences, i = t.length + 1;
|
|
14269
|
-
this.morphTexture === null && (this.morphTexture = new
|
|
14269
|
+
this.morphTexture === null && (this.morphTexture = new Ft(new Float32Array(i * this.count), i, this.count, qa, Se));
|
|
14270
14270
|
const r = this.morphTexture.source.data.data;
|
|
14271
14271
|
let s = 0;
|
|
14272
14272
|
for (let l = 0; l < t.length; l++)
|
|
@@ -14288,7 +14288,7 @@ class ld extends wn {
|
|
|
14288
14288
|
return super.copy(A), this.color.copy(A.color), this.map = A.map, this.linewidth = A.linewidth, this.linecap = A.linecap, this.linejoin = A.linejoin, this.fog = A.fog, this;
|
|
14289
14289
|
}
|
|
14290
14290
|
}
|
|
14291
|
-
const Sf = /* @__PURE__ */ new O(), Mf = /* @__PURE__ */ new O(), Uw = /* @__PURE__ */ new zA(), xl = /* @__PURE__ */ new Hs(), Mh = /* @__PURE__ */ new
|
|
14291
|
+
const Sf = /* @__PURE__ */ new O(), Mf = /* @__PURE__ */ new O(), Uw = /* @__PURE__ */ new zA(), xl = /* @__PURE__ */ new Hs(), Mh = /* @__PURE__ */ new fi(), xp = /* @__PURE__ */ new O(), Ww = /* @__PURE__ */ new O();
|
|
14292
14292
|
let ov = class extends Ie {
|
|
14293
14293
|
constructor(A = new Re(), e = new ld()) {
|
|
14294
14294
|
super(), this.isLine = !0, this.type = "Line", this.geometry = A, this.material = e, this.updateMorphTargets();
|
|
@@ -14397,7 +14397,7 @@ class z2 extends wn {
|
|
|
14397
14397
|
return super.copy(A), this.color.copy(A.color), this.map = A.map, this.alphaMap = A.alphaMap, this.size = A.size, this.sizeAttenuation = A.sizeAttenuation, this.fog = A.fog, this;
|
|
14398
14398
|
}
|
|
14399
14399
|
}
|
|
14400
|
-
const Xw = /* @__PURE__ */ new zA(), fm = /* @__PURE__ */ new Hs(), Th = /* @__PURE__ */ new
|
|
14400
|
+
const Xw = /* @__PURE__ */ new zA(), fm = /* @__PURE__ */ new Hs(), Th = /* @__PURE__ */ new fi(), Dh = /* @__PURE__ */ new O();
|
|
14401
14401
|
class _D extends Ie {
|
|
14402
14402
|
constructor(A = new Re(), e = new z2()) {
|
|
14403
14403
|
super(), this.isPoints = !0, this.type = "Points", this.geometry = A, this.material = e, this.updateMorphTargets();
|
|
@@ -16413,7 +16413,7 @@ class gE extends Qr {
|
|
|
16413
16413
|
super(A);
|
|
16414
16414
|
}
|
|
16415
16415
|
load(A, e, t, i) {
|
|
16416
|
-
const r = this, s = new
|
|
16416
|
+
const r = this, s = new Ft(), o = new Ec(this.manager);
|
|
16417
16417
|
return o.setResponseType("arraybuffer"), o.setRequestHeader(this.requestHeader), o.setPath(this.path), o.setWithCredentials(r.withCredentials), o.load(A, function(a) {
|
|
16418
16418
|
let l;
|
|
16419
16419
|
try {
|
|
@@ -17338,7 +17338,7 @@ class BE extends gE {
|
|
|
17338
17338
|
I[D + 0] = S[b + 0] * M, I[D + 1] = S[b + 1] * M, I[D + 2] = S[b + 2] * M, I[D + 3] = 1;
|
|
17339
17339
|
}, m = function(S, b, I, D) {
|
|
17340
17340
|
const P = S[b + 3], M = Math.pow(2, P - 128) / 255;
|
|
17341
|
-
I[D + 0] =
|
|
17341
|
+
I[D + 0] = si.toHalfFloat(Math.min(S[b + 0] * M, 65504)), I[D + 1] = si.toHalfFloat(Math.min(S[b + 1] * M, 65504)), I[D + 2] = si.toHalfFloat(Math.min(S[b + 2] * M, 65504)), I[D + 3] = si.toHalfFloat(1);
|
|
17342
17342
|
}, d = new Uint8Array(A);
|
|
17343
17343
|
d.pos = 0;
|
|
17344
17344
|
const g = h(d), y = g.width, v = g.height, w = f(d.subarray(d.pos), y, v);
|
|
@@ -18044,7 +18044,7 @@ const KE = {
|
|
|
18044
18044
|
}
|
|
18045
18045
|
`
|
|
18046
18046
|
)
|
|
18047
|
-
}, h1 = { type: "change" }, Ep = { type: "start" }, u1 = { type: "end" }, kh = new Hs(), f1 = new
|
|
18047
|
+
}, h1 = { type: "change" }, Ep = { type: "start" }, u1 = { type: "end" }, kh = new Hs(), f1 = new Zt(), FE = Math.cos(70 * za.DEG2RAD);
|
|
18048
18048
|
class GE extends Gs {
|
|
18049
18049
|
constructor(A, e) {
|
|
18050
18050
|
super(), this.object = A, this.domElement = e, this.domElement.style.touchAction = "none", this.enabled = !0, this.target = new O(), this.cursor = new O(), this.minDistance = 0, this.maxDistance = 1 / 0, this.minZoom = 0, this.maxZoom = 1 / 0, this.minTargetRadius = 0, this.maxTargetRadius = 1 / 0, this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.enableDamping = !1, this.dampingFactor = 0.05, this.enableZoom = !0, this.zoomSpeed = 1, this.enableRotate = !0, this.rotateSpeed = 1, this.enablePan = !0, this.panSpeed = 1, this.screenSpacePanning = !0, this.keyPanSpeed = 7, this.zoomToCursor = !1, this.autoRotate = !1, this.autoRotateSpeed = 2, this.keys = { LEFT: "ArrowLeft", UP: "ArrowUp", RIGHT: "ArrowRight", BOTTOM: "ArrowDown" }, this.mouseButtons = { LEFT: $s.ROTATE, MIDDLE: $s.DOLLY, RIGHT: $s.PAN }, this.touches = { ONE: Ao.ROTATE, TWO: Ao.DOLLY_PAN }, this.target0 = this.target.clone(), this.position0 = this.object.position.clone(), this.zoom0 = this.object.zoom, this._domElementKeyEvents = null, this.getPolarAngle = function() {
|
|
@@ -18844,19 +18844,19 @@ function eL(n, A, e, t, i, r) {
|
|
|
18844
18844
|
return s;
|
|
18845
18845
|
}
|
|
18846
18846
|
}
|
|
18847
|
-
function
|
|
18847
|
+
function kt(n, A) {
|
|
18848
18848
|
return A[n + 15] === 65535;
|
|
18849
18849
|
}
|
|
18850
|
-
function
|
|
18850
|
+
function Qt(n, A) {
|
|
18851
18851
|
return A[n + 6];
|
|
18852
18852
|
}
|
|
18853
|
-
function
|
|
18853
|
+
function ai(n, A) {
|
|
18854
18854
|
return A[n + 14];
|
|
18855
18855
|
}
|
|
18856
18856
|
function bi(n) {
|
|
18857
18857
|
return n + 8;
|
|
18858
18858
|
}
|
|
18859
|
-
function
|
|
18859
|
+
function li(n, A) {
|
|
18860
18860
|
return A[n + 6];
|
|
18861
18861
|
}
|
|
18862
18862
|
function mv(n, A) {
|
|
@@ -18880,7 +18880,7 @@ function wm(n, A) {
|
|
|
18880
18880
|
sb.set(new Uint8Array(s), n);
|
|
18881
18881
|
for (let o = n, a = n + s.byteLength; o < a; o += Fr) {
|
|
18882
18882
|
const l = o / 2;
|
|
18883
|
-
|
|
18883
|
+
kt(l, ef) || (Jl[o / 4 + 6] += e);
|
|
18884
18884
|
}
|
|
18885
18885
|
return n + s.byteLength;
|
|
18886
18886
|
} else {
|
|
@@ -19024,7 +19024,7 @@ const oL = function() {
|
|
|
19024
19024
|
}
|
|
19025
19025
|
};
|
|
19026
19026
|
}(), aL = function() {
|
|
19027
|
-
const n = new O(), A = new O(), e = new
|
|
19027
|
+
const n = new O(), A = new O(), e = new Zt(), t = new Te();
|
|
19028
19028
|
return function(r, s) {
|
|
19029
19029
|
const { radius: o, center: a } = r, { a: l, b: u, c } = s;
|
|
19030
19030
|
if (t.start = l, t.end = u, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o || (t.start = l, t.end = c, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o) || (t.start = u, t.end = c, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o))
|
|
@@ -19041,9 +19041,9 @@ const oL = function() {
|
|
|
19041
19041
|
function Bp(n) {
|
|
19042
19042
|
return Math.abs(n) < lL;
|
|
19043
19043
|
}
|
|
19044
|
-
let
|
|
19044
|
+
let ui = class extends Ze {
|
|
19045
19045
|
constructor(...A) {
|
|
19046
|
-
super(...A), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new O()), this.satBounds = new Array(4).fill().map(() => new ir()), this.points = [this.a, this.b, this.c], this.sphere = new
|
|
19046
|
+
super(...A), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new O()), this.satBounds = new Array(4).fill().map(() => new ir()), this.points = [this.a, this.b, this.c], this.sphere = new fi(), this.plane = new Zt(), this.needsUpdate = !0;
|
|
19047
19047
|
}
|
|
19048
19048
|
intersectsSphere(A) {
|
|
19049
19049
|
return aL(A, this);
|
|
@@ -19059,7 +19059,7 @@ let hi = class extends Ze {
|
|
|
19059
19059
|
f.subVectors(t, A), p.setFromPoints(f, i), this.sphere.setFromPoints(this.points), this.plane.setFromNormalAndCoplanarPoint(o, A), this.needsUpdate = !1;
|
|
19060
19060
|
}
|
|
19061
19061
|
};
|
|
19062
|
-
|
|
19062
|
+
ui.prototype.closestPointToSegment = function() {
|
|
19063
19063
|
const n = new O(), A = new O(), e = new Te();
|
|
19064
19064
|
return function(i, r = null, s = null) {
|
|
19065
19065
|
const { start: o, end: a } = i, l = this.points;
|
|
@@ -19071,8 +19071,8 @@ hi.prototype.closestPointToSegment = function() {
|
|
|
19071
19071
|
return this.closestPointToPoint(o, n), u = o.distanceToSquared(n), u < c && (c = u, r && r.copy(n), s && s.copy(o)), this.closestPointToPoint(a, n), u = a.distanceToSquared(n), u < c && (c = u, r && r.copy(n), s && s.copy(a)), Math.sqrt(c);
|
|
19072
19072
|
};
|
|
19073
19073
|
}();
|
|
19074
|
-
|
|
19075
|
-
const n = new
|
|
19074
|
+
ui.prototype.intersectsTriangle = function() {
|
|
19075
|
+
const n = new ui(), A = new Array(3), e = new Array(3), t = new ir(), i = new ir(), r = new O(), s = new O(), o = new O(), a = new O(), l = new O(), u = new Te(), c = new Te(), h = new Te(), f = new O();
|
|
19076
19076
|
function p(m, d, g) {
|
|
19077
19077
|
const y = m.points;
|
|
19078
19078
|
let v = 0, w = -1;
|
|
@@ -19145,13 +19145,13 @@ hi.prototype.intersectsTriangle = function() {
|
|
|
19145
19145
|
}
|
|
19146
19146
|
};
|
|
19147
19147
|
}();
|
|
19148
|
-
|
|
19148
|
+
ui.prototype.distanceToPoint = function() {
|
|
19149
19149
|
const n = new O();
|
|
19150
19150
|
return function(e) {
|
|
19151
19151
|
return this.closestPointToPoint(e, n), e.distanceTo(n);
|
|
19152
19152
|
};
|
|
19153
19153
|
}();
|
|
19154
|
-
|
|
19154
|
+
ui.prototype.distanceToTriangle = function() {
|
|
19155
19155
|
const n = new O(), A = new O(), e = ["a", "b", "c"], t = new Te(), i = new Te();
|
|
19156
19156
|
return function(s, o = null, a = null) {
|
|
19157
19157
|
const l = o || a ? t : null;
|
|
@@ -19178,7 +19178,7 @@ hi.prototype.distanceToTriangle = function() {
|
|
|
19178
19178
|
return Math.sqrt(u);
|
|
19179
19179
|
};
|
|
19180
19180
|
}();
|
|
19181
|
-
let
|
|
19181
|
+
let Ht = class {
|
|
19182
19182
|
constructor(A, e, t) {
|
|
19183
19183
|
this.isOrientedBox = !0, this.min = new O(), this.max = new O(), this.matrix = new zA(), this.invMatrix = new zA(), this.points = new Array(8).fill().map(() => new O()), this.satAxes = new Array(3).fill().map(() => new O()), this.satBounds = new Array(3).fill().map(() => new ir()), this.alignedSatBounds = new Array(3).fill().map(() => new ir()), this.needsUpdate = !1, A && this.min.copy(A), e && this.max.copy(e), t && this.matrix.copy(t);
|
|
19184
19184
|
}
|
|
@@ -19189,7 +19189,7 @@ let Gt = class {
|
|
|
19189
19189
|
this.min.copy(A.min), this.max.copy(A.max), this.matrix.copy(A.matrix), this.needsUpdate = !0;
|
|
19190
19190
|
}
|
|
19191
19191
|
};
|
|
19192
|
-
|
|
19192
|
+
Ht.prototype.update = /* @__PURE__ */ function() {
|
|
19193
19193
|
return function() {
|
|
19194
19194
|
const A = this.matrix, e = this.min, t = this.max, i = this.points;
|
|
19195
19195
|
for (let l = 0; l <= 1; l++)
|
|
@@ -19207,7 +19207,7 @@ Gt.prototype.update = /* @__PURE__ */ function() {
|
|
|
19207
19207
|
a[0].setFromPointsField(i, "x"), a[1].setFromPointsField(i, "y"), a[2].setFromPointsField(i, "z"), this.invMatrix.copy(this.matrix).invert(), this.needsUpdate = !1;
|
|
19208
19208
|
};
|
|
19209
19209
|
}();
|
|
19210
|
-
|
|
19210
|
+
Ht.prototype.intersectsBox = function() {
|
|
19211
19211
|
const n = new ir();
|
|
19212
19212
|
return function(e) {
|
|
19213
19213
|
this.needsUpdate && this.update();
|
|
@@ -19222,8 +19222,8 @@ Gt.prototype.intersectsBox = function() {
|
|
|
19222
19222
|
return !0;
|
|
19223
19223
|
};
|
|
19224
19224
|
}();
|
|
19225
|
-
|
|
19226
|
-
const n = new
|
|
19225
|
+
Ht.prototype.intersectsTriangle = function() {
|
|
19226
|
+
const n = new ui(), A = new Array(3), e = new ir(), t = new ir(), i = new O();
|
|
19227
19227
|
return function(s) {
|
|
19228
19228
|
this.needsUpdate && this.update(), s.isExtendedTriangle ? s.needsUpdate && s.update() : (n.copy(s), n.update(), s = n);
|
|
19229
19229
|
const o = this.satBounds, a = this.satAxes;
|
|
@@ -19250,18 +19250,18 @@ Gt.prototype.intersectsTriangle = function() {
|
|
|
19250
19250
|
return !0;
|
|
19251
19251
|
};
|
|
19252
19252
|
}();
|
|
19253
|
-
|
|
19253
|
+
Ht.prototype.closestPointToPoint = /* @__PURE__ */ function() {
|
|
19254
19254
|
return function(A, e) {
|
|
19255
19255
|
return this.needsUpdate && this.update(), e.copy(A).applyMatrix4(this.invMatrix).clamp(this.min, this.max).applyMatrix4(this.matrix), e;
|
|
19256
19256
|
};
|
|
19257
19257
|
}();
|
|
19258
|
-
|
|
19258
|
+
Ht.prototype.distanceToPoint = function() {
|
|
19259
19259
|
const n = new O();
|
|
19260
19260
|
return function(e) {
|
|
19261
19261
|
return this.closestPointToPoint(e, n), e.distanceTo(n);
|
|
19262
19262
|
};
|
|
19263
19263
|
}();
|
|
19264
|
-
|
|
19264
|
+
Ht.prototype.distanceToBox = function() {
|
|
19265
19265
|
const n = ["x", "y", "z"], A = new Array(12).fill().map(() => new Te()), e = new Array(12).fill().map(() => new Te()), t = new O(), i = new O();
|
|
19266
19266
|
return function(s, o = 0, a = null, l = null) {
|
|
19267
19267
|
if (this.needsUpdate && this.update(), this.intersectsBox(s))
|
|
@@ -19318,7 +19318,7 @@ let yv = class {
|
|
|
19318
19318
|
}
|
|
19319
19319
|
}, cL = class extends yv {
|
|
19320
19320
|
constructor() {
|
|
19321
|
-
super(() => new
|
|
19321
|
+
super(() => new ui());
|
|
19322
19322
|
}
|
|
19323
19323
|
};
|
|
19324
19324
|
const _i = /* @__PURE__ */ new cL();
|
|
@@ -19347,24 +19347,24 @@ function uL(n, A, e, t, i, r) {
|
|
|
19347
19347
|
function Cm(n, A, e, t, i = null, r = 0, s = 0) {
|
|
19348
19348
|
const { float32Array: o, uint16Array: a, uint32Array: l } = Ne;
|
|
19349
19349
|
let u = n * 2;
|
|
19350
|
-
if (
|
|
19351
|
-
const h =
|
|
19350
|
+
if (kt(u, a)) {
|
|
19351
|
+
const h = Qt(n, l), f = ai(u, a);
|
|
19352
19352
|
return We(n, o, Br), t(h, f, !1, s, r + n, Br);
|
|
19353
19353
|
} else {
|
|
19354
19354
|
let I = function(P) {
|
|
19355
19355
|
const { uint16Array: M, uint32Array: T } = Ne;
|
|
19356
19356
|
let q = P * 2;
|
|
19357
|
-
for (; !
|
|
19357
|
+
for (; !kt(q, M); )
|
|
19358
19358
|
P = bi(P), q = P * 2;
|
|
19359
|
-
return
|
|
19359
|
+
return Qt(P, T);
|
|
19360
19360
|
}, D = function(P) {
|
|
19361
19361
|
const { uint16Array: M, uint32Array: T } = Ne;
|
|
19362
19362
|
let q = P * 2;
|
|
19363
|
-
for (; !
|
|
19364
|
-
P =
|
|
19365
|
-
return
|
|
19363
|
+
for (; !kt(q, M); )
|
|
19364
|
+
P = li(P, T), q = P * 2;
|
|
19365
|
+
return Qt(P, T) + ai(q, M);
|
|
19366
19366
|
};
|
|
19367
|
-
const h = bi(n), f =
|
|
19367
|
+
const h = bi(n), f = li(n, l);
|
|
19368
19368
|
let p = h, m = f, d, g, y, v;
|
|
19369
19369
|
if (i && (y = Br, v = fa, We(p, o, y), We(m, o, v), d = i(y), g = i(v), g < d)) {
|
|
19370
19370
|
p = f, m = h;
|
|
@@ -19372,7 +19372,7 @@ function Cm(n, A, e, t, i = null, r = 0, s = 0) {
|
|
|
19372
19372
|
d = g, g = P, y = v;
|
|
19373
19373
|
}
|
|
19374
19374
|
y || (y = Br, We(p, o, y));
|
|
19375
|
-
const w =
|
|
19375
|
+
const w = kt(p * 2, a), C = e(y, w, d, s + 1, r + p);
|
|
19376
19376
|
let _;
|
|
19377
19377
|
if (C === d1) {
|
|
19378
19378
|
const P = I(p), T = D(p) - P;
|
|
@@ -19390,7 +19390,7 @@ function Cm(n, A, e, t, i = null, r = 0, s = 0) {
|
|
|
19390
19390
|
if (_)
|
|
19391
19391
|
return !0;
|
|
19392
19392
|
v = fa, We(m, o, v);
|
|
19393
|
-
const x =
|
|
19393
|
+
const x = kt(m * 2, a), S = e(v, x, g, s + 1, r + m);
|
|
19394
19394
|
let b;
|
|
19395
19395
|
if (S === d1) {
|
|
19396
19396
|
const P = I(m), T = D(m) - P;
|
|
@@ -19563,13 +19563,13 @@ function IL(n, A, e, t, i, r, s) {
|
|
|
19563
19563
|
}
|
|
19564
19564
|
function xm(n, A, e, t, i, r, s) {
|
|
19565
19565
|
const { float32Array: o, uint16Array: a, uint32Array: l } = Ne, u = n * 2;
|
|
19566
|
-
if (
|
|
19567
|
-
const h =
|
|
19566
|
+
if (kt(u, a)) {
|
|
19567
|
+
const h = Qt(n, l), f = ai(u, a);
|
|
19568
19568
|
gL(A, e, t, h, f, i, r, s);
|
|
19569
19569
|
} else {
|
|
19570
19570
|
const h = bi(n);
|
|
19571
19571
|
Ur(h, o, t, r, s) && xm(h, A, e, t, i, r, s);
|
|
19572
|
-
const f =
|
|
19572
|
+
const f = li(n, l);
|
|
19573
19573
|
Ur(f, o, t, r, s) && xm(f, A, e, t, i, r, s);
|
|
19574
19574
|
}
|
|
19575
19575
|
}
|
|
@@ -19582,13 +19582,13 @@ function _L(n, A, e, t, i, r) {
|
|
|
19582
19582
|
function Im(n, A, e, t, i, r) {
|
|
19583
19583
|
const { float32Array: s, uint16Array: o, uint32Array: a } = Ne;
|
|
19584
19584
|
let l = n * 2;
|
|
19585
|
-
if (
|
|
19586
|
-
const c =
|
|
19585
|
+
if (kt(l, o)) {
|
|
19586
|
+
const c = Qt(n, a), h = ai(l, o);
|
|
19587
19587
|
return mL(A, e, t, c, h, i, r);
|
|
19588
19588
|
} else {
|
|
19589
19589
|
const c = mv(n, a), h = bL[c], p = t.direction[h] >= 0;
|
|
19590
19590
|
let m, d;
|
|
19591
|
-
p ? (m = bi(n), d =
|
|
19591
|
+
p ? (m = bi(n), d = li(n, a)) : (m = li(n, a), d = bi(n));
|
|
19592
19592
|
const y = Ur(m, s, t, i, r) ? Im(m, A, e, t, i, r) : null;
|
|
19593
19593
|
if (y) {
|
|
19594
19594
|
const C = y.point[h];
|
|
@@ -19602,7 +19602,7 @@ function Im(n, A, e, t, i, r) {
|
|
|
19602
19602
|
return y && w ? y.distance <= w.distance ? y : w : y || w || null;
|
|
19603
19603
|
}
|
|
19604
19604
|
}
|
|
19605
|
-
const Wh = /* @__PURE__ */ new ve(), bo = /* @__PURE__ */ new
|
|
19605
|
+
const Wh = /* @__PURE__ */ new ve(), bo = /* @__PURE__ */ new ui(), _o = /* @__PURE__ */ new ui(), Sl = /* @__PURE__ */ new zA(), x1 = /* @__PURE__ */ new Ht(), Jh = /* @__PURE__ */ new Ht();
|
|
19606
19606
|
function SL(n, A, e, t) {
|
|
19607
19607
|
Ne.setBuffer(n._roots[A]);
|
|
19608
19608
|
const i = bm(0, n, e, t);
|
|
@@ -19611,8 +19611,8 @@ function SL(n, A, e, t) {
|
|
|
19611
19611
|
function bm(n, A, e, t, i = null) {
|
|
19612
19612
|
const { float32Array: r, uint16Array: s, uint32Array: o } = Ne;
|
|
19613
19613
|
let a = n * 2;
|
|
19614
|
-
if (i === null && (e.boundingBox || e.computeBoundingBox(), x1.set(e.boundingBox.min, e.boundingBox.max, t), i = x1),
|
|
19615
|
-
const u = A.geometry, c = u.index, h = u.attributes.position, f = e.index, p = e.attributes.position, m =
|
|
19614
|
+
if (i === null && (e.boundingBox || e.computeBoundingBox(), x1.set(e.boundingBox.min, e.boundingBox.max, t), i = x1), kt(a, s)) {
|
|
19615
|
+
const u = A.geometry, c = u.index, h = u.attributes.position, f = e.index, p = e.attributes.position, m = Qt(n, o), d = ai(a, s);
|
|
19616
19616
|
if (Sl.copy(t).invert(), e.boundsTree)
|
|
19617
19617
|
return We(n, r, Jh), Jh.matrix.copy(Sl), Jh.needsUpdate = !0, e.boundsTree.shapecast({
|
|
19618
19618
|
intersectsBounds: (y) => Jh.intersectsBox(y),
|
|
@@ -19635,7 +19635,7 @@ function bm(n, A, e, t, i = null) {
|
|
|
19635
19635
|
return We(u, r, Wh), !!(i.intersectsBox(Wh) && bm(u, A, e, t, i) || (We(c, r, Wh), i.intersectsBox(Wh) && bm(c, A, e, t, i)));
|
|
19636
19636
|
}
|
|
19637
19637
|
}
|
|
19638
|
-
const Zh = /* @__PURE__ */ new zA(), Rp = /* @__PURE__ */ new
|
|
19638
|
+
const Zh = /* @__PURE__ */ new zA(), Rp = /* @__PURE__ */ new Ht(), Ml = /* @__PURE__ */ new Ht(), ML = /* @__PURE__ */ new O(), PL = /* @__PURE__ */ new O(), TL = /* @__PURE__ */ new O(), DL = /* @__PURE__ */ new O();
|
|
19639
19639
|
function EL(n, A, e, t = {}, i = {}, r = 0, s = 1 / 0) {
|
|
19640
19640
|
A.boundingBox || A.computeBoundingBox(), Rp.set(A.boundingBox.min, A.boundingBox.max, e), Rp.needsUpdate = !0;
|
|
19641
19641
|
const o = n.geometry, a = o.attributes.position, l = o.index, u = A.attributes.position, c = A.index, h = _i.getPrimitive(), f = _i.getPrimitive();
|
|
@@ -19725,13 +19725,13 @@ function OL(n, A, e, t, i, r, s) {
|
|
|
19725
19725
|
}
|
|
19726
19726
|
function _m(n, A, e, t, i, r, s) {
|
|
19727
19727
|
const { float32Array: o, uint16Array: a, uint32Array: l } = Ne, u = n * 2;
|
|
19728
|
-
if (
|
|
19729
|
-
const h =
|
|
19728
|
+
if (kt(u, a)) {
|
|
19729
|
+
const h = Qt(n, l), f = ai(u, a);
|
|
19730
19730
|
wL(A, e, t, h, f, i, r, s);
|
|
19731
19731
|
} else {
|
|
19732
19732
|
const h = bi(n);
|
|
19733
19733
|
Ur(h, o, t, r, s) && _m(h, A, e, t, i, r, s);
|
|
19734
|
-
const f =
|
|
19734
|
+
const f = li(n, l);
|
|
19735
19735
|
Ur(f, o, t, r, s) && _m(f, A, e, t, i, r, s);
|
|
19736
19736
|
}
|
|
19737
19737
|
}
|
|
@@ -19744,13 +19744,13 @@ function NL(n, A, e, t, i, r) {
|
|
|
19744
19744
|
function Sm(n, A, e, t, i, r) {
|
|
19745
19745
|
const { float32Array: s, uint16Array: o, uint32Array: a } = Ne;
|
|
19746
19746
|
let l = n * 2;
|
|
19747
|
-
if (
|
|
19748
|
-
const c =
|
|
19747
|
+
if (kt(l, o)) {
|
|
19748
|
+
const c = Qt(n, a), h = ai(l, o);
|
|
19749
19749
|
return CL(A, e, t, c, h, i, r);
|
|
19750
19750
|
} else {
|
|
19751
19751
|
const c = mv(n, a), h = qL[c], p = t.direction[h] >= 0;
|
|
19752
19752
|
let m, d;
|
|
19753
|
-
p ? (m = bi(n), d =
|
|
19753
|
+
p ? (m = bi(n), d = li(n, a)) : (m = li(n, a), d = bi(n));
|
|
19754
19754
|
const y = Ur(m, s, t, i, r) ? Sm(m, A, e, t, i, r) : null;
|
|
19755
19755
|
if (y) {
|
|
19756
19756
|
const C = y.point[h];
|
|
@@ -19764,7 +19764,7 @@ function Sm(n, A, e, t, i, r) {
|
|
|
19764
19764
|
return y && w ? y.distance <= w.distance ? y : w : y || w || null;
|
|
19765
19765
|
}
|
|
19766
19766
|
}
|
|
19767
|
-
const Xh = /* @__PURE__ */ new ve(), So = /* @__PURE__ */ new
|
|
19767
|
+
const Xh = /* @__PURE__ */ new ve(), So = /* @__PURE__ */ new ui(), Mo = /* @__PURE__ */ new ui(), Pl = /* @__PURE__ */ new zA(), I1 = /* @__PURE__ */ new Ht(), Qh = /* @__PURE__ */ new Ht();
|
|
19768
19768
|
function BL(n, A, e, t) {
|
|
19769
19769
|
Ne.setBuffer(n._roots[A]);
|
|
19770
19770
|
const i = Mm(0, n, e, t);
|
|
@@ -19773,8 +19773,8 @@ function BL(n, A, e, t) {
|
|
|
19773
19773
|
function Mm(n, A, e, t, i = null) {
|
|
19774
19774
|
const { float32Array: r, uint16Array: s, uint32Array: o } = Ne;
|
|
19775
19775
|
let a = n * 2;
|
|
19776
|
-
if (i === null && (e.boundingBox || e.computeBoundingBox(), I1.set(e.boundingBox.min, e.boundingBox.max, t), i = I1),
|
|
19777
|
-
const u = A.geometry, c = u.index, h = u.attributes.position, f = e.index, p = e.attributes.position, m =
|
|
19776
|
+
if (i === null && (e.boundingBox || e.computeBoundingBox(), I1.set(e.boundingBox.min, e.boundingBox.max, t), i = I1), kt(a, s)) {
|
|
19777
|
+
const u = A.geometry, c = u.index, h = u.attributes.position, f = e.index, p = e.attributes.position, m = Qt(n, o), d = ai(a, s);
|
|
19778
19778
|
if (Pl.copy(t).invert(), e.boundsTree)
|
|
19779
19779
|
return We(n, r, Qh), Qh.matrix.copy(Pl), Qh.needsUpdate = !0, e.boundsTree.shapecast({
|
|
19780
19780
|
intersectsBounds: (y) => Qh.intersectsBox(y),
|
|
@@ -19798,7 +19798,7 @@ function Mm(n, A, e, t, i = null) {
|
|
|
19798
19798
|
return We(u, r, Xh), !!(i.intersectsBox(Xh) && Mm(u, A, e, t, i) || (We(c, r, Xh), i.intersectsBox(Xh) && Mm(c, A, e, t, i)));
|
|
19799
19799
|
}
|
|
19800
19800
|
}
|
|
19801
|
-
const Vh = /* @__PURE__ */ new zA(), kp = /* @__PURE__ */ new
|
|
19801
|
+
const Vh = /* @__PURE__ */ new zA(), kp = /* @__PURE__ */ new Ht(), Tl = /* @__PURE__ */ new Ht(), zL = /* @__PURE__ */ new O(), RL = /* @__PURE__ */ new O(), kL = /* @__PURE__ */ new O(), jL = /* @__PURE__ */ new O();
|
|
19802
19802
|
function KL(n, A, e, t = {}, i = {}, r = 0, s = 1 / 0) {
|
|
19803
19803
|
A.boundingBox || A.computeBoundingBox(), kp.set(A.boundingBox.min, A.boundingBox.max, e), kp.needsUpdate = !0;
|
|
19804
19804
|
const o = n.geometry, a = o.attributes.position, l = o.index, u = A.attributes.position, c = A.index, h = _i.getPrimitive(), f = _i.getPrimitive();
|
|
@@ -19883,23 +19883,23 @@ function GL(n, A, e, t) {
|
|
|
19883
19883
|
function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
19884
19884
|
let c, h;
|
|
19885
19885
|
u ? (c = Tf, h = hc) : (c = hc, h = Tf);
|
|
19886
|
-
const f = c.float32Array, p = c.uint32Array, m = c.uint16Array, d = h.float32Array, g = h.uint32Array, y = h.uint16Array, v = n * 2, w = A * 2, C =
|
|
19886
|
+
const f = c.float32Array, p = c.uint32Array, m = c.uint16Array, d = h.float32Array, g = h.uint32Array, y = h.uint16Array, v = n * 2, w = A * 2, C = kt(v, m), _ = kt(w, y);
|
|
19887
19887
|
let x = !1;
|
|
19888
19888
|
if (_ && C)
|
|
19889
19889
|
u ? x = i(
|
|
19890
|
-
|
|
19891
|
-
|
|
19892
|
-
|
|
19893
|
-
|
|
19890
|
+
Qt(A, g),
|
|
19891
|
+
ai(A * 2, y),
|
|
19892
|
+
Qt(n, p),
|
|
19893
|
+
ai(n * 2, m),
|
|
19894
19894
|
a,
|
|
19895
19895
|
s + A,
|
|
19896
19896
|
o,
|
|
19897
19897
|
r + n
|
|
19898
19898
|
) : x = i(
|
|
19899
|
-
|
|
19900
|
-
|
|
19901
|
-
|
|
19902
|
-
|
|
19899
|
+
Qt(n, p),
|
|
19900
|
+
ai(n * 2, m),
|
|
19901
|
+
Qt(A, g),
|
|
19902
|
+
ai(A * 2, y),
|
|
19903
19903
|
o,
|
|
19904
19904
|
r + n,
|
|
19905
19905
|
a,
|
|
@@ -19908,7 +19908,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
19908
19908
|
else if (_) {
|
|
19909
19909
|
const S = Pr.getPrimitive();
|
|
19910
19910
|
We(A, d, S), S.applyMatrix4(e);
|
|
19911
|
-
const b = bi(n), I =
|
|
19911
|
+
const b = bi(n), I = li(n, p);
|
|
19912
19912
|
We(b, f, Po), We(I, f, To);
|
|
19913
19913
|
const D = S.intersectsBox(Po), P = S.intersectsBox(To);
|
|
19914
19914
|
x = D && Yi(
|
|
@@ -19937,7 +19937,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
19937
19937
|
!u
|
|
19938
19938
|
), Pr.releasePrimitive(S);
|
|
19939
19939
|
} else {
|
|
19940
|
-
const S = bi(A), b =
|
|
19940
|
+
const S = bi(A), b = li(A, g);
|
|
19941
19941
|
We(S, d, jp), We(b, d, Kp);
|
|
19942
19942
|
const I = l.intersectsBox(jp), D = l.intersectsBox(Kp);
|
|
19943
19943
|
if (I && D)
|
|
@@ -19984,7 +19984,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
19984
19984
|
else {
|
|
19985
19985
|
const P = Pr.getPrimitive();
|
|
19986
19986
|
P.copy(jp).applyMatrix4(e);
|
|
19987
|
-
const M = bi(n), T =
|
|
19987
|
+
const M = bi(n), T = li(n, p);
|
|
19988
19988
|
We(M, f, Po), We(T, f, To);
|
|
19989
19989
|
const q = P.intersectsBox(Po), B = P.intersectsBox(To);
|
|
19990
19990
|
x = q && Yi(
|
|
@@ -20031,7 +20031,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
20031
20031
|
else {
|
|
20032
20032
|
const P = Pr.getPrimitive();
|
|
20033
20033
|
P.copy(Kp).applyMatrix4(e);
|
|
20034
|
-
const M = bi(n), T =
|
|
20034
|
+
const M = bi(n), T = li(n, p);
|
|
20035
20035
|
We(M, f, Po), We(T, f, To);
|
|
20036
20036
|
const q = P.intersectsBox(Po), B = P.intersectsBox(To);
|
|
20037
20037
|
x = q && Yi(
|
|
@@ -20063,7 +20063,7 @@ function Yi(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
20063
20063
|
}
|
|
20064
20064
|
return x;
|
|
20065
20065
|
}
|
|
20066
|
-
const $h = /* @__PURE__ */ new
|
|
20066
|
+
const $h = /* @__PURE__ */ new Ht(), b1 = /* @__PURE__ */ new ve(), HL = {
|
|
20067
20067
|
strategy: $2,
|
|
20068
20068
|
maxDepth: 40,
|
|
20069
20069
|
maxLeafTris: 10,
|
|
@@ -20144,7 +20144,7 @@ let ob = class ab {
|
|
|
20144
20144
|
}
|
|
20145
20145
|
}
|
|
20146
20146
|
/* Core Cast Functions */
|
|
20147
|
-
raycast(A, e =
|
|
20147
|
+
raycast(A, e = Gt, t = 0, i = 1 / 0) {
|
|
20148
20148
|
const r = this._roots, s = this.geometry, o = [], a = e.isMaterial, l = Array.isArray(e), u = s.groups, c = a ? e.side : e, h = this.indirect ? OL : IL;
|
|
20149
20149
|
for (let f = 0, p = r.length; f < p; f++) {
|
|
20150
20150
|
const m = l ? e[u[f].materialIndex].side : c, d = o.length;
|
|
@@ -20156,7 +20156,7 @@ let ob = class ab {
|
|
|
20156
20156
|
}
|
|
20157
20157
|
return o;
|
|
20158
20158
|
}
|
|
20159
|
-
raycastFirst(A, e =
|
|
20159
|
+
raycastFirst(A, e = Gt, t = 0, i = 1 / 0) {
|
|
20160
20160
|
const r = this._roots, s = this.geometry, o = e.isMaterial, a = Array.isArray(e);
|
|
20161
20161
|
let l = null;
|
|
20162
20162
|
const u = s.groups, c = o ? e.side : e, h = this.indirect ? NL : _L;
|
|
@@ -20312,7 +20312,7 @@ function _1(n) {
|
|
|
20312
20312
|
return Sc;
|
|
20313
20313
|
}
|
|
20314
20314
|
}
|
|
20315
|
-
class lb extends
|
|
20315
|
+
class lb extends Ft {
|
|
20316
20316
|
constructor() {
|
|
20317
20317
|
super(), this.minFilter = ue, this.magFilter = ue, this.generateMipmaps = !1, this.overrideItemSize = null, this._forcedType = null;
|
|
20318
20318
|
}
|
|
@@ -20375,7 +20375,7 @@ class hb extends lb {
|
|
|
20375
20375
|
}
|
|
20376
20376
|
class WL {
|
|
20377
20377
|
constructor() {
|
|
20378
|
-
this.index = new cb(), this.position = new hb(), this.bvhBounds = new
|
|
20378
|
+
this.index = new cb(), this.position = new hb(), this.bvhBounds = new Ft(), this.bvhContents = new Ft(), this._cachedIndexAttr = null, this.index.overrideItemSize = 3;
|
|
20379
20379
|
}
|
|
20380
20380
|
updateFrom(A) {
|
|
20381
20381
|
const { geometry: e } = A;
|
|
@@ -20414,11 +20414,11 @@ function ZL(n, A, e) {
|
|
|
20414
20414
|
const p = f * Fr / 4, m = p * 2, d = p;
|
|
20415
20415
|
for (let g = 0; g < 3; g++)
|
|
20416
20416
|
u[8 * f + 0 + g] = o[d + 0 + g], u[8 * f + 4 + g] = o[d + 3 + g];
|
|
20417
|
-
if (
|
|
20418
|
-
const g =
|
|
20417
|
+
if (kt(m, r)) {
|
|
20418
|
+
const g = ai(m, r), y = Qt(p, s), v = 4294901760 | g;
|
|
20419
20419
|
h[f * 2 + 0] = v, h[f * 2 + 1] = y;
|
|
20420
20420
|
} else {
|
|
20421
|
-
const g = 4 *
|
|
20421
|
+
const g = 4 * li(p, s) / Fr, y = mv(p, s);
|
|
20422
20422
|
h[f * 2 + 0] = y, h[f * 2 + 1] = g;
|
|
20423
20423
|
}
|
|
20424
20424
|
}
|
|
@@ -21039,7 +21039,7 @@ class d7 {
|
|
|
21039
21039
|
}
|
|
21040
21040
|
_getDummyMesh() {
|
|
21041
21041
|
if (!this._dummyMesh) {
|
|
21042
|
-
const A = new
|
|
21042
|
+
const A = new oi(), e = new Re();
|
|
21043
21043
|
e.setAttribute("position", new he(new Float32Array(9), 3)), this._dummyMesh = new Pe(e, A);
|
|
21044
21044
|
}
|
|
21045
21045
|
return this._dummyMesh;
|
|
@@ -21551,7 +21551,7 @@ class b7 {
|
|
|
21551
21551
|
function Yp(n) {
|
|
21552
21552
|
const A = new Uint16Array(n.length);
|
|
21553
21553
|
for (let e = 0, t = n.length; e < t; ++e)
|
|
21554
|
-
A[e] =
|
|
21554
|
+
A[e] = si.toHalfFloat(n[e]);
|
|
21555
21555
|
return A;
|
|
21556
21556
|
}
|
|
21557
21557
|
function O1(n, A, e = 0, t = n.length) {
|
|
@@ -21576,7 +21576,7 @@ function S7(n, A = Oe) {
|
|
|
21576
21576
|
r instanceof Int8Array || r instanceof Int16Array || r instanceof Int32Array ? o = 2 ** (8 * r.BYTES_PER_ELEMENT - 1) - 1 : o = 2 ** (8 * r.BYTES_PER_ELEMENT) - 1;
|
|
21577
21577
|
for (let a = 0, l = r.length; a < l; a++) {
|
|
21578
21578
|
let u = r[a];
|
|
21579
|
-
e.type === Oe && (u =
|
|
21579
|
+
e.type === Oe && (u = si.fromHalfFloat(r[a])), e.type !== Se && e.type !== Oe && (u /= o), A === Oe && (s[a] = si.toHalfFloat(u));
|
|
21580
21580
|
}
|
|
21581
21581
|
e.image.data = s, e.type = A;
|
|
21582
21582
|
}
|
|
@@ -21594,11 +21594,11 @@ function S7(n, A = Oe) {
|
|
|
21594
21594
|
}
|
|
21595
21595
|
class M7 {
|
|
21596
21596
|
constructor() {
|
|
21597
|
-
const A = new
|
|
21598
|
-
A.type = Oe, A.format = _e, A.minFilter = we, A.magFilter = we, A.wrapS =
|
|
21599
|
-
const e = new
|
|
21597
|
+
const A = new Ft(Yp(new Float32Array([0, 0, 0, 0])), 1, 1);
|
|
21598
|
+
A.type = Oe, A.format = _e, A.minFilter = we, A.magFilter = we, A.wrapS = Kt, A.wrapT = Kt, A.generateMipmaps = !1, A.needsUpdate = !0;
|
|
21599
|
+
const e = new Ft(Yp(new Float32Array([0, 1])), 1, 2);
|
|
21600
21600
|
e.type = Oe, e.format = qa, e.minFilter = we, e.magFilter = we, e.generateMipmaps = !1, e.needsUpdate = !0;
|
|
21601
|
-
const t = new
|
|
21601
|
+
const t = new Ft(Yp(new Float32Array([0, 0, 1, 1])), 2, 2);
|
|
21602
21602
|
t.type = Oe, t.format = qa, t.minFilter = we, t.magFilter = we, t.generateMipmaps = !1, t.needsUpdate = !0, this.map = A, this.marginalWeights = e, this.conditionalWeights = t, this.totalSum = 0;
|
|
21603
21603
|
}
|
|
21604
21604
|
dispose() {
|
|
@@ -21606,13 +21606,13 @@ class M7 {
|
|
|
21606
21606
|
}
|
|
21607
21607
|
updateFrom(A) {
|
|
21608
21608
|
const e = S7(A);
|
|
21609
|
-
e.wrapS =
|
|
21609
|
+
e.wrapS = Kt, e.wrapT = it;
|
|
21610
21610
|
const { width: t, height: i, data: r } = e.image, s = new Float32Array(t * i), o = new Float32Array(t * i), a = new Float32Array(i), l = new Float32Array(i);
|
|
21611
21611
|
let u = 0, c = 0;
|
|
21612
21612
|
for (let d = 0; d < i; d++) {
|
|
21613
21613
|
let g = 0;
|
|
21614
21614
|
for (let y = 0; y < t; y++) {
|
|
21615
|
-
const v = d * t + y, w =
|
|
21615
|
+
const v = d * t + y, w = si.fromHalfFloat(r[4 * v + 0]), C = si.fromHalfFloat(r[4 * v + 1]), _ = si.fromHalfFloat(r[4 * v + 2]), x = _7(w, C, _);
|
|
21616
21616
|
g += x, u += x, s[v] = x, o[v] = g;
|
|
21617
21617
|
}
|
|
21618
21618
|
if (g !== 0)
|
|
@@ -21626,22 +21626,22 @@ class M7 {
|
|
|
21626
21626
|
const h = new Uint16Array(i), f = new Uint16Array(t * i);
|
|
21627
21627
|
for (let d = 0; d < i; d++) {
|
|
21628
21628
|
const g = (d + 1) / i, y = O1(l, g);
|
|
21629
|
-
h[d] =
|
|
21629
|
+
h[d] = si.toHalfFloat((y + 0.5) / i);
|
|
21630
21630
|
}
|
|
21631
21631
|
for (let d = 0; d < i; d++)
|
|
21632
21632
|
for (let g = 0; g < t; g++) {
|
|
21633
21633
|
const y = d * t + g, v = (g + 1) / t, w = O1(o, v, d * t, t);
|
|
21634
|
-
f[y] =
|
|
21634
|
+
f[y] = si.toHalfFloat((w + 0.5) / t);
|
|
21635
21635
|
}
|
|
21636
21636
|
this.dispose();
|
|
21637
21637
|
const { marginalWeights: p, conditionalWeights: m } = this;
|
|
21638
21638
|
p.image = { width: i, height: 1, data: h }, p.needsUpdate = !0, m.image = { width: t, height: i, data: f }, m.needsUpdate = !0, this.totalSum = u, this.map = e;
|
|
21639
21639
|
}
|
|
21640
21640
|
}
|
|
21641
|
-
const Up = 6, P7 = 0, T7 = 1, D7 = 2, E7 = 3, L7 = 4, Fi = new O(),
|
|
21641
|
+
const Up = 6, P7 = 0, T7 = 1, D7 = 2, E7 = 3, L7 = 4, Fi = new O(), Jt = new O(), q1 = new zA(), Do = new Oi(), N1 = new O(), Eo = new O(), O7 = new O(0, 1, 0);
|
|
21642
21642
|
class q7 {
|
|
21643
21643
|
constructor() {
|
|
21644
|
-
const A = new
|
|
21644
|
+
const A = new Ft(new Float32Array(4), 1, 1);
|
|
21645
21645
|
A.format = _e, A.type = Se, A.wrapS = it, A.wrapT = it, A.generateMipmaps = !1, A.minFilter = ue, A.magFilter = ue, this.tex = A, this.count = 0;
|
|
21646
21646
|
}
|
|
21647
21647
|
updateFrom(A, e = []) {
|
|
@@ -21653,18 +21653,18 @@ class q7 {
|
|
|
21653
21653
|
let h = 0;
|
|
21654
21654
|
for (let p = 0; p < Up * 4; p++)
|
|
21655
21655
|
s[c + p] = 0;
|
|
21656
|
-
u.getWorldPosition(
|
|
21656
|
+
u.getWorldPosition(Jt), s[c + h++] = Jt.x, s[c + h++] = Jt.y, s[c + h++] = Jt.z;
|
|
21657
21657
|
let f = P7;
|
|
21658
21658
|
if (u.isRectAreaLight && u.isCircular ? f = T7 : u.isSpotLight ? f = D7 : u.isDirectionalLight ? f = E7 : u.isPointLight && (f = L7), s[c + h++] = f, s[c + h++] = u.color.r, s[c + h++] = u.color.g, s[c + h++] = u.color.b, s[c + h++] = u.intensity, u.getWorldQuaternion(Do), u.isRectAreaLight)
|
|
21659
|
-
Fi.set(u.width, 0, 0).applyQuaternion(Do), s[c + h++] = Fi.x, s[c + h++] = Fi.y, s[c + h++] = Fi.z, h++,
|
|
21659
|
+
Fi.set(u.width, 0, 0).applyQuaternion(Do), s[c + h++] = Fi.x, s[c + h++] = Fi.y, s[c + h++] = Fi.z, h++, Jt.set(0, u.height, 0).applyQuaternion(Do), s[c + h++] = Jt.x, s[c + h++] = Jt.y, s[c + h++] = Jt.z, s[c + h++] = Fi.cross(Jt).length() * (u.isCircular ? Math.PI / 4 : 1);
|
|
21660
21660
|
else if (u.isSpotLight) {
|
|
21661
21661
|
const p = u.radius || 0;
|
|
21662
|
-
N1.setFromMatrixPosition(u.matrixWorld), Eo.setFromMatrixPosition(u.target.matrixWorld), q1.lookAt(N1, Eo, O7), Do.setFromRotationMatrix(q1), Fi.set(1, 0, 0).applyQuaternion(Do), s[c + h++] = Fi.x, s[c + h++] = Fi.y, s[c + h++] = Fi.z, h++,
|
|
21662
|
+
N1.setFromMatrixPosition(u.matrixWorld), Eo.setFromMatrixPosition(u.target.matrixWorld), q1.lookAt(N1, Eo, O7), Do.setFromRotationMatrix(q1), Fi.set(1, 0, 0).applyQuaternion(Do), s[c + h++] = Fi.x, s[c + h++] = Fi.y, s[c + h++] = Fi.z, h++, Jt.set(0, 1, 0).applyQuaternion(Do), s[c + h++] = Jt.x, s[c + h++] = Jt.y, s[c + h++] = Jt.z, s[c + h++] = Math.PI * p * p, s[c + h++] = p, s[c + h++] = u.decay, s[c + h++] = u.distance, s[c + h++] = Math.cos(u.angle), s[c + h++] = Math.cos(u.angle * (1 - u.penumbra)), s[c + h++] = u.iesMap ? e.indexOf(u.iesMap) : -1;
|
|
21663
21663
|
} else if (u.isPointLight) {
|
|
21664
21664
|
const p = Fi.setFromMatrixPosition(u.matrixWorld);
|
|
21665
21665
|
s[c + h++] = p.x, s[c + h++] = p.y, s[c + h++] = p.z, h++, h += 4, h += 1, s[c + h++] = u.decay, s[c + h++] = u.distance;
|
|
21666
21666
|
} else if (u.isDirectionalLight) {
|
|
21667
|
-
const p = Fi.setFromMatrixPosition(u.matrixWorld), m =
|
|
21667
|
+
const p = Fi.setFromMatrixPosition(u.matrixWorld), m = Jt.setFromMatrixPosition(u.target.matrixWorld);
|
|
21668
21668
|
Eo.subVectors(p, m).normalize(), s[c + h++] = Eo.x, s[c + h++] = Eo.y, s[c + h++] = Eo.z;
|
|
21669
21669
|
}
|
|
21670
21670
|
}
|
|
@@ -21803,7 +21803,7 @@ class K7 {
|
|
|
21803
21803
|
this._features = {};
|
|
21804
21804
|
}
|
|
21805
21805
|
}
|
|
21806
|
-
class F7 extends
|
|
21806
|
+
class F7 extends Ft {
|
|
21807
21807
|
constructor() {
|
|
21808
21808
|
super(new Float32Array(4), 1, 1), this.format = _e, this.type = Se, this.wrapS = it, this.wrapT = it, this.minFilter = ue, this.magFilter = ue, this.generateMipmaps = !1, this.features = new K7();
|
|
21809
21809
|
}
|
|
@@ -21852,7 +21852,7 @@ class F7 extends Kt {
|
|
|
21852
21852
|
h[s++] = 0;
|
|
21853
21853
|
else
|
|
21854
21854
|
switch (d.side) {
|
|
21855
|
-
case
|
|
21855
|
+
case Gt:
|
|
21856
21856
|
h[s++] = 1;
|
|
21857
21857
|
break;
|
|
21858
21858
|
case Ct:
|
|
@@ -21883,8 +21883,8 @@ class k1 extends gM {
|
|
|
21883
21883
|
type: tn,
|
|
21884
21884
|
minFilter: we,
|
|
21885
21885
|
magFilter: we,
|
|
21886
|
-
wrapS:
|
|
21887
|
-
wrapT:
|
|
21886
|
+
wrapS: Kt,
|
|
21887
|
+
wrapT: Kt,
|
|
21888
21888
|
generateMipmaps: !1,
|
|
21889
21889
|
...t
|
|
21890
21890
|
};
|
|
@@ -22014,7 +22014,7 @@ class Z7 {
|
|
|
22014
22014
|
return this.nextInt() / (this.m - 1);
|
|
22015
22015
|
}
|
|
22016
22016
|
}
|
|
22017
|
-
class X7 extends
|
|
22017
|
+
class X7 extends Ft {
|
|
22018
22018
|
constructor(A = 1, e = 1, t = 8) {
|
|
22019
22019
|
super(new Float32Array(1), 1, 1, _e, Se), this.minFilter = ue, this.magFilter = ue, this.strata = t, this.sampler = null, this.generator = new Z7(), this.stableNoise = !1, this.random = () => this.stableNoise ? this.generator.nextFloat() : Math.random(), this.init(A, e, t);
|
|
22020
22020
|
}
|
|
@@ -22179,7 +22179,7 @@ function eO(n) {
|
|
|
22179
22179
|
return _e;
|
|
22180
22180
|
}
|
|
22181
22181
|
}
|
|
22182
|
-
class tO extends
|
|
22182
|
+
class tO extends Ft {
|
|
22183
22183
|
constructor(A = 64, e = 1) {
|
|
22184
22184
|
super(new Float32Array(4), 1, 1, _e, Se), this.minFilter = ue, this.magFilter = ue, this.size = A, this.channels = e, this.update();
|
|
22185
22185
|
}
|
|
@@ -25801,7 +25801,7 @@ class G1 {
|
|
|
25801
25801
|
}
|
|
25802
25802
|
}
|
|
25803
25803
|
const hs = new uA(), H1 = new uA(), nu = new vm(), ru = new FA();
|
|
25804
|
-
class DO extends
|
|
25804
|
+
class DO extends Ft {
|
|
25805
25805
|
constructor(A = 512, e = 512) {
|
|
25806
25806
|
super(
|
|
25807
25807
|
new Float32Array(A * e * 4),
|
|
@@ -25810,7 +25810,7 @@ class DO extends Kt {
|
|
|
25810
25810
|
_e,
|
|
25811
25811
|
Se,
|
|
25812
25812
|
Oa,
|
|
25813
|
-
|
|
25813
|
+
Kt,
|
|
25814
25814
|
it,
|
|
25815
25815
|
we,
|
|
25816
25816
|
we
|
|
@@ -25992,9 +25992,9 @@ class U1 {
|
|
|
25992
25992
|
const p = new Uint16Array(e * t * 4), m = new Float32Array(e * t * 4);
|
|
25993
25993
|
r.readRenderTargetPixels(o, 0, 0, e, t, m), o.dispose();
|
|
25994
25994
|
for (let g = 0, y = m.length; g < y; g++)
|
|
25995
|
-
p[g] =
|
|
25996
|
-
const d = new
|
|
25997
|
-
return d.minFilter = D3, d.magFilter = we, d.wrapS =
|
|
25995
|
+
p[g] = si.toHalfFloat(m[g]);
|
|
25996
|
+
const d = new Ft(p, e, t, _e, Oe);
|
|
25997
|
+
return d.minFilter = D3, d.magFilter = we, d.wrapS = Kt, d.wrapT = Kt, d.mapping = Oa, d.needsUpdate = !0, d;
|
|
25998
25998
|
}
|
|
25999
25999
|
dispose() {
|
|
26000
26000
|
this._quad.dispose();
|
|
@@ -28274,7 +28274,7 @@ uc.Panel = function(n, A, e) {
|
|
|
28274
28274
|
}
|
|
28275
28275
|
};
|
|
28276
28276
|
};
|
|
28277
|
-
var Us = /* @__PURE__ */ ((n) => (n[n.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", n[n.WEBGL = 1] = "WEBGL", n[n.WEBGL2 = 2] = "WEBGL2", n))(Us || {}), wb = /* @__PURE__ */ ((n) => (n[n.UNKNOWN = 0] = "UNKNOWN", n[n.WEBGL = 1] = "WEBGL", n[n.CANVAS = 2] = "CANVAS", n))(wb || {}), Em = /* @__PURE__ */ ((n) => (n[n.COLOR = 16384] = "COLOR", n[n.DEPTH = 256] = "DEPTH", n[n.STENCIL = 1024] = "STENCIL", n))(Em || {}), $A = /* @__PURE__ */ ((n) => (n[n.NORMAL = 0] = "NORMAL", n[n.ADD = 1] = "ADD", n[n.MULTIPLY = 2] = "MULTIPLY", n[n.SCREEN = 3] = "SCREEN", n[n.OVERLAY = 4] = "OVERLAY", n[n.DARKEN = 5] = "DARKEN", n[n.LIGHTEN = 6] = "LIGHTEN", n[n.COLOR_DODGE = 7] = "COLOR_DODGE", n[n.COLOR_BURN = 8] = "COLOR_BURN", n[n.HARD_LIGHT = 9] = "HARD_LIGHT", n[n.SOFT_LIGHT = 10] = "SOFT_LIGHT", n[n.DIFFERENCE = 11] = "DIFFERENCE", n[n.EXCLUSION = 12] = "EXCLUSION", n[n.HUE = 13] = "HUE", n[n.SATURATION = 14] = "SATURATION", n[n.COLOR = 15] = "COLOR", n[n.LUMINOSITY = 16] = "LUMINOSITY", n[n.NORMAL_NPM = 17] = "NORMAL_NPM", n[n.ADD_NPM = 18] = "ADD_NPM", n[n.SCREEN_NPM = 19] = "SCREEN_NPM", n[n.NONE = 20] = "NONE", n[n.SRC_OVER = 0] = "SRC_OVER", n[n.SRC_IN = 21] = "SRC_IN", n[n.SRC_OUT = 22] = "SRC_OUT", n[n.SRC_ATOP = 23] = "SRC_ATOP", n[n.DST_OVER = 24] = "DST_OVER", n[n.DST_IN = 25] = "DST_IN", n[n.DST_OUT = 26] = "DST_OUT", n[n.DST_ATOP = 27] = "DST_ATOP", n[n.ERASE = 26] = "ERASE", n[n.SUBTRACT = 28] = "SUBTRACT", n[n.XOR = 29] = "XOR", n))($A || {}), yn = /* @__PURE__ */ ((n) => (n[n.POINTS = 0] = "POINTS", n[n.LINES = 1] = "LINES", n[n.LINE_LOOP = 2] = "LINE_LOOP", n[n.LINE_STRIP = 3] = "LINE_STRIP", n[n.TRIANGLES = 4] = "TRIANGLES", n[n.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", n[n.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", n))(yn || {}), PA = /* @__PURE__ */ ((n) => (n[n.RGBA = 6408] = "RGBA", n[n.RGB = 6407] = "RGB", n[n.RG = 33319] = "RG", n[n.RED = 6403] = "RED", n[n.RGBA_INTEGER = 36249] = "RGBA_INTEGER", n[n.RGB_INTEGER = 36248] = "RGB_INTEGER", n[n.RG_INTEGER = 33320] = "RG_INTEGER", n[n.RED_INTEGER = 36244] = "RED_INTEGER", n[n.ALPHA = 6406] = "ALPHA", n[n.LUMINANCE = 6409] = "LUMINANCE", n[n.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", n[n.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", n[n.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", n))(PA || {}), xa = /* @__PURE__ */ ((n) => (n[n.TEXTURE_2D = 3553] = "TEXTURE_2D", n[n.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", n[n.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", n[n.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", n[n.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", n[n.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", n[n.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", n))(xa || {}), ZA = /* @__PURE__ */ ((n) => (n[n.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", n[n.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", n[n.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", n[n.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", n[n.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", n[n.UNSIGNED_INT = 5125] = "UNSIGNED_INT", n[n.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", n[n.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", n[n.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", n[n.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", n[n.BYTE = 5120] = "BYTE", n[n.SHORT = 5122] = "SHORT", n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", n[n.HALF_FLOAT = 36193] = "HALF_FLOAT", n))(ZA || {}), kA = /* @__PURE__ */ ((n) => (n[n.FLOAT = 0] = "FLOAT", n[n.INT = 1] = "INT", n[n.UINT = 2] = "UINT", n))(kA || {}), Xn = /* @__PURE__ */ ((n) => (n[n.NEAREST = 0] = "NEAREST", n[n.LINEAR = 1] = "LINEAR", n))(Xn || {}), Gr = /* @__PURE__ */ ((n) => (n[n.CLAMP = 33071] = "CLAMP", n[n.REPEAT = 10497] = "REPEAT", n[n.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", n))(Gr || {}), _n = /* @__PURE__ */ ((n) => (n[n.OFF = 0] = "OFF", n[n.POW2 = 1] = "POW2", n[n.ON = 2] = "ON", n[n.ON_MANUAL = 3] = "ON_MANUAL", n))(_n || {}),
|
|
28277
|
+
var Us = /* @__PURE__ */ ((n) => (n[n.WEBGL_LEGACY = 0] = "WEBGL_LEGACY", n[n.WEBGL = 1] = "WEBGL", n[n.WEBGL2 = 2] = "WEBGL2", n))(Us || {}), wb = /* @__PURE__ */ ((n) => (n[n.UNKNOWN = 0] = "UNKNOWN", n[n.WEBGL = 1] = "WEBGL", n[n.CANVAS = 2] = "CANVAS", n))(wb || {}), Em = /* @__PURE__ */ ((n) => (n[n.COLOR = 16384] = "COLOR", n[n.DEPTH = 256] = "DEPTH", n[n.STENCIL = 1024] = "STENCIL", n))(Em || {}), $A = /* @__PURE__ */ ((n) => (n[n.NORMAL = 0] = "NORMAL", n[n.ADD = 1] = "ADD", n[n.MULTIPLY = 2] = "MULTIPLY", n[n.SCREEN = 3] = "SCREEN", n[n.OVERLAY = 4] = "OVERLAY", n[n.DARKEN = 5] = "DARKEN", n[n.LIGHTEN = 6] = "LIGHTEN", n[n.COLOR_DODGE = 7] = "COLOR_DODGE", n[n.COLOR_BURN = 8] = "COLOR_BURN", n[n.HARD_LIGHT = 9] = "HARD_LIGHT", n[n.SOFT_LIGHT = 10] = "SOFT_LIGHT", n[n.DIFFERENCE = 11] = "DIFFERENCE", n[n.EXCLUSION = 12] = "EXCLUSION", n[n.HUE = 13] = "HUE", n[n.SATURATION = 14] = "SATURATION", n[n.COLOR = 15] = "COLOR", n[n.LUMINOSITY = 16] = "LUMINOSITY", n[n.NORMAL_NPM = 17] = "NORMAL_NPM", n[n.ADD_NPM = 18] = "ADD_NPM", n[n.SCREEN_NPM = 19] = "SCREEN_NPM", n[n.NONE = 20] = "NONE", n[n.SRC_OVER = 0] = "SRC_OVER", n[n.SRC_IN = 21] = "SRC_IN", n[n.SRC_OUT = 22] = "SRC_OUT", n[n.SRC_ATOP = 23] = "SRC_ATOP", n[n.DST_OVER = 24] = "DST_OVER", n[n.DST_IN = 25] = "DST_IN", n[n.DST_OUT = 26] = "DST_OUT", n[n.DST_ATOP = 27] = "DST_ATOP", n[n.ERASE = 26] = "ERASE", n[n.SUBTRACT = 28] = "SUBTRACT", n[n.XOR = 29] = "XOR", n))($A || {}), yn = /* @__PURE__ */ ((n) => (n[n.POINTS = 0] = "POINTS", n[n.LINES = 1] = "LINES", n[n.LINE_LOOP = 2] = "LINE_LOOP", n[n.LINE_STRIP = 3] = "LINE_STRIP", n[n.TRIANGLES = 4] = "TRIANGLES", n[n.TRIANGLE_STRIP = 5] = "TRIANGLE_STRIP", n[n.TRIANGLE_FAN = 6] = "TRIANGLE_FAN", n))(yn || {}), PA = /* @__PURE__ */ ((n) => (n[n.RGBA = 6408] = "RGBA", n[n.RGB = 6407] = "RGB", n[n.RG = 33319] = "RG", n[n.RED = 6403] = "RED", n[n.RGBA_INTEGER = 36249] = "RGBA_INTEGER", n[n.RGB_INTEGER = 36248] = "RGB_INTEGER", n[n.RG_INTEGER = 33320] = "RG_INTEGER", n[n.RED_INTEGER = 36244] = "RED_INTEGER", n[n.ALPHA = 6406] = "ALPHA", n[n.LUMINANCE = 6409] = "LUMINANCE", n[n.LUMINANCE_ALPHA = 6410] = "LUMINANCE_ALPHA", n[n.DEPTH_COMPONENT = 6402] = "DEPTH_COMPONENT", n[n.DEPTH_STENCIL = 34041] = "DEPTH_STENCIL", n))(PA || {}), xa = /* @__PURE__ */ ((n) => (n[n.TEXTURE_2D = 3553] = "TEXTURE_2D", n[n.TEXTURE_CUBE_MAP = 34067] = "TEXTURE_CUBE_MAP", n[n.TEXTURE_2D_ARRAY = 35866] = "TEXTURE_2D_ARRAY", n[n.TEXTURE_CUBE_MAP_POSITIVE_X = 34069] = "TEXTURE_CUBE_MAP_POSITIVE_X", n[n.TEXTURE_CUBE_MAP_NEGATIVE_X = 34070] = "TEXTURE_CUBE_MAP_NEGATIVE_X", n[n.TEXTURE_CUBE_MAP_POSITIVE_Y = 34071] = "TEXTURE_CUBE_MAP_POSITIVE_Y", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Y = 34072] = "TEXTURE_CUBE_MAP_NEGATIVE_Y", n[n.TEXTURE_CUBE_MAP_POSITIVE_Z = 34073] = "TEXTURE_CUBE_MAP_POSITIVE_Z", n[n.TEXTURE_CUBE_MAP_NEGATIVE_Z = 34074] = "TEXTURE_CUBE_MAP_NEGATIVE_Z", n))(xa || {}), ZA = /* @__PURE__ */ ((n) => (n[n.UNSIGNED_BYTE = 5121] = "UNSIGNED_BYTE", n[n.UNSIGNED_SHORT = 5123] = "UNSIGNED_SHORT", n[n.UNSIGNED_SHORT_5_6_5 = 33635] = "UNSIGNED_SHORT_5_6_5", n[n.UNSIGNED_SHORT_4_4_4_4 = 32819] = "UNSIGNED_SHORT_4_4_4_4", n[n.UNSIGNED_SHORT_5_5_5_1 = 32820] = "UNSIGNED_SHORT_5_5_5_1", n[n.UNSIGNED_INT = 5125] = "UNSIGNED_INT", n[n.UNSIGNED_INT_10F_11F_11F_REV = 35899] = "UNSIGNED_INT_10F_11F_11F_REV", n[n.UNSIGNED_INT_2_10_10_10_REV = 33640] = "UNSIGNED_INT_2_10_10_10_REV", n[n.UNSIGNED_INT_24_8 = 34042] = "UNSIGNED_INT_24_8", n[n.UNSIGNED_INT_5_9_9_9_REV = 35902] = "UNSIGNED_INT_5_9_9_9_REV", n[n.BYTE = 5120] = "BYTE", n[n.SHORT = 5122] = "SHORT", n[n.INT = 5124] = "INT", n[n.FLOAT = 5126] = "FLOAT", n[n.FLOAT_32_UNSIGNED_INT_24_8_REV = 36269] = "FLOAT_32_UNSIGNED_INT_24_8_REV", n[n.HALF_FLOAT = 36193] = "HALF_FLOAT", n))(ZA || {}), kA = /* @__PURE__ */ ((n) => (n[n.FLOAT = 0] = "FLOAT", n[n.INT = 1] = "INT", n[n.UINT = 2] = "UINT", n))(kA || {}), Xn = /* @__PURE__ */ ((n) => (n[n.NEAREST = 0] = "NEAREST", n[n.LINEAR = 1] = "LINEAR", n))(Xn || {}), Gr = /* @__PURE__ */ ((n) => (n[n.CLAMP = 33071] = "CLAMP", n[n.REPEAT = 10497] = "REPEAT", n[n.MIRRORED_REPEAT = 33648] = "MIRRORED_REPEAT", n))(Gr || {}), _n = /* @__PURE__ */ ((n) => (n[n.OFF = 0] = "OFF", n[n.POW2 = 1] = "POW2", n[n.ON = 2] = "ON", n[n.ON_MANUAL = 3] = "ON_MANUAL", n))(_n || {}), Vt = /* @__PURE__ */ ((n) => (n[n.NPM = 0] = "NPM", n[n.UNPACK = 1] = "UNPACK", n[n.PMA = 2] = "PMA", n[n.NO_PREMULTIPLIED_ALPHA = 0] = "NO_PREMULTIPLIED_ALPHA", n[n.PREMULTIPLY_ON_UPLOAD = 1] = "PREMULTIPLY_ON_UPLOAD", n[n.PREMULTIPLIED_ALPHA = 2] = "PREMULTIPLIED_ALPHA", n))(Vt || {}), mn = /* @__PURE__ */ ((n) => (n[n.NO = 0] = "NO", n[n.YES = 1] = "YES", n[n.AUTO = 2] = "AUTO", n[n.BLEND = 0] = "BLEND", n[n.CLEAR = 1] = "CLEAR", n[n.BLIT = 2] = "BLIT", n))(mn || {}), Sv = /* @__PURE__ */ ((n) => (n[n.AUTO = 0] = "AUTO", n[n.MANUAL = 1] = "MANUAL", n))(Sv || {}), Si = /* @__PURE__ */ ((n) => (n.LOW = "lowp", n.MEDIUM = "mediump", n.HIGH = "highp", n))(Si || {}), st = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.SCISSOR = 1] = "SCISSOR", n[n.STENCIL = 2] = "STENCIL", n[n.SPRITE = 3] = "SPRITE", n[n.COLOR = 4] = "COLOR", n))(st || {}), tt = /* @__PURE__ */ ((n) => (n[n.NONE = 0] = "NONE", n[n.LOW = 2] = "LOW", n[n.MEDIUM = 4] = "MEDIUM", n[n.HIGH = 8] = "HIGH", n))(tt || {}), Cn = /* @__PURE__ */ ((n) => (n[n.ELEMENT_ARRAY_BUFFER = 34963] = "ELEMENT_ARRAY_BUFFER", n[n.ARRAY_BUFFER = 34962] = "ARRAY_BUFFER", n[n.UNIFORM_BUFFER = 35345] = "UNIFORM_BUFFER", n))(Cn || {});
|
|
28278
28278
|
const h5 = {
|
|
28279
28279
|
/**
|
|
28280
28280
|
* Creates a canvas element of the given size.
|
|
@@ -30622,13 +30622,13 @@ async function AN() {
|
|
|
30622
30622
|
var r;
|
|
30623
30623
|
const n = document.createElement("canvas").getContext("webgl");
|
|
30624
30624
|
if (!n)
|
|
30625
|
-
return
|
|
30625
|
+
return Vt.UNPACK;
|
|
30626
30626
|
const A = await new Promise((s) => {
|
|
30627
30627
|
const o = document.createElement("video");
|
|
30628
30628
|
o.onloadeddata = () => s(o), o.onerror = () => s(null), o.autoplay = !1, o.crossOrigin = "anonymous", o.preload = "auto", o.src = "data:video/webm;base64,GkXfo59ChoEBQveBAULygQRC84EIQoKEd2VibUKHgQJChYECGFOAZwEAAAAAAAHTEU2bdLpNu4tTq4QVSalmU6yBoU27i1OrhBZUrmtTrIHGTbuMU6uEElTDZ1OsggEXTbuMU6uEHFO7a1OsggG97AEAAAAAAABZAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVSalmoCrXsYMPQkBNgIRMYXZmV0GETGF2ZkSJiEBEAAAAAAAAFlSua8yuAQAAAAAAAEPXgQFzxYgAAAAAAAAAAZyBACK1nIN1bmSIgQCGhVZfVlA5g4EBI+ODhAJiWgDglLCBArqBApqBAlPAgQFVsIRVuYEBElTDZ9Vzc9JjwItjxYgAAAAAAAAAAWfInEWjh0VOQ09ERVJEh49MYXZjIGxpYnZweC12cDlnyKJFo4hEVVJBVElPTkSHlDAwOjAwOjAwLjA0MDAwMDAwMAAAH0O2dcfngQCgwqGggQAAAIJJg0IAABAAFgA4JBwYSgAAICAAEb///4r+AAB1oZ2mm+6BAaWWgkmDQgAAEAAWADgkHBhKAAAgIABIQBxTu2uRu4+zgQC3iveBAfGCAXHwgQM=", o.load();
|
|
30629
30629
|
});
|
|
30630
30630
|
if (!A)
|
|
30631
|
-
return
|
|
30631
|
+
return Vt.UNPACK;
|
|
30632
30632
|
const e = n.createTexture();
|
|
30633
30633
|
n.bindTexture(n.TEXTURE_2D, e);
|
|
30634
30634
|
const t = n.createFramebuffer();
|
|
@@ -30640,7 +30640,7 @@ async function AN() {
|
|
|
30640
30640
|
0
|
|
30641
30641
|
), n.pixelStorei(n.UNPACK_PREMULTIPLY_ALPHA_WEBGL, !1), n.pixelStorei(n.UNPACK_COLORSPACE_CONVERSION_WEBGL, n.NONE), n.texImage2D(n.TEXTURE_2D, 0, n.RGBA, n.RGBA, n.UNSIGNED_BYTE, A);
|
|
30642
30642
|
const i = new Uint8Array(4);
|
|
30643
|
-
return n.readPixels(0, 0, 1, 1, n.RGBA, n.UNSIGNED_BYTE, i), n.deleteFramebuffer(t), n.deleteTexture(e), (r = n.getExtension("WEBGL_lose_context")) == null || r.loseContext(), i[0] <= i[3] ?
|
|
30643
|
+
return n.readPixels(0, 0, 1, 1, n.RGBA, n.UNSIGNED_BYTE, i), n.deleteFramebuffer(t), n.deleteTexture(e), (r = n.getExtension("WEBGL_lose_context")) == null || r.loseContext(), i[0] <= i[3] ? Vt.PMA : Vt.UNPACK;
|
|
30644
30644
|
})()), ng;
|
|
30645
30645
|
}
|
|
30646
30646
|
let rg;
|
|
@@ -31824,7 +31824,7 @@ class gd extends Nc {
|
|
|
31824
31824
|
*/
|
|
31825
31825
|
upload(A, e, t) {
|
|
31826
31826
|
const i = A.gl;
|
|
31827
|
-
i.pixelStorei(i.UNPACK_ALIGNMENT, this.unpackAlignment), i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL, e.alphaMode ===
|
|
31827
|
+
i.pixelStorei(i.UNPACK_ALIGNMENT, this.unpackAlignment), i.pixelStorei(i.UNPACK_PREMULTIPLY_ALPHA_WEBGL, e.alphaMode === Vt.UNPACK);
|
|
31828
31828
|
const r = e.realWidth, s = e.realHeight;
|
|
31829
31829
|
return t.width === r && t.height === s ? i.texSubImage2D(
|
|
31830
31830
|
e.target,
|
|
@@ -31863,7 +31863,7 @@ class gd extends Nc {
|
|
|
31863
31863
|
}
|
|
31864
31864
|
const IN = {
|
|
31865
31865
|
scaleMode: Xn.NEAREST,
|
|
31866
|
-
alphaMode:
|
|
31866
|
+
alphaMode: Vt.NPM
|
|
31867
31867
|
}, Vm = class ta extends Yc {
|
|
31868
31868
|
/**
|
|
31869
31869
|
* @param {PIXI.Resource|PIXI.ImageSource|string} [resource=null] -
|
|
@@ -32146,7 +32146,7 @@ Vm.defaultOptions = {
|
|
|
32146
32146
|
* @type {PIXI.ALPHA_MODES}
|
|
32147
32147
|
* @default PIXI.ALPHA_MODES.UNPACK
|
|
32148
32148
|
*/
|
|
32149
|
-
alphaMode:
|
|
32149
|
+
alphaMode: Vt.UNPACK,
|
|
32150
32150
|
/**
|
|
32151
32151
|
* GL texture target
|
|
32152
32152
|
* @type {PIXI.TARGETS}
|
|
@@ -34600,7 +34600,7 @@ n0.defaultResolution = 1, /**
|
|
|
34600
34600
|
* @default PIXI.MSAA_QUALITY.NONE
|
|
34601
34601
|
*/
|
|
34602
34602
|
n0.defaultMultisample = tt.NONE;
|
|
34603
|
-
let
|
|
34603
|
+
let jt = n0;
|
|
34604
34604
|
class Rf {
|
|
34605
34605
|
constructor() {
|
|
34606
34606
|
this.clearBeforeRender = !0, this._backgroundColor = new qe(0), this.alpha = 1;
|
|
@@ -35099,7 +35099,7 @@ class rr extends Nc {
|
|
|
35099
35099
|
return !1;
|
|
35100
35100
|
} else if (typeof HTMLVideoElement < "u" && i instanceof HTMLVideoElement && i.readyState <= 1)
|
|
35101
35101
|
return !1;
|
|
35102
|
-
return r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, e.alphaMode ===
|
|
35102
|
+
return r.pixelStorei(r.UNPACK_PREMULTIPLY_ALPHA_WEBGL, e.alphaMode === Vt.UNPACK), !this.noSubImage && e.target === r.TEXTURE_2D && t.width === s && t.height === o ? r.texSubImage2D(r.TEXTURE_2D, 0, 0, 0, e.format, t.type, i) : (t.width = s, t.height = o, r.texImage2D(e.target, 0, t.internalFormat, e.format, t.type, i)), !0;
|
|
35103
35103
|
}
|
|
35104
35104
|
/**
|
|
35105
35105
|
* Checks if source width/height was changed, resize can cause extra baseTexture update.
|
|
@@ -35173,7 +35173,7 @@ class n_ extends rr {
|
|
|
35173
35173
|
A.width,
|
|
35174
35174
|
A.height,
|
|
35175
35175
|
{
|
|
35176
|
-
premultiplyAlpha: this.alphaMode === null || this.alphaMode ===
|
|
35176
|
+
premultiplyAlpha: this.alphaMode === null || this.alphaMode === Vt.UNPACK ? "premultiply" : "none"
|
|
35177
35177
|
}
|
|
35178
35178
|
)).then((i) => this.destroyed ? Promise.reject() : (this.bitmap = i, this.update(), this._process = null, Promise.resolve(this))), this._process;
|
|
35179
35179
|
}
|
|
@@ -36554,7 +36554,7 @@ void main(void)
|
|
|
36554
36554
|
vMaskCoord = ( otherMatrix * vec3( aTextureCoord, 1.0) ).xy;
|
|
36555
36555
|
}
|
|
36556
36556
|
`;
|
|
36557
|
-
class iB extends
|
|
36557
|
+
class iB extends jt {
|
|
36558
36558
|
/** @ignore */
|
|
36559
36559
|
constructor(A, e, t) {
|
|
36560
36560
|
let i = null;
|
|
@@ -36588,7 +36588,7 @@ class nB {
|
|
|
36588
36588
|
* @param {PIXI.DisplayObject} [maskObject=null] - object that describes the mask
|
|
36589
36589
|
*/
|
|
36590
36590
|
constructor(A = null) {
|
|
36591
|
-
this.type = st.NONE, this.autoDetect = !0, this.maskObject = A || null, this.pooled = !1, this.isMaskData = !0, this.resolution = null, this.multisample =
|
|
36591
|
+
this.type = st.NONE, this.autoDetect = !0, this.maskObject = A || null, this.pooled = !1, this.isMaskData = !0, this.resolution = null, this.multisample = jt.defaultMultisample, this.enabled = !0, this.colorMask = 15, this._filters = null, this._stencilCounter = 0, this._scissorCounter = 0, this._scissorRect = null, this._scissorRectLocal = null, this._colorMask = 15, this._target = null;
|
|
36592
36592
|
}
|
|
36593
36593
|
/**
|
|
36594
36594
|
* The sprite mask filter.
|
|
@@ -38423,10 +38423,10 @@ Object.defineProperties(jA, {
|
|
|
38423
38423
|
*/
|
|
38424
38424
|
FILTER_RESOLUTION: {
|
|
38425
38425
|
get() {
|
|
38426
|
-
return de("7.1.0", "settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"),
|
|
38426
|
+
return de("7.1.0", "settings.FILTER_RESOLUTION is deprecated, use Filter.defaultResolution"), jt.defaultResolution;
|
|
38427
38427
|
},
|
|
38428
38428
|
set(n) {
|
|
38429
|
-
|
|
38429
|
+
jt.defaultResolution = n;
|
|
38430
38430
|
}
|
|
38431
38431
|
},
|
|
38432
38432
|
/**
|
|
@@ -38440,10 +38440,10 @@ Object.defineProperties(jA, {
|
|
|
38440
38440
|
*/
|
|
38441
38441
|
FILTER_MULTISAMPLE: {
|
|
38442
38442
|
get() {
|
|
38443
|
-
return de("7.1.0", "settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"),
|
|
38443
|
+
return de("7.1.0", "settings.FILTER_MULTISAMPLE is deprecated, use Filter.defaultMultisample"), jt.defaultMultisample;
|
|
38444
38444
|
},
|
|
38445
38445
|
set(n) {
|
|
38446
|
-
|
|
38446
|
+
jt.defaultMultisample = n;
|
|
38447
38447
|
}
|
|
38448
38448
|
},
|
|
38449
38449
|
/**
|
|
@@ -38640,9 +38640,9 @@ class yg {
|
|
|
38640
38640
|
return this.next = A ? null : e, this.previous = null, e;
|
|
38641
38641
|
}
|
|
38642
38642
|
}
|
|
38643
|
-
const b_ = class
|
|
38643
|
+
const b_ = class ri {
|
|
38644
38644
|
constructor() {
|
|
38645
|
-
this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new yg(null, null, 1 / 0), this.deltaMS = 1 /
|
|
38645
|
+
this.autoStart = !1, this.deltaTime = 1, this.lastTime = -1, this.speed = 1, this.started = !1, this._requestId = null, this._maxElapsedMS = 100, this._minElapsedMS = 0, this._protected = !1, this._lastFrame = -1, this._head = new yg(null, null, 1 / 0), this.deltaMS = 1 / ri.targetFPMS, this.elapsedMS = 1 / ri.targetFPMS, this._tick = (A) => {
|
|
38646
38646
|
this._requestId = null, this.started && (this.update(A), this.started && this._requestId === null && this._head.next && (this._requestId = requestAnimationFrame(this._tick)));
|
|
38647
38647
|
};
|
|
38648
38648
|
}
|
|
@@ -38784,7 +38784,7 @@ const b_ = class ni {
|
|
|
38784
38784
|
return;
|
|
38785
38785
|
this._lastFrame = A - r % this._minElapsedMS;
|
|
38786
38786
|
}
|
|
38787
|
-
this.deltaMS = e, this.deltaTime = this.deltaMS *
|
|
38787
|
+
this.deltaMS = e, this.deltaTime = this.deltaMS * ri.targetFPMS;
|
|
38788
38788
|
const t = this._head;
|
|
38789
38789
|
let i = t.next;
|
|
38790
38790
|
for (; i; )
|
|
@@ -38820,7 +38820,7 @@ const b_ = class ni {
|
|
|
38820
38820
|
return 1e3 / this._maxElapsedMS;
|
|
38821
38821
|
}
|
|
38822
38822
|
set minFPS(A) {
|
|
38823
|
-
const e = Math.min(this.maxFPS, A), t = Math.min(Math.max(0, e) / 1e3,
|
|
38823
|
+
const e = Math.min(this.maxFPS, A), t = Math.min(Math.max(0, e) / 1e3, ri.targetFPMS);
|
|
38824
38824
|
this._maxElapsedMS = 1 / t;
|
|
38825
38825
|
}
|
|
38826
38826
|
/**
|
|
@@ -38887,11 +38887,11 @@ const b_ = class ni {
|
|
|
38887
38887
|
* @static
|
|
38888
38888
|
*/
|
|
38889
38889
|
static get shared() {
|
|
38890
|
-
if (!
|
|
38891
|
-
const A =
|
|
38890
|
+
if (!ri._shared) {
|
|
38891
|
+
const A = ri._shared = new ri();
|
|
38892
38892
|
A.autoStart = !0, A._protected = !0;
|
|
38893
38893
|
}
|
|
38894
|
-
return
|
|
38894
|
+
return ri._shared;
|
|
38895
38895
|
}
|
|
38896
38896
|
/**
|
|
38897
38897
|
* The system ticker instance used by {@link PIXI.BasePrepare} for core timing
|
|
@@ -38903,15 +38903,15 @@ const b_ = class ni {
|
|
|
38903
38903
|
* @static
|
|
38904
38904
|
*/
|
|
38905
38905
|
static get system() {
|
|
38906
|
-
if (!
|
|
38907
|
-
const A =
|
|
38906
|
+
if (!ri._system) {
|
|
38907
|
+
const A = ri._system = new ri();
|
|
38908
38908
|
A.autoStart = !0, A._protected = !0;
|
|
38909
38909
|
}
|
|
38910
|
-
return
|
|
38910
|
+
return ri._system;
|
|
38911
38911
|
}
|
|
38912
38912
|
};
|
|
38913
38913
|
b_.targetFPMS = 0.06;
|
|
38914
|
-
let
|
|
38914
|
+
let $t = b_;
|
|
38915
38915
|
Object.defineProperties(jA, {
|
|
38916
38916
|
/**
|
|
38917
38917
|
* Target frames per millisecond.
|
|
@@ -38924,10 +38924,10 @@ Object.defineProperties(jA, {
|
|
|
38924
38924
|
*/
|
|
38925
38925
|
TARGET_FPMS: {
|
|
38926
38926
|
get() {
|
|
38927
|
-
return
|
|
38927
|
+
return $t.targetFPMS;
|
|
38928
38928
|
},
|
|
38929
38929
|
set(n) {
|
|
38930
|
-
de("7.1.0", "settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"),
|
|
38930
|
+
de("7.1.0", "settings.TARGET_FPMS is deprecated, use Ticker.targetFPMS"), $t.targetFPMS = n;
|
|
38931
38931
|
}
|
|
38932
38932
|
}
|
|
38933
38933
|
});
|
|
@@ -38957,7 +38957,7 @@ class __ {
|
|
|
38957
38957
|
this._ticker.stop();
|
|
38958
38958
|
}, this.start = () => {
|
|
38959
38959
|
this._ticker.start();
|
|
38960
|
-
}, this._ticker = null, this.ticker = A.sharedTicker ?
|
|
38960
|
+
}, this._ticker = null, this.ticker = A.sharedTicker ? $t.shared : new $t(), A.autoStart && this.start();
|
|
38961
38961
|
}
|
|
38962
38962
|
/**
|
|
38963
38963
|
* Clean up the ticker, scoped to application.
|
|
@@ -39708,7 +39708,7 @@ class ga extends rr {
|
|
|
39708
39708
|
if (this.destroyed)
|
|
39709
39709
|
return;
|
|
39710
39710
|
const r = await createImageBitmap(i, {
|
|
39711
|
-
premultiplyAlpha: this.alphaMode === null || this.alphaMode ===
|
|
39711
|
+
premultiplyAlpha: this.alphaMode === null || this.alphaMode === Vt.UNPACK ? "premultiply" : "none"
|
|
39712
39712
|
});
|
|
39713
39713
|
if (this.destroyed) {
|
|
39714
39714
|
r.close();
|
|
@@ -39884,7 +39884,7 @@ const c0 = class h0 extends rr {
|
|
|
39884
39884
|
update(A = 0) {
|
|
39885
39885
|
if (!this.destroyed) {
|
|
39886
39886
|
if (this._updateFPS) {
|
|
39887
|
-
const e =
|
|
39887
|
+
const e = $t.shared.elapsedMS * this.source.playbackRate;
|
|
39888
39888
|
this._msToNextUpdate = Math.floor(this._msToNextUpdate - e);
|
|
39889
39889
|
}
|
|
39890
39890
|
(!this._updateFPS || this._msToNextUpdate <= 0) && (super.update(
|
|
@@ -39975,9 +39975,9 @@ const c0 = class h0 extends rr {
|
|
|
39975
39975
|
A !== this._updateFPS && (this._updateFPS = A, this._configureAutoUpdate());
|
|
39976
39976
|
}
|
|
39977
39977
|
_configureAutoUpdate() {
|
|
39978
|
-
this._autoUpdate && this._isSourcePlaying() ? !this._updateFPS && this.source.requestVideoFrameCallback ? (this._isConnectedToTicker && (
|
|
39978
|
+
this._autoUpdate && this._isSourcePlaying() ? !this._updateFPS && this.source.requestVideoFrameCallback ? (this._isConnectedToTicker && ($t.shared.remove(this.update, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0), this._videoFrameRequestCallbackHandle === null && (this._videoFrameRequestCallbackHandle = this.source.requestVideoFrameCallback(
|
|
39979
39979
|
this._videoFrameRequestCallback
|
|
39980
|
-
))) : (this._videoFrameRequestCallbackHandle !== null && (this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker || (
|
|
39980
|
+
))) : (this._videoFrameRequestCallbackHandle !== null && (this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker || ($t.shared.add(this.update, this), this._isConnectedToTicker = !0, this._msToNextUpdate = 0)) : (this._videoFrameRequestCallbackHandle !== null && (this.source.cancelVideoFrameCallback(this._videoFrameRequestCallbackHandle), this._videoFrameRequestCallbackHandle = null), this._isConnectedToTicker && ($t.shared.remove(this.update, this), this._isConnectedToTicker = !1, this._msToNextUpdate = 0));
|
|
39981
39981
|
}
|
|
39982
39982
|
/**
|
|
39983
39983
|
* Used to auto-detect the type of resource.
|
|
@@ -41238,7 +41238,7 @@ void main(void)
|
|
|
41238
41238
|
gl_FragColor = texture2D(uSampler, vTextureCoord) * uAlpha;
|
|
41239
41239
|
}
|
|
41240
41240
|
`;
|
|
41241
|
-
class GB extends
|
|
41241
|
+
class GB extends jt {
|
|
41242
41242
|
/**
|
|
41243
41243
|
* @param alpha - Amount of alpha from 0 to 1, where 0 is transparent
|
|
41244
41244
|
*/
|
|
@@ -41327,7 +41327,7 @@ function JB(n, A) {
|
|
|
41327
41327
|
}
|
|
41328
41328
|
return t = t.replace("%blur%", i), t = t.replace("%size%", n.toString()), t;
|
|
41329
41329
|
}
|
|
41330
|
-
class f0 extends
|
|
41330
|
+
class f0 extends jt {
|
|
41331
41331
|
/**
|
|
41332
41332
|
* @param horizontal - Do pass along the x-axis (`true`) or y-axis (`false`).
|
|
41333
41333
|
* @param strength - The strength of the blur filter.
|
|
@@ -41335,7 +41335,7 @@ class f0 extends kt {
|
|
|
41335
41335
|
* @param {number|null} [resolution=PIXI.Filter.defaultResolution] - The resolution of the blur filter.
|
|
41336
41336
|
* @param kernelSize - The kernelSize of the blur filter.Options: 5, 7, 9, 11, 13, 15.
|
|
41337
41337
|
*/
|
|
41338
|
-
constructor(A, e = 8, t = 4, i =
|
|
41338
|
+
constructor(A, e = 8, t = 4, i = jt.defaultResolution, r = 5) {
|
|
41339
41339
|
const s = JB(r, A), o = UB(r);
|
|
41340
41340
|
super(
|
|
41341
41341
|
// vertex shader
|
|
@@ -41388,14 +41388,14 @@ class f0 extends kt {
|
|
|
41388
41388
|
this._quality = A, this.passes = A;
|
|
41389
41389
|
}
|
|
41390
41390
|
}
|
|
41391
|
-
class ZB extends
|
|
41391
|
+
class ZB extends jt {
|
|
41392
41392
|
/**
|
|
41393
41393
|
* @param strength - The strength of the blur filter.
|
|
41394
41394
|
* @param quality - The quality of the blur filter.
|
|
41395
41395
|
* @param {number|null} [resolution=PIXI.Filter.defaultResolution] - The resolution of the blur filter.
|
|
41396
41396
|
* @param kernelSize - The kernelSize of the blur filter.Options: 5, 7, 9, 11, 13, 15.
|
|
41397
41397
|
*/
|
|
41398
|
-
constructor(A = 8, e = 4, t =
|
|
41398
|
+
constructor(A = 8, e = 4, t = jt.defaultResolution, i = 5) {
|
|
41399
41399
|
super(), this._repeatEdgePixels = !1, this.blurXFilter = new f0(!0, A, e, t, i), this.blurYFilter = new f0(!1, A, e, t, i), this.resolution = t, this.quality = e, this.blur = A, this.repeatEdgePixels = !1;
|
|
41400
41400
|
}
|
|
41401
41401
|
/**
|
|
@@ -41530,7 +41530,7 @@ void main(void)
|
|
|
41530
41530
|
gl_FragColor = vec4(rgb, result.a);
|
|
41531
41531
|
}
|
|
41532
41532
|
`;
|
|
41533
|
-
class d0 extends
|
|
41533
|
+
class d0 extends jt {
|
|
41534
41534
|
constructor() {
|
|
41535
41535
|
const A = {
|
|
41536
41536
|
m: new Float32Array([
|
|
@@ -42294,7 +42294,7 @@ void main(void)
|
|
|
42294
42294
|
vFilterCoord = ( filterMatrix * vec3( vTextureCoord, 1.0) ).xy;
|
|
42295
42295
|
}
|
|
42296
42296
|
`;
|
|
42297
|
-
class $B extends
|
|
42297
|
+
class $B extends jt {
|
|
42298
42298
|
/**
|
|
42299
42299
|
* @param {PIXI.Sprite} sprite - The sprite used for the displacement map. (make sure its added to the scene!)
|
|
42300
42300
|
* @param scale - The scale of the displacement
|
|
@@ -42492,7 +42492,7 @@ void main(void) {
|
|
|
42492
42492
|
texcoords(vFragCoord, inputSize.zw, v_rgbNW, v_rgbNE, v_rgbSW, v_rgbSE, v_rgbM);
|
|
42493
42493
|
}
|
|
42494
42494
|
`;
|
|
42495
|
-
class tz extends
|
|
42495
|
+
class tz extends jt {
|
|
42496
42496
|
constructor() {
|
|
42497
42497
|
super(ez, Az);
|
|
42498
42498
|
}
|
|
@@ -42532,7 +42532,7 @@ void main()
|
|
|
42532
42532
|
gl_FragColor = color;
|
|
42533
42533
|
}
|
|
42534
42534
|
`;
|
|
42535
|
-
class nz extends
|
|
42535
|
+
class nz extends jt {
|
|
42536
42536
|
/**
|
|
42537
42537
|
* @param {number} [noise=0.5] - The noise intensity, should be a normalized value in the range [0, 1].
|
|
42538
42538
|
* @param {number} [seed] - A random seed for the noise generation. Default is `Math.random()`.
|
|
@@ -42639,11 +42639,11 @@ class rz {
|
|
|
42639
42639
|
}
|
|
42640
42640
|
/** Adds the ticker listener. */
|
|
42641
42641
|
addTickerListener() {
|
|
42642
|
-
this.tickerAdded || !this.domElement || (
|
|
42642
|
+
this.tickerAdded || !this.domElement || ($t.system.add(this.tickerUpdate, this, Ks.INTERACTION), this.tickerAdded = !0);
|
|
42643
42643
|
}
|
|
42644
42644
|
/** Removes the ticker listener. */
|
|
42645
42645
|
removeTickerListener() {
|
|
42646
|
-
this.tickerAdded && (
|
|
42646
|
+
this.tickerAdded && ($t.system.remove(this.tickerUpdate, this), this.tickerAdded = !1);
|
|
42647
42647
|
}
|
|
42648
42648
|
/** Sets flag to not fire extra events when the user has already moved there mouse */
|
|
42649
42649
|
pointerMoved() {
|
|
@@ -46541,7 +46541,7 @@ const L9 = {
|
|
|
46541
46541
|
const t = await (await jA.ADAPTER.fetch(n)).arrayBuffer(), i = b9(t).map((r) => {
|
|
46542
46542
|
const s = new se(r, {
|
|
46543
46543
|
mipmap: _n.OFF,
|
|
46544
|
-
alphaMode:
|
|
46544
|
+
alphaMode: Vt.NO_PREMULTIPLIED_ALPHA,
|
|
46545
46545
|
resolution: nr(n),
|
|
46546
46546
|
...A.data
|
|
46547
46547
|
});
|
|
@@ -46566,7 +46566,7 @@ const O9 = {
|
|
|
46566
46566
|
async load(n, A, e) {
|
|
46567
46567
|
const t = await (await jA.ADAPTER.fetch(n)).arrayBuffer(), { compressed: i, uncompressed: r, kvData: s } = P9(n, t), o = i ?? r, a = {
|
|
46568
46568
|
mipmap: _n.OFF,
|
|
46569
|
-
alphaMode:
|
|
46569
|
+
alphaMode: Vt.NO_PREMULTIPLIED_ALPHA,
|
|
46570
46570
|
resolution: nr(n),
|
|
46571
46571
|
...A.data
|
|
46572
46572
|
}, l = o.map((u) => {
|
|
@@ -50148,7 +50148,7 @@ const AS = class eS {
|
|
|
50148
50148
|
*/
|
|
50149
50149
|
upload(A) {
|
|
50150
50150
|
return new Promise((e) => {
|
|
50151
|
-
A && this.add(A), this.queue.length ? (this.completes.push(e), this.ticking || (this.ticking = !0,
|
|
50151
|
+
A && this.add(A), this.queue.length ? (this.completes.push(e), this.ticking || (this.ticking = !0, $t.system.addOnce(this.tick, this, Ks.UTILITY))) : e();
|
|
50152
50152
|
});
|
|
50153
50153
|
}
|
|
50154
50154
|
/**
|
|
@@ -50177,7 +50177,7 @@ const AS = class eS {
|
|
|
50177
50177
|
e || this.queue.shift();
|
|
50178
50178
|
}
|
|
50179
50179
|
if (this.queue.length)
|
|
50180
|
-
|
|
50180
|
+
$t.system.addOnce(this.tick, this, Ks.UTILITY);
|
|
50181
50181
|
else {
|
|
50182
50182
|
this.ticking = !1;
|
|
50183
50183
|
const A = this.completes.slice(0);
|
|
@@ -50220,7 +50220,7 @@ const AS = class eS {
|
|
|
50220
50220
|
}
|
|
50221
50221
|
/** Destroys the plugin, don't use after this. */
|
|
50222
50222
|
destroy() {
|
|
50223
|
-
this.ticking &&
|
|
50223
|
+
this.ticking && $t.system.remove(this.tick, this), this.ticking = !1, this.addHooks = null, this.uploadHooks = null, this.renderer = null, this.completes = null, this.queue = null, this.limiter = null, this.uploadHookHelper = null;
|
|
50224
50224
|
}
|
|
50225
50225
|
};
|
|
50226
50226
|
AS.uploadsPerFrame = 4;
|
|
@@ -50898,7 +50898,7 @@ const Sr = class pn {
|
|
|
50898
50898
|
this._ownsTextures = t, this.font = i.face, this.size = i.size, this.lineHeight = r.lineHeight / a, this.chars = {}, this.pageTextures = l;
|
|
50899
50899
|
for (let c = 0; c < A.page.length; c++) {
|
|
50900
50900
|
const { id: h, file: f } = A.page[c];
|
|
50901
|
-
l[h] = e instanceof Array ? e[c] : e[f], o != null && o.fieldType && o.fieldType !== "none" && (l[h].baseTexture.alphaMode =
|
|
50901
|
+
l[h] = e instanceof Array ? e[c] : e[f], o != null && o.fieldType && o.fieldType !== "none" && (l[h].baseTexture.alphaMode = Vt.NO_PREMULTIPLIED_ALPHA, l[h].baseTexture.mipmap = _n.OFF);
|
|
50902
50902
|
}
|
|
50903
50903
|
for (let c = 0; c < A.char.length; c++) {
|
|
50904
50904
|
const { id: h, page: f } = A.char[c];
|
|
@@ -53560,7 +53560,7 @@ let qR = class {
|
|
|
53560
53560
|
this.name = pe.KHR_MATERIALS_UNLIT;
|
|
53561
53561
|
}
|
|
53562
53562
|
getMaterialType() {
|
|
53563
|
-
return
|
|
53563
|
+
return oi;
|
|
53564
53564
|
}
|
|
53565
53565
|
extendParams(A, e, t) {
|
|
53566
53566
|
const i = [];
|
|
@@ -53866,7 +53866,7 @@ let XR = class {
|
|
|
53866
53866
|
return null;
|
|
53867
53867
|
const i = e.meshes[t.mesh];
|
|
53868
53868
|
for (const l of i.primitives)
|
|
53869
|
-
if (l.mode !==
|
|
53869
|
+
if (l.mode !== xi.TRIANGLES && l.mode !== xi.TRIANGLE_STRIP && l.mode !== xi.TRIANGLE_FAN && l.mode !== void 0)
|
|
53870
53870
|
return null;
|
|
53871
53871
|
const s = t.extensions[this.name].attributes, o = [], a = {};
|
|
53872
53872
|
for (const l in s)
|
|
@@ -53992,7 +53992,7 @@ class tk extends uS {
|
|
|
53992
53992
|
return ek.fromArray(r).normalize().toArray(r), r;
|
|
53993
53993
|
}
|
|
53994
53994
|
}
|
|
53995
|
-
const
|
|
53995
|
+
const xi = {
|
|
53996
53996
|
FLOAT: 5126,
|
|
53997
53997
|
//FLOAT_MAT2: 35674,
|
|
53998
53998
|
FLOAT_MAT3: 35675,
|
|
@@ -54029,7 +54029,7 @@ const Ci = {
|
|
|
54029
54029
|
}, Kx = {
|
|
54030
54030
|
33071: it,
|
|
54031
54031
|
33648: bc,
|
|
54032
|
-
10497:
|
|
54032
|
+
10497: Kt
|
|
54033
54033
|
}, Dg = {
|
|
54034
54034
|
SCALAR: 1,
|
|
54035
54035
|
VEC2: 2,
|
|
@@ -54073,7 +54073,7 @@ function nk(n) {
|
|
|
54073
54073
|
roughness: 1,
|
|
54074
54074
|
transparent: !1,
|
|
54075
54075
|
depthTest: !0,
|
|
54076
|
-
side:
|
|
54076
|
+
side: Gt
|
|
54077
54077
|
})), n.DefaultMaterial;
|
|
54078
54078
|
}
|
|
54079
54079
|
function ds(n, A, e) {
|
|
@@ -54432,7 +54432,7 @@ class ck {
|
|
|
54432
54432
|
const l = this.loadImageSource(e, t).then(function(u) {
|
|
54433
54433
|
u.flipY = !1, u.name = s.name || o.name || "", u.name === "" && typeof o.uri == "string" && o.uri.startsWith("data:image/") === !1 && (u.name = o.uri);
|
|
54434
54434
|
const h = (r.samplers || {})[s.sampler] || {};
|
|
54435
|
-
return u.magFilter = jx[h.magFilter] || we, u.minFilter = jx[h.minFilter] || Vi, u.wrapS = Kx[h.wrapS] ||
|
|
54435
|
+
return u.magFilter = jx[h.magFilter] || we, u.minFilter = jx[h.minFilter] || Vi, u.wrapS = Kx[h.wrapS] || Kt, u.wrapT = Kx[h.wrapT] || Kt, i.associations.set(u, { textures: A }), u;
|
|
54436
54436
|
}).catch(function() {
|
|
54437
54437
|
return null;
|
|
54438
54438
|
});
|
|
@@ -54547,15 +54547,15 @@ class ck {
|
|
|
54547
54547
|
}
|
|
54548
54548
|
r.doubleSided === !0 && (o.side = ot);
|
|
54549
54549
|
const u = r.alphaMode || Eg.OPAQUE;
|
|
54550
|
-
if (u === Eg.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, u === Eg.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && s !==
|
|
54550
|
+
if (u === Eg.BLEND ? (o.transparent = !0, o.depthWrite = !1) : (o.transparent = !1, u === Eg.MASK && (o.alphaTest = r.alphaCutoff !== void 0 ? r.alphaCutoff : 0.5)), r.normalTexture !== void 0 && s !== oi && (l.push(e.assignTexture(o, "normalMap", r.normalTexture)), o.normalScale = new uA(1, 1), r.normalTexture.scale !== void 0)) {
|
|
54551
54551
|
const c = r.normalTexture.scale;
|
|
54552
54552
|
o.normalScale.set(c, c);
|
|
54553
54553
|
}
|
|
54554
|
-
if (r.occlusionTexture !== void 0 && s !==
|
|
54554
|
+
if (r.occlusionTexture !== void 0 && s !== oi && (l.push(e.assignTexture(o, "aoMap", r.occlusionTexture)), r.occlusionTexture.strength !== void 0 && (o.aoMapIntensity = r.occlusionTexture.strength)), r.emissiveFactor !== void 0 && s !== oi) {
|
|
54555
54555
|
const c = r.emissiveFactor;
|
|
54556
54556
|
o.emissive = new FA().setRGB(c[0], c[1], c[2], lt);
|
|
54557
54557
|
}
|
|
54558
|
-
return r.emissiveTexture !== void 0 && s !==
|
|
54558
|
+
return r.emissiveTexture !== void 0 && s !== oi && l.push(e.assignTexture(o, "emissiveMap", r.emissiveTexture, ke)), Promise.all(l).then(function() {
|
|
54559
54559
|
const c = new s(o);
|
|
54560
54560
|
return r.name && (c.name = r.name), Er(c, r), e.associations.set(c, { materials: A }), r.extensions && ds(i, c, r), c;
|
|
54561
54561
|
});
|
|
@@ -54609,15 +54609,15 @@ class ck {
|
|
|
54609
54609
|
const m = u[f], d = s[f];
|
|
54610
54610
|
let g;
|
|
54611
54611
|
const y = l[f];
|
|
54612
|
-
if (d.mode ===
|
|
54613
|
-
g = r.isSkinnedMesh === !0 ? new wD(m, y) : new Pe(m, y), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), d.mode ===
|
|
54614
|
-
else if (d.mode ===
|
|
54612
|
+
if (d.mode === xi.TRIANGLES || d.mode === xi.TRIANGLE_STRIP || d.mode === xi.TRIANGLE_FAN || d.mode === void 0)
|
|
54613
|
+
g = r.isSkinnedMesh === !0 ? new wD(m, y) : new Pe(m, y), g.isSkinnedMesh === !0 && g.normalizeSkinWeights(), d.mode === xi.TRIANGLE_STRIP ? g.geometry = Rx(g.geometry, g2) : d.mode === xi.TRIANGLE_FAN && (g.geometry = Rx(g.geometry, cm));
|
|
54614
|
+
else if (d.mode === xi.LINES)
|
|
54615
54615
|
g = new Fc(m, y);
|
|
54616
|
-
else if (d.mode ===
|
|
54616
|
+
else if (d.mode === xi.LINE_STRIP)
|
|
54617
54617
|
g = new ov(m, y);
|
|
54618
|
-
else if (d.mode ===
|
|
54618
|
+
else if (d.mode === xi.LINE_LOOP)
|
|
54619
54619
|
g = new bD(m, y);
|
|
54620
|
-
else if (d.mode ===
|
|
54620
|
+
else if (d.mode === xi.POINTS)
|
|
54621
54621
|
g = new _D(m, y);
|
|
54622
54622
|
else
|
|
54623
54623
|
throw new Error("THREE.GLTFLoader: Primitive mode unsupported: " + d.mode);
|
|
@@ -54892,7 +54892,7 @@ function hk(n, A, e) {
|
|
|
54892
54892
|
i.expandByVector(o);
|
|
54893
54893
|
}
|
|
54894
54894
|
n.boundingBox = i;
|
|
54895
|
-
const s = new
|
|
54895
|
+
const s = new fi();
|
|
54896
54896
|
i.getCenter(s.center), s.radius = i.min.distanceTo(i.max) / 2, n.boundingSphere = s;
|
|
54897
54897
|
}
|
|
54898
54898
|
function Fx(n, A, e) {
|
|
@@ -55153,12 +55153,12 @@ function fk() {
|
|
|
55153
55153
|
}
|
|
55154
55154
|
}
|
|
55155
55155
|
}
|
|
55156
|
-
class
|
|
55156
|
+
class di {
|
|
55157
55157
|
parse(A, e = {}) {
|
|
55158
55158
|
if (e = Object.assign({
|
|
55159
55159
|
decodeSpeed: 5,
|
|
55160
55160
|
encodeSpeed: 5,
|
|
55161
|
-
encoderMethod:
|
|
55161
|
+
encoderMethod: di.MESH_EDGEBREAKER_ENCODING,
|
|
55162
55162
|
quantization: [16, 8, 8, 8, 8],
|
|
55163
55163
|
exportUvs: !0,
|
|
55164
55164
|
exportNormals: !0,
|
|
@@ -55226,16 +55226,16 @@ function Gx(n) {
|
|
|
55226
55226
|
A.fromBufferAttribute(n, r).convertLinearToSRGB(), i[r * t] = A.r, i[r * t + 1] = A.g, i[r * t + 2] = A.b, t === 4 && (i[r * t + 3] = n.getW(r));
|
|
55227
55227
|
return i;
|
|
55228
55228
|
}
|
|
55229
|
-
|
|
55230
|
-
|
|
55231
|
-
|
|
55232
|
-
|
|
55233
|
-
|
|
55234
|
-
|
|
55235
|
-
|
|
55236
|
-
|
|
55237
|
-
|
|
55238
|
-
|
|
55229
|
+
di.MESH_EDGEBREAKER_ENCODING = 1;
|
|
55230
|
+
di.MESH_SEQUENTIAL_ENCODING = 0;
|
|
55231
|
+
di.POINT_CLOUD = 0;
|
|
55232
|
+
di.TRIANGULAR_MESH = 1;
|
|
55233
|
+
di.INVALID = -1;
|
|
55234
|
+
di.POSITION = 0;
|
|
55235
|
+
di.NORMAL = 1;
|
|
55236
|
+
di.COLOR = 2;
|
|
55237
|
+
di.TEX_COORD = 3;
|
|
55238
|
+
di.GENERIC = 4;
|
|
55239
55239
|
let Bl, qg, ko, Eu;
|
|
55240
55240
|
function Ng(n, A = 1 / 0, e = null) {
|
|
55241
55241
|
qg || (qg = new or(2, 2, 1, 1)), ko || (ko = new $e({
|
|
@@ -55381,16 +55381,16 @@ const fe = {
|
|
|
55381
55381
|
CLAMP_TO_EDGE: 33071,
|
|
55382
55382
|
MIRRORED_REPEAT: 33648,
|
|
55383
55383
|
REPEAT: 10497
|
|
55384
|
-
}, Bg = "KHR_mesh_quantization",
|
|
55385
|
-
|
|
55386
|
-
|
|
55387
|
-
|
|
55388
|
-
|
|
55389
|
-
|
|
55390
|
-
|
|
55391
|
-
|
|
55392
|
-
|
|
55393
|
-
|
|
55384
|
+
}, Bg = "KHR_mesh_quantization", ci = {};
|
|
55385
|
+
ci[ue] = fe.NEAREST;
|
|
55386
|
+
ci[J0] = fe.NEAREST_MIPMAP_NEAREST;
|
|
55387
|
+
ci[ca] = fe.NEAREST_MIPMAP_LINEAR;
|
|
55388
|
+
ci[we] = fe.LINEAR;
|
|
55389
|
+
ci[rc] = fe.LINEAR_MIPMAP_NEAREST;
|
|
55390
|
+
ci[Vi] = fe.LINEAR_MIPMAP_LINEAR;
|
|
55391
|
+
ci[it] = fe.CLAMP_TO_EDGE;
|
|
55392
|
+
ci[Kt] = fe.REPEAT;
|
|
55393
|
+
ci[bc] = fe.MIRRORED_REPEAT;
|
|
55394
55394
|
const Yx = {
|
|
55395
55395
|
scale: "scale",
|
|
55396
55396
|
position: "translation",
|
|
@@ -55801,10 +55801,10 @@ class xk {
|
|
|
55801
55801
|
const e = this.json;
|
|
55802
55802
|
e.samplers || (e.samplers = []);
|
|
55803
55803
|
const t = {
|
|
55804
|
-
magFilter:
|
|
55805
|
-
minFilter:
|
|
55806
|
-
wrapS:
|
|
55807
|
-
wrapT:
|
|
55804
|
+
magFilter: ci[A.magFilter],
|
|
55805
|
+
minFilter: ci[A.minFilter],
|
|
55806
|
+
wrapS: ci[A.wrapS],
|
|
55807
|
+
wrapT: ci[A.wrapT]
|
|
55808
55808
|
};
|
|
55809
55809
|
return e.samplers.push(t) - 1;
|
|
55810
55810
|
}
|
|
@@ -56528,7 +56528,7 @@ const zk = new Gv(), Bc = new ER(), Zf = new uk();
|
|
|
56528
56528
|
window.dracoPath ? Zf.setDecoderPath(window.dracoPath) : Zf.setDecoderPath("./draco/");
|
|
56529
56529
|
Zf.setDecoderConfig({ type: "wasm" });
|
|
56530
56530
|
Bc.setDRACOLoader(Zf);
|
|
56531
|
-
const QG = new
|
|
56531
|
+
const QG = new di(), Xx = [115, 103, 108, 98];
|
|
56532
56532
|
function VG(n, A, e) {
|
|
56533
56533
|
const t = JSON.stringify(A), i = new TextEncoder().encode(t), r = new Uint8Array([115, 103, 108, 98]), s = new Uint8Array(2);
|
|
56534
56534
|
s[0] = e >> 8, s[1] = e & 255;
|
|
@@ -57273,7 +57273,7 @@ function Zc(n, A) {
|
|
|
57273
57273
|
};
|
|
57274
57274
|
}
|
|
57275
57275
|
const nj = '*{box-sizing:border-box}.slot-item-container .main{pointer-events:auto;cursor:pointer;font-size:12px;color:#fff;width:12px;height:12px;background:#fff0;border:1px solid #fff;border-radius:50%;transition:background .2s,width .14s,height .14s,border .14s}.slot-item-container .main.disable{cursor:not-allowed}.slot-item-container .main.drag-over{border-color:red}.slot-item-container .main.can-install{position:relative;width:34px;height:34px;background:#0066ff1a;border-color:#06f}.slot-item-container .main.filled{border-color:#00ff95}.slot-item-container .main.selected{border-width:4px}.slot-item-container .main.selected+.info{pointer-events:auto;overflow:visible;width:auto}.slot-item-container .main.has-error{border-color:red}.slot-item-container .main.hidden{display:none}.slot-item-container .main.hidden+.info{display:none}.slot-item-container .main:after{pointer-events:none;content:attr(data-name);transition:all .2s .3s;opacity:0;position:absolute;left:50%;bottom:100%;transform:translate3d(-50%,5px,0);white-space:nowrap;font-size:12px;color:#000;padding:2px 8px;border-radius:2px;background:#fff}.slot-item-container .main:hover{background:#ffffff80}.slot-item-container .main:hover+.info{pointer-events:auto;overflow:visible;width:auto}.slot-item-container .name{position:relative}.slot-item-container .name-wrapper{margin-top:-10px;white-space:nowrap;font-size:12px;color:#444e69;padding:2px 8px;border-radius:2px;background:#fff}.slot-item-container .functions-wrapper{z-index:20000;position:absolute;left:0;top:100%}.slot-item-container .functions-wrapper>.functions{display:inline-block;min-width:100px;padding:6px 0;border-left:1px solid #00ff95;border-radius:0 2px 2px 0;background:#0003;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.slot-item-container .functions-wrapper>.functions .btn-add{cursor:pointer;padding:2px 0;margin:0 8px;display:flex;justify-content:center;align-content:center;align-items:center;border:1px dashed #eee;font-size:12px;color:#eee;border-radius:2px;-webkit-backdrop-filter:none;backdrop-filter:none;background:#00050a80}.slot-item-container .functions-wrapper>.functions .btn-add.btn-not-allowed{cursor:not-allowed}.slot-item-container .functions-wrapper>.functions .function{display:flex;justify-content:space-between;white-space:nowrap;margin-bottom:6px;padding:0 8px;font-size:12px;color:#eaeeee}.slot-item-container .functions-wrapper>.functions .function span{margin-right:4px}.slot-item-container .functions-wrapper>.functions .function .btn-remove{pointer-events:none;opacity:0;cursor:pointer;align-self:center;margin-right:0;height:14px;width:14px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAACnSURBVEiJxZaxFcMgDETPTuUtWCWTM4pZAq5RojRpnOfEyEKxSnh3HySeBEhNjZJJTRgUG89GyZWilbKOgJCaKmWtFG2UvFnwQr56jYAcengg3dozELPGIjh96x6hu26/DIa9vD0jq/nUA3nikQEkAOW9nACUGbf7skxlX2mIj1Ob0jK76QdxbYpGFNlk3rPnNndDQltFaLMLbdehAyd8ZP5l6Ed+W17xG7oN9QkytAAAAABJRU5ErkJggg==) center no-repeat;background-size:10px 10px}.slot-item-container .functions-wrapper>.functions .function:hover .btn-remove{pointer-events:auto;opacity:1;transform:scale(1.2)}.slot-item-container .device-name{position:relative;margin:2px 0;display:flex;min-width:120px;align-items:center;align-content:center;justify-content:flex-start;white-space:nowrap;height:20px;padding:0 20px 0 8px;font-size:14px;font-weight:700;color:#444e69}.slot-item-container .device-name span{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:250px}.slot-item-container .device-name:hover .btn-close{opacity:1;pointer-events:auto}.slot-item-container .device-name .btn-close{opacity:0;pointer-events:none;cursor:pointer;position:absolute;right:2px;top:2px;height:16px;width:16px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAB4SURBVDiNpZPLEYAgDAUXe6MuoK4UpwdBwQkQJDcyb9+QnxORCOC9jyxE4Y78DiWxAIcmISKnxaSrtZhMNSOB+ZeacAS7ngl3k1JOBSBpk1INPib0YHjH+Du2S1DhlSZOYbPJ1iLtrLKrG2a9yJopYzTD8Jx+ArgAylOzjm1WpDwAAAAASUVORK5CYII=) center no-repeat;background-size:10px 10px}.slot-item-container .device-name:before{content:"";position:absolute;left:0;height:10px;width:3px;background:#00ff95}.slot-item-container .device-name.empty{height:6px}.slot-item-container .device-name.empty:before{height:0}.slot-item-container .all-functions{opacity:0;pointer-events:none;min-width:80px;position:absolute;left:-10px;margin-left:100%;bottom:0;padding:6px 0;background:#fff;border-radius:2px;transition:all .3s}.slot-item-container .all-functions.show{opacity:1;pointer-events:auto;left:16px}.slot-item-container .all-functions label{margin-left:8px;margin-bottom:20px;color:#444e69;font-size:14px}.slot-item-container .all-functions .btn-close{cursor:pointer;position:absolute;right:7px;top:7px;height:16px;width:16px;background:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAB4SURBVDiNpZPLEYAgDAUXe6MuoK4UpwdBwQkQJDcyb9+QnxORCOC9jyxE4Y78DiWxAIcmISKnxaSrtZhMNSOB+ZeacAS7ngl3k1JOBSBpk1INPib0YHjH+Du2S1DhlSZOYbPJ1iLtrLKrG2a9yJopYzTD8Jx+ArgAylOzjm1WpDwAAAAASUVORK5CYII=) center no-repeat;background-size:10px 10px}.slot-item-container .all-functions .functions{display:inline-block;max-height:200px;overflow-x:hidden;overflow-y:auto}.slot-item-container .all-functions .functions::-webkit-scrollbar{width:4px}.slot-item-container .all-functions .functions::-webkit-scrollbar-track{background-color:#fff}.slot-item-container .all-functions .functions::-webkit-scrollbar-thumb{background:#787878;border-radius:25px}.slot-item-container .all-functions .function{display:flex;justify-content:space-between;white-space:nowrap;padding:5px 10px;font-size:12px;color:#787878}.slot-item-container .all-functions .function span{display:flex;align-content:center;align-items:center;margin-right:4px}.slot-item-container .all-functions .function:hover{background:#444e6933}.slot-item-container .all-functions .btn-add{cursor:pointer;width:16px;font-size:16px;text-align:center;font-style:normal}.slot-item-container .info{overflow:hidden;margin-left:-2px;margin-top:-19px;position:absolute;left:100%;top:50%;transform:translateY(-50%);width:0;display:flex;align-items:flex-start;transition:all .3s}.slot-item-container .info img{flex:0 0 auto;width:53px;height:29px}', rj = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGsAAAA7CAYAAAB8MXT7AAAAAXNSR0IArs4c6QAAAARzQklUCAgICHwIZIgAAAGTSURBVHic7dxLbQNBEIThnigADGEhxAwcBoZgCIZgBoZgCIZgCIaQMIgZVC4daw/xXPLoqdX/3fbW0milUtfutMCdpCkiLhEx1U6CLkkvkt4k7atnQYekfR7US/Us6JB0yIOaqmfBA5JWks6SrhzUwCRN+TYdq2dBx+ygDtWzoEPSNg9qVz0LOmZBgsQ3sqUkvufqAf6SpFVEnCPiFhHr1tqteCR8hyBhYrY6OlTPgo5cHX1I2lbPgo6lBInFk3Rc+uroqXqAn8ogcc3H19bae+U8eIDEZ0LSJoMEZeHIWB2ZIPEZoCw0QVlogsRnYlYWsjoaGUHCRK6OOKiRfa2OMvWtqufBAwQJE5SFJmZl4aZ6FnSQ+Azk6mjxZeFv+/fycfbDWrTW1pSFgyLxmcjVEWXh6CgLTZD4DMzKwguro4ERJEywOjIhaUdZaIAgYYKy0ABloQkSnwlxKZUHcSmVBxKfgVwdnSgLB8d35iZIfCYoC01QFpog8Y3rftFWrotO+cilVKMiSJigLDSS30hQFhr4BEcKZN0LNhDxAAAAAElFTkSuQmCC";
|
|
57276
|
-
var sj = Object.defineProperty, oj = Object.getOwnPropertyDescriptor,
|
|
57276
|
+
var sj = Object.defineProperty, oj = Object.getOwnPropertyDescriptor, pi = (n, A, e, t) => {
|
|
57277
57277
|
for (var i = t > 1 ? void 0 : t ? oj(A, e) : A, r = n.length - 1, s; r >= 0; r--)
|
|
57278
57278
|
(s = n[r]) && (i = (t ? s(A, e, i) : s(i)) || i);
|
|
57279
57279
|
return t && i && sj(A, e, i), i;
|
|
@@ -57362,47 +57362,49 @@ let qt = class extends Yr {
|
|
|
57362
57362
|
}
|
|
57363
57363
|
};
|
|
57364
57364
|
qt.styles = _d([nj]);
|
|
57365
|
-
|
|
57365
|
+
pi([
|
|
57366
57366
|
tl()
|
|
57367
57367
|
], qt.prototype, "_size", 2);
|
|
57368
|
-
|
|
57368
|
+
pi([
|
|
57369
57369
|
tl()
|
|
57370
57370
|
], qt.prototype, "_showDialog", 2);
|
|
57371
|
-
|
|
57371
|
+
pi([
|
|
57372
57372
|
sn({ type: Boolean })
|
|
57373
57373
|
], qt.prototype, "selected", 2);
|
|
57374
|
-
|
|
57374
|
+
pi([
|
|
57375
57375
|
sn({ type: Boolean })
|
|
57376
57376
|
], qt.prototype, "hasError", 2);
|
|
57377
|
-
|
|
57377
|
+
pi([
|
|
57378
57378
|
sn({ type: Boolean })
|
|
57379
57379
|
], qt.prototype, "canInstall", 2);
|
|
57380
|
-
|
|
57380
|
+
pi([
|
|
57381
57381
|
sn({ type: Boolean })
|
|
57382
57382
|
], qt.prototype, "hide", 2);
|
|
57383
|
-
|
|
57383
|
+
pi([
|
|
57384
57384
|
sn({ type: Boolean })
|
|
57385
57385
|
], qt.prototype, "disable", 2);
|
|
57386
|
-
|
|
57386
|
+
pi([
|
|
57387
57387
|
sn({ type: Boolean })
|
|
57388
57388
|
], qt.prototype, "filled", 2);
|
|
57389
|
-
|
|
57389
|
+
pi([
|
|
57390
57390
|
sn({ type: Object })
|
|
57391
57391
|
], qt.prototype, "allFunctions", 2);
|
|
57392
|
-
|
|
57392
|
+
pi([
|
|
57393
57393
|
sn({ type: Object })
|
|
57394
57394
|
], qt.prototype, "functions", 2);
|
|
57395
|
-
|
|
57395
|
+
pi([
|
|
57396
57396
|
sn({ type: String })
|
|
57397
57397
|
], qt.prototype, "deviceName", 2);
|
|
57398
|
-
|
|
57398
|
+
pi([
|
|
57399
57399
|
sn()
|
|
57400
57400
|
], qt.prototype, "slot", 2);
|
|
57401
|
-
qt =
|
|
57401
|
+
qt = pi([
|
|
57402
57402
|
Md("slot-item")
|
|
57403
57403
|
], qt);
|
|
57404
|
-
const
|
|
57404
|
+
const Rt = {
|
|
57405
57405
|
ON_DROP: "slot-on-drop",
|
|
57406
|
+
ON_DEVICE_DELETED: "slot-on-device-deleted",
|
|
57407
|
+
ON_DEVICE_REPLACED: "slot-on-device-replaced",
|
|
57406
57408
|
ON_BEFORE_SELECTED: "slot-on-before-selected",
|
|
57407
57409
|
ON_SELECTED: "slot-on-selected",
|
|
57408
57410
|
ON_DEVICE_SELECTED: "slot-on-device-selected",
|
|
@@ -57419,7 +57421,7 @@ class lI extends Iv {
|
|
|
57419
57421
|
}, this.getWP = this._slotContainer.getWorldPosition.bind(this._slotContainer), this._showSlot = typeof A.show == "boolean" ? A.show : !0, this.name = A.name, this._slotUI = new qt({
|
|
57420
57422
|
name: A.name,
|
|
57421
57423
|
onRemove: () => {
|
|
57422
|
-
this.clearSlot();
|
|
57424
|
+
this.clearSlot(), this._emitter.emit(Rt.ON_DEVICE_DELETED);
|
|
57423
57425
|
}
|
|
57424
57426
|
}), this._slotUI.slot = this, this._slotUI.hide = !this._showSlot, e.append(this._slotUI), this._parentPos.copy(this.props.slot.position), this._slotUI.addEventListener("function-removed", ({ detail: t }) => {
|
|
57425
57427
|
this.removeFunction(t);
|
|
@@ -57445,12 +57447,12 @@ class lI extends Iv {
|
|
|
57445
57447
|
if (i) {
|
|
57446
57448
|
const s = JSON.parse(i);
|
|
57447
57449
|
try {
|
|
57448
|
-
await this.install(s), this._emitter.emit(
|
|
57450
|
+
await this.install(s), this._emitter.emit(Rt.ON_DROP, this);
|
|
57449
57451
|
} catch (o) {
|
|
57450
|
-
this._emitter.emit(
|
|
57452
|
+
this._emitter.emit(Rt.ON_DROP_ERROR, o);
|
|
57451
57453
|
}
|
|
57452
57454
|
} else
|
|
57453
|
-
this._emitter.emit(
|
|
57455
|
+
this._emitter.emit(Rt.ON_DROP_ERROR, new Error("No device info"));
|
|
57454
57456
|
});
|
|
57455
57457
|
}
|
|
57456
57458
|
get hasDevice() {
|
|
@@ -57494,7 +57496,7 @@ class lI extends Iv {
|
|
|
57494
57496
|
}), A.bracketUrl) {
|
|
57495
57497
|
const t = await this.loadGlb(A.bracketUrl);
|
|
57496
57498
|
if (t)
|
|
57497
|
-
this.clearSlot(), t.traverse((i) => {
|
|
57499
|
+
this.clearSlot(), this._emitter.emit(Rt.ON_DEVICE_REPLACED), t.traverse((i) => {
|
|
57498
57500
|
i.name.startsWith("Slot") && this._bracketSlots.push(i), i.userData.isBracket = !0;
|
|
57499
57501
|
}), this._slotContainer.add(t);
|
|
57500
57502
|
else
|
|
@@ -57503,7 +57505,7 @@ class lI extends Iv {
|
|
|
57503
57505
|
i.add(e);
|
|
57504
57506
|
});
|
|
57505
57507
|
} else
|
|
57506
|
-
this.clearSlot(), this._slotContainer.add(e);
|
|
57508
|
+
this.clearSlot(), this._emitter.emit(Rt.ON_DEVICE_REPLACED), this._slotContainer.add(e);
|
|
57507
57509
|
this.deviceInfo = A, this._slotUI.deviceName = A.name, this._slotUI.filled = !0, this.holeTarget && (this.holeTarget.visible = !1);
|
|
57508
57510
|
} catch (e) {
|
|
57509
57511
|
throw e;
|
|
@@ -57527,10 +57529,10 @@ class lI extends Iv {
|
|
|
57527
57529
|
return [...this._functions];
|
|
57528
57530
|
}
|
|
57529
57531
|
addFunction(A) {
|
|
57530
|
-
this._allFunctions.has(A) && (this._functions.add(A), this._slotUI.functions = [...this.functions], this._emitter.emit(
|
|
57532
|
+
this._allFunctions.has(A) && (this._functions.add(A), this._slotUI.functions = [...this.functions], this._emitter.emit(Rt.ON_FUNCTION_ADDED, A));
|
|
57531
57533
|
}
|
|
57532
57534
|
removeFunction(A) {
|
|
57533
|
-
this._functions.has(A) && (this._functions.delete(A), this._slotUI.functions = [...this.functions], this._emitter.emit(
|
|
57535
|
+
this._functions.has(A) && (this._functions.delete(A), this._slotUI.functions = [...this.functions], this._emitter.emit(Rt.ON_FUNCTION_REMOVED, A));
|
|
57534
57536
|
}
|
|
57535
57537
|
clearFunctions() {
|
|
57536
57538
|
this._functions.forEach((A) => this.removeFunction(A));
|
|
@@ -57563,13 +57565,13 @@ class lI extends Iv {
|
|
|
57563
57565
|
return this._selected;
|
|
57564
57566
|
}
|
|
57565
57567
|
set selected(A) {
|
|
57566
|
-
A && this._emitter.emit(
|
|
57568
|
+
A && this._emitter.emit(Rt.ON_BEFORE_SELECTED, A), this._selected = A, this._slotUI.selected = A, this._emitter.emit(Rt.ON_SELECTED, A);
|
|
57567
57569
|
}
|
|
57568
57570
|
get deviceSelected() {
|
|
57569
57571
|
return this._deviceSelected;
|
|
57570
57572
|
}
|
|
57571
57573
|
set deviceSelected(A) {
|
|
57572
|
-
this._deviceSelected = A, this._emitter.emit(
|
|
57574
|
+
this._deviceSelected = A, this._emitter.emit(Rt.ON_DEVICE_SELECTED, A);
|
|
57573
57575
|
}
|
|
57574
57576
|
get error() {
|
|
57575
57577
|
return this._hasError;
|
|
@@ -57577,7 +57579,7 @@ class lI extends Iv {
|
|
|
57577
57579
|
set error(A) {
|
|
57578
57580
|
this._loading && setTimeout(() => {
|
|
57579
57581
|
this.error = A;
|
|
57580
|
-
}, 100), this._hasError = A, this._slotUI.hasError = A, this._emitter.emit(
|
|
57582
|
+
}, 100), this._hasError = A, this._slotUI.hasError = A, this._emitter.emit(Rt.ON_ERROR_STATE_CHANGE, A);
|
|
57581
57583
|
}
|
|
57582
57584
|
getCanInstall() {
|
|
57583
57585
|
return this._canInstall;
|
|
@@ -58457,9 +58459,9 @@ function mj() {
|
|
|
58457
58459
|
for (var L = 125, F = new Uint32Array(gA.length), iA = 0; iA < gA.length; iA++)
|
|
58458
58460
|
F[iA] = h(gA[iA]);
|
|
58459
58461
|
var eA = /* @__PURE__ */ new Map();
|
|
58460
|
-
function nA(
|
|
58461
|
-
var
|
|
58462
|
-
F[
|
|
58462
|
+
function nA(Ut, Ri) {
|
|
58463
|
+
var Wt = F[Ut];
|
|
58464
|
+
F[Ut] = Ri, eA.set(Wt, eA.get(Wt) - 1), Wt & o && eA.set(o, eA.get(o) - 1), eA.set(Ri, (eA.get(Ri) || 0) + 1), Ri & o && eA.set(o, (eA.get(o) || 0) + 1);
|
|
58463
58465
|
}
|
|
58464
58466
|
for (var fA = new Uint8Array(gA.length), wA = /* @__PURE__ */ new Map(), cA = [], xA = null, lA = 0; lA < gA.length; lA++)
|
|
58465
58467
|
xA || cA.push(xA = {
|
|
@@ -58468,10 +58470,10 @@ function mj() {
|
|
|
58468
58470
|
// 3.3.1 P2-P3: Determine the paragraph level
|
|
58469
58471
|
level: R === "rtl" ? 1 : R === "ltr" ? 0 : fy(lA, !1)
|
|
58470
58472
|
}), F[lA] & T && (xA.end = lA, xA = null);
|
|
58471
|
-
for (var IA = X | Y | N | k | r | tA | j | T, GA = function(
|
|
58472
|
-
return
|
|
58473
|
-
}, qA = function(
|
|
58474
|
-
return
|
|
58473
|
+
for (var IA = X | Y | N | k | r | tA | j | T, GA = function(Ut) {
|
|
58474
|
+
return Ut + (Ut & 1 ? 1 : 2);
|
|
58475
|
+
}, qA = function(Ut) {
|
|
58476
|
+
return Ut + (Ut & 1 ? 2 : 1);
|
|
58475
58477
|
}, CA = 0; CA < cA.length; CA++) {
|
|
58476
58478
|
xA = cA[CA];
|
|
58477
58479
|
var DA = [{
|
|
@@ -58541,14 +58543,14 @@ function mj() {
|
|
|
58541
58543
|
for (var At = [], ft = 0; ft < ne.length; ft++) {
|
|
58542
58544
|
var Nt = ne[ft];
|
|
58543
58545
|
if (!Nt._startsWithPDI || Nt._startsWithPDI && !wA.has(Nt._start)) {
|
|
58544
|
-
for (var
|
|
58545
|
-
for (var
|
|
58546
|
-
if (ne[
|
|
58547
|
-
|
|
58546
|
+
for (var Ai = [oe = Nt], on = void 0; oe && oe._endsWithIsolInit && (on = wA.get(oe._end)) != null; )
|
|
58547
|
+
for (var gi = ft + 1; gi < ne.length; gi++)
|
|
58548
|
+
if (ne[gi]._start === on) {
|
|
58549
|
+
Ai.push(oe = ne[gi]);
|
|
58548
58550
|
break;
|
|
58549
58551
|
}
|
|
58550
|
-
for (var xt = [], Dn = 0; Dn <
|
|
58551
|
-
for (var Xc =
|
|
58552
|
+
for (var xt = [], Dn = 0; Dn < Ai.length; Dn++)
|
|
58553
|
+
for (var Xc = Ai[Dn], z = Xc._start; z <= Xc._end; z++)
|
|
58552
58554
|
xt.push(z);
|
|
58553
58555
|
for (var $ = fA[xt[0]], oA = xA.level, rA = xt[0] - 1; rA >= 0; rA--)
|
|
58554
58556
|
if (!(F[rA] & a)) {
|
|
@@ -58574,22 +58576,22 @@ function mj() {
|
|
|
58574
58576
|
var ee = At[QA], bA = ee._seqIndices, re = ee._sosType, Ye = ee._eosType, je = fA[bA[0]] & 1 ? S : x;
|
|
58575
58577
|
if (eA.get(K))
|
|
58576
58578
|
for (var dt = 0; dt < bA.length; dt++) {
|
|
58577
|
-
var
|
|
58578
|
-
if (F[
|
|
58579
|
+
var mi = bA[dt];
|
|
58580
|
+
if (F[mi] & K) {
|
|
58579
58581
|
for (var ye = re, Ae = dt - 1; Ae >= 0; Ae--)
|
|
58580
58582
|
if (!(F[bA[Ae]] & a)) {
|
|
58581
58583
|
ye = F[bA[Ae]];
|
|
58582
58584
|
break;
|
|
58583
58585
|
}
|
|
58584
|
-
nA(
|
|
58586
|
+
nA(mi, ye & (r | tA) ? B : ye);
|
|
58585
58587
|
}
|
|
58586
58588
|
}
|
|
58587
58589
|
if (eA.get(b))
|
|
58588
58590
|
for (var an = 0; an < bA.length; an++) {
|
|
58589
58591
|
var De = bA[an];
|
|
58590
58592
|
if (F[De] & b)
|
|
58591
|
-
for (var
|
|
58592
|
-
var sl =
|
|
58593
|
+
for (var vi = an - 1; vi >= -1; vi--) {
|
|
58594
|
+
var sl = vi === -1 ? re : F[bA[vi]];
|
|
58593
58595
|
if (sl & s) {
|
|
58594
58596
|
sl === U && nA(De, P);
|
|
58595
58597
|
break;
|
|
@@ -58603,23 +58605,23 @@ function mj() {
|
|
|
58603
58605
|
}
|
|
58604
58606
|
if (eA.get(I) || eA.get(M))
|
|
58605
58607
|
for (var Ue = 1; Ue < bA.length - 1; Ue++) {
|
|
58606
|
-
var
|
|
58607
|
-
if (F[
|
|
58608
|
+
var yi = bA[Ue];
|
|
58609
|
+
if (F[yi] & (I | M)) {
|
|
58608
58610
|
for (var ln = 0, Mt = 0, es = Ue - 1; es >= 0 && (ln = F[bA[es]], !!(ln & a)); es--)
|
|
58609
58611
|
;
|
|
58610
58612
|
for (var ol = Ue + 1; ol < bA.length && (Mt = F[bA[ol]], !!(Mt & a)); ol++)
|
|
58611
58613
|
;
|
|
58612
|
-
ln === Mt && (F[
|
|
58614
|
+
ln === Mt && (F[yi] === I ? ln === b : ln & (b | P)) && nA(yi, ln);
|
|
58613
58615
|
}
|
|
58614
58616
|
}
|
|
58615
58617
|
if (eA.get(b))
|
|
58616
|
-
for (var
|
|
58617
|
-
var ZS = bA[
|
|
58618
|
+
for (var ei = 0; ei < bA.length; ei++) {
|
|
58619
|
+
var ZS = bA[ei];
|
|
58618
58620
|
if (F[ZS] & b) {
|
|
58619
|
-
for (var Qc =
|
|
58621
|
+
for (var Qc = ei - 1; Qc >= 0 && F[bA[Qc]] & (D | a); Qc--)
|
|
58620
58622
|
nA(bA[Qc], b);
|
|
58621
|
-
for (
|
|
58622
|
-
F[bA[
|
|
58623
|
+
for (ei++; ei < bA.length && F[bA[ei]] & (D | a | b); ei++)
|
|
58624
|
+
F[bA[ei]] !== b && nA(bA[ei], b);
|
|
58623
58625
|
}
|
|
58624
58626
|
}
|
|
58625
58627
|
if (eA.get(D) || eA.get(I) || eA.get(M))
|
|
@@ -58658,8 +58660,8 @@ function mj() {
|
|
|
58658
58660
|
}
|
|
58659
58661
|
}
|
|
58660
58662
|
}
|
|
58661
|
-
Ah.sort(function(
|
|
58662
|
-
return
|
|
58663
|
+
Ah.sort(function(Ut, Ri) {
|
|
58664
|
+
return Ut[0] - Ri[0];
|
|
58663
58665
|
});
|
|
58664
58666
|
}
|
|
58665
58667
|
for (var Bd = 0; Bd < Ah.length; Bd++) {
|
|
@@ -58724,10 +58726,10 @@ function mj() {
|
|
|
58724
58726
|
}
|
|
58725
58727
|
}
|
|
58726
58728
|
}
|
|
58727
|
-
for (var
|
|
58728
|
-
var XS = fA[
|
|
58729
|
-
if (XS & 1 ? th & (x | b | P) && fA[
|
|
58730
|
-
for (var ih =
|
|
58729
|
+
for (var ti = xA.start; ti <= xA.end; ti++) {
|
|
58730
|
+
var XS = fA[ti], th = F[ti];
|
|
58731
|
+
if (XS & 1 ? th & (x | b | P) && fA[ti]++ : th & S ? fA[ti]++ : th & (P | b) && (fA[ti] += 2), th & a && (fA[ti] = ti === 0 ? xA.level : fA[ti - 1]), ti === xA.end || h(gA[ti]) & (q | T))
|
|
58732
|
+
for (var ih = ti; ih >= 0 && h(gA[ih]) & l; ih--)
|
|
58731
58733
|
fA[ih] = xA.level;
|
|
58732
58734
|
}
|
|
58733
58735
|
}
|
|
@@ -58735,28 +58737,28 @@ function mj() {
|
|
|
58735
58737
|
levels: fA,
|
|
58736
58738
|
paragraphs: cA
|
|
58737
58739
|
};
|
|
58738
|
-
function fy(
|
|
58739
|
-
for (var
|
|
58740
|
-
var lr = F[
|
|
58740
|
+
function fy(Ut, Ri) {
|
|
58741
|
+
for (var Wt = Ut; Wt < gA.length; Wt++) {
|
|
58742
|
+
var lr = F[Wt];
|
|
58741
58743
|
if (lr & (S | U))
|
|
58742
58744
|
return 1;
|
|
58743
58745
|
if (lr & (T | x) || Ri && lr === tA)
|
|
58744
58746
|
return 0;
|
|
58745
58747
|
if (lr & r) {
|
|
58746
|
-
var dy = QS(
|
|
58747
|
-
|
|
58748
|
+
var dy = QS(Wt);
|
|
58749
|
+
Wt = dy === -1 ? gA.length : dy;
|
|
58748
58750
|
}
|
|
58749
58751
|
}
|
|
58750
58752
|
return 0;
|
|
58751
58753
|
}
|
|
58752
|
-
function QS(
|
|
58753
|
-
for (var Ri = 1,
|
|
58754
|
-
var lr = F[
|
|
58754
|
+
function QS(Ut) {
|
|
58755
|
+
for (var Ri = 1, Wt = Ut + 1; Wt < gA.length; Wt++) {
|
|
58756
|
+
var lr = F[Wt];
|
|
58755
58757
|
if (lr & T)
|
|
58756
58758
|
break;
|
|
58757
58759
|
if (lr & tA) {
|
|
58758
58760
|
if (--Ri === 0)
|
|
58759
|
-
return
|
|
58761
|
+
return Wt;
|
|
58760
58762
|
} else
|
|
58761
58763
|
lr & r && Ri++;
|
|
58762
58764
|
}
|
|
@@ -61067,10 +61069,10 @@ function Lj(n, A) {
|
|
|
61067
61069
|
});
|
|
61068
61070
|
const At = EA.x + nA, ft = EA.y + CA.baseline + fA;
|
|
61069
61071
|
tA[NA * 2] = At, tA[NA * 2 + 1] = ft;
|
|
61070
|
-
const Nt = At + hA.xMin * ie,
|
|
61071
|
-
Nt < AA[0] && (AA[0] = Nt),
|
|
61072
|
+
const Nt = At + hA.xMin * ie, Ai = ft + hA.yMin * ie, on = At + hA.xMax * ie, gi = ft + hA.yMax * ie;
|
|
61073
|
+
Nt < AA[0] && (AA[0] = Nt), Ai < AA[1] && (AA[1] = Ai), on > AA[2] && (AA[2] = on), gi > AA[3] && (AA[3] = gi), NA % U === 0 && (GA = { start: NA, end: NA, rect: [1 / 0, 1 / 0, -1 / 0, -1 / 0] }, TA.push(GA)), GA.end++;
|
|
61072
61074
|
const xt = GA.rect;
|
|
61073
|
-
if (Nt < xt[0] && (xt[0] = Nt),
|
|
61075
|
+
if (Nt < xt[0] && (xt[0] = Nt), Ai < xt[1] && (xt[1] = Ai), on > xt[2] && (xt[2] = on), gi > xt[3] && (xt[3] = gi), V[NA] = ne, J[NA] = Le, k) {
|
|
61074
61076
|
const Dn = NA * 3;
|
|
61075
61077
|
H[Dn] = qA >> 16 & 255, H[Dn + 1] = qA >> 8 & 255, H[Dn + 2] = qA & 255;
|
|
61076
61078
|
}
|
|
@@ -61436,7 +61438,7 @@ class Xj extends IE {
|
|
|
61436
61438
|
super(), this.detail = 1, this.curveRadius = 0, this.groups = [
|
|
61437
61439
|
{ start: 0, count: 1 / 0, materialIndex: 0 },
|
|
61438
61440
|
{ start: 0, count: 1 / 0, materialIndex: 1 }
|
|
61439
|
-
], this.boundingSphere = new
|
|
61441
|
+
], this.boundingSphere = new fi(), this.boundingBox = new ve();
|
|
61440
61442
|
}
|
|
61441
61443
|
computeBoundingSphere() {
|
|
61442
61444
|
}
|
|
@@ -61735,7 +61737,7 @@ vTroikaGlyphColor = uTroikaUseGlyphColors ? aTroikaGlyphColor / 255.0 : diffuse;
|
|
|
61735
61737
|
}
|
|
61736
61738
|
}), A;
|
|
61737
61739
|
}
|
|
61738
|
-
const Zv = /* @__PURE__ */ new
|
|
61740
|
+
const Zv = /* @__PURE__ */ new oi({
|
|
61739
61741
|
color: 16777215,
|
|
61740
61742
|
side: ot,
|
|
61741
61743
|
transparent: !0
|
|
@@ -61840,7 +61842,7 @@ class OS extends Pe {
|
|
|
61840
61842
|
* @override
|
|
61841
61843
|
*/
|
|
61842
61844
|
onBeforeRender(A, e, t, i, r, s) {
|
|
61843
|
-
this.sync(), r.isTroikaTextMaterial && this._prepareForRender(r), r._hadOwnSide = r.hasOwnProperty("side"), this.geometry.setSide(r._actualSide = r.side), r.side =
|
|
61845
|
+
this.sync(), r.isTroikaTextMaterial && this._prepareForRender(r), r._hadOwnSide = r.hasOwnProperty("side"), this.geometry.setSide(r._actualSide = r.side), r.side = Gt;
|
|
61844
61846
|
}
|
|
61845
61847
|
onAfterRender(A, e, t, i, r, s) {
|
|
61846
61848
|
r._hadOwnSide ? r.side = r._actualSide : delete r.side;
|
|
@@ -62053,7 +62055,7 @@ class gf extends Ie {
|
|
|
62053
62055
|
}
|
|
62054
62056
|
class qS extends Ie {
|
|
62055
62057
|
constructor(A, e) {
|
|
62056
|
-
super(), this.radius = A, this._text = new sK(""), this._line = new gf(void 0, !1), this._box = new Pe(), this._box.geometry = new Pf(A, A + 3e-3, 128), this._box.material = new
|
|
62058
|
+
super(), this.radius = A, this._text = new sK(""), this._line = new gf(void 0, !1), this._box = new Pe(), this._box.geometry = new Pf(A, A + 3e-3, 128), this._box.material = new oi({
|
|
62057
62059
|
color: "#898989",
|
|
62058
62060
|
side: ot
|
|
62059
62061
|
}), this.position.y = e, this._box.rotateX(-Math.PI / 2), this.add(this._box), this.add(this._line), this.add(this._text);
|
|
@@ -62398,7 +62400,7 @@ class SI extends NS {
|
|
|
62398
62400
|
opacity: 0.2,
|
|
62399
62401
|
transparent: !0
|
|
62400
62402
|
}));
|
|
62401
|
-
const s = new Fc(r, new
|
|
62403
|
+
const s = new Fc(r, new oi({
|
|
62402
62404
|
color: "#22f"
|
|
62403
62405
|
}));
|
|
62404
62406
|
this._goods.add(s), (o = this._goodsContainer) == null || o.add(this._goods);
|
|
@@ -62470,7 +62472,7 @@ class MI extends Ie {
|
|
|
62470
62472
|
this.clearAll();
|
|
62471
62473
|
const i = new Pe(
|
|
62472
62474
|
new Ys(A, t, e),
|
|
62473
|
-
new
|
|
62475
|
+
new oi({
|
|
62474
62476
|
color: new FA("#0f5fd5"),
|
|
62475
62477
|
transparent: !0,
|
|
62476
62478
|
opacity: 0.4
|
|
@@ -62580,7 +62582,7 @@ class vK extends Ie {
|
|
|
62580
62582
|
));
|
|
62581
62583
|
}
|
|
62582
62584
|
setShapeKey(A, e) {
|
|
62583
|
-
this._shapeKeyTimer && clearTimeout(this._shapeKeyTimer), this._shapeKeyTimer = setTimeout(() => {
|
|
62585
|
+
this._shapeKeyTimer && clearTimeout(this._shapeKeyTimer), this._shapeKeyTimer = window.setTimeout(() => {
|
|
62584
62586
|
this._container.traverse((t) => {
|
|
62585
62587
|
if (!Object.keys(t.morphTargetDictionary || {}).includes(A))
|
|
62586
62588
|
return;
|
|
@@ -62870,13 +62872,13 @@ class vK extends Ie {
|
|
|
62870
62872
|
slot: A,
|
|
62871
62873
|
show: this._showSlots
|
|
62872
62874
|
});
|
|
62873
|
-
return o.holeTarget = r, o.addEventListener(
|
|
62875
|
+
return o.holeTarget = r, o.addEventListener(Rt.ON_DROP, (a) => {
|
|
62874
62876
|
this._app && this._app.props.useSound && this._app.sound.play();
|
|
62875
|
-
}), o.addEventListener(
|
|
62877
|
+
}), o.addEventListener(Rt.ON_BEFORE_SELECTED, (a) => {
|
|
62876
62878
|
this._slots.forEach((l) => {
|
|
62877
62879
|
l.selected && (l.selected = !1);
|
|
62878
62880
|
});
|
|
62879
|
-
}), o.addEventListener(
|
|
62881
|
+
}), o.addEventListener(Rt.ON_ERROR_STATE_CHANGE, (a) => {
|
|
62880
62882
|
if (this._app)
|
|
62881
62883
|
if (this._app._outlinePassError.selectedObjects = this._app._outlinePassError.selectedObjects.filter((l) => !!l.parent), a) {
|
|
62882
62884
|
if (o.device) {
|
|
@@ -63173,10 +63175,10 @@ function DK(n, A, e, t, i, r) {
|
|
|
63173
63175
|
return s;
|
|
63174
63176
|
}
|
|
63175
63177
|
}
|
|
63176
|
-
function
|
|
63178
|
+
function Xt(n, A) {
|
|
63177
63179
|
return A[n + 15] === 65535;
|
|
63178
63180
|
}
|
|
63179
|
-
function
|
|
63181
|
+
function hi(n, A) {
|
|
63180
63182
|
return A[n + 6];
|
|
63181
63183
|
}
|
|
63182
63184
|
function Pi(n, A) {
|
|
@@ -63209,7 +63211,7 @@ function B0(n, A) {
|
|
|
63209
63211
|
FS.set(new Uint8Array(s), n);
|
|
63210
63212
|
for (let o = n, a = n + s.byteLength; o < a; o += xc) {
|
|
63211
63213
|
const l = o / 2;
|
|
63212
|
-
|
|
63214
|
+
Xt(l, mf) || (nc[o / 4 + 6] += e);
|
|
63213
63215
|
}
|
|
63214
63216
|
return n + s.byteLength;
|
|
63215
63217
|
} else {
|
|
@@ -63353,7 +63355,7 @@ const BK = function() {
|
|
|
63353
63355
|
}
|
|
63354
63356
|
};
|
|
63355
63357
|
}(), zK = function() {
|
|
63356
|
-
const n = new O(), A = new O(), e = new
|
|
63358
|
+
const n = new O(), A = new O(), e = new Zt(), t = new Te();
|
|
63357
63359
|
return function(r, s) {
|
|
63358
63360
|
const { radius: o, center: a } = r, { a: l, b: u, c } = s;
|
|
63359
63361
|
if (t.start = l, t.end = u, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o || (t.start = l, t.end = c, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o) || (t.start = u, t.end = c, t.closestPointToPoint(a, !0, n).distanceTo(a) <= o))
|
|
@@ -63372,7 +63374,7 @@ function Qg(n) {
|
|
|
63372
63374
|
}
|
|
63373
63375
|
class nn extends Ze {
|
|
63374
63376
|
constructor(...A) {
|
|
63375
|
-
super(...A), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new O()), this.satBounds = new Array(4).fill().map(() => new sr()), this.points = [this.a, this.b, this.c], this.sphere = new
|
|
63377
|
+
super(...A), this.isExtendedTriangle = !0, this.satAxes = new Array(4).fill().map(() => new O()), this.satBounds = new Array(4).fill().map(() => new sr()), this.points = [this.a, this.b, this.c], this.sphere = new fi(), this.plane = new Zt(), this.needsUpdate = !0;
|
|
63376
63378
|
}
|
|
63377
63379
|
intersectsSphere(A) {
|
|
63378
63380
|
return zK(A, this);
|
|
@@ -63507,7 +63509,7 @@ nn.prototype.distanceToTriangle = function() {
|
|
|
63507
63509
|
return Math.sqrt(u);
|
|
63508
63510
|
};
|
|
63509
63511
|
}();
|
|
63510
|
-
class
|
|
63512
|
+
class Yt {
|
|
63511
63513
|
constructor(A, e, t) {
|
|
63512
63514
|
this.isOrientedBox = !0, this.min = new O(), this.max = new O(), this.matrix = new zA(), this.invMatrix = new zA(), this.points = new Array(8).fill().map(() => new O()), this.satAxes = new Array(3).fill().map(() => new O()), this.satBounds = new Array(3).fill().map(() => new sr()), this.alignedSatBounds = new Array(3).fill().map(() => new sr()), this.needsUpdate = !1, A && this.min.copy(A), e && this.max.copy(e), t && this.matrix.copy(t);
|
|
63513
63515
|
}
|
|
@@ -63518,7 +63520,7 @@ class Ht {
|
|
|
63518
63520
|
this.min.copy(A.min), this.max.copy(A.max), this.matrix.copy(A.matrix), this.needsUpdate = !0;
|
|
63519
63521
|
}
|
|
63520
63522
|
}
|
|
63521
|
-
|
|
63523
|
+
Yt.prototype.update = /* @__PURE__ */ function() {
|
|
63522
63524
|
return function() {
|
|
63523
63525
|
const A = this.matrix, e = this.min, t = this.max, i = this.points;
|
|
63524
63526
|
for (let l = 0; l <= 1; l++)
|
|
@@ -63536,7 +63538,7 @@ Ht.prototype.update = /* @__PURE__ */ function() {
|
|
|
63536
63538
|
a[0].setFromPointsField(i, "x"), a[1].setFromPointsField(i, "y"), a[2].setFromPointsField(i, "z"), this.invMatrix.copy(this.matrix).invert(), this.needsUpdate = !1;
|
|
63537
63539
|
};
|
|
63538
63540
|
}();
|
|
63539
|
-
|
|
63541
|
+
Yt.prototype.intersectsBox = function() {
|
|
63540
63542
|
const n = new sr();
|
|
63541
63543
|
return function(e) {
|
|
63542
63544
|
this.needsUpdate && this.update();
|
|
@@ -63551,7 +63553,7 @@ Ht.prototype.intersectsBox = function() {
|
|
|
63551
63553
|
return !0;
|
|
63552
63554
|
};
|
|
63553
63555
|
}();
|
|
63554
|
-
|
|
63556
|
+
Yt.prototype.intersectsTriangle = function() {
|
|
63555
63557
|
const n = new nn(), A = new Array(3), e = new sr(), t = new sr(), i = new O();
|
|
63556
63558
|
return function(s) {
|
|
63557
63559
|
this.needsUpdate && this.update(), s.isExtendedTriangle ? s.needsUpdate && s.update() : (n.copy(s), n.update(), s = n);
|
|
@@ -63579,18 +63581,18 @@ Ht.prototype.intersectsTriangle = function() {
|
|
|
63579
63581
|
return !0;
|
|
63580
63582
|
};
|
|
63581
63583
|
}();
|
|
63582
|
-
|
|
63584
|
+
Yt.prototype.closestPointToPoint = /* @__PURE__ */ function() {
|
|
63583
63585
|
return function(A, e) {
|
|
63584
63586
|
return this.needsUpdate && this.update(), e.copy(A).applyMatrix4(this.invMatrix).clamp(this.min, this.max).applyMatrix4(this.matrix), e;
|
|
63585
63587
|
};
|
|
63586
63588
|
}();
|
|
63587
|
-
|
|
63589
|
+
Yt.prototype.distanceToPoint = function() {
|
|
63588
63590
|
const n = new O();
|
|
63589
63591
|
return function(e) {
|
|
63590
63592
|
return this.closestPointToPoint(e, n), e.distanceTo(n);
|
|
63591
63593
|
};
|
|
63592
63594
|
}();
|
|
63593
|
-
|
|
63595
|
+
Yt.prototype.distanceToBox = function() {
|
|
63594
63596
|
const n = ["x", "y", "z"], A = new Array(12).fill().map(() => new Te()), e = new Array(12).fill().map(() => new Te()), t = new O(), i = new O();
|
|
63595
63597
|
return function(s, o = 0, a = null, l = null) {
|
|
63596
63598
|
if (this.needsUpdate && this.update(), this.intersectsBox(s))
|
|
@@ -63677,22 +63679,22 @@ function KK(n, A, e, t, i, r) {
|
|
|
63677
63679
|
function z0(n, A, e, t, i = null, r = 0, s = 0) {
|
|
63678
63680
|
const { float32Array: o, uint16Array: a, uint32Array: l } = ze;
|
|
63679
63681
|
let u = n * 2;
|
|
63680
|
-
if (
|
|
63681
|
-
const h =
|
|
63682
|
+
if (Xt(u, a)) {
|
|
63683
|
+
const h = hi(n, l), f = Pi(u, a);
|
|
63682
63684
|
return Je(n, o, jr), t(h, f, !1, s, r + n, jr);
|
|
63683
63685
|
} else {
|
|
63684
63686
|
let I = function(P) {
|
|
63685
63687
|
const { uint16Array: M, uint32Array: T } = ze;
|
|
63686
63688
|
let q = P * 2;
|
|
63687
|
-
for (; !
|
|
63689
|
+
for (; !Xt(q, M); )
|
|
63688
63690
|
P = Ti(P), q = P * 2;
|
|
63689
|
-
return
|
|
63691
|
+
return hi(P, T);
|
|
63690
63692
|
}, D = function(P) {
|
|
63691
63693
|
const { uint16Array: M, uint32Array: T } = ze;
|
|
63692
63694
|
let q = P * 2;
|
|
63693
|
-
for (; !
|
|
63695
|
+
for (; !Xt(q, M); )
|
|
63694
63696
|
P = Di(P, T), q = P * 2;
|
|
63695
|
-
return
|
|
63697
|
+
return hi(P, T) + Pi(q, M);
|
|
63696
63698
|
};
|
|
63697
63699
|
const h = Ti(n), f = Di(n, l);
|
|
63698
63700
|
let p = h, m = f, d, g, y, v;
|
|
@@ -63702,7 +63704,7 @@ function z0(n, A, e, t, i = null, r = 0, s = 0) {
|
|
|
63702
63704
|
d = g, g = P, y = v;
|
|
63703
63705
|
}
|
|
63704
63706
|
y || (y = jr, Je(p, o, y));
|
|
63705
|
-
const w =
|
|
63707
|
+
const w = Xt(p * 2, a), C = e(y, w, d, s + 1, r + p);
|
|
63706
63708
|
let _;
|
|
63707
63709
|
if (C === PI) {
|
|
63708
63710
|
const P = I(p), T = D(p) - P;
|
|
@@ -63720,7 +63722,7 @@ function z0(n, A, e, t, i = null, r = 0, s = 0) {
|
|
|
63720
63722
|
if (_)
|
|
63721
63723
|
return !0;
|
|
63722
63724
|
v = ma, Je(m, o, v);
|
|
63723
|
-
const x =
|
|
63725
|
+
const x = Xt(m * 2, a), S = e(v, x, g, s + 1, r + m);
|
|
63724
63726
|
let b;
|
|
63725
63727
|
if (S === PI) {
|
|
63726
63728
|
const P = I(m), T = D(m) - P;
|
|
@@ -63893,8 +63895,8 @@ function VK(n, A, e, t, i, r, s) {
|
|
|
63893
63895
|
}
|
|
63894
63896
|
function R0(n, A, e, t, i, r, s) {
|
|
63895
63897
|
const { float32Array: o, uint16Array: a, uint32Array: l } = ze, u = n * 2;
|
|
63896
|
-
if (
|
|
63897
|
-
const h =
|
|
63898
|
+
if (Xt(u, a)) {
|
|
63899
|
+
const h = hi(n, l), f = Pi(u, a);
|
|
63898
63900
|
YK(A, e, t, h, f, i, r, s);
|
|
63899
63901
|
} else {
|
|
63900
63902
|
const h = Ti(n);
|
|
@@ -63912,8 +63914,8 @@ function AF(n, A, e, t, i, r) {
|
|
|
63912
63914
|
function k0(n, A, e, t, i, r) {
|
|
63913
63915
|
const { float32Array: s, uint16Array: o, uint32Array: a } = ze;
|
|
63914
63916
|
let l = n * 2;
|
|
63915
|
-
if (
|
|
63916
|
-
const c =
|
|
63917
|
+
if (Xt(l, o)) {
|
|
63918
|
+
const c = hi(n, a), h = Pi(l, o);
|
|
63917
63919
|
return UK(A, e, t, c, h, i, r);
|
|
63918
63920
|
} else {
|
|
63919
63921
|
const c = jS(n, a), h = $K[c], p = t.direction[h] >= 0;
|
|
@@ -63932,7 +63934,7 @@ function k0(n, A, e, t, i, r) {
|
|
|
63932
63934
|
return y && w ? y.distance <= w.distance ? y : w : y || w || null;
|
|
63933
63935
|
}
|
|
63934
63936
|
}
|
|
63935
|
-
const Ku = /* @__PURE__ */ new ve(), Yo = /* @__PURE__ */ new nn(), Uo = /* @__PURE__ */ new nn(), Kl = /* @__PURE__ */ new zA(), BI = /* @__PURE__ */ new
|
|
63937
|
+
const Ku = /* @__PURE__ */ new ve(), Yo = /* @__PURE__ */ new nn(), Uo = /* @__PURE__ */ new nn(), Kl = /* @__PURE__ */ new zA(), BI = /* @__PURE__ */ new Yt(), Fu = /* @__PURE__ */ new Yt();
|
|
63936
63938
|
function eF(n, A, e, t) {
|
|
63937
63939
|
ze.setBuffer(n._roots[A]);
|
|
63938
63940
|
const i = j0(0, n, e, t);
|
|
@@ -63941,8 +63943,8 @@ function eF(n, A, e, t) {
|
|
|
63941
63943
|
function j0(n, A, e, t, i = null) {
|
|
63942
63944
|
const { float32Array: r, uint16Array: s, uint32Array: o } = ze;
|
|
63943
63945
|
let a = n * 2;
|
|
63944
|
-
if (i === null && (e.boundingBox || e.computeBoundingBox(), BI.set(e.boundingBox.min, e.boundingBox.max, t), i = BI),
|
|
63945
|
-
const u = A.geometry, c = u.index, h = u.attributes.position, f = e.index, p = e.attributes.position, m =
|
|
63946
|
+
if (i === null && (e.boundingBox || e.computeBoundingBox(), BI.set(e.boundingBox.min, e.boundingBox.max, t), i = BI), Xt(a, s)) {
|
|
63947
|
+
const u = A.geometry, c = u.index, h = u.attributes.position, f = e.index, p = e.attributes.position, m = hi(n, o), d = Pi(a, s);
|
|
63946
63948
|
if (Kl.copy(t).invert(), e.boundsTree)
|
|
63947
63949
|
return Je(n, r, Fu), Fu.matrix.copy(Kl), Fu.needsUpdate = !0, e.boundsTree.shapecast({
|
|
63948
63950
|
intersectsBounds: (y) => Fu.intersectsBox(y),
|
|
@@ -63965,7 +63967,7 @@ function j0(n, A, e, t, i = null) {
|
|
|
63965
63967
|
return Je(u, r, Ku), !!(i.intersectsBox(Ku) && j0(u, A, e, t, i) || (Je(c, r, Ku), i.intersectsBox(Ku) && j0(c, A, e, t, i)));
|
|
63966
63968
|
}
|
|
63967
63969
|
}
|
|
63968
|
-
const Gu = /* @__PURE__ */ new zA(), $g = /* @__PURE__ */ new
|
|
63970
|
+
const Gu = /* @__PURE__ */ new zA(), $g = /* @__PURE__ */ new Yt(), Fl = /* @__PURE__ */ new Yt(), tF = /* @__PURE__ */ new O(), iF = /* @__PURE__ */ new O(), nF = /* @__PURE__ */ new O(), rF = /* @__PURE__ */ new O();
|
|
63969
63971
|
function sF(n, A, e, t = {}, i = {}, r = 0, s = 1 / 0) {
|
|
63970
63972
|
A.boundingBox || A.computeBoundingBox(), $g.set(A.boundingBox.min, A.boundingBox.max, e), $g.needsUpdate = !0;
|
|
63971
63973
|
const o = n.geometry, a = o.attributes.position, l = o.index, u = A.attributes.position, c = A.index, h = Ei.getPrimitive(), f = Ei.getPrimitive();
|
|
@@ -64055,8 +64057,8 @@ function aF(n, A, e, t, i, r, s) {
|
|
|
64055
64057
|
}
|
|
64056
64058
|
function K0(n, A, e, t, i, r, s) {
|
|
64057
64059
|
const { float32Array: o, uint16Array: a, uint32Array: l } = ze, u = n * 2;
|
|
64058
|
-
if (
|
|
64059
|
-
const h =
|
|
64060
|
+
if (Xt(u, a)) {
|
|
64061
|
+
const h = hi(n, l), f = Pi(u, a);
|
|
64060
64062
|
ZK(A, e, t, h, f, i, r, s);
|
|
64061
64063
|
} else {
|
|
64062
64064
|
const h = Ti(n);
|
|
@@ -64074,8 +64076,8 @@ function cF(n, A, e, t, i, r) {
|
|
|
64074
64076
|
function F0(n, A, e, t, i, r) {
|
|
64075
64077
|
const { float32Array: s, uint16Array: o, uint32Array: a } = ze;
|
|
64076
64078
|
let l = n * 2;
|
|
64077
|
-
if (
|
|
64078
|
-
const c =
|
|
64079
|
+
if (Xt(l, o)) {
|
|
64080
|
+
const c = hi(n, a), h = Pi(l, o);
|
|
64079
64081
|
return XK(A, e, t, c, h, i, r);
|
|
64080
64082
|
} else {
|
|
64081
64083
|
const c = jS(n, a), h = lF[c], p = t.direction[h] >= 0;
|
|
@@ -64094,7 +64096,7 @@ function F0(n, A, e, t, i, r) {
|
|
|
64094
64096
|
return y && w ? y.distance <= w.distance ? y : w : y || w || null;
|
|
64095
64097
|
}
|
|
64096
64098
|
}
|
|
64097
|
-
const Hu = /* @__PURE__ */ new ve(), Wo = /* @__PURE__ */ new nn(), Jo = /* @__PURE__ */ new nn(), Gl = /* @__PURE__ */ new zA(), zI = /* @__PURE__ */ new
|
|
64099
|
+
const Hu = /* @__PURE__ */ new ve(), Wo = /* @__PURE__ */ new nn(), Jo = /* @__PURE__ */ new nn(), Gl = /* @__PURE__ */ new zA(), zI = /* @__PURE__ */ new Yt(), Yu = /* @__PURE__ */ new Yt();
|
|
64098
64100
|
function hF(n, A, e, t) {
|
|
64099
64101
|
ze.setBuffer(n._roots[A]);
|
|
64100
64102
|
const i = G0(0, n, e, t);
|
|
@@ -64103,8 +64105,8 @@ function hF(n, A, e, t) {
|
|
|
64103
64105
|
function G0(n, A, e, t, i = null) {
|
|
64104
64106
|
const { float32Array: r, uint16Array: s, uint32Array: o } = ze;
|
|
64105
64107
|
let a = n * 2;
|
|
64106
|
-
if (i === null && (e.boundingBox || e.computeBoundingBox(), zI.set(e.boundingBox.min, e.boundingBox.max, t), i = zI),
|
|
64107
|
-
const u = A.geometry, c = u.index, h = u.attributes.position, f = e.index, p = e.attributes.position, m =
|
|
64108
|
+
if (i === null && (e.boundingBox || e.computeBoundingBox(), zI.set(e.boundingBox.min, e.boundingBox.max, t), i = zI), Xt(a, s)) {
|
|
64109
|
+
const u = A.geometry, c = u.index, h = u.attributes.position, f = e.index, p = e.attributes.position, m = hi(n, o), d = Pi(a, s);
|
|
64108
64110
|
if (Gl.copy(t).invert(), e.boundsTree)
|
|
64109
64111
|
return Je(n, r, Yu), Yu.matrix.copy(Gl), Yu.needsUpdate = !0, e.boundsTree.shapecast({
|
|
64110
64112
|
intersectsBounds: (y) => Yu.intersectsBox(y),
|
|
@@ -64128,7 +64130,7 @@ function G0(n, A, e, t, i = null) {
|
|
|
64128
64130
|
return Je(u, r, Hu), !!(i.intersectsBox(Hu) && G0(u, A, e, t, i) || (Je(c, r, Hu), i.intersectsBox(Hu) && G0(c, A, e, t, i)));
|
|
64129
64131
|
}
|
|
64130
64132
|
}
|
|
64131
|
-
const Uu = /* @__PURE__ */ new zA(), Am = /* @__PURE__ */ new
|
|
64133
|
+
const Uu = /* @__PURE__ */ new zA(), Am = /* @__PURE__ */ new Yt(), Hl = /* @__PURE__ */ new Yt(), uF = /* @__PURE__ */ new O(), fF = /* @__PURE__ */ new O(), dF = /* @__PURE__ */ new O(), pF = /* @__PURE__ */ new O();
|
|
64132
64134
|
function gF(n, A, e, t = {}, i = {}, r = 0, s = 1 / 0) {
|
|
64133
64135
|
A.boundingBox || A.computeBoundingBox(), Am.set(A.boundingBox.min, A.boundingBox.max, e), Am.needsUpdate = !0;
|
|
64134
64136
|
const o = n.geometry, a = o.attributes.position, l = o.index, u = A.attributes.position, c = A.index, h = Ei.getPrimitive(), f = Ei.getPrimitive();
|
|
@@ -64229,22 +64231,22 @@ function mF(n, A, e, t) {
|
|
|
64229
64231
|
function Ji(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
64230
64232
|
let c, h;
|
|
64231
64233
|
u ? (c = $f, h = Ic) : (c = Ic, h = $f);
|
|
64232
|
-
const f = c.float32Array, p = c.uint32Array, m = c.uint16Array, d = h.float32Array, g = h.uint32Array, y = h.uint16Array, v = n * 2, w = A * 2, C =
|
|
64234
|
+
const f = c.float32Array, p = c.uint32Array, m = c.uint16Array, d = h.float32Array, g = h.uint32Array, y = h.uint16Array, v = n * 2, w = A * 2, C = Xt(v, m), _ = Xt(w, y);
|
|
64233
64235
|
let x = !1;
|
|
64234
64236
|
if (_ && C)
|
|
64235
64237
|
u ? x = i(
|
|
64236
|
-
|
|
64238
|
+
hi(A, g),
|
|
64237
64239
|
Pi(A * 2, y),
|
|
64238
|
-
|
|
64240
|
+
hi(n, p),
|
|
64239
64241
|
Pi(n * 2, m),
|
|
64240
64242
|
a,
|
|
64241
64243
|
s + A,
|
|
64242
64244
|
o,
|
|
64243
64245
|
r + n
|
|
64244
64246
|
) : x = i(
|
|
64245
|
-
|
|
64247
|
+
hi(n, p),
|
|
64246
64248
|
Pi(n * 2, m),
|
|
64247
|
-
|
|
64249
|
+
hi(A, g),
|
|
64248
64250
|
Pi(A * 2, y),
|
|
64249
64251
|
o,
|
|
64250
64252
|
r + n,
|
|
@@ -64409,7 +64411,7 @@ function Ji(n, A, e, t, i, r = 0, s = 0, o = 0, a = 0, l = null, u = !1) {
|
|
|
64409
64411
|
}
|
|
64410
64412
|
return x;
|
|
64411
64413
|
}
|
|
64412
|
-
const Wu = /* @__PURE__ */ new
|
|
64414
|
+
const Wu = /* @__PURE__ */ new Yt(), kI = /* @__PURE__ */ new ve(), vF = {
|
|
64413
64415
|
strategy: BS,
|
|
64414
64416
|
maxDepth: 40,
|
|
64415
64417
|
maxLeafTris: 10,
|
|
@@ -64490,7 +64492,7 @@ class Ed {
|
|
|
64490
64492
|
}
|
|
64491
64493
|
}
|
|
64492
64494
|
/* Core Cast Functions */
|
|
64493
|
-
raycast(A, e =
|
|
64495
|
+
raycast(A, e = Gt, t = 0, i = 1 / 0) {
|
|
64494
64496
|
const r = this._roots, s = this.geometry, o = [], a = e.isMaterial, l = Array.isArray(e), u = s.groups, c = a ? e.side : e, h = this.indirect ? aF : VK;
|
|
64495
64497
|
for (let f = 0, p = r.length; f < p; f++) {
|
|
64496
64498
|
const m = l ? e[u[f].materialIndex].side : c, d = o.length;
|
|
@@ -64502,7 +64504,7 @@ class Ed {
|
|
|
64502
64504
|
}
|
|
64503
64505
|
return o;
|
|
64504
64506
|
}
|
|
64505
|
-
raycastFirst(A, e =
|
|
64507
|
+
raycastFirst(A, e = Gt, t = 0, i = 1 / 0) {
|
|
64506
64508
|
const r = this._roots, s = this.geometry, o = e.isMaterial, a = Array.isArray(e);
|
|
64507
64509
|
let l = null;
|
|
64508
64510
|
const u = s.groups, c = o ? e.side : e, h = this.indirect ? cF : AF;
|
|
@@ -64831,7 +64833,7 @@ function _F(n, A, e = []) {
|
|
|
64831
64833
|
}
|
|
64832
64834
|
return e;
|
|
64833
64835
|
}
|
|
64834
|
-
const nm = 1e-16, SF = /* @__PURE__ */ new O(0, 1, 0), Cr = /* @__PURE__ */ new
|
|
64836
|
+
const nm = 1e-16, SF = /* @__PURE__ */ new O(0, 1, 0), Cr = /* @__PURE__ */ new Zt(), Yl = /* @__PURE__ */ new O(), HI = /* @__PURE__ */ new O();
|
|
64835
64837
|
function MF(n, A, e) {
|
|
64836
64838
|
if (US(n))
|
|
64837
64839
|
return !1;
|
|
@@ -64854,11 +64856,11 @@ function MF(n, A, e) {
|
|
|
64854
64856
|
}
|
|
64855
64857
|
return !1;
|
|
64856
64858
|
}
|
|
64857
|
-
const PF = 1e-16, YI = 1e-16, Xu = /* @__PURE__ */ new
|
|
64859
|
+
const PF = 1e-16, YI = 1e-16, Xu = /* @__PURE__ */ new Zt(), Qo = /* @__PURE__ */ new Te(), Qu = /* @__PURE__ */ new O(), rm = /* @__PURE__ */ new O(), xr = /* @__PURE__ */ new ui(), Ci = /* @__PURE__ */ new Te(), jn = /* @__PURE__ */ new Te(), Ir = /* @__PURE__ */ new O(), UI = /* @__PURE__ */ new O();
|
|
64858
64860
|
function TF(n, A, e = new Te()) {
|
|
64859
|
-
if (xr.copy(A), xr.a.y = 0, xr.b.y = 0, xr.c.y = 0, xr.update(),
|
|
64861
|
+
if (xr.copy(A), xr.a.y = 0, xr.b.y = 0, xr.c.y = 0, xr.update(), Ci.copy(n), Ci.start.y = 0, Ci.end.y = 0, xr.getArea() <= PF)
|
|
64860
64862
|
return null;
|
|
64861
|
-
|
|
64863
|
+
Ci.delta(Ir).normalize(), Ir.cross(xr.plane.normal).normalize(), Xu.setFromNormalAndCoplanarPoint(Ir, Ci.start);
|
|
64862
64864
|
let t = 0;
|
|
64863
64865
|
const { points: i } = xr;
|
|
64864
64866
|
for (let r = 0; r < 3; r++) {
|
|
@@ -64869,16 +64871,16 @@ function TF(n, A, e = new Te()) {
|
|
|
64869
64871
|
break;
|
|
64870
64872
|
}
|
|
64871
64873
|
if (t === 2) {
|
|
64872
|
-
if (
|
|
64874
|
+
if (Ci.delta(Ir).normalize(), jn.delta(UI).normalize(), Ir.dot(UI) < 0) {
|
|
64873
64875
|
let c = jn.start;
|
|
64874
64876
|
jn.start = jn.end, jn.end = c;
|
|
64875
64877
|
}
|
|
64876
|
-
const r = 0, s = rm.subVectors(
|
|
64878
|
+
const r = 0, s = rm.subVectors(Ci.end, Ci.start).dot(Ir), o = rm.subVectors(jn.start, Ci.start).dot(Ir), a = rm.subVectors(jn.end, Ci.start).dot(Ir), l = s <= o, u = a <= r;
|
|
64877
64879
|
return l || u ? null : (n.at(
|
|
64878
|
-
Math.max(r, o) /
|
|
64880
|
+
Math.max(r, o) / Ci.distance(),
|
|
64879
64881
|
e.start
|
|
64880
64882
|
), n.at(
|
|
64881
|
-
Math.min(s, a) /
|
|
64883
|
+
Math.min(s, a) / Ci.distance(),
|
|
64882
64884
|
e.end
|
|
64883
64885
|
), e);
|
|
64884
64886
|
}
|
|
@@ -64891,7 +64893,7 @@ function EF(n, A, e) {
|
|
|
64891
64893
|
let i = JI.length() / t, r = ZI.length() / t;
|
|
64892
64894
|
return i = Math.min(Math.max(i, 0), 1), r = Math.min(Math.max(r, 0), 1), Math.abs(i - r) <= DF ? !1 : (e.push(new Float32Array([i, r])), !0);
|
|
64893
64895
|
}
|
|
64894
|
-
const XI = 1e-6, br = new
|
|
64896
|
+
const XI = 1e-6, br = new ui(), Vo = new Te();
|
|
64895
64897
|
function* LF(n, A = 30) {
|
|
64896
64898
|
const e = [], t = n.geometry, i = t.index, r = t.attributes.position, s = i ? i.count : r;
|
|
64897
64899
|
let o = performance.now();
|
|
@@ -65059,7 +65061,7 @@ const t2 = 0.15;
|
|
|
65059
65061
|
let la, vf = 0, U0 = 0;
|
|
65060
65062
|
const jF = () => {
|
|
65061
65063
|
la = void 0, vf = 0, U0 = 0;
|
|
65062
|
-
}, KF = new
|
|
65064
|
+
}, KF = new oi({ colorWrite: !1 });
|
|
65063
65065
|
class cH {
|
|
65064
65066
|
constructor(A) {
|
|
65065
65067
|
this.props = A, this.stats = new uc(), this.scene = new ka(), this.overlayScene = new ka(), this.renderer = new N2({
|
|
@@ -65080,66 +65082,66 @@ class cH {
|
|
|
65080
65082
|
metalness: 0.6,
|
|
65081
65083
|
roughness: 0.3
|
|
65082
65084
|
})
|
|
65083
|
-
), this.addEventListener = this._emitter.on.bind(this._emitter), this.removeEventListener = this._emitter.on.bind(this._emitter), this._drag = (
|
|
65084
|
-
this._dragging = !0, this._pointermove(
|
|
65085
|
-
}, this._dragend = (
|
|
65085
|
+
), this.addEventListener = this._emitter.on.bind(this._emitter), this.removeEventListener = this._emitter.on.bind(this._emitter), this._drag = (i) => {
|
|
65086
|
+
this._dragging = !0, this._pointermove(i);
|
|
65087
|
+
}, this._dragend = (i) => {
|
|
65086
65088
|
this._dragging = !1;
|
|
65087
|
-
}, this._pointermove = (
|
|
65089
|
+
}, this._pointermove = (i) => {
|
|
65088
65090
|
if (this._pointerDownTimeout)
|
|
65089
65091
|
return clearTimeout(this._pointerDownTimeout), this._pointerDownTimeout = 0;
|
|
65090
|
-
const { top:
|
|
65091
|
-
this.offset.set(
|
|
65092
|
-
(
|
|
65093
|
-
-((
|
|
65092
|
+
const { top: r, left: s } = this.renderer.domElement.getBoundingClientRect();
|
|
65093
|
+
this.offset.set(s, r), this.mousePos.set(i.clientX - s, i.clientY - r), this.mouseCoord.set(
|
|
65094
|
+
(i.clientX - s) / this.size.x * 2 - 1,
|
|
65095
|
+
-((i.clientY - r) / this.size.y) * 2 + 1
|
|
65094
65096
|
), this._raycaster.setFromCamera(this.mouseCoord, this.camera);
|
|
65095
|
-
}, this._pointerdown = (
|
|
65096
|
-
const
|
|
65097
|
-
let
|
|
65098
|
-
this._outlinePass.selectedObjects = [], this.amr.slots.forEach((
|
|
65099
|
-
const
|
|
65100
|
-
|
|
65101
|
-
|
|
65102
|
-
|
|
65097
|
+
}, this._pointerdown = (i) => {
|
|
65098
|
+
const r = () => {
|
|
65099
|
+
let s = [...this._outlinePass.selectedObjects];
|
|
65100
|
+
this._outlinePass.selectedObjects = [], this.amr.slots.forEach((l) => l.selected = !1);
|
|
65101
|
+
const a = this._raycaster.intersectObjects(this.amr.slots, !0)[0];
|
|
65102
|
+
a && this.amr.slots.forEach((l) => {
|
|
65103
|
+
l.traverse((u) => {
|
|
65104
|
+
u == a.object ? s != null && s.includes(l) ? (s = void 0, l.deviceSelected = !1) : (this._outlinePass.selectedObjects = [l], l.deviceSelected = !0) : l.deviceSelected = !1;
|
|
65103
65105
|
});
|
|
65104
65106
|
}), this._pointerDownTimeout = 0;
|
|
65105
65107
|
};
|
|
65106
|
-
this._pointerDownTimeout = window.setTimeout(
|
|
65108
|
+
this._pointerDownTimeout = window.setTimeout(r, 200);
|
|
65107
65109
|
}, this._detectTrackpad = () => {
|
|
65108
65110
|
la || typeof la < "u" || (vf === 0 && (U0 = performance.now()), vf++, performance.now() - U0 > 66 && (vf > 5 ? la = !0 : la = !1, la ? this.controls.zoomSpeed = 0.2 : this.controls.zoomSpeed = 1, setTimeout(jF, 2e3)));
|
|
65109
65111
|
}, this.fit = () => {
|
|
65110
65112
|
new ve().setFromObject(this._container);
|
|
65111
|
-
const
|
|
65112
|
-
let
|
|
65113
|
-
const
|
|
65114
|
-
|
|
65115
|
-
const
|
|
65116
|
-
|
|
65113
|
+
const r = this.amr.sizeBox.size.getSize(new O()), s = r.clone().multiplyScalar(0.5);
|
|
65114
|
+
let o = Math.max(r.x, r.y, r.z) + Math.max(r.x, r.y);
|
|
65115
|
+
const a = _R(this.camera.fov, 0.8) * 3 - 1.2;
|
|
65116
|
+
o += a;
|
|
65117
|
+
const l = Math.min(r.x, r.y, r.z) + 0.5, c = this.camera.position.clone().normalize().multiplyScalar(o);
|
|
65118
|
+
c.setY(o * Math.sin(30 / 180 * Math.PI)), this._fitAnimation = new fd(this.camera.position).to(c, 600).easing(Ds.Easing.Quintic.InOut).onStart(() => {
|
|
65117
65119
|
this.controls.enabled = !1;
|
|
65118
65120
|
}).onComplete(() => {
|
|
65119
65121
|
this.controls.enabled = !0;
|
|
65120
|
-
}).start(), this.controls.minDistance =
|
|
65122
|
+
}).start(), this.controls.minDistance = l, this.controls.maxDistance = o * 2.5, !s.equals(new O()) && (s.setZ(0), this.controls.target.setY(s.y));
|
|
65121
65123
|
}, this.resize = () => {
|
|
65122
|
-
var
|
|
65123
|
-
const
|
|
65124
|
-
if (!
|
|
65124
|
+
var l;
|
|
65125
|
+
const i = this.renderer.domElement.parentElement;
|
|
65126
|
+
if (!i)
|
|
65125
65127
|
return;
|
|
65126
|
-
|
|
65127
|
-
const
|
|
65128
|
-
this.size.set(
|
|
65129
|
-
const
|
|
65130
|
-
(
|
|
65131
|
-
const
|
|
65132
|
-
|
|
65128
|
+
i.style.display = "flex", this.renderer.domElement.style.width = "100%", this.renderer.domElement.style.height = "100%", this.renderer.domElement.style.flexGrow = "1";
|
|
65129
|
+
const r = i.clientWidth, s = i.clientHeight;
|
|
65130
|
+
this.size.set(r, s), this.camera.aspect = r / s, this.camera.updateProjectionMatrix(), this.css2dRenderer.setSize(r, s);
|
|
65131
|
+
const o = this.renderer.getPixelRatio();
|
|
65132
|
+
(l = this.pathTracer) == null || l.updateCamera(), this.sampleCount = 0, this.renderer.setSize(r, s), this._composer.setSize(r, s), this._composer.passes.forEach((u) => u.setSize(r, s));
|
|
65133
|
+
const a = this._fxaaPass.material.uniforms;
|
|
65134
|
+
a.resolution.value.x = 1 / (r * o), a.resolution.value.y = 1 / (s * o);
|
|
65133
65135
|
}, this.ticker = () => {
|
|
65134
65136
|
this.stats.begin();
|
|
65135
|
-
const
|
|
65136
|
-
if (this.usePathTracing || (this._fpsCache.length > this._fpsCacheMax && this._fpsCache.shift(), this._fpsCache.push(
|
|
65137
|
+
const i = this.stats.fps();
|
|
65138
|
+
if (this.usePathTracing || (this._fpsCache.length > this._fpsCacheMax && this._fpsCache.shift(), this._fpsCache.push(i)), this.renderer.domElement.dispatchEvent(new CustomEvent("ticker")), requestAnimationFrame(this.ticker), this.renderer.autoClear = !1, this.renderer.clear(), this.usePathTracing) {
|
|
65137
65139
|
this.sampleCount < this.maxSample ? this.sampleCount++ : this.pathTracer.pausePathTracing = !0, this.pathTracer.renderSample();
|
|
65138
|
-
const
|
|
65139
|
-
this.renderer.autoClear = !1, this.scene.overrideMaterial = KF, this.renderer.clearDepth(), this.renderer.render(this.scene, this.camera), this.scene.overrideMaterial = null, this.renderer.render(this.overlayScene, this.camera), this.renderer.autoClear =
|
|
65140
|
+
const r = this.renderer.autoClear;
|
|
65141
|
+
this.renderer.autoClear = !1, this.scene.overrideMaterial = KF, this.renderer.clearDepth(), this.renderer.render(this.scene, this.camera), this.scene.overrideMaterial = null, this.renderer.render(this.overlayScene, this.camera), this.renderer.autoClear = r, this.renderer.render(this.overlayScene, this.camera);
|
|
65140
65142
|
} else
|
|
65141
|
-
this.amr.slots.forEach((
|
|
65142
|
-
this._dragging ?
|
|
65143
|
+
this.amr.slots.forEach((r) => {
|
|
65144
|
+
this._dragging ? r.getCanInstall() && r.render(this) : r.render(this);
|
|
65143
65145
|
}), Ds.update(), this.controls.update(), this.css2dRenderer.render(this.scene, this.camera), this.updatePosition(), this.scene.overrideMaterial = null, this._composer.render();
|
|
65144
65146
|
this.stats.end();
|
|
65145
65147
|
}, this.stats.showPanel(0), this.hideState(), A.fov && (this.camera.fov = A.fov, this.camera.updateProjectionMatrix()), this._ground.visible = !1, this.controls = new GE(this.camera, this.renderer.domElement), this.controls.enablePan = !1, this.controls.rotateSpeed = 0.5, this.controls.dampingFactor = t2, this.controls.enableDamping = !0, this.controls.maxDistance = 5, this.controls.minDistance = 1, this.controls.zoomSpeed = bR() ? 0.2 : 1, this.renderer.setPixelRatio(window.devicePixelRatio || 1), this.renderer.autoClear = !0, this.renderer.toneMapping = W0, this.renderer.toneMappingExposure = 1.2, this.renderer.outputColorSpace = ke, this.renderer.localClippingEnabled = !0, this.css2dRenderer.domElement.style.pointerEvents = "none", this.css2dRenderer.domElement.style.position = "absolute", this.css2dRenderer.domElement.style.top = "0px", ae.tonemapping_pars_fragment = ae.tonemapping_pars_fragment.replace(
|
|
@@ -65166,9 +65168,11 @@ class cH {
|
|
|
65166
65168
|
}`
|
|
65167
65169
|
), this.camera.position.set(10, 6, -10), this.camera.lookAt(new O());
|
|
65168
65170
|
const { tiles: e } = TR();
|
|
65169
|
-
this.pathTracer = new NO(this.renderer), this.pathTracer.filterGlossyFactor = 0.6
|
|
65170
|
-
|
|
65171
|
-
|
|
65171
|
+
this.pathTracer = new NO(this.renderer), this.pathTracer.filterGlossyFactor = 0.6;
|
|
65172
|
+
let t = window.devicePixelRatio;
|
|
65173
|
+
t < 2 && (t = 2), this.pathTracer.renderScale = t, this.pathTracer.bounces = 10, this.pathTracer.transmissiveBounces = 3, this.pathTracer.tiles.set(e, e), this.pathTracer.fadeDuration = 0, this.pathTracer.setBVHWorker(new CF()), this.controls.addEventListener("change", () => {
|
|
65174
|
+
var i;
|
|
65175
|
+
this.sampleCount = 0, this.usePathTracing && (this.pathTracer.pausePathTracing = !1, (i = this.pathTracer) == null || i.updateCamera());
|
|
65172
65176
|
}), this._composer = new zO(this.renderer), this._composer.setPixelRatio(window.devicePixelRatio), this._composer.addPass(new jE(this.scene, this.camera)), this._composer.addPass(new YE()), this._outlinePass = new Zn(new uA(window.innerWidth, window.innerHeight), this.scene, this.camera), this._outlinePass.visibleEdgeColor.set(26367), this._outlinePass.edgeThickness = 0.5, this._outlinePass.hiddenEdgeColor.set(26367), this._outlinePass.edgeStrength = 3, this._outlinePass.edgeGlow = 0, this._composer.addPass(this._outlinePass), this._outlinePassError = new Zn(new uA(window.innerWidth, window.innerHeight), this.scene, this.camera), this._outlinePassError.visibleEdgeColor.set(16711680), this._outlinePassError.edgeThickness = 0.5, this._outlinePassError.hiddenEdgeColor.set(16711680), this._outlinePassError.edgeStrength = 3, this._outlinePassError.edgeGlow = 0, this._composer.addPass(this._outlinePassError), this._composer.renderTarget1.texture.colorSpace = ke, this._composer.renderTarget2.texture.colorSpace = ke, this._fxaaPass = new V2(KE), this._composer.addPass(this._fxaaPass), this._container.add(this.amr), this.scene.add(this._container), this.ticker(), this._loadEnv(), this._initEvents(), this._ground.rotateX(-Math.PI / 2), this.scene.add(this._ground);
|
|
65173
65177
|
}
|
|
65174
65178
|
get usePathTracing() {
|
|
@@ -66483,7 +66487,7 @@ const mG = {
|
|
|
66483
66487
|
forceHitArea: null,
|
|
66484
66488
|
noTicker: !1,
|
|
66485
66489
|
disableOnContextMenu: !1,
|
|
66486
|
-
ticker:
|
|
66490
|
+
ticker: $t.shared,
|
|
66487
66491
|
allowPreserveDragOutside: !1
|
|
66488
66492
|
};
|
|
66489
66493
|
class vG extends qi {
|
|
@@ -67040,7 +67044,7 @@ export {
|
|
|
67040
67044
|
oH as Line,
|
|
67041
67045
|
A2 as Logo,
|
|
67042
67046
|
Xf as SGLBLoader,
|
|
67043
|
-
|
|
67047
|
+
Rt as SLOT_EVENTS,
|
|
67044
67048
|
cH as Scene3D,
|
|
67045
67049
|
e2 as Skin,
|
|
67046
67050
|
lI as Slot,
|