dpot-ui 0.4.5 → 0.4.7
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/index.es.js +191 -186
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -86,7 +86,7 @@ const Tf = (n, e, t) => zt(void 0, null, function* () {
|
|
|
86
86
|
}
|
|
87
87
|
return { x: u, y: h, placement: f, strategy: r, middlewareData: d };
|
|
88
88
|
});
|
|
89
|
-
function
|
|
89
|
+
function Zi(n, e) {
|
|
90
90
|
return typeof n == "function" ? n(e) : n;
|
|
91
91
|
}
|
|
92
92
|
function Xu(n) {
|
|
@@ -101,7 +101,7 @@ function Cs(n, e) {
|
|
|
101
101
|
return zt(this, null, function* () {
|
|
102
102
|
var t;
|
|
103
103
|
e === void 0 && (e = {});
|
|
104
|
-
const { x: i, y: r, platform: s, rects: o, elements: a, strategy: l } = n, { boundary: c = "clippingAncestors", rootBoundary: u = "viewport", elementContext: h = "floating", altBoundary: f = !1, padding: d = 0 } =
|
|
104
|
+
const { x: i, y: r, platform: s, rects: o, elements: a, strategy: l } = n, { boundary: c = "clippingAncestors", rootBoundary: u = "viewport", elementContext: h = "floating", altBoundary: f = !1, padding: d = 0 } = Zi(e, n), g = Xu(d), _ = a[f ? h === "floating" ? "reference" : "floating" : h], m = As(yield s.getClippingRect({ element: (t = yield s.isElement == null ? void 0 : s.isElement(_)) == null || t ? _ : _.contextElement || (yield s.getDocumentElement == null ? void 0 : s.getDocumentElement(a.floating)), boundary: c, rootBoundary: u, strategy: l })), p = h === "floating" ? rt(De({}, o.floating), { x: i, y: r }) : o.reference, y = yield s.getOffsetParent == null ? void 0 : s.getOffsetParent(a.floating), v = (yield s.isElement == null ? void 0 : s.isElement(y)) && (yield s.getScale == null ? void 0 : s.getScale(y)) || { x: 1, y: 1 }, M = As(s.convertOffsetParentRelativeRectToViewportRelativeRect ? yield s.convertOffsetParentRelativeRectToViewportRelativeRect({ rect: p, offsetParent: y, strategy: l }) : p);
|
|
105
105
|
return { top: (m.top - M.top + g.top) / v.y, bottom: (M.bottom - m.bottom + g.bottom) / v.y, left: (m.left - M.left + g.left) / v.x, right: (M.right - m.right + g.right) / v.x };
|
|
106
106
|
});
|
|
107
107
|
}
|
|
@@ -111,7 +111,7 @@ function Ko(n, e, t) {
|
|
|
111
111
|
}
|
|
112
112
|
const Af = (n) => ({ name: "arrow", options: n, fn(t) {
|
|
113
113
|
return zt(this, null, function* () {
|
|
114
|
-
const { x: i, y: r, placement: s, rects: o, platform: a, elements: l } = t, { element: c, padding: u = 0 } =
|
|
114
|
+
const { x: i, y: r, placement: s, rects: o, platform: a, elements: l } = t, { element: c, padding: u = 0 } = Zi(n, t) || {};
|
|
115
115
|
if (c == null)
|
|
116
116
|
return {};
|
|
117
117
|
const h = Xu(u), f = { x: i, y: r }, d = Pr(s), g = Ea(d), _ = yield a.getDimensions(c), m = d === "y", p = m ? "top" : "left", y = m ? "bottom" : "right", v = m ? "clientHeight" : "clientWidth", M = o.reference[g] + o.reference[d] - f[d] - o.floating[g], b = f[d] - o.reference[d], R = yield a.getOffsetParent == null ? void 0 : a.getOffsetParent(c);
|
|
@@ -140,7 +140,7 @@ const Pf = function(n) {
|
|
|
140
140
|
return n === void 0 && (n = {}), { name: "flip", options: n, fn(t) {
|
|
141
141
|
return zt(this, null, function* () {
|
|
142
142
|
var i;
|
|
143
|
-
const { placement: r, middlewareData: s, rects: o, initialPlacement: a, platform: l, elements: c } = t, ee =
|
|
143
|
+
const { placement: r, middlewareData: s, rects: o, initialPlacement: a, platform: l, elements: c } = t, ee = Zi(n, t), { mainAxis: u = !0, crossAxis: h = !0, fallbackPlacements: f, fallbackStrategy: d = "bestFit", fallbackAxisSideDirection: g = "none", flipAlignment: _ = !0 } = ee, m = zr(ee, ["mainAxis", "crossAxis", "fallbackPlacements", "fallbackStrategy", "fallbackAxisSideDirection", "flipAlignment"]), p = si(r), y = si(a) === a, v = yield l.isRTL == null ? void 0 : l.isRTL(c.floating), M = f || (y || !_ ? [Rs(a)] : function(O) {
|
|
144
144
|
const U = Rs(O);
|
|
145
145
|
return [ro(O), U, ro(U)];
|
|
146
146
|
}(a));
|
|
@@ -200,7 +200,7 @@ function cl(n) {
|
|
|
200
200
|
const Df = function(n) {
|
|
201
201
|
return n === void 0 && (n = {}), { name: "hide", options: n, fn(t) {
|
|
202
202
|
return zt(this, null, function* () {
|
|
203
|
-
const { rects: i } = t, o =
|
|
203
|
+
const { rects: i } = t, o = Zi(n, t), { strategy: r = "referenceHidden" } = o, s = zr(o, ["strategy"]);
|
|
204
204
|
switch (r) {
|
|
205
205
|
case "referenceHidden": {
|
|
206
206
|
const a = ll(yield Cs(t, rt(De({}, s), { elementContext: "reference" })), i.reference);
|
|
@@ -220,7 +220,7 @@ const Df = function(n) {
|
|
|
220
220
|
return zt(this, null, function* () {
|
|
221
221
|
const { x: i, y: r } = t, s = yield function(o, a) {
|
|
222
222
|
return zt(this, null, function* () {
|
|
223
|
-
const { placement: l, platform: c, elements: u } = o, h = yield c.isRTL == null ? void 0 : c.isRTL(u.floating), f = si(l), d = Lr(l), g = Pr(l) === "x", _ = ["left", "top"].includes(f) ? -1 : 1, m = h && g ? -1 : 1, p =
|
|
223
|
+
const { placement: l, platform: c, elements: u } = o, h = yield c.isRTL == null ? void 0 : c.isRTL(u.floating), f = si(l), d = Lr(l), g = Pr(l) === "x", _ = ["left", "top"].includes(f) ? -1 : 1, m = h && g ? -1 : 1, p = Zi(a, o);
|
|
224
224
|
let { mainAxis: y, crossAxis: v, alignmentAxis: M } = typeof p == "number" ? { mainAxis: p, crossAxis: 0, alignmentAxis: null } : De({ mainAxis: 0, crossAxis: 0, alignmentAxis: null }, p);
|
|
225
225
|
return d && typeof M == "number" && (v = d === "end" ? -1 * M : M), g ? { x: v * m, y: y * _ } : { x: y * _, y: v * m };
|
|
226
226
|
});
|
|
@@ -235,7 +235,7 @@ function Uf(n) {
|
|
|
235
235
|
const Nf = function(n) {
|
|
236
236
|
return n === void 0 && (n = {}), { name: "shift", options: n, fn(t) {
|
|
237
237
|
return zt(this, null, function* () {
|
|
238
|
-
const { x: i, y: r, placement: s } = t, p =
|
|
238
|
+
const { x: i, y: r, placement: s } = t, p = Zi(n, t), { mainAxis: o = !0, crossAxis: a = !1, limiter: l = { fn: (y) => {
|
|
239
239
|
let { x: v, y: M } = y;
|
|
240
240
|
return { x: v, y: M };
|
|
241
241
|
} } } = p, c = zr(p, ["mainAxis", "crossAxis", "limiter"]), u = { x: i, y: r }, h = yield Cs(t, c), f = Pr(si(s)), d = Uf(f);
|
|
@@ -292,7 +292,7 @@ function ba() {
|
|
|
292
292
|
function Hs(n) {
|
|
293
293
|
return ["html", "body", "#document"].includes(qn(n));
|
|
294
294
|
}
|
|
295
|
-
const Jo = Math.min,
|
|
295
|
+
const Jo = Math.min, zi = Math.max, Ls = Math.round, Hr = Math.floor, hi = (n) => ({ x: n, y: n });
|
|
296
296
|
function ju(n) {
|
|
297
297
|
const e = on(n);
|
|
298
298
|
let t = parseFloat(e.width) || 0, i = parseFloat(e.height) || 0;
|
|
@@ -302,7 +302,7 @@ function ju(n) {
|
|
|
302
302
|
function Ta(n) {
|
|
303
303
|
return Ln(n) ? n : n.contextElement;
|
|
304
304
|
}
|
|
305
|
-
function
|
|
305
|
+
function Hi(n) {
|
|
306
306
|
const e = Ta(n);
|
|
307
307
|
if (!ln(e))
|
|
308
308
|
return hi(1);
|
|
@@ -322,14 +322,14 @@ function fi(n, e, t, i) {
|
|
|
322
322
|
e === void 0 && (e = !1), t === void 0 && (t = !1);
|
|
323
323
|
const r = n.getBoundingClientRect(), s = Ta(n);
|
|
324
324
|
let o = hi(1);
|
|
325
|
-
e && (i ? Ln(i) && (o =
|
|
325
|
+
e && (i ? Ln(i) && (o = Hi(i)) : o = Hi(n));
|
|
326
326
|
const a = Yu(s, t, i);
|
|
327
327
|
let l = (r.left + a.x) / o.x, c = (r.top + a.y) / o.y, u = r.width / o.x, h = r.height / o.y;
|
|
328
328
|
if (s) {
|
|
329
329
|
const f = qt(s), d = i && Ln(i) ? qt(i) : i;
|
|
330
330
|
let g = f.frameElement;
|
|
331
331
|
for (; g && i && d !== f; ) {
|
|
332
|
-
const _ =
|
|
332
|
+
const _ = Hi(g), m = g.getBoundingClientRect(), p = getComputedStyle(g), y = m.left + (g.clientLeft + parseFloat(p.paddingLeft)) * _.x, v = m.top + (g.clientTop + parseFloat(p.paddingTop)) * _.y;
|
|
333
333
|
l *= _.x, c *= _.y, u *= _.x, h *= _.y, l += y, c += v, g = qt(g).frameElement;
|
|
334
334
|
}
|
|
335
335
|
}
|
|
@@ -344,14 +344,14 @@ function ks(n) {
|
|
|
344
344
|
function Ku(n) {
|
|
345
345
|
return fi(Pn(n)).left + ks(n).scrollLeft;
|
|
346
346
|
}
|
|
347
|
-
function
|
|
347
|
+
function Vi(n) {
|
|
348
348
|
if (qn(n) === "html")
|
|
349
349
|
return n;
|
|
350
350
|
const e = n.assignedSlot || n.parentNode || ul(n) && n.host || Pn(n);
|
|
351
351
|
return ul(e) ? e.host : e;
|
|
352
352
|
}
|
|
353
353
|
function Zu(n) {
|
|
354
|
-
const e =
|
|
354
|
+
const e = Vi(n);
|
|
355
355
|
return Hs(e) ? n.ownerDocument ? n.ownerDocument.body : n.body : ln(e) && xr(e) ? e : Zu(e);
|
|
356
356
|
}
|
|
357
357
|
function Ps(n, e) {
|
|
@@ -375,14 +375,14 @@ function fl(n, e, t) {
|
|
|
375
375
|
}(n, t);
|
|
376
376
|
else if (e === "document")
|
|
377
377
|
i = function(r) {
|
|
378
|
-
const s = Pn(r), o = ks(r), a = r.ownerDocument.body, l =
|
|
378
|
+
const s = Pn(r), o = ks(r), a = r.ownerDocument.body, l = zi(s.scrollWidth, s.clientWidth, a.scrollWidth, a.clientWidth), c = zi(s.scrollHeight, s.clientHeight, a.scrollHeight, a.clientHeight);
|
|
379
379
|
let u = -o.scrollLeft + Ku(r);
|
|
380
380
|
const h = -o.scrollTop;
|
|
381
|
-
return on(a).direction === "rtl" && (u +=
|
|
381
|
+
return on(a).direction === "rtl" && (u += zi(s.clientWidth, a.clientWidth) - l), { width: l, height: c, x: u, y: h };
|
|
382
382
|
}(Pn(n));
|
|
383
383
|
else if (Ln(e))
|
|
384
384
|
i = function(r, s) {
|
|
385
|
-
const o = fi(r, !0, s === "fixed"), a = o.top + r.clientTop, l = o.left + r.clientLeft, c = ln(r) ?
|
|
385
|
+
const o = fi(r, !0, s === "fixed"), a = o.top + r.clientTop, l = o.left + r.clientLeft, c = ln(r) ? Hi(r) : hi(1);
|
|
386
386
|
return { width: r.clientWidth * c.x, height: r.clientHeight * c.y, x: l * c.x, y: a * c.y };
|
|
387
387
|
}(e, t);
|
|
388
388
|
else {
|
|
@@ -392,7 +392,7 @@ function fl(n, e, t) {
|
|
|
392
392
|
return As(i);
|
|
393
393
|
}
|
|
394
394
|
function Ju(n, e) {
|
|
395
|
-
const t =
|
|
395
|
+
const t = Vi(n);
|
|
396
396
|
return !(t === e || !Ln(t) || Hs(t)) && (on(t).position === "fixed" || Ju(t, e));
|
|
397
397
|
}
|
|
398
398
|
function dl(n, e) {
|
|
@@ -406,11 +406,11 @@ function pl(n, e) {
|
|
|
406
406
|
for (; i && Of(i) && on(i).position === "static"; )
|
|
407
407
|
i = dl(i, e);
|
|
408
408
|
return i && (qn(i) === "html" || qn(i) === "body" && on(i).position === "static" && !Zo(i)) ? t : i || function(r) {
|
|
409
|
-
let s =
|
|
409
|
+
let s = Vi(r);
|
|
410
410
|
for (; ln(s) && !Hs(s); ) {
|
|
411
411
|
if (Zo(s))
|
|
412
412
|
return s;
|
|
413
|
-
s =
|
|
413
|
+
s = Vi(s);
|
|
414
414
|
}
|
|
415
415
|
return null;
|
|
416
416
|
}(n) || t;
|
|
@@ -435,15 +435,15 @@ const Bf = { getClippingRect: function(n) {
|
|
|
435
435
|
return h;
|
|
436
436
|
let f = Ps(c).filter((m) => Ln(m) && qn(m) !== "body"), d = null;
|
|
437
437
|
const g = on(c).position === "fixed";
|
|
438
|
-
let _ = g ?
|
|
438
|
+
let _ = g ? Vi(c) : c;
|
|
439
439
|
for (; Ln(_) && !Hs(_); ) {
|
|
440
440
|
const m = on(_), p = Zo(_);
|
|
441
|
-
p || m.position !== "fixed" || (d = null), (g ? !p && !d : !p && m.position === "static" && d && ["absolute", "fixed"].includes(d.position) || xr(_) && !p && Ju(c, _)) ? f = f.filter((y) => y !== _) : d = m, _ =
|
|
441
|
+
p || m.position !== "fixed" || (d = null), (g ? !p && !d : !p && m.position === "static" && d && ["absolute", "fixed"].includes(d.position) || xr(_) && !p && Ju(c, _)) ? f = f.filter((y) => y !== _) : d = m, _ = Vi(_);
|
|
442
442
|
}
|
|
443
443
|
return u.set(c, f), f;
|
|
444
444
|
}(e, this._c) : [].concat(t), o = [...s, i], a = o[0], l = o.reduce((c, u) => {
|
|
445
445
|
const h = fl(e, u, r);
|
|
446
|
-
return c.top =
|
|
446
|
+
return c.top = zi(h.top, c.top), c.right = Jo(h.right, c.right), c.bottom = Jo(h.bottom, c.bottom), c.left = zi(h.left, c.left), c;
|
|
447
447
|
}, fl(e, a, r));
|
|
448
448
|
return { width: l.right - l.left, height: l.bottom - l.top, x: l.left, y: l.top };
|
|
449
449
|
}, convertOffsetParentRelativeRectToViewportRelativeRect: function(n) {
|
|
@@ -455,12 +455,12 @@ const Bf = { getClippingRect: function(n) {
|
|
|
455
455
|
const l = hi(0);
|
|
456
456
|
if ((r || !r && i !== "fixed") && ((qn(t) !== "body" || xr(s)) && (o = ks(t)), ln(t))) {
|
|
457
457
|
const c = fi(t);
|
|
458
|
-
a =
|
|
458
|
+
a = Hi(t), l.x = c.x + t.clientLeft, l.y = c.y + t.clientTop;
|
|
459
459
|
}
|
|
460
460
|
return { width: e.width * a.x, height: e.height * a.y, x: e.x * a.x - o.scrollLeft * a.x + l.x, y: e.y * a.y - o.scrollTop * a.y + l.y };
|
|
461
461
|
}, isElement: Ln, getDimensions: function(n) {
|
|
462
462
|
return ju(n);
|
|
463
|
-
}, getOffsetParent: pl, getDocumentElement: Pn, getScale:
|
|
463
|
+
}, getOffsetParent: pl, getDocumentElement: Pn, getScale: Hi, getElementRects(n) {
|
|
464
464
|
return zt(this, null, function* () {
|
|
465
465
|
let { reference: e, floating: t, strategy: i } = n;
|
|
466
466
|
const r = this.getOffsetParent || pl, s = this.getDimensions;
|
|
@@ -496,7 +496,7 @@ function zf(n, e, t, i) {
|
|
|
496
496
|
}, 100);
|
|
497
497
|
}
|
|
498
498
|
z = !1;
|
|
499
|
-
}, { rootMargin: -ee + "px " + -O + "px " + -U + "px " + -C + "px", threshold:
|
|
499
|
+
}, { rootMargin: -ee + "px " + -O + "px " + -U + "px " + -C + "px", threshold: zi(0, Jo(1, w)) || 1 }), y.observe(_);
|
|
500
500
|
}(!0), M;
|
|
501
501
|
}(c, t) : null;
|
|
502
502
|
let f, d = null;
|
|
@@ -1619,9 +1619,9 @@ const Vd = /* @__PURE__ */ function() {
|
|
|
1619
1619
|
return {};
|
|
1620
1620
|
const r = (o) => typeof o == "number" ? [o] : (Object.values(o) || []).map((a) => r(a)).flat();
|
|
1621
1621
|
return { position: "sticky", left: `${n.filter((o, a) => a < t && o.isFixed).map((o) => r(e[o.code])).reduce((o, a) => parseFloat(o) + parseFloat(a), 0)}px` };
|
|
1622
|
-
},
|
|
1622
|
+
}, lr = (n, e, t) => {
|
|
1623
1623
|
const i = n[e[0]];
|
|
1624
|
-
return e.length > 1 ?
|
|
1624
|
+
return e.length > 1 ? lr(i, e.slice(1), t) : n[t] === void 0 ? i : n[t];
|
|
1625
1625
|
};
|
|
1626
1626
|
var Wd = function() {
|
|
1627
1627
|
var n = this, e = n.$createElement, t = n._self._c || e;
|
|
@@ -2011,7 +2011,7 @@ const Jd = {
|
|
|
2011
2011
|
return n.length ? [...this.bodyData].filter((e) => {
|
|
2012
2012
|
let t = !0;
|
|
2013
2013
|
return n.some((i) => {
|
|
2014
|
-
if (!i.value.includes(
|
|
2014
|
+
if (!i.value.includes(lr(e, i.target, i.filterKey)))
|
|
2015
2015
|
return t = !1, !0;
|
|
2016
2016
|
}), t;
|
|
2017
2017
|
}) : this.bodyData;
|
|
@@ -2023,7 +2023,7 @@ const Jd = {
|
|
|
2023
2023
|
const e = this.sortInfo.value === "up";
|
|
2024
2024
|
let t = !1;
|
|
2025
2025
|
if (n = [...n].sort((i, r) => {
|
|
2026
|
-
const s = [
|
|
2026
|
+
const s = [lr(i, this.sortInfo.target, this.sortInfo.sortKey)].flat(), o = [lr(r, this.sortInfo.target, this.sortInfo.sortKey)].flat(), a = s.length > 1 ? s.sort((c, u) => e ? c - u : u - c)[0] : s[0], l = o.length > 1 ? o.sort((c, u) => e ? c - u : u - c)[0] : o[0];
|
|
2027
2027
|
return (s.length > 1 || o.length > 1) && (t = !0), e ? a - l : l - a;
|
|
2028
2028
|
}), t) {
|
|
2029
2029
|
const i = (r, s, o) => {
|
|
@@ -2037,7 +2037,7 @@ const Jd = {
|
|
|
2037
2037
|
return a;
|
|
2038
2038
|
};
|
|
2039
2039
|
n = n.map((r) => {
|
|
2040
|
-
const s = [
|
|
2040
|
+
const s = [lr(r, this.sortInfo.target, this.sortInfo.sortKey)].flat();
|
|
2041
2041
|
if (s.length > 1) {
|
|
2042
2042
|
const o = s.sort((c, u) => e ? c - u : u - c);
|
|
2043
2043
|
let a = [];
|
|
@@ -2503,7 +2503,7 @@ const Ap = /* @__PURE__ */ function() {
|
|
|
2503
2503
|
* Copyright 2010-2023 Three.js Authors
|
|
2504
2504
|
* SPDX-License-Identifier: MIT
|
|
2505
2505
|
*/
|
|
2506
|
-
const Aa = "156", zn = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, _i = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Cp = 0, Pl = 1, Rp = 2, nh = 1, Lp = 2, An = 3, jn = 0, Ot = 1, Cn = 2, Wn = 0,
|
|
2506
|
+
const Aa = "156", zn = { LEFT: 0, MIDDLE: 1, RIGHT: 2, ROTATE: 0, DOLLY: 1, PAN: 2 }, _i = { ROTATE: 0, PAN: 1, DOLLY_PAN: 2, DOLLY_ROTATE: 3 }, Cp = 0, Pl = 1, Rp = 2, nh = 1, Lp = 2, An = 3, jn = 0, Ot = 1, Cn = 2, Wn = 0, ki = 1, Dl = 2, Il = 3, Ul = 4, Pp = 5, Ni = 100, Dp = 101, Ip = 102, Nl = 103, Ol = 104, Up = 200, Np = 201, Op = 202, Fp = 203, ih = 204, rh = 205, Bp = 206, zp = 207, Hp = 208, kp = 209, Gp = 210, Vp = 0, Wp = 1, Xp = 2, ea = 3, $p = 4, qp = 5, jp = 6, Yp = 7, Ca = 0, Kp = 1, Zp = 2, Xn = 0, Jp = 1, Qp = 2, em = 3, tm = 4, nm = 5, sh = 300, Wi = 301, Xi = 302, ta = 303, na = 304, Gs = 306, ia = 1e3, nn = 1001, ra = 1002, Dt = 1003, Fl = 1004, so = 1005, $t = 1006, im = 1007, yr = 1008, $n = 1009, rm = 1010, sm = 1011, Ra = 1012, oh = 1013, kn = 1014, Gn = 1015, Sr = 1016, ah = 1017, lh = 1018, oi = 1020, om = 1021, rn = 1023, am = 1024, lm = 1025, ai = 1026, $i = 1027, cm = 1028, ch = 1029, um = 1030, uh = 1031, hh = 1033, oo = 33776, ao = 33777, lo = 33778, co = 33779, Bl = 35840, zl = 35841, Hl = 35842, kl = 35843, hm = 36196, Gl = 37492, Vl = 37496, Wl = 37808, Xl = 37809, $l = 37810, ql = 37811, jl = 37812, Yl = 37813, Kl = 37814, Zl = 37815, Jl = 37816, Ql = 37817, ec = 37818, tc = 37819, nc = 37820, ic = 37821, uo = 36492, rc = 36494, sc = 36495, fm = 36283, oc = 36284, ac = 36285, lc = 36286, fh = 3e3, li = 3001, dm = 3200, pm = 3201, dh = 0, mm = 1, ci = "", nt = "srgb", gn = "srgb-linear", Vs = "display-p3", ho = 7680, gm = 519, _m = 512, vm = 513, xm = 514, ym = 515, Sm = 516, Mm = 517, Em = 518, bm = 519, sa = 35044, cc = "300 es", oa = 1035, Rn = 2e3, Ds = 2001;
|
|
2507
2507
|
class gi {
|
|
2508
2508
|
addEventListener(e, t) {
|
|
2509
2509
|
this._listeners === void 0 && (this._listeners = {});
|
|
@@ -2540,7 +2540,7 @@ class gi {
|
|
|
2540
2540
|
}
|
|
2541
2541
|
const wt = ["00", "01", "02", "03", "04", "05", "06", "07", "08", "09", "0a", "0b", "0c", "0d", "0e", "0f", "10", "11", "12", "13", "14", "15", "16", "17", "18", "19", "1a", "1b", "1c", "1d", "1e", "1f", "20", "21", "22", "23", "24", "25", "26", "27", "28", "29", "2a", "2b", "2c", "2d", "2e", "2f", "30", "31", "32", "33", "34", "35", "36", "37", "38", "39", "3a", "3b", "3c", "3d", "3e", "3f", "40", "41", "42", "43", "44", "45", "46", "47", "48", "49", "4a", "4b", "4c", "4d", "4e", "4f", "50", "51", "52", "53", "54", "55", "56", "57", "58", "59", "5a", "5b", "5c", "5d", "5e", "5f", "60", "61", "62", "63", "64", "65", "66", "67", "68", "69", "6a", "6b", "6c", "6d", "6e", "6f", "70", "71", "72", "73", "74", "75", "76", "77", "78", "79", "7a", "7b", "7c", "7d", "7e", "7f", "80", "81", "82", "83", "84", "85", "86", "87", "88", "89", "8a", "8b", "8c", "8d", "8e", "8f", "90", "91", "92", "93", "94", "95", "96", "97", "98", "99", "9a", "9b", "9c", "9d", "9e", "9f", "a0", "a1", "a2", "a3", "a4", "a5", "a6", "a7", "a8", "a9", "aa", "ab", "ac", "ad", "ae", "af", "b0", "b1", "b2", "b3", "b4", "b5", "b6", "b7", "b8", "b9", "ba", "bb", "bc", "bd", "be", "bf", "c0", "c1", "c2", "c3", "c4", "c5", "c6", "c7", "c8", "c9", "ca", "cb", "cc", "cd", "ce", "cf", "d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", "d8", "d9", "da", "db", "dc", "dd", "de", "df", "e0", "e1", "e2", "e3", "e4", "e5", "e6", "e7", "e8", "e9", "ea", "eb", "ec", "ed", "ee", "ef", "f0", "f1", "f2", "f3", "f4", "f5", "f6", "f7", "f8", "f9", "fa", "fb", "fc", "fd", "fe", "ff"];
|
|
2542
2542
|
let uc = 1234567;
|
|
2543
|
-
const
|
|
2543
|
+
const dr = Math.PI / 180, Mr = 180 / Math.PI;
|
|
2544
2544
|
function mn() {
|
|
2545
2545
|
const n = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, i = Math.random() * 4294967295 | 0;
|
|
2546
2546
|
return (wt[n & 255] + wt[n >> 8 & 255] + wt[n >> 16 & 255] + wt[n >> 24 & 255] + "-" + wt[e & 255] + wt[e >> 8 & 255] + "-" + wt[e >> 16 & 15 | 64] + wt[e >> 24 & 255] + "-" + wt[t & 63 | 128] + wt[t >> 8 & 255] + "-" + wt[t >> 16 & 255] + wt[t >> 24 & 255] + wt[i & 255] + wt[i >> 8 & 255] + wt[i >> 16 & 255] + wt[i >> 24 & 255]).toLowerCase();
|
|
@@ -2557,11 +2557,11 @@ function Tm(n, e, t, i, r) {
|
|
|
2557
2557
|
function wm(n, e, t) {
|
|
2558
2558
|
return n !== e ? (t - n) / (e - n) : 0;
|
|
2559
2559
|
}
|
|
2560
|
-
function
|
|
2560
|
+
function pr(n, e, t) {
|
|
2561
2561
|
return (1 - t) * n + t * e;
|
|
2562
2562
|
}
|
|
2563
2563
|
function Am(n, e, t, i) {
|
|
2564
|
-
return
|
|
2564
|
+
return pr(n, e, 1 - Math.exp(-t * i));
|
|
2565
2565
|
}
|
|
2566
2566
|
function Cm(n, e = 1) {
|
|
2567
2567
|
return e - Math.abs(La(n, e * 2) - e);
|
|
@@ -2587,7 +2587,7 @@ function Um(n) {
|
|
|
2587
2587
|
return e = Math.imul(e ^ e >>> 15, e | 1), e ^= e + Math.imul(e ^ e >>> 7, e | 61), ((e ^ e >>> 14) >>> 0) / 4294967296;
|
|
2588
2588
|
}
|
|
2589
2589
|
function Nm(n) {
|
|
2590
|
-
return n *
|
|
2590
|
+
return n * dr;
|
|
2591
2591
|
}
|
|
2592
2592
|
function Om(n) {
|
|
2593
2593
|
return n * Mr;
|
|
@@ -2667,14 +2667,14 @@ function Ye(n, e) {
|
|
|
2667
2667
|
}
|
|
2668
2668
|
}
|
|
2669
2669
|
const ph = {
|
|
2670
|
-
DEG2RAD:
|
|
2670
|
+
DEG2RAD: dr,
|
|
2671
2671
|
RAD2DEG: Mr,
|
|
2672
2672
|
generateUUID: mn,
|
|
2673
2673
|
clamp: vt,
|
|
2674
2674
|
euclideanModulo: La,
|
|
2675
2675
|
mapLinear: Tm,
|
|
2676
2676
|
inverseLerp: wm,
|
|
2677
|
-
lerp:
|
|
2677
|
+
lerp: pr,
|
|
2678
2678
|
damp: Am,
|
|
2679
2679
|
pingpong: Cm,
|
|
2680
2680
|
smoothstep: Rm,
|
|
@@ -3087,10 +3087,10 @@ function zm() {
|
|
|
3087
3087
|
return n.style.display = "block", n;
|
|
3088
3088
|
}
|
|
3089
3089
|
const hc = {};
|
|
3090
|
-
function
|
|
3090
|
+
function mr(n) {
|
|
3091
3091
|
n in hc || (hc[n] = !0, console.warn(n));
|
|
3092
3092
|
}
|
|
3093
|
-
function
|
|
3093
|
+
function Gi(n) {
|
|
3094
3094
|
return n < 0.04045 ? n * 0.0773993808 : Math.pow(n * 0.9478672986 + 0.0521327014, 2.4);
|
|
3095
3095
|
}
|
|
3096
3096
|
function po(n) {
|
|
@@ -3183,12 +3183,12 @@ class gh {
|
|
|
3183
3183
|
i.drawImage(e, 0, 0, e.width, e.height);
|
|
3184
3184
|
const r = i.getImageData(0, 0, e.width, e.height), s = r.data;
|
|
3185
3185
|
for (let o = 0; o < s.length; o++)
|
|
3186
|
-
s[o] =
|
|
3186
|
+
s[o] = Gi(s[o] / 255) * 255;
|
|
3187
3187
|
return i.putImageData(r, 0, 0), t;
|
|
3188
3188
|
} else if (e.data) {
|
|
3189
3189
|
const t = e.data.slice(0);
|
|
3190
3190
|
for (let i = 0; i < t.length; i++)
|
|
3191
|
-
t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[i] = Math.floor(
|
|
3191
|
+
t instanceof Uint8Array || t instanceof Uint8ClampedArray ? t[i] = Math.floor(Gi(t[i] / 255) * 255) : t[i] = Gi(t[i]);
|
|
3192
3192
|
return {
|
|
3193
3193
|
data: t,
|
|
3194
3194
|
width: e.width,
|
|
@@ -3238,7 +3238,7 @@ function mo(n) {
|
|
|
3238
3238
|
let qm = 0;
|
|
3239
3239
|
class It extends gi {
|
|
3240
3240
|
constructor(e = It.DEFAULT_IMAGE, t = It.DEFAULT_MAPPING, i = nn, r = nn, s = $t, o = yr, a = rn, l = $n, c = It.DEFAULT_ANISOTROPY, u = ci) {
|
|
3241
|
-
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: qm++ }), this.uuid = mn(), this.name = "", this.source = new _h(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = r, this.magFilter = s, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new ue(0, 0), this.repeat = new ue(1, 1), this.center = new ue(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Be(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, typeof u == "string" ? this.colorSpace = u : (
|
|
3241
|
+
super(), this.isTexture = !0, Object.defineProperty(this, "id", { value: qm++ }), this.uuid = mn(), this.name = "", this.source = new _h(e), this.mipmaps = [], this.mapping = t, this.channel = 0, this.wrapS = i, this.wrapT = r, this.magFilter = s, this.minFilter = o, this.anisotropy = c, this.format = a, this.internalFormat = null, this.type = l, this.offset = new ue(0, 0), this.repeat = new ue(1, 1), this.center = new ue(0, 0), this.rotation = 0, this.matrixAutoUpdate = !0, this.matrix = new Be(), this.generateMipmaps = !0, this.premultiplyAlpha = !1, this.flipY = !0, this.unpackAlignment = 4, typeof u == "string" ? this.colorSpace = u : (mr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = u === li ? nt : ci), this.userData = {}, this.version = 0, this.onUpdate = null, this.isRenderTargetTexture = !1, this.needsPMREMUpdate = !1;
|
|
3242
3242
|
}
|
|
3243
3243
|
get image() {
|
|
3244
3244
|
return this.source.data;
|
|
@@ -3325,10 +3325,10 @@ class It extends gi {
|
|
|
3325
3325
|
e === !0 && (this.version++, this.source.needsUpdate = !0);
|
|
3326
3326
|
}
|
|
3327
3327
|
get encoding() {
|
|
3328
|
-
return
|
|
3328
|
+
return mr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace === nt ? li : fh;
|
|
3329
3329
|
}
|
|
3330
3330
|
set encoding(e) {
|
|
3331
|
-
|
|
3331
|
+
mr("THREE.Texture: Property .encoding has been replaced by .colorSpace."), this.colorSpace = e === li ? nt : ci;
|
|
3332
3332
|
}
|
|
3333
3333
|
}
|
|
3334
3334
|
It.DEFAULT_IMAGE = null;
|
|
@@ -3537,7 +3537,7 @@ class jm extends gi {
|
|
|
3537
3537
|
constructor(e = 1, t = 1, i = {}) {
|
|
3538
3538
|
super(), this.isRenderTarget = !0, this.width = e, this.height = t, this.depth = 1, this.scissor = new Ke(0, 0, e, t), this.scissorTest = !1, this.viewport = new Ke(0, 0, e, t);
|
|
3539
3539
|
const r = { width: e, height: t, depth: 1 };
|
|
3540
|
-
i.encoding !== void 0 && (
|
|
3540
|
+
i.encoding !== void 0 && (mr("THREE.WebGLRenderTarget: option.encoding has been replaced by option.colorSpace."), i.colorSpace = i.encoding === li ? nt : ci), this.texture = new It(r, i.mapping, i.wrapS, i.wrapT, i.magFilter, i.minFilter, i.format, i.type, i.anisotropy, i.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.flipY = !1, this.texture.generateMipmaps = i.generateMipmaps !== void 0 ? i.generateMipmaps : !1, this.texture.internalFormat = i.internalFormat !== void 0 ? i.internalFormat : null, this.texture.minFilter = i.minFilter !== void 0 ? i.minFilter : $t, this.depthBuffer = i.depthBuffer !== void 0 ? i.depthBuffer : !0, this.stencilBuffer = i.stencilBuffer !== void 0 ? i.stencilBuffer : !1, this.depthTexture = i.depthTexture !== void 0 ? i.depthTexture : null, this.samples = i.samples !== void 0 ? i.samples : 0;
|
|
3541
3541
|
}
|
|
3542
3542
|
setSize(e, t, i = 1) {
|
|
3543
3543
|
(this.width !== e || this.height !== t || this.depth !== i) && (this.width = e, this.height = t, this.depth = i, this.texture.image.width = e, this.texture.image.height = t, this.texture.image.depth = i, this.dispose()), this.viewport.set(0, 0, e, t), this.scissor.set(0, 0, e, t);
|
|
@@ -4155,7 +4155,7 @@ class Kn {
|
|
|
4155
4155
|
intersectsTriangle(e) {
|
|
4156
4156
|
if (this.isEmpty())
|
|
4157
4157
|
return !1;
|
|
4158
|
-
this.getCenter(
|
|
4158
|
+
this.getCenter(nr), kr.subVectors(this.max, nr), yi.subVectors(e.a, nr), Si.subVectors(e.b, nr), Mi.subVectors(e.c, nr), In.subVectors(Si, yi), Un.subVectors(Mi, Si), Qn.subVectors(yi, Mi);
|
|
4159
4159
|
let t = [
|
|
4160
4160
|
0,
|
|
4161
4161
|
-In.z,
|
|
@@ -4221,7 +4221,7 @@ const Sn = [
|
|
|
4221
4221
|
/* @__PURE__ */ new D(),
|
|
4222
4222
|
/* @__PURE__ */ new D(),
|
|
4223
4223
|
/* @__PURE__ */ new D()
|
|
4224
|
-
], Mn = /* @__PURE__ */ new D(), xi = /* @__PURE__ */ new Kn(), yi = /* @__PURE__ */ new D(), Si = /* @__PURE__ */ new D(), Mi = /* @__PURE__ */ new D(), In = /* @__PURE__ */ new D(), Un = /* @__PURE__ */ new D(), Qn = /* @__PURE__ */ new D(),
|
|
4224
|
+
], Mn = /* @__PURE__ */ new D(), xi = /* @__PURE__ */ new Kn(), yi = /* @__PURE__ */ new D(), Si = /* @__PURE__ */ new D(), Mi = /* @__PURE__ */ new D(), In = /* @__PURE__ */ new D(), Un = /* @__PURE__ */ new D(), Qn = /* @__PURE__ */ new D(), nr = /* @__PURE__ */ new D(), kr = /* @__PURE__ */ new D(), Gr = /* @__PURE__ */ new D(), ei = /* @__PURE__ */ new D();
|
|
4225
4225
|
function _o(n, e, t, i, r) {
|
|
4226
4226
|
for (let s = 0, o = n.length - 3; s <= o; s += 3) {
|
|
4227
4227
|
ei.fromArray(n, s);
|
|
@@ -4231,7 +4231,7 @@ function _o(n, e, t, i, r) {
|
|
|
4231
4231
|
}
|
|
4232
4232
|
return !0;
|
|
4233
4233
|
}
|
|
4234
|
-
const Km = /* @__PURE__ */ new Kn(),
|
|
4234
|
+
const Km = /* @__PURE__ */ new Kn(), ir = /* @__PURE__ */ new D(), vo = /* @__PURE__ */ new D();
|
|
4235
4235
|
class Dr {
|
|
4236
4236
|
constructor(e = new D(), t = -1) {
|
|
4237
4237
|
this.center = e, this.radius = t;
|
|
@@ -4288,16 +4288,16 @@ class Dr {
|
|
|
4288
4288
|
expandByPoint(e) {
|
|
4289
4289
|
if (this.isEmpty())
|
|
4290
4290
|
return this.center.copy(e), this.radius = 0, this;
|
|
4291
|
-
|
|
4292
|
-
const t =
|
|
4291
|
+
ir.subVectors(e, this.center);
|
|
4292
|
+
const t = ir.lengthSq();
|
|
4293
4293
|
if (t > this.radius * this.radius) {
|
|
4294
4294
|
const i = Math.sqrt(t), r = (i - this.radius) * 0.5;
|
|
4295
|
-
this.center.addScaledVector(
|
|
4295
|
+
this.center.addScaledVector(ir, r / i), this.radius += r;
|
|
4296
4296
|
}
|
|
4297
4297
|
return this;
|
|
4298
4298
|
}
|
|
4299
4299
|
union(e) {
|
|
4300
|
-
return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (vo.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(
|
|
4300
|
+
return e.isEmpty() ? this : this.isEmpty() ? (this.copy(e), this) : (this.center.equals(e.center) === !0 ? this.radius = Math.max(this.radius, e.radius) : (vo.subVectors(e.center, this.center).setLength(e.radius), this.expandByPoint(ir.copy(e.center).add(vo)), this.expandByPoint(ir.copy(e.center).sub(vo))), this);
|
|
4301
4301
|
}
|
|
4302
4302
|
equals(e) {
|
|
4303
4303
|
return e.center.equals(this.center) && e.radius === this.radius;
|
|
@@ -4933,7 +4933,7 @@ class Da {
|
|
|
4933
4933
|
}
|
|
4934
4934
|
}
|
|
4935
4935
|
let Qm = 0;
|
|
4936
|
-
const mc = /* @__PURE__ */ new D(), bi = /* @__PURE__ */ new pi(), bn = /* @__PURE__ */ new it(), $r = /* @__PURE__ */ new D(),
|
|
4936
|
+
const mc = /* @__PURE__ */ new D(), bi = /* @__PURE__ */ new pi(), bn = /* @__PURE__ */ new it(), $r = /* @__PURE__ */ new D(), rr = /* @__PURE__ */ new D(), eg = /* @__PURE__ */ new D(), tg = /* @__PURE__ */ new pi(), gc = /* @__PURE__ */ new D(1, 0, 0), _c = /* @__PURE__ */ new D(0, 1, 0), vc = /* @__PURE__ */ new D(0, 0, 1), ng = { type: "added" }, ig = { type: "removed" };
|
|
4937
4937
|
class at extends gi {
|
|
4938
4938
|
constructor() {
|
|
4939
4939
|
super(), this.isObject3D = !0, Object.defineProperty(this, "id", { value: Qm++ }), this.uuid = mn(), this.name = "", this.type = "Object3D", this.parent = null, this.children = [], this.up = at.DEFAULT_UP.clone();
|
|
@@ -5031,7 +5031,7 @@ class at extends gi {
|
|
|
5031
5031
|
lookAt(e, t, i) {
|
|
5032
5032
|
e.isVector3 ? $r.copy(e) : $r.set(e, t, i);
|
|
5033
5033
|
const r = this.parent;
|
|
5034
|
-
this.updateWorldMatrix(!0, !1),
|
|
5034
|
+
this.updateWorldMatrix(!0, !1), rr.setFromMatrixPosition(this.matrixWorld), this.isCamera || this.isLight ? bn.lookAt(rr, $r, this.up) : bn.lookAt($r, rr, this.up), this.quaternion.setFromRotationMatrix(bn), r && (bn.extractRotation(r.matrixWorld), bi.setFromRotationMatrix(bn), this.quaternion.premultiply(bi.invert()));
|
|
5035
5035
|
}
|
|
5036
5036
|
add(e) {
|
|
5037
5037
|
if (arguments.length > 1) {
|
|
@@ -5088,10 +5088,10 @@ class at extends gi {
|
|
|
5088
5088
|
return this.updateWorldMatrix(!0, !1), e.setFromMatrixPosition(this.matrixWorld);
|
|
5089
5089
|
}
|
|
5090
5090
|
getWorldQuaternion(e) {
|
|
5091
|
-
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(
|
|
5091
|
+
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rr, e, eg), e;
|
|
5092
5092
|
}
|
|
5093
5093
|
getWorldScale(e) {
|
|
5094
|
-
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(
|
|
5094
|
+
return this.updateWorldMatrix(!0, !1), this.matrixWorld.decompose(rr, tg, e), e;
|
|
5095
5095
|
}
|
|
5096
5096
|
getWorldDirection(e) {
|
|
5097
5097
|
this.updateWorldMatrix(!0, !1);
|
|
@@ -5335,9 +5335,9 @@ class tn {
|
|
|
5335
5335
|
}
|
|
5336
5336
|
}
|
|
5337
5337
|
let rg = 0;
|
|
5338
|
-
class
|
|
5338
|
+
class Ji extends gi {
|
|
5339
5339
|
constructor() {
|
|
5340
|
-
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: rg++ }), this.uuid = mn(), this.name = "", this.type = "Material", this.blending =
|
|
5340
|
+
super(), this.isMaterial = !0, Object.defineProperty(this, "id", { value: rg++ }), this.uuid = mn(), this.name = "", this.type = "Material", this.blending = ki, this.side = jn, this.vertexColors = !1, this.opacity = 1, this.transparent = !1, this.alphaHash = !1, this.blendSrc = ih, this.blendDst = rh, this.blendEquation = Ni, this.blendSrcAlpha = null, this.blendDstAlpha = null, this.blendEquationAlpha = null, this.depthFunc = ea, this.depthTest = !0, this.depthWrite = !0, this.stencilWriteMask = 255, this.stencilFunc = gm, this.stencilRef = 0, this.stencilFuncMask = 255, this.stencilFail = ho, this.stencilZFail = ho, this.stencilZPass = ho, 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;
|
|
5341
5341
|
}
|
|
5342
5342
|
get alphaTest() {
|
|
5343
5343
|
return this._alphaTest;
|
|
@@ -5383,7 +5383,7 @@ class Zi extends gi {
|
|
|
5383
5383
|
generator: "Material.toJSON"
|
|
5384
5384
|
}
|
|
5385
5385
|
};
|
|
5386
|
-
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !==
|
|
5386
|
+
i.uuid = this.uuid, i.type = this.type, this.name !== "" && (i.name = this.name), this.color && this.color.isColor && (i.color = this.color.getHex()), this.roughness !== void 0 && (i.roughness = this.roughness), this.metalness !== void 0 && (i.metalness = this.metalness), this.sheen !== void 0 && (i.sheen = this.sheen), this.sheenColor && this.sheenColor.isColor && (i.sheenColor = this.sheenColor.getHex()), this.sheenRoughness !== void 0 && (i.sheenRoughness = this.sheenRoughness), this.emissive && this.emissive.isColor && (i.emissive = this.emissive.getHex()), this.emissiveIntensity && this.emissiveIntensity !== 1 && (i.emissiveIntensity = this.emissiveIntensity), this.specular && this.specular.isColor && (i.specular = this.specular.getHex()), this.specularIntensity !== void 0 && (i.specularIntensity = this.specularIntensity), this.specularColor && this.specularColor.isColor && (i.specularColor = this.specularColor.getHex()), this.shininess !== void 0 && (i.shininess = this.shininess), this.clearcoat !== void 0 && (i.clearcoat = this.clearcoat), this.clearcoatRoughness !== void 0 && (i.clearcoatRoughness = this.clearcoatRoughness), this.clearcoatMap && this.clearcoatMap.isTexture && (i.clearcoatMap = this.clearcoatMap.toJSON(e).uuid), this.clearcoatRoughnessMap && this.clearcoatRoughnessMap.isTexture && (i.clearcoatRoughnessMap = this.clearcoatRoughnessMap.toJSON(e).uuid), this.clearcoatNormalMap && this.clearcoatNormalMap.isTexture && (i.clearcoatNormalMap = this.clearcoatNormalMap.toJSON(e).uuid, i.clearcoatNormalScale = this.clearcoatNormalScale.toArray()), this.iridescence !== void 0 && (i.iridescence = this.iridescence), this.iridescenceIOR !== void 0 && (i.iridescenceIOR = this.iridescenceIOR), this.iridescenceThicknessRange !== void 0 && (i.iridescenceThicknessRange = this.iridescenceThicknessRange), this.iridescenceMap && this.iridescenceMap.isTexture && (i.iridescenceMap = this.iridescenceMap.toJSON(e).uuid), this.iridescenceThicknessMap && this.iridescenceThicknessMap.isTexture && (i.iridescenceThicknessMap = this.iridescenceThicknessMap.toJSON(e).uuid), this.anisotropy !== void 0 && (i.anisotropy = this.anisotropy), this.anisotropyRotation !== void 0 && (i.anisotropyRotation = this.anisotropyRotation), this.anisotropyMap && this.anisotropyMap.isTexture && (i.anisotropyMap = this.anisotropyMap.toJSON(e).uuid), this.map && this.map.isTexture && (i.map = this.map.toJSON(e).uuid), this.matcap && this.matcap.isTexture && (i.matcap = this.matcap.toJSON(e).uuid), this.alphaMap && this.alphaMap.isTexture && (i.alphaMap = this.alphaMap.toJSON(e).uuid), this.lightMap && this.lightMap.isTexture && (i.lightMap = this.lightMap.toJSON(e).uuid, i.lightMapIntensity = this.lightMapIntensity), this.aoMap && this.aoMap.isTexture && (i.aoMap = this.aoMap.toJSON(e).uuid, i.aoMapIntensity = this.aoMapIntensity), this.bumpMap && this.bumpMap.isTexture && (i.bumpMap = this.bumpMap.toJSON(e).uuid, i.bumpScale = this.bumpScale), this.normalMap && this.normalMap.isTexture && (i.normalMap = this.normalMap.toJSON(e).uuid, i.normalMapType = this.normalMapType, i.normalScale = this.normalScale.toArray()), this.displacementMap && this.displacementMap.isTexture && (i.displacementMap = this.displacementMap.toJSON(e).uuid, i.displacementScale = this.displacementScale, i.displacementBias = this.displacementBias), this.roughnessMap && this.roughnessMap.isTexture && (i.roughnessMap = this.roughnessMap.toJSON(e).uuid), this.metalnessMap && this.metalnessMap.isTexture && (i.metalnessMap = this.metalnessMap.toJSON(e).uuid), this.emissiveMap && this.emissiveMap.isTexture && (i.emissiveMap = this.emissiveMap.toJSON(e).uuid), this.specularMap && this.specularMap.isTexture && (i.specularMap = this.specularMap.toJSON(e).uuid), this.specularIntensityMap && this.specularIntensityMap.isTexture && (i.specularIntensityMap = this.specularIntensityMap.toJSON(e).uuid), this.specularColorMap && this.specularColorMap.isTexture && (i.specularColorMap = this.specularColorMap.toJSON(e).uuid), this.envMap && this.envMap.isTexture && (i.envMap = this.envMap.toJSON(e).uuid, this.combine !== void 0 && (i.combine = this.combine)), this.envMapIntensity !== void 0 && (i.envMapIntensity = this.envMapIntensity), this.reflectivity !== void 0 && (i.reflectivity = this.reflectivity), this.refractionRatio !== void 0 && (i.refractionRatio = this.refractionRatio), this.gradientMap && this.gradientMap.isTexture && (i.gradientMap = this.gradientMap.toJSON(e).uuid), this.transmission !== void 0 && (i.transmission = this.transmission), this.transmissionMap && this.transmissionMap.isTexture && (i.transmissionMap = this.transmissionMap.toJSON(e).uuid), this.thickness !== void 0 && (i.thickness = this.thickness), this.thicknessMap && this.thicknessMap.isTexture && (i.thicknessMap = this.thicknessMap.toJSON(e).uuid), this.attenuationDistance !== void 0 && this.attenuationDistance !== 1 / 0 && (i.attenuationDistance = this.attenuationDistance), this.attenuationColor !== void 0 && (i.attenuationColor = this.attenuationColor.getHex()), this.size !== void 0 && (i.size = this.size), this.shadowSide !== null && (i.shadowSide = this.shadowSide), this.sizeAttenuation !== void 0 && (i.sizeAttenuation = this.sizeAttenuation), this.blending !== ki && (i.blending = this.blending), this.side !== jn && (i.side = this.side), this.vertexColors && (i.vertexColors = !0), this.opacity < 1 && (i.opacity = this.opacity), this.transparent === !0 && (i.transparent = this.transparent), i.depthFunc = this.depthFunc, i.depthTest = this.depthTest, i.depthWrite = this.depthWrite, i.colorWrite = this.colorWrite, i.stencilWrite = this.stencilWrite, i.stencilWriteMask = this.stencilWriteMask, i.stencilFunc = this.stencilFunc, i.stencilRef = this.stencilRef, i.stencilFuncMask = this.stencilFuncMask, i.stencilFail = this.stencilFail, i.stencilZFail = this.stencilZFail, i.stencilZPass = this.stencilZPass, this.rotation !== void 0 && this.rotation !== 0 && (i.rotation = this.rotation), this.polygonOffset === !0 && (i.polygonOffset = !0), this.polygonOffsetFactor !== 0 && (i.polygonOffsetFactor = this.polygonOffsetFactor), this.polygonOffsetUnits !== 0 && (i.polygonOffsetUnits = this.polygonOffsetUnits), this.linewidth !== void 0 && this.linewidth !== 1 && (i.linewidth = this.linewidth), this.dashSize !== void 0 && (i.dashSize = this.dashSize), this.gapSize !== void 0 && (i.gapSize = this.gapSize), this.scale !== void 0 && (i.scale = this.scale), this.dithering === !0 && (i.dithering = !0), this.alphaTest > 0 && (i.alphaTest = this.alphaTest), this.alphaHash === !0 && (i.alphaHash = this.alphaHash), this.alphaToCoverage === !0 && (i.alphaToCoverage = this.alphaToCoverage), this.premultipliedAlpha === !0 && (i.premultipliedAlpha = this.premultipliedAlpha), this.forceSinglePass === !0 && (i.forceSinglePass = this.forceSinglePass), this.wireframe === !0 && (i.wireframe = this.wireframe), this.wireframeLinewidth > 1 && (i.wireframeLinewidth = this.wireframeLinewidth), this.wireframeLinecap !== "round" && (i.wireframeLinecap = this.wireframeLinecap), this.wireframeLinejoin !== "round" && (i.wireframeLinejoin = this.wireframeLinejoin), this.flatShading === !0 && (i.flatShading = this.flatShading), this.visible === !1 && (i.visible = !1), this.toneMapped === !1 && (i.toneMapped = !1), this.fog === !1 && (i.fog = !1), Object.keys(this.userData).length > 0 && (i.userData = this.userData);
|
|
5387
5387
|
function r(s) {
|
|
5388
5388
|
const o = [];
|
|
5389
5389
|
for (const a in s) {
|
|
@@ -5669,7 +5669,7 @@ class je {
|
|
|
5669
5669
|
return this.r = e.r, this.g = e.g, this.b = e.b, this;
|
|
5670
5670
|
}
|
|
5671
5671
|
copySRGBToLinear(e) {
|
|
5672
|
-
return this.r =
|
|
5672
|
+
return this.r = Gi(e.r), this.g = Gi(e.g), this.b = Gi(e.b), this;
|
|
5673
5673
|
}
|
|
5674
5674
|
copyLinearToSRGB(e) {
|
|
5675
5675
|
return this.r = po(e.r), this.g = po(e.g), this.b = po(e.b), this;
|
|
@@ -5747,7 +5747,7 @@ class je {
|
|
|
5747
5747
|
}
|
|
5748
5748
|
lerpHSL(e, t) {
|
|
5749
5749
|
this.getHSL(en), e.getHSL(jr);
|
|
5750
|
-
const i =
|
|
5750
|
+
const i = pr(en.h, jr.h, t), r = pr(en.s, jr.s, t), s = pr(en.l, jr.l, t);
|
|
5751
5751
|
return this.setHSL(i, r, s), this;
|
|
5752
5752
|
}
|
|
5753
5753
|
setFromVector3(e) {
|
|
@@ -5778,7 +5778,7 @@ class je {
|
|
|
5778
5778
|
}
|
|
5779
5779
|
const At = /* @__PURE__ */ new je();
|
|
5780
5780
|
je.NAMES = xh;
|
|
5781
|
-
class Ia extends
|
|
5781
|
+
class Ia extends Ji {
|
|
5782
5782
|
constructor(e) {
|
|
5783
5783
|
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new je(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.combine = Ca, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(e);
|
|
5784
5784
|
}
|
|
@@ -5916,7 +5916,7 @@ class jt extends an {
|
|
|
5916
5916
|
}
|
|
5917
5917
|
}
|
|
5918
5918
|
let sg = 0;
|
|
5919
|
-
const Xt = /* @__PURE__ */ new it(), Ao = /* @__PURE__ */ new at(), Ai = /* @__PURE__ */ new D(), kt = /* @__PURE__ */ new Kn(),
|
|
5919
|
+
const Xt = /* @__PURE__ */ new it(), Ao = /* @__PURE__ */ new at(), Ai = /* @__PURE__ */ new D(), kt = /* @__PURE__ */ new Kn(), sr = /* @__PURE__ */ new Kn(), St = /* @__PURE__ */ new D();
|
|
5920
5920
|
class _n extends gi {
|
|
5921
5921
|
constructor() {
|
|
5922
5922
|
super(), this.isBufferGeometry = !0, Object.defineProperty(this, "id", { value: sg++ }), this.uuid = mn(), 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 = {};
|
|
@@ -6027,7 +6027,7 @@ class _n extends gi {
|
|
|
6027
6027
|
if (kt.setFromBufferAttribute(e), t)
|
|
6028
6028
|
for (let s = 0, o = t.length; s < o; s++) {
|
|
6029
6029
|
const a = t[s];
|
|
6030
|
-
|
|
6030
|
+
sr.setFromBufferAttribute(a), this.morphTargetsRelative ? (St.addVectors(kt.min, sr.min), kt.expandByPoint(St), St.addVectors(kt.max, sr.max), kt.expandByPoint(St)) : (kt.expandByPoint(sr.min), kt.expandByPoint(sr.max));
|
|
6031
6031
|
}
|
|
6032
6032
|
kt.getCenter(i);
|
|
6033
6033
|
let r = 0;
|
|
@@ -6373,7 +6373,7 @@ class Ir extends _n {
|
|
|
6373
6373
|
return new Ir(e.width, e.height, e.depth, e.widthSegments, e.heightSegments, e.depthSegments);
|
|
6374
6374
|
}
|
|
6375
6375
|
}
|
|
6376
|
-
function
|
|
6376
|
+
function qi(n) {
|
|
6377
6377
|
const e = {};
|
|
6378
6378
|
for (const t in n) {
|
|
6379
6379
|
e[t] = {};
|
|
@@ -6387,7 +6387,7 @@ function $i(n) {
|
|
|
6387
6387
|
function Pt(n) {
|
|
6388
6388
|
const e = {};
|
|
6389
6389
|
for (let t = 0; t < n.length; t++) {
|
|
6390
|
-
const i =
|
|
6390
|
+
const i = qi(n[t]);
|
|
6391
6391
|
for (const r in i)
|
|
6392
6392
|
e[r] = i[r];
|
|
6393
6393
|
}
|
|
@@ -6402,13 +6402,13 @@ function ag(n) {
|
|
|
6402
6402
|
function Mh(n) {
|
|
6403
6403
|
return n.getRenderTarget() === null ? n.outputColorSpace : gn;
|
|
6404
6404
|
}
|
|
6405
|
-
const Ua = { clone:
|
|
6405
|
+
const Ua = { clone: qi, merge: Pt };
|
|
6406
6406
|
var lg = `void main() {
|
|
6407
6407
|
gl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );
|
|
6408
6408
|
}`, cg = `void main() {
|
|
6409
6409
|
gl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );
|
|
6410
6410
|
}`;
|
|
6411
|
-
class Yn extends
|
|
6411
|
+
class Yn extends Ji {
|
|
6412
6412
|
constructor(e) {
|
|
6413
6413
|
super(), this.isShaderMaterial = !0, this.type = "ShaderMaterial", this.defines = {}, this.uniforms = {}, this.uniformsGroups = [], this.vertexShader = lg, this.fragmentShader = cg, this.linewidth = 1, this.wireframe = !1, this.wireframeLinewidth = 1, this.fog = !1, this.lights = !1, this.clipping = !1, this.forceSinglePass = !0, this.extensions = {
|
|
6414
6414
|
derivatives: !1,
|
|
@@ -6426,7 +6426,7 @@ class Yn extends Zi {
|
|
|
6426
6426
|
}, this.index0AttributeName = void 0, this.uniformsNeedUpdate = !1, this.glslVersion = null, e !== void 0 && this.setValues(e);
|
|
6427
6427
|
}
|
|
6428
6428
|
copy(e) {
|
|
6429
|
-
return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms =
|
|
6429
|
+
return super.copy(e), this.fragmentShader = e.fragmentShader, this.vertexShader = e.vertexShader, this.uniforms = qi(e.uniforms), this.uniformsGroups = ag(e.uniformsGroups), this.defines = Object.assign({}, e.defines), this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this.fog = e.fog, this.lights = e.lights, this.clipping = e.clipping, this.extensions = Object.assign({}, e.extensions), this.glslVersion = e.glslVersion, this;
|
|
6430
6430
|
}
|
|
6431
6431
|
toJSON(e) {
|
|
6432
6432
|
const t = super.toJSON(e);
|
|
@@ -6510,12 +6510,12 @@ class Vt extends Eh {
|
|
|
6510
6510
|
* Calculates the focal length from the current .fov and .filmGauge.
|
|
6511
6511
|
*/
|
|
6512
6512
|
getFocalLength() {
|
|
6513
|
-
const e = Math.tan(
|
|
6513
|
+
const e = Math.tan(dr * 0.5 * this.fov);
|
|
6514
6514
|
return 0.5 * this.getFilmHeight() / e;
|
|
6515
6515
|
}
|
|
6516
6516
|
getEffectiveFOV() {
|
|
6517
6517
|
return Mr * 2 * Math.atan(
|
|
6518
|
-
Math.tan(
|
|
6518
|
+
Math.tan(dr * 0.5 * this.fov) / this.zoom
|
|
6519
6519
|
);
|
|
6520
6520
|
}
|
|
6521
6521
|
getFilmWidth() {
|
|
@@ -6575,7 +6575,7 @@ class Vt extends Eh {
|
|
|
6575
6575
|
}
|
|
6576
6576
|
updateProjectionMatrix() {
|
|
6577
6577
|
const e = this.near;
|
|
6578
|
-
let t = e * Math.tan(
|
|
6578
|
+
let t = e * Math.tan(dr * 0.5 * this.fov) / this.zoom, i = 2 * t, r = this.aspect * i, s = -0.5 * r;
|
|
6579
6579
|
const o = this.view;
|
|
6580
6580
|
if (this.view !== null && this.view.enabled) {
|
|
6581
6581
|
const l = o.fullWidth, c = o.fullHeight;
|
|
@@ -6631,7 +6631,7 @@ class ug extends at {
|
|
|
6631
6631
|
}
|
|
6632
6632
|
class bh extends It {
|
|
6633
6633
|
constructor(e, t, i, r, s, o, a, l, c, u) {
|
|
6634
|
-
e = e !== void 0 ? e : [], t = t !== void 0 ? t :
|
|
6634
|
+
e = e !== void 0 ? e : [], t = t !== void 0 ? t : Wi, super(e, t, i, r, s, o, a, l, c, u), this.isCubeTexture = !0, this.flipY = !1;
|
|
6635
6635
|
}
|
|
6636
6636
|
get images() {
|
|
6637
6637
|
return this.image;
|
|
@@ -6644,7 +6644,7 @@ class hg extends di {
|
|
|
6644
6644
|
constructor(e = 1, t = {}) {
|
|
6645
6645
|
super(e, e, t), this.isWebGLCubeRenderTarget = !0;
|
|
6646
6646
|
const i = { width: e, height: e, depth: 1 }, r = [i, i, i, i, i, i];
|
|
6647
|
-
t.encoding !== void 0 && (
|
|
6647
|
+
t.encoding !== void 0 && (mr("THREE.WebGLCubeRenderTarget: option.encoding has been replaced by option.colorSpace."), t.colorSpace = t.encoding === li ? nt : ci), this.texture = new bh(r, t.mapping, t.wrapS, t.wrapT, t.magFilter, t.minFilter, t.format, t.type, t.anisotropy, t.colorSpace), this.texture.isRenderTargetTexture = !0, this.texture.generateMipmaps = t.generateMipmaps !== void 0 ? t.generateMipmaps : !1, this.texture.minFilter = t.minFilter !== void 0 ? t.minFilter : $t;
|
|
6648
6648
|
}
|
|
6649
6649
|
fromEquirectangularTexture(e, t) {
|
|
6650
6650
|
this.texture.type = t.type, this.texture.colorSpace = t.colorSpace, this.texture.generateMipmaps = t.generateMipmaps, this.texture.minFilter = t.minFilter, this.texture.magFilter = t.magFilter;
|
|
@@ -6697,7 +6697,7 @@ class hg extends di {
|
|
|
6697
6697
|
)
|
|
6698
6698
|
}, r = new Ir(5, 5, 5), s = new Yn({
|
|
6699
6699
|
name: "CubemapFromEquirect",
|
|
6700
|
-
uniforms:
|
|
6700
|
+
uniforms: qi(i.uniforms),
|
|
6701
6701
|
vertexShader: i.vertexShader,
|
|
6702
6702
|
fragmentShader: i.fragmentShader,
|
|
6703
6703
|
side: Ot,
|
|
@@ -10875,7 +10875,7 @@ function $v(n, e, t, i, r, s, o) {
|
|
|
10875
10875
|
new Ir(1, 1, 1),
|
|
10876
10876
|
new Yn({
|
|
10877
10877
|
name: "BackgroundCubeMaterial",
|
|
10878
|
-
uniforms:
|
|
10878
|
+
uniforms: qi(Ut.backgroundCube.uniforms),
|
|
10879
10879
|
vertexShader: Ut.backgroundCube.vertexShader,
|
|
10880
10880
|
fragmentShader: Ut.backgroundCube.fragmentShader,
|
|
10881
10881
|
side: Ot,
|
|
@@ -10893,7 +10893,7 @@ function $v(n, e, t, i, r, s, o) {
|
|
|
10893
10893
|
new Oa(2, 2),
|
|
10894
10894
|
new Yn({
|
|
10895
10895
|
name: "BackgroundMaterial",
|
|
10896
|
-
uniforms:
|
|
10896
|
+
uniforms: qi(Ut.background.uniforms),
|
|
10897
10897
|
vertexShader: Ut.background.vertexShader,
|
|
10898
10898
|
fragmentShader: Ut.background.fragmentShader,
|
|
10899
10899
|
side: jn,
|
|
@@ -11269,7 +11269,7 @@ function Kv(n) {
|
|
|
11269
11269
|
function Zv(n) {
|
|
11270
11270
|
let e = /* @__PURE__ */ new WeakMap();
|
|
11271
11271
|
function t(o, a) {
|
|
11272
|
-
return a === ta ? o.mapping =
|
|
11272
|
+
return a === ta ? o.mapping = Wi : a === na && (o.mapping = Xi), o;
|
|
11273
11273
|
}
|
|
11274
11274
|
function i(o) {
|
|
11275
11275
|
if (o && o.isTexture && o.isRenderTargetTexture === !1) {
|
|
@@ -11419,7 +11419,7 @@ class Cc {
|
|
|
11419
11419
|
this._renderer.setRenderTarget(Po), e.scissorTest = !1, os(e, 0, 0, e.width, e.height);
|
|
11420
11420
|
}
|
|
11421
11421
|
_fromTexture(e, t) {
|
|
11422
|
-
e.mapping ===
|
|
11422
|
+
e.mapping === Wi || e.mapping === Xi ? this._setSize(e.image.length === 0 ? 16 : e.image[0].width || e.image[0].image.width) : this._setSize(e.image.width / 4), Po = this._renderer.getRenderTarget();
|
|
11423
11423
|
const i = t || this._allocateTargets();
|
|
11424
11424
|
return this._textureToCubeUV(e, i), this._applyPMREM(i), this._cleanup(i), i;
|
|
11425
11425
|
}
|
|
@@ -11465,7 +11465,7 @@ class Cc {
|
|
|
11465
11465
|
g.geometry.dispose(), g.material.dispose(), u.toneMapping = f, u.autoClear = h, e.background = m;
|
|
11466
11466
|
}
|
|
11467
11467
|
_textureToCubeUV(e, t) {
|
|
11468
|
-
const i = this._renderer, r = e.mapping ===
|
|
11468
|
+
const i = this._renderer, r = e.mapping === Wi || e.mapping === Xi;
|
|
11469
11469
|
r ? (this._cubemapMaterial === null && (this._cubemapMaterial = Pc()), this._cubemapMaterial.uniforms.flipEnvMap.value = e.isRenderTargetTexture === !1 ? -1 : 1) : this._equirectMaterial === null && (this._equirectMaterial = Lc());
|
|
11470
11470
|
const s = r ? this._cubemapMaterial : this._equirectMaterial, o = new pn(this._lodPlanes[0], s), a = s.uniforms;
|
|
11471
11471
|
a.envMap.value = e;
|
|
@@ -11799,7 +11799,7 @@ function t0(n) {
|
|
|
11799
11799
|
let e = /* @__PURE__ */ new WeakMap(), t = null;
|
|
11800
11800
|
function i(a) {
|
|
11801
11801
|
if (a && a.isTexture) {
|
|
11802
|
-
const l = a.mapping, c = l === ta || l === na, u = l ===
|
|
11802
|
+
const l = a.mapping, c = l === ta || l === na, u = l === Wi || l === Xi;
|
|
11803
11803
|
if (c || u)
|
|
11804
11804
|
if (a.isRenderTargetTexture && a.needsPMREMUpdate === !0) {
|
|
11805
11805
|
a.needsPMREMUpdate = !1;
|
|
@@ -12120,7 +12120,7 @@ function c0(n, e, t, i) {
|
|
|
12120
12120
|
};
|
|
12121
12121
|
}
|
|
12122
12122
|
const wh = /* @__PURE__ */ new It(), Ah = /* @__PURE__ */ new vh(), Ch = /* @__PURE__ */ new Ym(), Rh = /* @__PURE__ */ new bh(), Dc = [], Ic = [], Uc = new Float32Array(16), Nc = new Float32Array(9), Oc = new Float32Array(4);
|
|
12123
|
-
function
|
|
12123
|
+
function Qi(n, e, t) {
|
|
12124
12124
|
const i = n[0];
|
|
12125
12125
|
if (i <= 0 || i > 0)
|
|
12126
12126
|
return n;
|
|
@@ -12370,27 +12370,27 @@ function L0(n, e) {
|
|
|
12370
12370
|
n.uniform1fv(this.addr, e);
|
|
12371
12371
|
}
|
|
12372
12372
|
function P0(n, e) {
|
|
12373
|
-
const t =
|
|
12373
|
+
const t = Qi(e, this.size, 2);
|
|
12374
12374
|
n.uniform2fv(this.addr, t);
|
|
12375
12375
|
}
|
|
12376
12376
|
function D0(n, e) {
|
|
12377
|
-
const t =
|
|
12377
|
+
const t = Qi(e, this.size, 3);
|
|
12378
12378
|
n.uniform3fv(this.addr, t);
|
|
12379
12379
|
}
|
|
12380
12380
|
function I0(n, e) {
|
|
12381
|
-
const t =
|
|
12381
|
+
const t = Qi(e, this.size, 4);
|
|
12382
12382
|
n.uniform4fv(this.addr, t);
|
|
12383
12383
|
}
|
|
12384
12384
|
function U0(n, e) {
|
|
12385
|
-
const t =
|
|
12385
|
+
const t = Qi(e, this.size, 4);
|
|
12386
12386
|
n.uniformMatrix2fv(this.addr, !1, t);
|
|
12387
12387
|
}
|
|
12388
12388
|
function N0(n, e) {
|
|
12389
|
-
const t =
|
|
12389
|
+
const t = Qi(e, this.size, 9);
|
|
12390
12390
|
n.uniformMatrix3fv(this.addr, !1, t);
|
|
12391
12391
|
}
|
|
12392
12392
|
function O0(n, e) {
|
|
12393
|
-
const t =
|
|
12393
|
+
const t = Qi(e, this.size, 16);
|
|
12394
12394
|
n.uniformMatrix4fv(this.addr, !1, t);
|
|
12395
12395
|
}
|
|
12396
12396
|
function F0(n, e) {
|
|
@@ -12645,7 +12645,7 @@ function sx(n) {
|
|
|
12645
12645
|
(n.extensionFragDepth || n.logarithmicDepthBuffer) && n.rendererExtensionFragDepth ? "#extension GL_EXT_frag_depth : enable" : "",
|
|
12646
12646
|
n.extensionDrawBuffers && n.rendererExtensionDrawBuffers ? "#extension GL_EXT_draw_buffers : require" : "",
|
|
12647
12647
|
(n.extensionShaderTextureLOD || n.envMap || n.transmission) && n.rendererExtensionShaderTextureLod ? "#extension GL_EXT_shader_texture_lod : enable" : ""
|
|
12648
|
-
].filter(
|
|
12648
|
+
].filter(cr).join(`
|
|
12649
12649
|
`);
|
|
12650
12650
|
}
|
|
12651
12651
|
function ox(n) {
|
|
@@ -12670,7 +12670,7 @@ function ax(n, e) {
|
|
|
12670
12670
|
}
|
|
12671
12671
|
return t;
|
|
12672
12672
|
}
|
|
12673
|
-
function
|
|
12673
|
+
function cr(n) {
|
|
12674
12674
|
return n !== "";
|
|
12675
12675
|
}
|
|
12676
12676
|
function Hc(n, e) {
|
|
@@ -12729,8 +12729,8 @@ function px(n) {
|
|
|
12729
12729
|
let e = "ENVMAP_TYPE_CUBE";
|
|
12730
12730
|
if (n.envMap)
|
|
12731
12731
|
switch (n.envMapMode) {
|
|
12732
|
-
case Vi:
|
|
12733
12732
|
case Wi:
|
|
12733
|
+
case Xi:
|
|
12734
12734
|
e = "ENVMAP_TYPE_CUBE";
|
|
12735
12735
|
break;
|
|
12736
12736
|
case Gs:
|
|
@@ -12743,7 +12743,7 @@ function mx(n) {
|
|
|
12743
12743
|
let e = "ENVMAP_MODE_REFLECTION";
|
|
12744
12744
|
if (n.envMap)
|
|
12745
12745
|
switch (n.envMapMode) {
|
|
12746
|
-
case
|
|
12746
|
+
case Xi:
|
|
12747
12747
|
e = "ENVMAP_MODE_REFRACTION";
|
|
12748
12748
|
break;
|
|
12749
12749
|
}
|
|
@@ -12782,14 +12782,14 @@ function vx(n, e, t, i) {
|
|
|
12782
12782
|
"#define SHADER_TYPE " + t.shaderType,
|
|
12783
12783
|
"#define SHADER_NAME " + t.shaderName,
|
|
12784
12784
|
g
|
|
12785
|
-
].filter(
|
|
12785
|
+
].filter(cr).join(`
|
|
12786
12786
|
`), m.length > 0 && (m += `
|
|
12787
12787
|
`), p = [
|
|
12788
12788
|
d,
|
|
12789
12789
|
"#define SHADER_TYPE " + t.shaderType,
|
|
12790
12790
|
"#define SHADER_NAME " + t.shaderName,
|
|
12791
12791
|
g
|
|
12792
|
-
].filter(
|
|
12792
|
+
].filter(cr).join(`
|
|
12793
12793
|
`), p.length > 0 && (p += `
|
|
12794
12794
|
`)) : (m = [
|
|
12795
12795
|
Vc(t),
|
|
@@ -12933,7 +12933,7 @@ function vx(n, e, t, i) {
|
|
|
12933
12933
|
"#endif",
|
|
12934
12934
|
`
|
|
12935
12935
|
`
|
|
12936
|
-
].filter(
|
|
12936
|
+
].filter(cr).join(`
|
|
12937
12937
|
`), p = [
|
|
12938
12938
|
d,
|
|
12939
12939
|
Vc(t),
|
|
@@ -13014,7 +13014,7 @@ function vx(n, e, t, i) {
|
|
|
13014
13014
|
t.useDepthPacking ? "#define DEPTH_PACKING " + t.depthPacking : "",
|
|
13015
13015
|
`
|
|
13016
13016
|
`
|
|
13017
|
-
].filter(
|
|
13017
|
+
].filter(cr).join(`
|
|
13018
13018
|
`)), o = la(o), o = Hc(o, t), o = kc(o, t), a = la(a), a = Hc(a, t), a = kc(a, t), o = Gc(o), a = Gc(a), t.isWebGL2 && t.isRawShaderMaterial !== !0 && (y = `#version 300 es
|
|
13019
13019
|
`, m = [
|
|
13020
13020
|
"precision mediump sampler2DArray;",
|
|
@@ -13212,7 +13212,7 @@ function Mx(n, e, t, i, r, s, o) {
|
|
|
13212
13212
|
transmissionMap: ve,
|
|
13213
13213
|
thicknessMap: Ne,
|
|
13214
13214
|
gradientMap: We,
|
|
13215
|
-
opaque: x.transparent === !1 && x.blending ===
|
|
13215
|
+
opaque: x.transparent === !1 && x.blending === ki,
|
|
13216
13216
|
alphaMap: I,
|
|
13217
13217
|
alphaTest: _e,
|
|
13218
13218
|
alphaHash: $,
|
|
@@ -13703,7 +13703,7 @@ function Px(n, e) {
|
|
|
13703
13703
|
dispose: r
|
|
13704
13704
|
};
|
|
13705
13705
|
}
|
|
13706
|
-
class Dx extends
|
|
13706
|
+
class Dx extends Ji {
|
|
13707
13707
|
constructor(e) {
|
|
13708
13708
|
super(), this.isMeshDepthMaterial = !0, this.type = "MeshDepthMaterial", this.depthPacking = dm, this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.wireframe = !1, this.wireframeLinewidth = 1, this.setValues(e);
|
|
13709
13709
|
}
|
|
@@ -13711,7 +13711,7 @@ class Dx extends Zi {
|
|
|
13711
13711
|
return super.copy(e), this.depthPacking = e.depthPacking, this.map = e.map, this.alphaMap = e.alphaMap, this.displacementMap = e.displacementMap, this.displacementScale = e.displacementScale, this.displacementBias = e.displacementBias, this.wireframe = e.wireframe, this.wireframeLinewidth = e.wireframeLinewidth, this;
|
|
13712
13712
|
}
|
|
13713
13713
|
}
|
|
13714
|
-
class Ix extends
|
|
13714
|
+
class Ix extends Ji {
|
|
13715
13715
|
constructor(e) {
|
|
13716
13716
|
super(), this.isMeshDistanceMaterial = !0, this.type = "MeshDistanceMaterial", this.map = null, this.alphaMap = null, this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.setValues(e);
|
|
13717
13717
|
}
|
|
@@ -14035,7 +14035,7 @@ function Fx(n, e, t) {
|
|
|
14035
14035
|
if (I !== y || Je !== x) {
|
|
14036
14036
|
if ((v !== Ni || R !== Ni) && (n.blendEquation(n.FUNC_ADD), v = Ni, R = Ni), Je)
|
|
14037
14037
|
switch (I) {
|
|
14038
|
-
case
|
|
14038
|
+
case ki:
|
|
14039
14039
|
n.blendFuncSeparate(n.ONE, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
|
|
14040
14040
|
break;
|
|
14041
14041
|
case Dl:
|
|
@@ -14053,7 +14053,7 @@ function Fx(n, e, t) {
|
|
|
14053
14053
|
}
|
|
14054
14054
|
else
|
|
14055
14055
|
switch (I) {
|
|
14056
|
-
case
|
|
14056
|
+
case ki:
|
|
14057
14057
|
n.blendFuncSeparate(n.SRC_ALPHA, n.ONE_MINUS_SRC_ALPHA, n.ONE, n.ONE_MINUS_SRC_ALPHA);
|
|
14058
14058
|
break;
|
|
14059
14059
|
case Dl:
|
|
@@ -14078,7 +14078,7 @@ function Fx(n, e, t) {
|
|
|
14078
14078
|
function ae(I, _e) {
|
|
14079
14079
|
I.side === Cn ? Te(n.CULL_FACE) : we(n.CULL_FACE);
|
|
14080
14080
|
let $ = I.side === Ot;
|
|
14081
|
-
_e && ($ = !$), ne($), I.blending ===
|
|
14081
|
+
_e && ($ = !$), ne($), I.blending === ki && I.transparent === !1 ? J(Wn) : J(I.blending, I.blendEquation, I.blendSrc, I.blendDst, I.blendEquationAlpha, I.blendSrcAlpha, I.blendDstAlpha, I.premultipliedAlpha), l.setFunc(I.depthFunc), l.setTest(I.depthTest), l.setMask(I.depthWrite), a.setMask(I.colorWrite);
|
|
14082
14082
|
const re = I.stencilWrite;
|
|
14083
14083
|
c.setTest(re), re && (c.setMask(I.stencilWriteMask), c.setFunc(I.stencilFunc, I.stencilRef, I.stencilFuncMask), c.setOp(I.stencilFail, I.stencilZFail, I.stencilZPass)), Se(I.polygonOffset, I.polygonOffsetFactor, I.polygonOffsetUnits), I.alphaToCoverage === !0 ? we(n.SAMPLE_ALPHA_TO_COVERAGE) : Te(n.SAMPLE_ALPHA_TO_COVERAGE);
|
|
14084
14084
|
}
|
|
@@ -14460,7 +14460,7 @@ function Bx(n, e, t, i, r, s, o) {
|
|
|
14460
14460
|
let ve;
|
|
14461
14461
|
const Ne = S.mipmaps, We = a && S.isVideoTexture !== !0, I = Ee.__version === void 0 || ie === !0, _e = x(S, X, P);
|
|
14462
14462
|
if (S.isDepthTexture)
|
|
14463
|
-
pe = n.DEPTH_COMPONENT, a ? S.type === Gn ? pe = n.DEPTH_COMPONENT32F : S.type === kn ? pe = n.DEPTH_COMPONENT24 : S.type === oi ? pe = n.DEPTH24_STENCIL8 : pe = n.DEPTH_COMPONENT16 : S.type === Gn && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), S.format === ai && pe === n.DEPTH_COMPONENT && S.type !== Ra && S.type !== kn && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), S.type = kn, xe = s.convert(S.type)), S.format ===
|
|
14463
|
+
pe = n.DEPTH_COMPONENT, a ? S.type === Gn ? pe = n.DEPTH_COMPONENT32F : S.type === kn ? pe = n.DEPTH_COMPONENT24 : S.type === oi ? pe = n.DEPTH24_STENCIL8 : pe = n.DEPTH_COMPONENT16 : S.type === Gn && console.error("WebGLRenderer: Floating point depth texture requires WebGL2."), S.format === ai && pe === n.DEPTH_COMPONENT && S.type !== Ra && S.type !== kn && (console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."), S.type = kn, xe = s.convert(S.type)), S.format === $i && pe === n.DEPTH_COMPONENT && (pe = n.DEPTH_STENCIL, S.type !== oi && (console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."), S.type = oi, xe = s.convert(S.type))), I && (We ? t.texStorage2D(n.TEXTURE_2D, 1, pe, X.width, X.height) : t.texImage2D(n.TEXTURE_2D, 0, pe, X.width, X.height, 0, te, xe, null));
|
|
14464
14464
|
else if (S.isDataTexture)
|
|
14465
14465
|
if (Ne.length > 0 && P) {
|
|
14466
14466
|
We && I && t.texStorage2D(n.TEXTURE_2D, _e, pe, Ne[0].width, Ne[0].height);
|
|
@@ -14588,7 +14588,7 @@ function Bx(n, e, t, i, r, s, o) {
|
|
|
14588
14588
|
const se = i.get(S.depthTexture).__webglTexture, ie = Se(S);
|
|
14589
14589
|
if (S.depthTexture.format === ai)
|
|
14590
14590
|
Le(S) ? f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER, n.DEPTH_ATTACHMENT, n.TEXTURE_2D, se, 0, ie) : n.framebufferTexture2D(n.FRAMEBUFFER, n.DEPTH_ATTACHMENT, n.TEXTURE_2D, se, 0);
|
|
14591
|
-
else if (S.depthTexture.format ===
|
|
14591
|
+
else if (S.depthTexture.format === $i)
|
|
14592
14592
|
Le(S) ? f.framebufferTexture2DMultisampleEXT(n.FRAMEBUFFER, n.DEPTH_STENCIL_ATTACHMENT, n.TEXTURE_2D, se, 0, ie) : n.framebufferTexture2D(n.FRAMEBUFFER, n.DEPTH_STENCIL_ATTACHMENT, n.TEXTURE_2D, se, 0);
|
|
14593
14593
|
else
|
|
14594
14594
|
throw new Error("Unknown depthTexture format");
|
|
@@ -14769,7 +14769,7 @@ function Hx(n, e, t) {
|
|
|
14769
14769
|
return n.LUMINANCE_ALPHA;
|
|
14770
14770
|
if (s === ai)
|
|
14771
14771
|
return n.DEPTH_COMPONENT;
|
|
14772
|
-
if (s ===
|
|
14772
|
+
if (s === $i)
|
|
14773
14773
|
return n.DEPTH_STENCIL;
|
|
14774
14774
|
if (s === oa)
|
|
14775
14775
|
return a = e.get("EXT_sRGB"), a !== null ? a.SRGB_ALPHA_EXT : null;
|
|
@@ -14963,9 +14963,9 @@ class Io {
|
|
|
14963
14963
|
}
|
|
14964
14964
|
class Vx extends It {
|
|
14965
14965
|
constructor(e, t, i, r, s, o, a, l, c, u) {
|
|
14966
|
-
if (u = u !== void 0 ? u : ai, u !== ai && u !==
|
|
14966
|
+
if (u = u !== void 0 ? u : ai, u !== ai && u !== $i)
|
|
14967
14967
|
throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");
|
|
14968
|
-
i === void 0 && u === ai && (i = kn), i === void 0 && u ===
|
|
14968
|
+
i === void 0 && u === ai && (i = kn), i === void 0 && u === $i && (i = oi), super(null, r, s, o, a, l, u, i, c), this.isDepthTexture = !0, this.image = { width: e, height: t }, this.magFilter = a !== void 0 ? a : Dt, this.minFilter = l !== void 0 ? l : Dt, this.flipY = !1, this.generateMipmaps = !1, this.compareFunction = null;
|
|
14969
14969
|
}
|
|
14970
14970
|
copy(e) {
|
|
14971
14971
|
return super.copy(e), this.compareFunction = e.compareFunction, this;
|
|
@@ -15053,7 +15053,7 @@ class Wx extends gi {
|
|
|
15053
15053
|
);
|
|
15054
15054
|
} else {
|
|
15055
15055
|
let q = null, oe = null, me = null;
|
|
15056
|
-
_.depth && (me = _.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, q = _.stencil ?
|
|
15056
|
+
_.depth && (me = _.stencil ? t.DEPTH24_STENCIL8 : t.DEPTH_COMPONENT24, q = _.stencil ? $i : ai, oe = _.stencil ? oi : kn);
|
|
15057
15057
|
const ge = {
|
|
15058
15058
|
colorFormat: t.RGBA8,
|
|
15059
15059
|
depthFormat: me,
|
|
@@ -15720,16 +15720,16 @@ class Lh {
|
|
|
15720
15720
|
G.version === Ge.__version ? (Ge.needsLights && Ge.lightsStateVersion !== Qs.state.version || Ge.outputColorSpace !== Ie || Y.isInstancedMesh && Ge.instancing === !1 || !Y.isInstancedMesh && Ge.instancing === !0 || Y.isSkinnedMesh && Ge.skinning === !1 || !Y.isSkinnedMesh && Ge.skinning === !0 || Y.isInstancedMesh && Ge.instancingColor === !0 && Y.instanceColor === null || Y.isInstancedMesh && Ge.instancingColor === !1 && Y.instanceColor !== null || Ge.envMap !== Ue || G.fog === !0 && Ge.fog !== Me || Ge.numClippingPlanes !== void 0 && (Ge.numClippingPlanes !== Ee.numPlanes || Ge.numIntersection !== Ee.numIntersection) || Ge.vertexAlphas !== ke || Ge.vertexTangents !== Pe || Ge.morphTargets !== Oe || Ge.morphNormals !== ot || Ge.morphColors !== ct || Ge.toneMapping !== Wt || ae.isWebGL2 === !0 && Ge.morphTargetsCount !== ft) && (dt = !0) : (dt = !0, Ge.__version = G.version);
|
|
15721
15721
|
let Zn = Ge.currentProgram;
|
|
15722
15722
|
dt === !0 && (Zn = Fr(G, k, Y));
|
|
15723
|
-
let nl = !1,
|
|
15723
|
+
let nl = !1, tr = !1, eo = !1;
|
|
15724
15724
|
const Rt = Zn.getUniforms(), Jn = Ge.uniforms;
|
|
15725
|
-
if (ne.useProgram(Zn.program) && (nl = !0,
|
|
15725
|
+
if (ne.useProgram(Zn.program) && (nl = !0, tr = !0, eo = !0), G.id !== N && (N = G.id, tr = !0), nl || x !== T) {
|
|
15726
15726
|
Rt.setValue(L, "projectionMatrix", T.projectionMatrix), Rt.setValue(L, "viewMatrix", T.matrixWorldInverse);
|
|
15727
15727
|
const Bt = Rt.map.cameraPosition;
|
|
15728
15728
|
Bt !== void 0 && Bt.setValue(L, Ve.setFromMatrixPosition(T.matrixWorld)), ae.logarithmicDepthBuffer && Rt.setValue(
|
|
15729
15729
|
L,
|
|
15730
15730
|
"logDepthBufFC",
|
|
15731
15731
|
2 / (Math.log(T.far + 1) / Math.LN2)
|
|
15732
|
-
), (G.isMeshPhongMaterial || G.isMeshToonMaterial || G.isMeshLambertMaterial || G.isMeshBasicMaterial || G.isMeshStandardMaterial || G.isShaderMaterial) && Rt.setValue(L, "isOrthographic", T.isOrthographicCamera === !0), x !== T && (x = T,
|
|
15732
|
+
), (G.isMeshPhongMaterial || G.isMeshToonMaterial || G.isMeshLambertMaterial || G.isMeshBasicMaterial || G.isMeshStandardMaterial || G.isShaderMaterial) && Rt.setValue(L, "isOrthographic", T.isOrthographicCamera === !0), x !== T && (x = T, tr = !0, eo = !0);
|
|
15733
15733
|
}
|
|
15734
15734
|
if (Y.isSkinnedMesh) {
|
|
15735
15735
|
Rt.setOptional(L, Y, "bindMatrix"), Rt.setOptional(L, Y, "bindMatrixInverse");
|
|
@@ -15737,7 +15737,7 @@ class Lh {
|
|
|
15737
15737
|
Bt && (ae.floatVertexTextures ? (Bt.boneTexture === null && Bt.computeBoneTexture(), Rt.setValue(L, "boneTexture", Bt.boneTexture, Se), Rt.setValue(L, "boneTextureSize", Bt.boneTextureSize)) : console.warn("THREE.WebGLRenderer: SkinnedMesh can only be used with WebGL 2. With WebGL 1 OES_texture_float and vertex textures support is required."));
|
|
15738
15738
|
}
|
|
15739
15739
|
const to = j.morphAttributes;
|
|
15740
|
-
if ((to.position !== void 0 || to.normal !== void 0 || to.color !== void 0 && ae.isWebGL2 === !0) && P.update(Y, j, Zn), (
|
|
15740
|
+
if ((to.position !== void 0 || to.normal !== void 0 || to.color !== void 0 && ae.isWebGL2 === !0) && P.update(Y, j, Zn), (tr || Ge.receiveShadow !== Y.receiveShadow) && (Ge.receiveShadow = Y.receiveShadow, Rt.setValue(L, "receiveShadow", Y.receiveShadow)), G.isMeshGouraudMaterial && G.envMap !== null && (Jn.envMap.value = Ue, Jn.flipEnvMap.value = Ue.isCubeTexture && Ue.isRenderTargetTexture === !1 ? -1 : 1), tr && (Rt.setValue(L, "toneMappingExposure", v.toneMappingExposure), Ge.needsLights && vf(Jn, eo), Me && G.fog === !0 && se.refreshFogUniforms(Jn, Me), se.refreshMaterialUniforms(Jn, G, H, z, Ae), Ss.upload(L, Ge.uniformsList, Jn, Se)), G.isShaderMaterial && G.uniformsNeedUpdate === !0 && (Ss.upload(L, Ge.uniformsList, Jn, Se), G.uniformsNeedUpdate = !1), G.isSpriteMaterial && Rt.setValue(L, "center", Y.center), Rt.setValue(L, "modelViewMatrix", Y.modelViewMatrix), Rt.setValue(L, "normalMatrix", Y.normalMatrix), Rt.setValue(L, "modelMatrix", Y.matrixWorld), G.isShaderMaterial || G.isRawShaderMaterial) {
|
|
15741
15741
|
const Bt = G.uniformsGroups;
|
|
15742
15742
|
for (let no = 0, yf = Bt.length; no < yf; no++)
|
|
15743
15743
|
if (ae.isWebGL2) {
|
|
@@ -16281,7 +16281,7 @@ function Qx(n, e) {
|
|
|
16281
16281
|
function ey(n, e) {
|
|
16282
16282
|
return n * n * e;
|
|
16283
16283
|
}
|
|
16284
|
-
function
|
|
16284
|
+
function gr(n, e, t, i) {
|
|
16285
16285
|
return Jx(n, e) + Qx(n, t) + ey(n, i);
|
|
16286
16286
|
}
|
|
16287
16287
|
function ty(n, e) {
|
|
@@ -16298,7 +16298,7 @@ function iy(n, e) {
|
|
|
16298
16298
|
function ry(n, e) {
|
|
16299
16299
|
return n * n * n * e;
|
|
16300
16300
|
}
|
|
16301
|
-
function
|
|
16301
|
+
function _r(n, e, t, i, r) {
|
|
16302
16302
|
return ty(n, e) + ny(n, t) + iy(n, i) + ry(n, r);
|
|
16303
16303
|
}
|
|
16304
16304
|
class Ph extends vn {
|
|
@@ -16308,8 +16308,8 @@ class Ph extends vn {
|
|
|
16308
16308
|
getPoint(e, t = new ue()) {
|
|
16309
16309
|
const i = t, r = this.v0, s = this.v1, o = this.v2, a = this.v3;
|
|
16310
16310
|
return i.set(
|
|
16311
|
-
|
|
16312
|
-
|
|
16311
|
+
_r(e, r.x, s.x, o.x, a.x),
|
|
16312
|
+
_r(e, r.y, s.y, o.y, a.y)
|
|
16313
16313
|
), i;
|
|
16314
16314
|
}
|
|
16315
16315
|
copy(e) {
|
|
@@ -16330,9 +16330,9 @@ class sy extends vn {
|
|
|
16330
16330
|
getPoint(e, t = new D()) {
|
|
16331
16331
|
const i = t, r = this.v0, s = this.v1, o = this.v2, a = this.v3;
|
|
16332
16332
|
return i.set(
|
|
16333
|
-
|
|
16334
|
-
|
|
16335
|
-
|
|
16333
|
+
_r(e, r.x, s.x, o.x, a.x),
|
|
16334
|
+
_r(e, r.y, s.y, o.y, a.y),
|
|
16335
|
+
_r(e, r.z, s.z, o.z, a.z)
|
|
16336
16336
|
), i;
|
|
16337
16337
|
}
|
|
16338
16338
|
copy(e) {
|
|
@@ -16411,8 +16411,8 @@ class Dh extends vn {
|
|
|
16411
16411
|
getPoint(e, t = new ue()) {
|
|
16412
16412
|
const i = t, r = this.v0, s = this.v1, o = this.v2;
|
|
16413
16413
|
return i.set(
|
|
16414
|
-
|
|
16415
|
-
|
|
16414
|
+
gr(e, r.x, s.x, o.x),
|
|
16415
|
+
gr(e, r.y, s.y, o.y)
|
|
16416
16416
|
), i;
|
|
16417
16417
|
}
|
|
16418
16418
|
copy(e) {
|
|
@@ -16433,9 +16433,9 @@ class ay extends vn {
|
|
|
16433
16433
|
getPoint(e, t = new D()) {
|
|
16434
16434
|
const i = t, r = this.v0, s = this.v1, o = this.v2;
|
|
16435
16435
|
return i.set(
|
|
16436
|
-
|
|
16437
|
-
|
|
16438
|
-
|
|
16436
|
+
gr(e, r.x, s.x, o.x),
|
|
16437
|
+
gr(e, r.y, s.y, o.y),
|
|
16438
|
+
gr(e, r.z, s.z, o.z)
|
|
16439
16439
|
), i;
|
|
16440
16440
|
}
|
|
16441
16441
|
copy(e) {
|
|
@@ -16971,7 +16971,7 @@ function Ty(n, e, t, i) {
|
|
|
16971
16971
|
r += (n[o] - n[s]) * (n[s + 1] + n[o + 1]), o = s;
|
|
16972
16972
|
return r;
|
|
16973
16973
|
}
|
|
16974
|
-
class
|
|
16974
|
+
class vr {
|
|
16975
16975
|
// calculate area of the contour polygon
|
|
16976
16976
|
static area(e) {
|
|
16977
16977
|
const t = e.length;
|
|
@@ -16981,7 +16981,7 @@ class _r {
|
|
|
16981
16981
|
return i * 0.5;
|
|
16982
16982
|
}
|
|
16983
16983
|
static isClockWise(e) {
|
|
16984
|
-
return
|
|
16984
|
+
return vr.area(e) < 0;
|
|
16985
16985
|
}
|
|
16986
16986
|
static triangulateShape(e, t) {
|
|
16987
16987
|
const i = [], r = [], s = [];
|
|
@@ -17025,14 +17025,14 @@ class ka extends _n {
|
|
|
17025
17025
|
const x = a.extractPoints(c);
|
|
17026
17026
|
let E = x.shape;
|
|
17027
17027
|
const F = x.holes;
|
|
17028
|
-
if (!
|
|
17028
|
+
if (!vr.isClockWise(E)) {
|
|
17029
17029
|
E = E.reverse();
|
|
17030
17030
|
for (let L = 0, he = F.length; L < he; L++) {
|
|
17031
17031
|
const J = F[L];
|
|
17032
|
-
|
|
17032
|
+
vr.isClockWise(J) && (F[L] = J.reverse());
|
|
17033
17033
|
}
|
|
17034
17034
|
}
|
|
17035
|
-
const O =
|
|
17035
|
+
const O = vr.triangulateShape(E, F), U = E;
|
|
17036
17036
|
for (let L = 0, he = F.length; L < he; L++) {
|
|
17037
17037
|
const J = F[L];
|
|
17038
17038
|
E = E.concat(J);
|
|
@@ -17266,7 +17266,7 @@ function Jc(n, e, t) {
|
|
|
17266
17266
|
const i = `${n.x},${n.y},${n.z}-${e.x},${e.y},${e.z}`, r = `${e.x},${e.y},${e.z}-${n.x},${n.y},${n.z}`;
|
|
17267
17267
|
return t.has(i) === !0 || t.has(r) === !0 ? !1 : (t.add(i), t.add(r), !0);
|
|
17268
17268
|
}
|
|
17269
|
-
class Ry extends
|
|
17269
|
+
class Ry extends Ji {
|
|
17270
17270
|
constructor(e) {
|
|
17271
17271
|
super(), this.isMeshPhongMaterial = !0, this.type = "MeshPhongMaterial", this.color = new je(16777215), this.specular = new je(1118481), this.shininess = 30, this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.emissive = new je(0), this.emissiveIntensity = 1, this.emissiveMap = null, this.bumpMap = null, this.bumpScale = 1, this.normalMap = null, this.normalMapType = dh, this.normalScale = new ue(1, 1), this.displacementMap = null, this.displacementScale = 1, this.displacementBias = 0, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.combine = Ca, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.flatShading = !1, this.fog = !0, this.setValues(e);
|
|
17272
17272
|
}
|
|
@@ -17342,7 +17342,7 @@ class Py {
|
|
|
17342
17342
|
return this.bias !== 0 && (e.bias = this.bias), this.normalBias !== 0 && (e.normalBias = this.normalBias), this.radius !== 1 && (e.radius = this.radius), (this.mapSize.x !== 512 || this.mapSize.y !== 512) && (e.mapSize = this.mapSize.toArray()), e.camera = this.camera.toJSON(!1).object, delete e.camera.matrix, e;
|
|
17343
17343
|
}
|
|
17344
17344
|
}
|
|
17345
|
-
const tu = /* @__PURE__ */ new it(),
|
|
17345
|
+
const tu = /* @__PURE__ */ new it(), or = /* @__PURE__ */ new D(), Bo = /* @__PURE__ */ new D();
|
|
17346
17346
|
class Dy extends Py {
|
|
17347
17347
|
constructor() {
|
|
17348
17348
|
super(new Vt(90, 1, 0.5, 500)), this.isPointLightShadow = !0, this._frameExtents = new ue(4, 2), this._viewportCount = 6, this._viewports = [
|
|
@@ -17388,7 +17388,7 @@ class Dy extends Py {
|
|
|
17388
17388
|
}
|
|
17389
17389
|
updateMatrices(e, t = 0) {
|
|
17390
17390
|
const i = this.camera, r = this.matrix, s = e.distance || i.far;
|
|
17391
|
-
s !== i.far && (i.far = s, i.updateProjectionMatrix()),
|
|
17391
|
+
s !== i.far && (i.far = s, i.updateProjectionMatrix()), or.setFromMatrixPosition(e.matrixWorld), i.position.copy(or), Bo.copy(i.position), Bo.add(this._cubeDirections[t]), i.up.copy(this._cubeUps[t]), i.lookAt(Bo), i.updateMatrixWorld(), r.makeTranslation(-or.x, -or.y, -or.z), tu.multiplyMatrices(i.projectionMatrix, i.matrixWorldInverse), this._frustum.setFromProjectionMatrix(tu);
|
|
17392
17392
|
}
|
|
17393
17393
|
}
|
|
17394
17394
|
class Iy extends Ly {
|
|
@@ -18739,7 +18739,7 @@ function Zy(n) {
|
|
|
18739
18739
|
function Ar(n) {
|
|
18740
18740
|
return n > 1 ? Nt : n < -1 ? -Nt : Math.asin(n);
|
|
18741
18741
|
}
|
|
18742
|
-
function
|
|
18742
|
+
function ur() {
|
|
18743
18743
|
}
|
|
18744
18744
|
function Ns(n, e) {
|
|
18745
18745
|
n && xu.hasOwnProperty(n.type) && xu[n.type](n, e);
|
|
@@ -18800,7 +18800,7 @@ function Jy(n, e) {
|
|
|
18800
18800
|
function pa(n) {
|
|
18801
18801
|
return [wr(n[1], n[0]), Ar(n[2])];
|
|
18802
18802
|
}
|
|
18803
|
-
function
|
|
18803
|
+
function ji(n) {
|
|
18804
18804
|
var e = n[0], t = n[1], i = ut(t);
|
|
18805
18805
|
return [i * ut(e), i * ht(e), ht(t)];
|
|
18806
18806
|
}
|
|
@@ -18879,7 +18879,7 @@ function eS(n, e, t, i, r, s) {
|
|
|
18879
18879
|
}
|
|
18880
18880
|
}
|
|
18881
18881
|
function bu(n, e) {
|
|
18882
|
-
e =
|
|
18882
|
+
e = ji(e), e[0] -= n, ma(e);
|
|
18883
18883
|
var t = Zy(-e[1]);
|
|
18884
18884
|
return ((-e[2] < 0 ? -t : t) + Kt - Qe) % Kt;
|
|
18885
18885
|
}
|
|
@@ -18892,7 +18892,7 @@ function Wh() {
|
|
|
18892
18892
|
lineStart: function() {
|
|
18893
18893
|
n.push(e = []);
|
|
18894
18894
|
},
|
|
18895
|
-
lineEnd:
|
|
18895
|
+
lineEnd: ur,
|
|
18896
18896
|
rejoin: function() {
|
|
18897
18897
|
n.length > 1 && n.push(n.pop().concat(n.shift()));
|
|
18898
18898
|
},
|
|
@@ -18972,7 +18972,7 @@ function tS(n, e) {
|
|
|
18972
18972
|
for (var h, f, d = h[f - 1], g = Wo(d), _ = d[1] / 2 + _u, m = ht(_), p = ut(_), y = 0; y < f; ++y, g = M, m = R, p = w, d = v) {
|
|
18973
18973
|
var v = h[y], M = Wo(v), b = v[1] / 2 + _u, R = ht(b), w = ut(b), N = M - g, x = N >= 0 ? 1 : -1, E = x * N, F = E > Xe, ee = m * R;
|
|
18974
18974
|
if (l.add(wr(ee * x * ht(E), p * w + ee * ut(E))), o += F ? N + x * Kt : N, F ^ g >= t ^ M >= t) {
|
|
18975
|
-
var O = Os(
|
|
18975
|
+
var O = Os(ji(d), ji(v));
|
|
18976
18976
|
ma(O);
|
|
18977
18977
|
var U = Os(s, O);
|
|
18978
18978
|
ma(U);
|
|
@@ -19117,7 +19117,7 @@ function aS(n) {
|
|
|
19117
19117
|
};
|
|
19118
19118
|
}
|
|
19119
19119
|
function l(u, h, f) {
|
|
19120
|
-
var d =
|
|
19120
|
+
var d = ji(u), g = ji(h), _ = [1, 0, 0], m = Os(d, g), p = gs(m, m), y = m[0], v = p - y * y;
|
|
19121
19121
|
if (!v)
|
|
19122
19122
|
return !f && u;
|
|
19123
19123
|
var M = e * p / v, b = -e * y / v, R = Os(_, m), w = _s(_, M), N = _s(m, b);
|
|
@@ -19190,7 +19190,7 @@ function lS(n, e, t, i, r, s) {
|
|
|
19190
19190
|
}
|
|
19191
19191
|
}
|
|
19192
19192
|
}
|
|
19193
|
-
var
|
|
19193
|
+
var hr = 1e9, xs = -hr;
|
|
19194
19194
|
function cS(n, e, t, i) {
|
|
19195
19195
|
function r(c, u) {
|
|
19196
19196
|
return n <= c && c <= t && e <= u && u <= i;
|
|
@@ -19251,7 +19251,7 @@ function cS(n, e, t, i) {
|
|
|
19251
19251
|
else if (H && M)
|
|
19252
19252
|
u.point(C, z);
|
|
19253
19253
|
else {
|
|
19254
|
-
var V = [y = Math.max(xs, Math.min(
|
|
19254
|
+
var V = [y = Math.max(xs, Math.min(hr, y)), v = Math.max(xs, Math.min(hr, v))], K = [C = Math.max(xs, Math.min(hr, C)), z = Math.max(xs, Math.min(hr, z))];
|
|
19255
19255
|
lS(V, K, n, e, t, i) ? (M || (u.lineStart(), u.point(V[0], V[1])), u.point(K[0], K[1]), H || u.lineEnd(), R = !1) : H && (u.lineStart(), u.point(C, z), R = !1);
|
|
19256
19256
|
}
|
|
19257
19257
|
y = C, v = z, M = H;
|
|
@@ -19260,19 +19260,19 @@ function cS(n, e, t, i) {
|
|
|
19260
19260
|
};
|
|
19261
19261
|
}
|
|
19262
19262
|
const Au = (n) => n;
|
|
19263
|
-
var
|
|
19263
|
+
var Yi = 1 / 0, Fs = Yi, Cr = -Yi, Bs = Cr, uS = {
|
|
19264
19264
|
point: hS,
|
|
19265
|
-
lineStart:
|
|
19266
|
-
lineEnd:
|
|
19267
|
-
polygonStart:
|
|
19268
|
-
polygonEnd:
|
|
19265
|
+
lineStart: ur,
|
|
19266
|
+
lineEnd: ur,
|
|
19267
|
+
polygonStart: ur,
|
|
19268
|
+
polygonEnd: ur,
|
|
19269
19269
|
result: function() {
|
|
19270
|
-
var n = [[
|
|
19271
|
-
return Cr = Bs = -(Fs =
|
|
19270
|
+
var n = [[Yi, Fs], [Cr, Bs]];
|
|
19271
|
+
return Cr = Bs = -(Fs = Yi = 1 / 0), n;
|
|
19272
19272
|
}
|
|
19273
19273
|
};
|
|
19274
19274
|
function hS(n, e) {
|
|
19275
|
-
n <
|
|
19275
|
+
n < Yi && (Yi = n), n > Cr && (Cr = n), e < Fs && (Fs = e), e > Bs && (Bs = e);
|
|
19276
19276
|
}
|
|
19277
19277
|
const Cu = uS;
|
|
19278
19278
|
function Va(n) {
|
|
@@ -19369,7 +19369,7 @@ function _S(n, e) {
|
|
|
19369
19369
|
h = NaN, m.point = v, i.lineStart();
|
|
19370
19370
|
}
|
|
19371
19371
|
function v(N, x) {
|
|
19372
|
-
var E =
|
|
19372
|
+
var E = ji([N, x]), F = n(N, x);
|
|
19373
19373
|
t(h, f, u, d, g, _, h = F[0], f = F[1], u = N, d = E[0], g = E[1], _ = E[2], Ru, i), i.point(h, f);
|
|
19374
19374
|
}
|
|
19375
19375
|
function M() {
|
|
@@ -19504,16 +19504,16 @@ function ES(n) {
|
|
|
19504
19504
|
}
|
|
19505
19505
|
return u();
|
|
19506
19506
|
}
|
|
19507
|
-
function
|
|
19507
|
+
function fr(n, e, t) {
|
|
19508
19508
|
this.k = n, this.x = e, this.y = t;
|
|
19509
19509
|
}
|
|
19510
|
-
|
|
19511
|
-
constructor:
|
|
19510
|
+
fr.prototype = {
|
|
19511
|
+
constructor: fr,
|
|
19512
19512
|
scale: function(n) {
|
|
19513
|
-
return n === 1 ? this : new
|
|
19513
|
+
return n === 1 ? this : new fr(this.k * n, this.x, this.y);
|
|
19514
19514
|
},
|
|
19515
19515
|
translate: function(n, e) {
|
|
19516
|
-
return n === 0 & e === 0 ? this : new
|
|
19516
|
+
return n === 0 & e === 0 ? this : new fr(this.k, this.x + this.k * n, this.y + this.k * e);
|
|
19517
19517
|
},
|
|
19518
19518
|
apply: function(n) {
|
|
19519
19519
|
return [n[0] * this.k + this.x, n[1] * this.k + this.y];
|
|
@@ -19543,7 +19543,7 @@ hr.prototype = {
|
|
|
19543
19543
|
return "translate(" + this.x + "," + this.y + ") scale(" + this.k + ")";
|
|
19544
19544
|
}
|
|
19545
19545
|
};
|
|
19546
|
-
|
|
19546
|
+
fr.prototype;
|
|
19547
19547
|
function jh(n, e) {
|
|
19548
19548
|
return function() {
|
|
19549
19549
|
return n.apply(e, arguments);
|
|
@@ -19552,7 +19552,7 @@ function jh(n, e) {
|
|
|
19552
19552
|
const { toString: bS } = Object.prototype, { getPrototypeOf: $a } = Object, js = ((n) => (e) => {
|
|
19553
19553
|
const t = bS.call(e);
|
|
19554
19554
|
return n[t] || (n[t] = t.slice(8, -1).toLowerCase());
|
|
19555
|
-
})(/* @__PURE__ */ Object.create(null)), xn = (n) => (n = n.toLowerCase(), (e) => js(e) === n), Ys = (n) => (e) => typeof e === n, { isArray:
|
|
19555
|
+
})(/* @__PURE__ */ Object.create(null)), xn = (n) => (n = n.toLowerCase(), (e) => js(e) === n), Ys = (n) => (e) => typeof e === n, { isArray: er } = Array, Rr = Ys("undefined");
|
|
19556
19556
|
function TS(n) {
|
|
19557
19557
|
return n !== null && !Rr(n) && n.constructor !== null && !Rr(n.constructor) && Yt(n.constructor.isBuffer) && n.constructor.isBuffer(n);
|
|
19558
19558
|
}
|
|
@@ -19575,7 +19575,7 @@ function Ur(n, e, { allOwnKeys: t = !1 } = {}) {
|
|
|
19575
19575
|
if (n === null || typeof n == "undefined")
|
|
19576
19576
|
return;
|
|
19577
19577
|
let i, r;
|
|
19578
|
-
if (typeof n != "object" && (n = [n]),
|
|
19578
|
+
if (typeof n != "object" && (n = [n]), er(n))
|
|
19579
19579
|
for (i = 0, r = n.length; i < r; i++)
|
|
19580
19580
|
e.call(null, n[i], i, n);
|
|
19581
19581
|
else {
|
|
@@ -19598,7 +19598,7 @@ const Jh = (() => typeof globalThis != "undefined" ? globalThis : typeof self !=
|
|
|
19598
19598
|
function xa() {
|
|
19599
19599
|
const { caseless: n } = Qh(this) && this || {}, e = {}, t = (i, r) => {
|
|
19600
19600
|
const s = n && Zh(e, r) || r;
|
|
19601
|
-
Es(e[s]) && Es(i) ? e[s] = xa(e[s], i) : Es(i) ? e[s] = xa({}, i) :
|
|
19601
|
+
Es(e[s]) && Es(i) ? e[s] = xa(e[s], i) : Es(i) ? e[s] = xa({}, i) : er(i) ? e[s] = i.slice() : e[s] = i;
|
|
19602
19602
|
};
|
|
19603
19603
|
for (let i = 0, r = arguments.length; i < r; i++)
|
|
19604
19604
|
arguments[i] && Ur(arguments[i], t);
|
|
@@ -19628,7 +19628,7 @@ const FS = (n, e, t, { allOwnKeys: i } = {}) => (Ur(e, (r, s) => {
|
|
|
19628
19628
|
}, GS = (n) => {
|
|
19629
19629
|
if (!n)
|
|
19630
19630
|
return null;
|
|
19631
|
-
if (
|
|
19631
|
+
if (er(n))
|
|
19632
19632
|
return n;
|
|
19633
19633
|
let e = n.length;
|
|
19634
19634
|
if (!Kh(e))
|
|
@@ -19682,7 +19682,7 @@ const FS = (n, e, t, { allOwnKeys: i } = {}) => (Ur(e, (r, s) => {
|
|
|
19682
19682
|
t[s] = !0;
|
|
19683
19683
|
});
|
|
19684
19684
|
};
|
|
19685
|
-
return
|
|
19685
|
+
return er(n) ? i(n) : i(String(n).split(e)), t;
|
|
19686
19686
|
}, ZS = () => {
|
|
19687
19687
|
}, JS = (n, e) => (n = +n, Number.isFinite(n) ? n : e), Xo = "abcdefghijklmnopqrstuvwxyz", Uu = "0123456789", tf = {
|
|
19688
19688
|
DIGIT: Uu,
|
|
@@ -19705,7 +19705,7 @@ const tM = (n) => {
|
|
|
19705
19705
|
return;
|
|
19706
19706
|
if (!("toJSON" in i)) {
|
|
19707
19707
|
e[r] = i;
|
|
19708
|
-
const s =
|
|
19708
|
+
const s = er(i) ? [] : {};
|
|
19709
19709
|
return Ur(i, (o, a) => {
|
|
19710
19710
|
const l = t(o, r + 1);
|
|
19711
19711
|
!Rr(l) && (s[a] = l);
|
|
@@ -19716,7 +19716,7 @@ const tM = (n) => {
|
|
|
19716
19716
|
};
|
|
19717
19717
|
return t(n, 0);
|
|
19718
19718
|
}, nM = xn("AsyncFunction"), iM = (n) => n && (Ks(n) || Yt(n)) && Yt(n.then) && Yt(n.catch), Z = {
|
|
19719
|
-
isArray:
|
|
19719
|
+
isArray: er,
|
|
19720
19720
|
isArrayBuffer: Yh,
|
|
19721
19721
|
isBuffer: TS,
|
|
19722
19722
|
isFormData: US,
|
|
@@ -20151,7 +20151,7 @@ const Ya = ja, vM = Z.toObjectSet([
|
|
|
20151
20151
|
r = o.indexOf(":"), t = o.substring(0, r).trim().toLowerCase(), i = o.substring(r + 1).trim(), !(!t || e[t] && vM[t]) && (t === "set-cookie" ? e[t] ? e[t].push(i) : e[t] = [i] : e[t] = e[t] ? e[t] + ", " + i : i);
|
|
20152
20152
|
}), e;
|
|
20153
20153
|
}, Bu = Symbol("internals");
|
|
20154
|
-
function
|
|
20154
|
+
function ar(n) {
|
|
20155
20155
|
return n && String(n).trim().toLowerCase();
|
|
20156
20156
|
}
|
|
20157
20157
|
function bs(n) {
|
|
@@ -20196,7 +20196,7 @@ class Js {
|
|
|
20196
20196
|
set(e, t, i) {
|
|
20197
20197
|
const r = this;
|
|
20198
20198
|
function s(a, l, c) {
|
|
20199
|
-
const u =
|
|
20199
|
+
const u = ar(l);
|
|
20200
20200
|
if (!u)
|
|
20201
20201
|
throw new Error("header name must be a non-empty string");
|
|
20202
20202
|
const h = Z.findKey(r, u);
|
|
@@ -20206,7 +20206,7 @@ class Js {
|
|
|
20206
20206
|
return Z.isPlainObject(e) || e instanceof this.constructor ? o(e, t) : Z.isString(e) && (e = e.trim()) && !SM(e) ? o(xM(e), t) : e != null && s(t, e, i), this;
|
|
20207
20207
|
}
|
|
20208
20208
|
get(e, t) {
|
|
20209
|
-
if (e =
|
|
20209
|
+
if (e = ar(e), e) {
|
|
20210
20210
|
const i = Z.findKey(this, e);
|
|
20211
20211
|
if (i) {
|
|
20212
20212
|
const r = this[i];
|
|
@@ -20223,7 +20223,7 @@ class Js {
|
|
|
20223
20223
|
}
|
|
20224
20224
|
}
|
|
20225
20225
|
has(e, t) {
|
|
20226
|
-
if (e =
|
|
20226
|
+
if (e = ar(e), e) {
|
|
20227
20227
|
const i = Z.findKey(this, e);
|
|
20228
20228
|
return !!(i && this[i] !== void 0 && (!t || $o(this, this[i], i, t)));
|
|
20229
20229
|
}
|
|
@@ -20233,7 +20233,7 @@ class Js {
|
|
|
20233
20233
|
const i = this;
|
|
20234
20234
|
let r = !1;
|
|
20235
20235
|
function s(o) {
|
|
20236
|
-
if (o =
|
|
20236
|
+
if (o = ar(o), o) {
|
|
20237
20237
|
const a = Z.findKey(i, o);
|
|
20238
20238
|
a && (!t || $o(i, i[a], a, t)) && (delete i[a], r = !0);
|
|
20239
20239
|
}
|
|
@@ -20292,7 +20292,7 @@ class Js {
|
|
|
20292
20292
|
accessors: {}
|
|
20293
20293
|
}).accessors, r = this.prototype;
|
|
20294
20294
|
function s(o) {
|
|
20295
|
-
const a =
|
|
20295
|
+
const a = ar(o);
|
|
20296
20296
|
i[a] || (EM(r, o), i[a] = !0);
|
|
20297
20297
|
}
|
|
20298
20298
|
return Z.isArray(e) ? e.forEach(s) : s(e), this;
|
|
@@ -20568,7 +20568,7 @@ function Hu(n) {
|
|
|
20568
20568
|
});
|
|
20569
20569
|
}
|
|
20570
20570
|
const ku = (n) => n instanceof Dn ? n.toJSON() : n;
|
|
20571
|
-
function
|
|
20571
|
+
function Ki(n, e) {
|
|
20572
20572
|
e = e || {};
|
|
20573
20573
|
const t = {};
|
|
20574
20574
|
function i(c, u, h) {
|
|
@@ -20695,7 +20695,7 @@ class zs {
|
|
|
20695
20695
|
* @returns {Promise} The Promise to be fulfilled
|
|
20696
20696
|
*/
|
|
20697
20697
|
request(e, t) {
|
|
20698
|
-
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t =
|
|
20698
|
+
typeof e == "string" ? (t = t || {}, t.url = e) : t = e || {}, t = Ki(this.defaults, t);
|
|
20699
20699
|
const { transitional: i, paramsSerializer: r, headers: s } = t;
|
|
20700
20700
|
i !== void 0 && Sa.assertOptions(i, {
|
|
20701
20701
|
silentJSONParsing: Fn.transitional(Fn.boolean),
|
|
@@ -20754,14 +20754,14 @@ class zs {
|
|
|
20754
20754
|
return u;
|
|
20755
20755
|
}
|
|
20756
20756
|
getUri(e) {
|
|
20757
|
-
e =
|
|
20757
|
+
e = Ki(this.defaults, e);
|
|
20758
20758
|
const t = hf(e.baseURL, e.url);
|
|
20759
20759
|
return af(t, e.params, e.paramsSerializer);
|
|
20760
20760
|
}
|
|
20761
20761
|
}
|
|
20762
20762
|
Z.forEach(["delete", "get", "head", "options"], function(e) {
|
|
20763
20763
|
zs.prototype[e] = function(t, i) {
|
|
20764
|
-
return this.request(
|
|
20764
|
+
return this.request(Ki(i || {}, {
|
|
20765
20765
|
method: e,
|
|
20766
20766
|
url: t,
|
|
20767
20767
|
data: (i || {}).data
|
|
@@ -20771,7 +20771,7 @@ Z.forEach(["delete", "get", "head", "options"], function(e) {
|
|
|
20771
20771
|
Z.forEach(["post", "put", "patch"], function(e) {
|
|
20772
20772
|
function t(i) {
|
|
20773
20773
|
return function(s, o, a) {
|
|
20774
|
-
return this.request(
|
|
20774
|
+
return this.request(Ki(a || {}, {
|
|
20775
20775
|
method: e,
|
|
20776
20776
|
headers: i ? {
|
|
20777
20777
|
"Content-Type": "multipart/form-data"
|
|
@@ -20933,7 +20933,7 @@ const FM = Ma;
|
|
|
20933
20933
|
function pf(n) {
|
|
20934
20934
|
const e = new ws(n), t = jh(ws.prototype.request, e);
|
|
20935
20935
|
return Z.extend(t, ws.prototype, e, { allOwnKeys: !0 }), Z.extend(t, e, null, { allOwnKeys: !0 }), t.create = function(r) {
|
|
20936
|
-
return pf(
|
|
20936
|
+
return pf(Ki(n, r));
|
|
20937
20937
|
}, t;
|
|
20938
20938
|
}
|
|
20939
20939
|
const gt = pf(Ya);
|
|
@@ -20950,7 +20950,7 @@ gt.all = function(e) {
|
|
|
20950
20950
|
};
|
|
20951
20951
|
gt.spread = NM;
|
|
20952
20952
|
gt.isAxiosError = OM;
|
|
20953
|
-
gt.mergeConfig =
|
|
20953
|
+
gt.mergeConfig = Ki;
|
|
20954
20954
|
gt.AxiosHeaders = Dn;
|
|
20955
20955
|
gt.formToJSON = (n) => cf(Z.isHTMLForm(n) ? new FormData(n) : n);
|
|
20956
20956
|
gt.getAdapter = ff.getAdapter;
|
|
@@ -20995,7 +20995,7 @@ class HM {
|
|
|
20995
20995
|
return e.forEach((t) => this.track(t)), e;
|
|
20996
20996
|
if ((e.dispose || e instanceof at) && this.data.add(e), e instanceof at)
|
|
20997
20997
|
this.track(e.geometry), this.track(e.material), this.track(e.children);
|
|
20998
|
-
else if (e instanceof
|
|
20998
|
+
else if (e instanceof Ji) {
|
|
20999
20999
|
for (const t of Object.values(e))
|
|
21000
21000
|
t instanceof It && this.track(t);
|
|
21001
21001
|
if (e.uniforms) {
|
|
@@ -21017,8 +21017,8 @@ class HM {
|
|
|
21017
21017
|
this.data.clear();
|
|
21018
21018
|
}
|
|
21019
21019
|
}
|
|
21020
|
-
let
|
|
21021
|
-
const ys =
|
|
21020
|
+
let Bi = new HM();
|
|
21021
|
+
const ys = Bi.track.bind(Bi), kM = bf.extend({
|
|
21022
21022
|
props: {
|
|
21023
21023
|
adcode: {
|
|
21024
21024
|
// 地图code
|
|
@@ -21120,7 +21120,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
|
|
|
21120
21120
|
};
|
|
21121
21121
|
},
|
|
21122
21122
|
mounted() {
|
|
21123
|
-
|
|
21123
|
+
Bi.dispose(), this.getData(), this.canvasDom = this.$refs.canvas, this.size = { width: this.$el.offsetWidth, height: this.$el.offsetHeight }, this.viewObserver = new ResizeObserver(this.updateViewSize), this.viewObserver.observe(this.$el), this.create();
|
|
21124
21124
|
},
|
|
21125
21125
|
methods: {
|
|
21126
21126
|
// 获取地图数据
|
|
@@ -21154,7 +21154,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
|
|
|
21154
21154
|
this.canvasDom && (this.canvasDom.style.position = "absolute"), this.baseRem = Math.max(window.outerWidth / 1920, 1), this.size = {
|
|
21155
21155
|
width: this.$el.offsetWidth,
|
|
21156
21156
|
height: this.$el.offsetHeight
|
|
21157
|
-
}, this.canvasDom && (this.canvasDom.style.position = ""), this.controller && this.controller.reset(), this.camera && (this.camera.aspect = this.size.width / this.size.height, this.camera.updateProjectionMatrix(), this.renderer.setSize(this.size.width, this.size.height), this.infoRender.setSize(this.size.width, this.size.height));
|
|
21157
|
+
}, this.canvasDom && (this.canvasDom.style.position = ""), this.controller && this.controller.reset(), this.camera && (this.camera.aspect = this.size.width / this.size.height, this.camera.updateProjectionMatrix(), this.renderer.setSize(this.size.width, this.size.height), this.infoRender.setSize(this.size.width, this.size.height), Bi.dispose(), this.renderMap());
|
|
21158
21158
|
},
|
|
21159
21159
|
// 创建地图
|
|
21160
21160
|
create() {
|
|
@@ -21171,7 +21171,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
|
|
|
21171
21171
|
}, 200);
|
|
21172
21172
|
return;
|
|
21173
21173
|
}
|
|
21174
|
-
|
|
21174
|
+
Bi.dispose(), this.tipsMesh && this.tipsMesh.remove(...this.tipsMesh.children), this.circleMesh && this.circleMesh.remove(...this.circleMesh.children), this.activeMesh.length && (this.activeMesh = []), this.scene.remove(...this.scene.children);
|
|
21175
21175
|
const n = ys(new at());
|
|
21176
21176
|
n.name = "map";
|
|
21177
21177
|
const e = Du().center(this.centroid).scale(this.scale).translate([0, 0]), { blockList: t, infoData: i } = this.drawItemArea(e);
|
|
@@ -21296,9 +21296,14 @@ const ys = vr.track.bind(vr), kM = bf.extend({
|
|
|
21296
21296
|
h.position.set(a[0], -a[1] + this.mouseScale * 1, 1);
|
|
21297
21297
|
const f = document.createElement("div");
|
|
21298
21298
|
let d, g, _, m, p;
|
|
21299
|
-
f.style.cssText = `background:#00023d;text-align:center;border:1px solid ${Vu[s.userData.activedType]};line-height:2;`, s.userData.name
|
|
21299
|
+
if (f.style.cssText = `background:#00023d;text-align:center;border:1px solid ${Vu[s.userData.activedType]};line-height:2;`, s.userData.name) {
|
|
21300
|
+
g = document.createElement("p"), g.style.cssText = `min-width:${this.baseRem * 100}px;`, g.textContent = s.userData.name, _ = document.createElement("span"), _.style.cssText = `position:absolute;left:0;top:0;display:inline-block;width:${this.baseRem * 16}px;height:${this.baseRem * 16}px;border-top:${this.baseRem * 5}px solid #00023d;transform:rotate(-45deg);`, m = document.createElement("span");
|
|
21301
|
+
const N = document.createElement("span");
|
|
21302
|
+
N.style.cssText = `display:inline-block;width:${this.baseRem * 12}px;height:${this.baseRem * 12}px;border-top:1px solid #00023d;border-right:1px solid #00023d;transform:rotate(45deg) scale(0.7);`, m.style.cssText = `position:absolute;right:0;top:50%;display:inline-block;padding:${this.baseRem * 4}px;cursor:pointer;transform:translateY(-50%);line-height:1;`, m.append(N), m.dataset.adcode = o.adcode;
|
|
21303
|
+
}
|
|
21304
|
+
s.userData.text && (p = document.createElement("p"), p.style.cssText = `color:#fff;padding:${this.baseRem * 5}px ${this.baseRem * 10}px;`, p.textContent = s.userData.text), g && (d = document.createElement("div"), d.style.cssText = `color:#00023d;background:${Vu[s.userData.activedType]};overflow:hidden;position:relative;padding:0 ${this.baseRem * 16}px`, d.append(_, g), this.areaObj.handle && d.append(m)), d && f.append(d), p && f.append(p);
|
|
21300
21305
|
const y = new Ho(f);
|
|
21301
|
-
y.name = "tips", y.userData = s, y.position.set(a[0] + c[0], -a[1] + c[1], 1.5), y.element.addEventListener("pointerdown", this.handleTipsItemClick);
|
|
21306
|
+
y.name = "tips", y.userData = s.userData, y.position.set(a[0] + c[0], -a[1] + c[1], 1.5), y.element.addEventListener("pointerdown", this.handleTipsItemClick);
|
|
21302
21307
|
let v = [];
|
|
21303
21308
|
v.push(new D(a[0], -a[1], 1)), v.push(new D(a[0] + l[0], -a[1] + l[1], 1)), v.push(new D(a[0] + c[0], -a[1] + c[1], 1));
|
|
21304
21309
|
const M = this.drawLine(v, "#ffda57");
|
|
@@ -21326,7 +21331,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
|
|
|
21326
21331
|
this.$emit("clickTipsArrow", t);
|
|
21327
21332
|
} else {
|
|
21328
21333
|
const i = this.tipsMesh.children.filter((r) => r.name === "tips").find((r) => r.element.contains(n.target));
|
|
21329
|
-
i && this.$emit("clickTips", i);
|
|
21334
|
+
i && this.$emit("clickTips", i.userData);
|
|
21330
21335
|
}
|
|
21331
21336
|
},
|
|
21332
21337
|
// 交互相关
|
|
@@ -21352,7 +21357,7 @@ const ys = vr.track.bind(vr), kM = bf.extend({
|
|
|
21352
21357
|
}
|
|
21353
21358
|
},
|
|
21354
21359
|
beforeDestroy() {
|
|
21355
|
-
|
|
21360
|
+
Bi.dispose();
|
|
21356
21361
|
}
|
|
21357
21362
|
});
|
|
21358
21363
|
var GM = function() {
|
|
@@ -21373,7 +21378,7 @@ var WM = /* @__PURE__ */ Tt(
|
|
|
21373
21378
|
VM,
|
|
21374
21379
|
!1,
|
|
21375
21380
|
XM,
|
|
21376
|
-
"
|
|
21381
|
+
"6eab9600",
|
|
21377
21382
|
null,
|
|
21378
21383
|
null
|
|
21379
21384
|
);
|