@realsee/dnalogel 3.47.12 → 3.47.13
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/CHANGELOG.md +3 -0
- package/dist/index.cjs.js +15 -15
- package/dist/index.js +301 -301
- package/dist/index.umd.js +23 -23
- package/libs/Sculpt/Objects/Rectangle/index.js +32 -32
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
var tp = Object.defineProperty, ip = Object.defineProperties;
|
|
2
2
|
var np = Object.getOwnPropertyDescriptors;
|
|
3
|
-
var
|
|
3
|
+
var Po = Object.getOwnPropertySymbols;
|
|
4
4
|
var kc = Object.prototype.hasOwnProperty, xc = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var ya = (n, t, e) => t in n ? tp(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, x = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
kc.call(t, e) && ya(n, e, t[e]);
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
8
|
+
if (Po)
|
|
9
|
+
for (var e of Po(t))
|
|
10
10
|
xc.call(t, e) && ya(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
12
|
}, ee = (n, t) => ip(n, np(t));
|
|
@@ -14,8 +14,8 @@ var yn = (n, t) => {
|
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var i in n)
|
|
16
16
|
kc.call(n, i) && t.indexOf(i) < 0 && (e[i] = n[i]);
|
|
17
|
-
if (n != null &&
|
|
18
|
-
for (var i of
|
|
17
|
+
if (n != null && Po)
|
|
18
|
+
for (var i of Po(n))
|
|
19
19
|
t.indexOf(i) < 0 && xc.call(n, i) && (e[i] = n[i]);
|
|
20
20
|
return e;
|
|
21
21
|
};
|
|
@@ -38,7 +38,7 @@ var G = (n, t, e) => new Promise((i, s) => {
|
|
|
38
38
|
});
|
|
39
39
|
import { Camera as sp, Five as vt, Subscribe as Kn } from "@realsee/five";
|
|
40
40
|
import * as y from "three";
|
|
41
|
-
import { Vector3 as ae, Matrix4 as
|
|
41
|
+
import { Vector3 as ae, Matrix4 as Os, Object3D as op, LineSegments as rp, Group as zn, Raycaster as $n, MeshBasicMaterial as Gs, CanvasTexture as ap, AnimationMixer as lp, Color as es, TextureLoader as Df, Vector2 as Pt, PlaneGeometry as cp, sRGBEncoding as hp, LinearFilter as el, Mesh as Bs, CurvePath as dp, LineCurve3 as up, TubeGeometry as fp, ShaderMaterial as Sf, SphereGeometry as mp, DoubleSide as Tf, RingGeometry as gp, Quaternion as Dl, Euler as Dc, VideoTexture as pp, Vector4 as vp, SphereBufferGeometry as Ap } from "three";
|
|
42
42
|
import { CSS3DSprite as bp, CSS3DObject as tl } from "three/examples/jsm/renderers/CSS3DRenderer";
|
|
43
43
|
import Ar from "hammerjs";
|
|
44
44
|
import { Line as yp, LineGeometry as wp, THREE_Line2 as Cp, LineMaterial as Pp } from "@realsee/five/line";
|
|
@@ -48,7 +48,7 @@ import Ip from "earcut";
|
|
|
48
48
|
import { GLTFLoader as Ep } from "@realsee/five/gltf-loader";
|
|
49
49
|
function Mp() {
|
|
50
50
|
console.debug(
|
|
51
|
-
"%c %c@realsee/dnalogel %cv3.47.
|
|
51
|
+
"%c %c@realsee/dnalogel %cv3.47.13",
|
|
52
52
|
[
|
|
53
53
|
"background: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAkAAAAMCAMAAACHgmeRAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAABLFBMVEUAAAAapPoap/oaqvkbrfkbr/gZnfwZoPsaqfnD4v/E4/8Ylv0clPm93/+/4P/B4f8Yj/683/8Wif+33P8Uhv+x2f8ShP+s1v8Pgf+n0/8Nf/+h0f8Lff8Lff8Nf/9dl/+czv8KfP8KfP+Lxf+Uyv+Xy/+Hwv+Jw/+Mxf+Oxv+RyP8aovsapfoap/oZmfwZm/wZnvsYnPsYkf4YlP0NePsDYfgYcfi43f+63v8Xiv8Xjf4EWfwCV/sWZ/qz2v+02/8Vh/8WiP8EUf8CTf4WXv2u1/+v2P8Thf8Thv8ETf8CR/8VV/+o1f+q1f8Qgv8Rg/8DSv8BRf8UVP+j0v+k0v8OgP8Pgf8DR/8DQv9Nhf+dzv+fz/+Kv/+Vyv+Xy/+azf+Oxv+Qx/+SyP////8MUhLdAAAAK3RSTlMACEWQ2bd98uQECPXxqO7c+Pb49vj2+Pb49vj23Oul8fMHA+TwerXXjEIG2P+bHgAAAAFiS0dEY1y+LaoAAAB+SURBVAjXY2BgZGJmYWVgYGBgY9fW0eVg4ORi4NbTNzDk4eXjZxAwMjYxNTO3EGQQsrSytrG1sxdmEHFwdHJ2cXUTZRBz9/D08vbxFWeQ8PMPCAwKDpFkkAoNC4+IjIqWZpCRlZOPiY2LV2BQVGJQTkhMUlEFWaOmrqGpxQAAyg0S9Dq+VPYAAAAASUVORK5CYII=')",
|
|
54
54
|
"background-repeat: no-repeat",
|
|
@@ -76,7 +76,7 @@ const Sc = () => Promise.resolve(), Tc = {
|
|
|
76
76
|
function xp(n = Sc) {
|
|
77
77
|
Tc.__queue = Tc.__queue.then(n).catch(Sc);
|
|
78
78
|
}
|
|
79
|
-
function
|
|
79
|
+
function Io(n, t, e) {
|
|
80
80
|
const i = n.x, s = n.y, o = Math.floor(i / t * 1e4) / 1e4, r = Math.floor(s / e * 1e4) / 1e4;
|
|
81
81
|
return { x: o, y: r };
|
|
82
82
|
}
|
|
@@ -84,7 +84,7 @@ function wa(n, t, e) {
|
|
|
84
84
|
const { x: i, y: s } = n, o = i * t, r = s * e;
|
|
85
85
|
return { x: o, y: r };
|
|
86
86
|
}
|
|
87
|
-
function
|
|
87
|
+
function Eo(n) {
|
|
88
88
|
if (n.length < 2)
|
|
89
89
|
return {};
|
|
90
90
|
const t = n.slice(-2), e = t[0], i = {
|
|
@@ -518,12 +518,12 @@ function Vp(n, t, e, i = ii.Linear.None) {
|
|
|
518
518
|
return requestAnimationFrame(o), s;
|
|
519
519
|
}
|
|
520
520
|
var xi = /* @__PURE__ */ ((n) => (n.Drawline = "Drawline", n.Undo = "Undo", n.Exit = "Exit", n))(xi || {});
|
|
521
|
-
const
|
|
522
|
-
function
|
|
523
|
-
return n[
|
|
521
|
+
const Vs = Symbol("$$PAINT_BRUSH_EVENT$$");
|
|
522
|
+
function Mo(n) {
|
|
523
|
+
return n[Vs] || (n[Vs] = {}), n[Vs];
|
|
524
524
|
}
|
|
525
525
|
function Rp(n) {
|
|
526
|
-
n[
|
|
526
|
+
n[Vs] || delete n[Vs];
|
|
527
527
|
}
|
|
528
528
|
let Fp = class {
|
|
529
529
|
/**
|
|
@@ -531,7 +531,7 @@ let Fp = class {
|
|
|
531
531
|
* @param name 事件类型
|
|
532
532
|
*/
|
|
533
533
|
hasListener(t) {
|
|
534
|
-
const e =
|
|
534
|
+
const e = Mo(this);
|
|
535
535
|
return e && e[t] && e[t].length > 0;
|
|
536
536
|
}
|
|
537
537
|
/**
|
|
@@ -544,7 +544,7 @@ let Fp = class {
|
|
|
544
544
|
* @template C 回调函数函数上下文
|
|
545
545
|
*/
|
|
546
546
|
on(t, e, i) {
|
|
547
|
-
const s =
|
|
547
|
+
const s = Mo(this);
|
|
548
548
|
return s[t] || (s[t] = []), s[t].push([e, i || !1]), () => this.off(t, e);
|
|
549
549
|
}
|
|
550
550
|
/**
|
|
@@ -572,7 +572,7 @@ let Fp = class {
|
|
|
572
572
|
Rp(this);
|
|
573
573
|
return;
|
|
574
574
|
}
|
|
575
|
-
const i =
|
|
575
|
+
const i = Mo(this);
|
|
576
576
|
if (i[t] || (i[t] = []), e === void 0) {
|
|
577
577
|
i[t].length = 0;
|
|
578
578
|
return;
|
|
@@ -591,7 +591,7 @@ let Fp = class {
|
|
|
591
591
|
*/
|
|
592
592
|
emit(t, ...e) {
|
|
593
593
|
let i = !1;
|
|
594
|
-
const o =
|
|
594
|
+
const o = Mo(this)[t] || [];
|
|
595
595
|
for (let r of o.slice()) {
|
|
596
596
|
const [a, l = !1] = r, c = a(...e);
|
|
597
597
|
l && this.off(t, a), c === !1 && (i = !0);
|
|
@@ -837,14 +837,14 @@ let Hp = class extends Fp {
|
|
|
837
837
|
e.onmousedown = (u) => {
|
|
838
838
|
u.preventDefault(), c = Date.now();
|
|
839
839
|
const f = u.clientX, m = u.clientY;
|
|
840
|
-
r = [], r.push({ x: f, y: m }), o = { x: f, y: m }, a =
|
|
840
|
+
r = [], r.push({ x: f, y: m }), o = { x: f, y: m }, a = Io({ x: f, y: m }, this.clientWidth, this.clientHeight), l = [];
|
|
841
841
|
}, e.onmousemove = (u) => {
|
|
842
842
|
if (u.preventDefault(), !o)
|
|
843
843
|
return;
|
|
844
844
|
const f = Number(u.clientX), m = Number(u.clientY);
|
|
845
|
-
if (Math.abs(f - o.x) < 5 && Math.abs(m - o.y) < 5 || (r.push({ x: f, y: m }), l.push(
|
|
845
|
+
if (Math.abs(f - o.x) < 5 && Math.abs(m - o.y) < 5 || (r.push({ x: f, y: m }), l.push(Io({ x: f, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
846
846
|
return;
|
|
847
|
-
const { control: v, end: p } =
|
|
847
|
+
const { control: v, end: p } = Eo(r);
|
|
848
848
|
!v || !p || (h(o, v, p), o = p);
|
|
849
849
|
}, e.onmouseup = (u) => {
|
|
850
850
|
if (u.preventDefault(), o = null, r.length < 3)
|
|
@@ -870,14 +870,14 @@ let Hp = class extends Fp {
|
|
|
870
870
|
}, e.ontouchstart = (u) => {
|
|
871
871
|
u.preventDefault(), c = Date.now();
|
|
872
872
|
const f = u.touches[0].clientX, m = u.touches[0].clientY;
|
|
873
|
-
r = [], r.push({ x: f, y: m }), o = { x: f, y: m }, a =
|
|
873
|
+
r = [], r.push({ x: f, y: m }), o = { x: f, y: m }, a = Io({ x: f, y: m }, this.clientWidth, this.clientHeight), l = [];
|
|
874
874
|
}, e.ontouchmove = (u) => {
|
|
875
875
|
if (u.preventDefault(), !o)
|
|
876
876
|
return;
|
|
877
877
|
const f = Number(u.touches[0].clientX), m = Number(u.touches[0].clientY);
|
|
878
|
-
if (Math.abs(f - o.x) < 5 && Math.abs(m - o.y) < 5 || (r.push({ x: f, y: m }), l.push(
|
|
878
|
+
if (Math.abs(f - o.x) < 5 && Math.abs(m - o.y) < 5 || (r.push({ x: f, y: m }), l.push(Io({ x: f, y: m }, this.clientWidth, this.clientHeight)), r.length < 3))
|
|
879
879
|
return;
|
|
880
|
-
const { control: v, end: p } =
|
|
880
|
+
const { control: v, end: p } = Eo(r);
|
|
881
881
|
!v || !p || (h(o, v, p), o = p);
|
|
882
882
|
}, e.ontouchend = e.ontouchcancel = (u) => {
|
|
883
883
|
if (u.preventDefault(), o = null, r.length < 3)
|
|
@@ -975,7 +975,7 @@ let Hp = class extends Fp {
|
|
|
975
975
|
if (!v.find((I) => I === A)) {
|
|
976
976
|
if (v.push(A), m.push(wa(l[A], p.clientWidth, p.clientHeight)), m.length < 3)
|
|
977
977
|
return;
|
|
978
|
-
const { control: I, end: P } =
|
|
978
|
+
const { control: I, end: P } = Eo(m);
|
|
979
979
|
if (!I || !P)
|
|
980
980
|
return;
|
|
981
981
|
a.quadraticCurveTo(I.x, I.y, P.x, P.y), a.stroke();
|
|
@@ -987,7 +987,7 @@ let Hp = class extends Fp {
|
|
|
987
987
|
for (let v = 0; v < l.length; v++) {
|
|
988
988
|
if (m.push(wa(l[v], this.clientWidth, this.clientHeight)), m.length < 3)
|
|
989
989
|
continue;
|
|
990
|
-
const { control: p, end: g } =
|
|
990
|
+
const { control: p, end: g } = Eo(m);
|
|
991
991
|
!p || !g || a.quadraticCurveTo(p.x, p.y, g.x, g.y);
|
|
992
992
|
}
|
|
993
993
|
a.stroke(), m = [], o && o(), r();
|
|
@@ -1172,7 +1172,7 @@ function Qp(n) {
|
|
|
1172
1172
|
return Array.isArray(n) ? typeof n[0] == "number" ? He(n) : n.map(He) : He(n);
|
|
1173
1173
|
}
|
|
1174
1174
|
let Gp = function() {
|
|
1175
|
-
let n = this, t, e, i, s, o = new
|
|
1175
|
+
let n = this, t, e, i, s, o = new Os(), r = {
|
|
1176
1176
|
camera: { fov: 0, style: "" },
|
|
1177
1177
|
objects: /* @__PURE__ */ new WeakMap()
|
|
1178
1178
|
}, a = document.createElement("div");
|
|
@@ -1302,12 +1302,12 @@ class nl extends Up {
|
|
|
1302
1302
|
function Yp(n) {
|
|
1303
1303
|
return typeof Symbol == "undefined" ? `$Symbol<${n}>$` : Symbol(n);
|
|
1304
1304
|
}
|
|
1305
|
-
const
|
|
1306
|
-
function
|
|
1307
|
-
return n[
|
|
1305
|
+
const Rs = Yp("$$EVENT$$");
|
|
1306
|
+
function ko(n) {
|
|
1307
|
+
return n[Rs] || (n[Rs] = {}), n[Rs];
|
|
1308
1308
|
}
|
|
1309
1309
|
function Xp(n) {
|
|
1310
|
-
n[
|
|
1310
|
+
n[Rs] && delete n[Rs];
|
|
1311
1311
|
}
|
|
1312
1312
|
class ht {
|
|
1313
1313
|
/**
|
|
@@ -1315,7 +1315,7 @@ class ht {
|
|
|
1315
1315
|
* @param name - 事件类型
|
|
1316
1316
|
*/
|
|
1317
1317
|
hasListener(t) {
|
|
1318
|
-
const e =
|
|
1318
|
+
const e = ko(this);
|
|
1319
1319
|
return !!(e != null && e[t] && e[t].length > 0);
|
|
1320
1320
|
}
|
|
1321
1321
|
/**
|
|
@@ -1328,7 +1328,7 @@ class ht {
|
|
|
1328
1328
|
* @template C - 回调函数函数上下文
|
|
1329
1329
|
*/
|
|
1330
1330
|
on(t, e, i) {
|
|
1331
|
-
const s =
|
|
1331
|
+
const s = ko(this);
|
|
1332
1332
|
return s[t] || (s[t] = []), s[t].push([e, i || !1]), () => this.off(t, e);
|
|
1333
1333
|
}
|
|
1334
1334
|
/**
|
|
@@ -1356,7 +1356,7 @@ class ht {
|
|
|
1356
1356
|
Xp(this);
|
|
1357
1357
|
return;
|
|
1358
1358
|
}
|
|
1359
|
-
const i =
|
|
1359
|
+
const i = ko(this);
|
|
1360
1360
|
if (i[t] || (i[t] = []), e === void 0) {
|
|
1361
1361
|
i[t].length = 0;
|
|
1362
1362
|
return;
|
|
@@ -1375,7 +1375,7 @@ class ht {
|
|
|
1375
1375
|
*/
|
|
1376
1376
|
emit(t, ...e) {
|
|
1377
1377
|
let i = !1;
|
|
1378
|
-
const o =
|
|
1378
|
+
const o = ko(this)[t] || [];
|
|
1379
1379
|
for (let r of o.slice()) {
|
|
1380
1380
|
const [a, l = !1] = r, c = a(...e);
|
|
1381
1381
|
l && this.off(t, a), c === !1 && (i = !0);
|
|
@@ -1603,7 +1603,7 @@ class Ll {
|
|
|
1603
1603
|
return { translateX: c, translateY: h };
|
|
1604
1604
|
}
|
|
1605
1605
|
}
|
|
1606
|
-
function
|
|
1606
|
+
function xo(n, t, e) {
|
|
1607
1607
|
const i = n[t], s = n[e];
|
|
1608
1608
|
i === void 0 || s === void 0 || (n[t] = s, n[e] = i);
|
|
1609
1609
|
}
|
|
@@ -1613,7 +1613,7 @@ function $p(n, t, e) {
|
|
|
1613
1613
|
const o = e - (s - 1);
|
|
1614
1614
|
for (let r = 1; r <= t; r++) {
|
|
1615
1615
|
const a = (s - 1) * t + r - 1, l = (o - 1) * t + r - 1;
|
|
1616
|
-
|
|
1616
|
+
xo(n, a * 4 + 0, l * 4 + 0), xo(n, a * 4 + 1, l * 4 + 1), xo(n, a * 4 + 2, l * 4 + 2), xo(n, a * 4 + 3, l * 4 + 3);
|
|
1617
1617
|
}
|
|
1618
1618
|
}
|
|
1619
1619
|
}
|
|
@@ -1877,7 +1877,7 @@ class Nf extends ht {
|
|
|
1877
1877
|
this.five = e;
|
|
1878
1878
|
}
|
|
1879
1879
|
}
|
|
1880
|
-
const
|
|
1880
|
+
const Ws = (n, t) => {
|
|
1881
1881
|
if (!t)
|
|
1882
1882
|
return n;
|
|
1883
1883
|
const e = new y.Vector3(), i = new y.Quaternion(), s = new y.Vector3();
|
|
@@ -1932,7 +1932,7 @@ class gv extends Nf {
|
|
|
1932
1932
|
var s;
|
|
1933
1933
|
const i = (s = this.getObserver(e)) == null ? void 0 : s.position;
|
|
1934
1934
|
if (i)
|
|
1935
|
-
return
|
|
1935
|
+
return Ws(i, this.transform);
|
|
1936
1936
|
}
|
|
1937
1937
|
/**
|
|
1938
1938
|
* @description 获取全景点位和模型的地面坐标
|
|
@@ -1941,7 +1941,7 @@ class gv extends Nf {
|
|
|
1941
1941
|
var s;
|
|
1942
1942
|
const i = (s = this.getObserver(e)) == null ? void 0 : s.standingPosition;
|
|
1943
1943
|
if (i)
|
|
1944
|
-
return
|
|
1944
|
+
return Ws(i, this.transform);
|
|
1945
1945
|
}
|
|
1946
1946
|
/**
|
|
1947
1947
|
* @description 获取observer
|
|
@@ -2115,7 +2115,7 @@ let Bi = class {
|
|
|
2115
2115
|
/**
|
|
2116
2116
|
* @realsee/dnalogel 版本号
|
|
2117
2117
|
*/
|
|
2118
|
-
d(this, "VERSION", "3.47.
|
|
2118
|
+
d(this, "VERSION", "3.47.13");
|
|
2119
2119
|
d(this, "NAME");
|
|
2120
2120
|
d(this, "five");
|
|
2121
2121
|
d(this, "workUtil");
|
|
@@ -2250,7 +2250,7 @@ const Pv = (n) => {
|
|
|
2250
2250
|
const T = 1 / E;
|
|
2251
2251
|
return t[0] = w * T, t[1] = (p * f * o - u * g * o - p * s * m + i * g * m + u * s * A - i * f * A) * T, t[2] = (a * g * o - p * l * o + p * s * c - i * g * c - a * s * A + i * l * A) * T, t[3] = (u * l * o - a * f * o - u * s * c + i * f * c + a * s * m - i * l * m) * T, t[4] = I * T, t[5] = (h * g * o - v * f * o + v * s * m - e * g * m - h * s * A + e * f * A) * T, t[6] = (v * l * o - r * g * o - v * s * c + e * g * c + r * s * A - e * l * A) * T, t[7] = (r * f * o - h * l * o + h * s * c - e * f * c - r * s * m + e * l * m) * T, t[8] = P * T, t[9] = (v * u * o - h * p * o - v * i * m + e * p * m + h * i * A - e * u * A) * T, t[10] = (r * p * o - v * a * o + v * i * c - e * p * c - r * i * A + e * a * A) * T, t[11] = (h * a * o - r * u * o - h * i * c + e * u * c + r * i * m - e * a * m) * T, t[12] = k * T, t[13] = (h * p * s - v * u * s + v * i * f - e * p * f - h * i * g + e * u * g) * T, t[14] = (v * a * s - r * p * s - v * i * l + e * p * l + r * i * g - e * a * g) * T, t[15] = (r * u * s - h * a * s + h * i * l - e * u * l - r * i * f + e * a * f) * T, n;
|
|
2252
2252
|
};
|
|
2253
|
-
class
|
|
2253
|
+
class eo extends jt {
|
|
2254
2254
|
constructor(e, i) {
|
|
2255
2255
|
var s, o;
|
|
2256
2256
|
super();
|
|
@@ -2307,15 +2307,15 @@ class to extends jt {
|
|
|
2307
2307
|
this.removeFromParent();
|
|
2308
2308
|
}
|
|
2309
2309
|
}
|
|
2310
|
-
class Iv extends
|
|
2310
|
+
class Iv extends eo {
|
|
2311
2311
|
}
|
|
2312
|
-
class Ev extends
|
|
2312
|
+
class Ev extends eo {
|
|
2313
2313
|
}
|
|
2314
|
-
class Mv extends
|
|
2314
|
+
class Mv extends eo {
|
|
2315
2315
|
}
|
|
2316
|
-
class kv extends
|
|
2316
|
+
class kv extends eo {
|
|
2317
2317
|
}
|
|
2318
|
-
class xv extends
|
|
2318
|
+
class xv extends eo {
|
|
2319
2319
|
}
|
|
2320
2320
|
class Dv extends y.Group {
|
|
2321
2321
|
constructor(e) {
|
|
@@ -2649,7 +2649,7 @@ class Nv extends xv {
|
|
|
2649
2649
|
d(this, "cornerPositions", []);
|
|
2650
2650
|
d(this, "css3DInstance");
|
|
2651
2651
|
d(this, "plane");
|
|
2652
|
-
d(this, "css3DRenderer", new
|
|
2652
|
+
d(this, "css3DRenderer", new Ys());
|
|
2653
2653
|
d(this, "camera");
|
|
2654
2654
|
d(this, "scene");
|
|
2655
2655
|
d(this, "container");
|
|
@@ -3026,7 +3026,7 @@ function ke(n) {
|
|
|
3026
3026
|
function yi(n) {
|
|
3027
3027
|
return arguments.length === 0 ? [] : Array.isArray(n) ? n : [n];
|
|
3028
3028
|
}
|
|
3029
|
-
let
|
|
3029
|
+
let to = class {
|
|
3030
3030
|
constructor(t, e) {
|
|
3031
3031
|
d(this, "originObject3D");
|
|
3032
3032
|
d(this, "hooks");
|
|
@@ -3249,7 +3249,7 @@ function nn(n) {
|
|
|
3249
3249
|
return new y.Vector3().lerpVectors(e.start, e.end, m);
|
|
3250
3250
|
}
|
|
3251
3251
|
}
|
|
3252
|
-
let Qv = class extends
|
|
3252
|
+
let Qv = class extends to {
|
|
3253
3253
|
constructor(...e) {
|
|
3254
3254
|
super(...e);
|
|
3255
3255
|
d(this, "name", "MoveController");
|
|
@@ -3527,7 +3527,7 @@ function Da(n) {
|
|
|
3527
3527
|
return n * Math.PI / 180;
|
|
3528
3528
|
}
|
|
3529
3529
|
const Sa = new y.Quaternion();
|
|
3530
|
-
class Jv extends
|
|
3530
|
+
class Jv extends to {
|
|
3531
3531
|
constructor(...e) {
|
|
3532
3532
|
var c, h, u;
|
|
3533
3533
|
super(...e);
|
|
@@ -3669,7 +3669,7 @@ class Jv extends io {
|
|
|
3669
3669
|
i.setLeftTop(l, c);
|
|
3670
3670
|
}
|
|
3671
3671
|
}
|
|
3672
|
-
class qv extends
|
|
3672
|
+
class qv extends to {
|
|
3673
3673
|
constructor(...e) {
|
|
3674
3674
|
super(...e);
|
|
3675
3675
|
d(this, "startInfo");
|
|
@@ -3817,7 +3817,7 @@ function Ta(n) {
|
|
|
3817
3817
|
if (!(i !== "transparent" && i !== "rgba(0, 0, 0, 0)" && i !== "" || s !== "none" && s !== ""))
|
|
3818
3818
|
return n;
|
|
3819
3819
|
}
|
|
3820
|
-
class $v extends
|
|
3820
|
+
class $v extends to {
|
|
3821
3821
|
constructor(...e) {
|
|
3822
3822
|
super(...e);
|
|
3823
3823
|
d(this, "name", "BoundingBoxController");
|
|
@@ -3856,7 +3856,7 @@ function tA() {
|
|
|
3856
3856
|
}), i = new y.Mesh(t, e);
|
|
3857
3857
|
return i.renderOrder = 10, i;
|
|
3858
3858
|
}
|
|
3859
|
-
class iA extends
|
|
3859
|
+
class iA extends to {
|
|
3860
3860
|
constructor(...e) {
|
|
3861
3861
|
super(...e);
|
|
3862
3862
|
d(this, "name", "ScaleController");
|
|
@@ -3946,7 +3946,7 @@ class Wf extends Bi {
|
|
|
3946
3946
|
d(this, "objectHelperMap", /* @__PURE__ */ new Map());
|
|
3947
3947
|
d(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
|
|
3948
3948
|
d(this, "css3DRender");
|
|
3949
|
-
this.five = e, this.css3DRender = new
|
|
3949
|
+
this.five = e, this.css3DRender = new Ys(this.five.scene), console.warn("Object3DHelper: 使用此插件,需要在初始化five时,设置five参数: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${ol.toUpperCase()}_DEBUG__`]: this });
|
|
3950
3950
|
}
|
|
3951
3951
|
/**
|
|
3952
3952
|
* @description Show guide line
|
|
@@ -4355,7 +4355,7 @@ function aA(n, t) {
|
|
|
4355
4355
|
const { x: e, y: i } = t, s = e * 2 - 1, o = i * 2 - 1, r = new y.Raycaster();
|
|
4356
4356
|
return r.setFromCamera({ x: s, y: o }, n.camera), r.params.Points.threshold = 0.02, r;
|
|
4357
4357
|
}
|
|
4358
|
-
function
|
|
4358
|
+
function io(n, t, e) {
|
|
4359
4359
|
const i = lA(n, t);
|
|
4360
4360
|
return e != null && e.virtualPoint ? i != null ? i : Xf(t) : i;
|
|
4361
4361
|
}
|
|
@@ -4469,7 +4469,7 @@ class Zf extends ht {
|
|
|
4469
4469
|
*/
|
|
4470
4470
|
d(this, "updateByNdcPosition", (e) => {
|
|
4471
4471
|
var o, r;
|
|
4472
|
-
const i = aA(this.five, e), s =
|
|
4472
|
+
const i = aA(this.five, e), s = io(this.five, i);
|
|
4473
4473
|
if (s)
|
|
4474
4474
|
return this.updatePointSelectorHelperIntersect(s), this.lastIntersection = s, !0;
|
|
4475
4475
|
if (this.plane) {
|
|
@@ -4998,7 +4998,7 @@ class em extends rp {
|
|
|
4998
4998
|
super(t, e);
|
|
4999
4999
|
}
|
|
5000
5000
|
}
|
|
5001
|
-
const Ht = /* @__PURE__ */ new Map(),
|
|
5001
|
+
const Ht = /* @__PURE__ */ new Map(), Ts = /* @__PURE__ */ new Map();
|
|
5002
5002
|
function wA(n) {
|
|
5003
5003
|
yi(n).forEach((e) => {
|
|
5004
5004
|
var i, s, o;
|
|
@@ -5062,11 +5062,11 @@ function Er(n, t) {
|
|
|
5062
5062
|
return (l = t == null ? void 0 : t.updateRender) == null ? void 0 : l.call(t);
|
|
5063
5063
|
}));
|
|
5064
5064
|
};
|
|
5065
|
-
const r =
|
|
5066
|
-
return r == null || r.pause(), r == null || r.seek(0),
|
|
5065
|
+
const r = Ts.get(n);
|
|
5066
|
+
return r == null || r.pause(), r == null || r.seek(0), Ts.set(n, o), o.play(), o.finished.then(() => {
|
|
5067
5067
|
var l;
|
|
5068
5068
|
Gc(i), setTimeout(() => {
|
|
5069
|
-
|
|
5069
|
+
Ts.get(n) === o && Ts.delete(n);
|
|
5070
5070
|
}, 1e3), (l = t == null ? void 0 : t.updateRender) == null || l.call(t);
|
|
5071
5071
|
}), o;
|
|
5072
5072
|
}
|
|
@@ -5088,7 +5088,7 @@ const La = Math.PI * 2;
|
|
|
5088
5088
|
function CA(n) {
|
|
5089
5089
|
return (n % La + La) % La;
|
|
5090
5090
|
}
|
|
5091
|
-
function
|
|
5091
|
+
function no(n) {
|
|
5092
5092
|
return {
|
|
5093
5093
|
longitude: CA(-Math.atan2(n.x, -n.z)),
|
|
5094
5094
|
latitude: -Math.asin(n.y / 1)
|
|
@@ -5120,7 +5120,7 @@ function PA(n, t, e) {
|
|
|
5120
5120
|
break;
|
|
5121
5121
|
f += 30;
|
|
5122
5122
|
}
|
|
5123
|
-
const p = v((P = (I = m[2]) != null ? I : m[1]) != null ? P : 0), g = p.distanceTo(r), A =
|
|
5123
|
+
const p = v((P = (I = m[2]) != null ? I : m[1]) != null ? P : 0), g = p.distanceTo(r), A = no(r.clone().sub(p).normalize());
|
|
5124
5124
|
if (n.state.mode === "Mapview")
|
|
5125
5125
|
return n.updateCamera(
|
|
5126
5126
|
x({
|
|
@@ -5157,7 +5157,7 @@ function im(n, t, e) {
|
|
|
5157
5157
|
break;
|
|
5158
5158
|
h += 30;
|
|
5159
5159
|
}
|
|
5160
|
-
const m = f((g = u[1]) != null ? g : 0), v =
|
|
5160
|
+
const m = f((g = u[1]) != null ? g : 0), v = no(t.clone().sub(m).normalize());
|
|
5161
5161
|
if (n.state.mode === "Mapview")
|
|
5162
5162
|
return n.updateCamera(
|
|
5163
5163
|
x({
|
|
@@ -5202,13 +5202,13 @@ class Nn extends br {
|
|
|
5202
5202
|
});
|
|
5203
5203
|
}
|
|
5204
5204
|
}
|
|
5205
|
-
function
|
|
5205
|
+
function Us(n, t = ii.Linear.None) {
|
|
5206
5206
|
const e = new Nn({ progress: 0 }).to({ progress: 1 });
|
|
5207
5207
|
return n !== void 0 && e.duration(n), t !== void 0 && e.easing(t), e;
|
|
5208
5208
|
}
|
|
5209
5209
|
const Hn = window.requestAnimationFrame || ((n) => setTimeout(n, 16)), EA = window.cancelAnimationFrame || clearTimeout;
|
|
5210
|
-
function
|
|
5211
|
-
t <= 0 ? Hn(n) : Hn(() =>
|
|
5210
|
+
function so(n, t = 0) {
|
|
5211
|
+
t <= 0 ? Hn(n) : Hn(() => so(n, t - 1));
|
|
5212
5212
|
}
|
|
5213
5213
|
function MA() {
|
|
5214
5214
|
return G(this, null, function* () {
|
|
@@ -5299,7 +5299,7 @@ const _x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5299
5299
|
PointSelectorHelper: Kf,
|
|
5300
5300
|
Rectangle: Jp,
|
|
5301
5301
|
absoluteUrl: Nl,
|
|
5302
|
-
animeMap:
|
|
5302
|
+
animeMap: Ts,
|
|
5303
5303
|
awaitNextFrame: MA,
|
|
5304
5304
|
blink: Er,
|
|
5305
5305
|
bounding: jl,
|
|
@@ -5320,12 +5320,12 @@ const _x = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
|
5320
5320
|
isPanoramaLike: Ji,
|
|
5321
5321
|
lookObject: PA,
|
|
5322
5322
|
lookPoint: im,
|
|
5323
|
-
nextFrame:
|
|
5323
|
+
nextFrame: so,
|
|
5324
5324
|
notNil: ke,
|
|
5325
5325
|
pointInPolygon: zc,
|
|
5326
5326
|
reblink: tm,
|
|
5327
5327
|
requestAnimationFrameInterval: ns,
|
|
5328
|
-
tweenProgress:
|
|
5328
|
+
tweenProgress: Us,
|
|
5329
5329
|
uuid: at,
|
|
5330
5330
|
worldBounding: Cr,
|
|
5331
5331
|
worldBoundingBox: Cv,
|
|
@@ -5518,8 +5518,8 @@ class RA extends rm {
|
|
|
5518
5518
|
}), super.add(...e), this;
|
|
5519
5519
|
}
|
|
5520
5520
|
}
|
|
5521
|
-
const FA = 3, ll = "CSS3DRenderer",
|
|
5522
|
-
console.error(`${
|
|
5521
|
+
const FA = 3, ll = "CSS3DRenderer", Ls = `${ll}@${FA}`, Cn = () => {
|
|
5522
|
+
console.error(`${Ls} is disposed`);
|
|
5523
5523
|
}, nt = {
|
|
5524
5524
|
css3DObjects: [],
|
|
5525
5525
|
frontModeStore: {
|
|
@@ -5538,7 +5538,7 @@ function NA(n) {
|
|
|
5538
5538
|
function HA(n) {
|
|
5539
5539
|
nt.behindModeStore.css3DRenderer.setWrapper(n);
|
|
5540
5540
|
}
|
|
5541
|
-
class
|
|
5541
|
+
class Ys {
|
|
5542
5542
|
// eslint-disable-next-line @typescript-eslint/no-useless-constructor
|
|
5543
5543
|
constructor(t) {
|
|
5544
5544
|
d(this, "hooks", new ht());
|
|
@@ -5601,7 +5601,7 @@ class Xs {
|
|
|
5601
5601
|
return Object.assign(k, i);
|
|
5602
5602
|
})(), o = e.map(He);
|
|
5603
5603
|
if ((o == null ? void 0 : o.length) < 4)
|
|
5604
|
-
return console.error(`${
|
|
5604
|
+
return console.error(`${Ls}: requires 4 point but params may have fewer`);
|
|
5605
5605
|
const { ratio: r, devicePixelRatio: a, mode: l, autoRender: c, container: h, pointerEvents: u, wrapperStyle: f } = s;
|
|
5606
5606
|
let m = !1;
|
|
5607
5607
|
const v = this.createObject(o, { ratio: r, dpr: a, container: h, mode: l, pointerEvents: u, wrapperStyle: f });
|
|
@@ -5719,7 +5719,7 @@ class Xs {
|
|
|
5719
5719
|
if (t) {
|
|
5720
5720
|
const o = (s = nt.behindModeStore.scene) != null ? s : this.scene;
|
|
5721
5721
|
if (!o) {
|
|
5722
|
-
console.error(`${
|
|
5722
|
+
console.error(`${Ls}: scene is required when mode is behind`);
|
|
5723
5723
|
return;
|
|
5724
5724
|
}
|
|
5725
5725
|
const r = new BA(o);
|
|
@@ -5745,13 +5745,13 @@ class Xs {
|
|
|
5745
5745
|
if (this.getFrontCSS3DObjectGroup({ addGroupIfNotExists: !1 }).CSS3DObjectLength > 0) {
|
|
5746
5746
|
const s = this.getFrontCSS3DScene({ createSceneIfNotExists: !0 });
|
|
5747
5747
|
if (!s)
|
|
5748
|
-
return console.error(`${
|
|
5748
|
+
return console.error(`${Ls}: css3DScene is required when mode is front`);
|
|
5749
5749
|
nt.frontModeStore.css3DRenderer.renderEveryFrame(s, t);
|
|
5750
5750
|
}
|
|
5751
5751
|
if (((i = (e = this.getBehindCSS3DObjectGroup({ addGroupIfNotExists: !1 })) == null ? void 0 : e.CSS3DObjectLength) != null ? i : 0) > 0) {
|
|
5752
5752
|
const s = this.getBehindCSS3DScene({ createSceneIfNotExists: !0 });
|
|
5753
5753
|
if (!s)
|
|
5754
|
-
return console.error(`${
|
|
5754
|
+
return console.error(`${Ls}: css3DScene is required when mode is behind`);
|
|
5755
5755
|
nt.behindModeStore.css3DRenderer.renderEveryFrame(s, t);
|
|
5756
5756
|
}
|
|
5757
5757
|
}
|
|
@@ -5783,9 +5783,9 @@ class Xs {
|
|
|
5783
5783
|
this.handleDisable();
|
|
5784
5784
|
}
|
|
5785
5785
|
}
|
|
5786
|
-
d(
|
|
5786
|
+
d(Ys, "setFrontModeContainer", NA), d(Ys, "setBehindModeContainer", HA);
|
|
5787
5787
|
const am = "v2.0.1", Yc = `CSS3DRenderPlugin@${am}`;
|
|
5788
|
-
let _A = class extends
|
|
5788
|
+
let _A = class extends Ys {
|
|
5789
5789
|
constructor(e) {
|
|
5790
5790
|
super();
|
|
5791
5791
|
d(this, "five");
|
|
@@ -5980,9 +5980,9 @@ function li(n) {
|
|
|
5980
5980
|
function ce(n, t) {
|
|
5981
5981
|
return n != n ? t == t : n !== t || n && typeof n == "object" || typeof n == "function";
|
|
5982
5982
|
}
|
|
5983
|
-
let
|
|
5983
|
+
let Do;
|
|
5984
5984
|
function dt(n, t) {
|
|
5985
|
-
return
|
|
5985
|
+
return Do || (Do = document.createElement("a")), Do.href = t, n === Do.href;
|
|
5986
5986
|
}
|
|
5987
5987
|
function GA(n) {
|
|
5988
5988
|
return Object.keys(n).length === 0;
|
|
@@ -6123,17 +6123,17 @@ function Te(n, t) {
|
|
|
6123
6123
|
function L(n, t, e, i) {
|
|
6124
6124
|
e === null ? n.style.removeProperty(t) : n.style.setProperty(t, e, i ? "important" : "");
|
|
6125
6125
|
}
|
|
6126
|
-
let
|
|
6126
|
+
let So;
|
|
6127
6127
|
function XA() {
|
|
6128
|
-
if (
|
|
6129
|
-
|
|
6128
|
+
if (So === void 0) {
|
|
6129
|
+
So = !1;
|
|
6130
6130
|
try {
|
|
6131
6131
|
typeof window != "undefined" && window.parent && window.parent.document;
|
|
6132
6132
|
} catch (n) {
|
|
6133
|
-
|
|
6133
|
+
So = !0;
|
|
6134
6134
|
}
|
|
6135
6135
|
}
|
|
6136
|
-
return
|
|
6136
|
+
return So;
|
|
6137
6137
|
}
|
|
6138
6138
|
function Ul(n, t) {
|
|
6139
6139
|
getComputedStyle(n).position === "static" && (n.style.position = "relative");
|
|
@@ -6222,14 +6222,14 @@ function qA() {
|
|
|
6222
6222
|
}), tr.clear());
|
|
6223
6223
|
});
|
|
6224
6224
|
}
|
|
6225
|
-
let
|
|
6225
|
+
let Xs;
|
|
6226
6226
|
function vi(n) {
|
|
6227
|
-
|
|
6227
|
+
Xs = n;
|
|
6228
6228
|
}
|
|
6229
6229
|
function Vi() {
|
|
6230
|
-
if (!
|
|
6230
|
+
if (!Xs)
|
|
6231
6231
|
throw new Error("Function called outside component initialization");
|
|
6232
|
-
return
|
|
6232
|
+
return Xs;
|
|
6233
6233
|
}
|
|
6234
6234
|
function mm(n) {
|
|
6235
6235
|
Vi().$$.before_update.push(n);
|
|
@@ -6287,7 +6287,7 @@ let Pn = 0;
|
|
|
6287
6287
|
function Xl() {
|
|
6288
6288
|
if (Pn !== 0)
|
|
6289
6289
|
return;
|
|
6290
|
-
const n =
|
|
6290
|
+
const n = Xs;
|
|
6291
6291
|
do {
|
|
6292
6292
|
try {
|
|
6293
6293
|
for (; Pn < kn.length; ) {
|
|
@@ -6581,7 +6581,7 @@ function t0(n, t) {
|
|
|
6581
6581
|
n.$$.dirty[0] === -1 && (kn.push(n), vm(), n.$$.dirty.fill(0)), n.$$.dirty[t / 31 | 0] |= 1 << t % 31;
|
|
6582
6582
|
}
|
|
6583
6583
|
function he(n, t, e, i, s, o, r, a = [-1]) {
|
|
6584
|
-
const l =
|
|
6584
|
+
const l = Xs;
|
|
6585
6585
|
vi(n);
|
|
6586
6586
|
const c = n.$$ = {
|
|
6587
6587
|
fragment: null,
|
|
@@ -12788,7 +12788,7 @@ function Lm(n, t) {
|
|
|
12788
12788
|
var i;
|
|
12789
12789
|
if (e.type === "Mesh") {
|
|
12790
12790
|
const s = e, o = x({ map: s.material.map || {} }, t);
|
|
12791
|
-
s.material = new
|
|
12791
|
+
s.material = new Gs(o), s.renderOrder = 1, ((i = e.parent) == null ? void 0 : i.type) === "Mesh" && (e.renderOrder = e.parent.renderOrder + 1);
|
|
12792
12792
|
}
|
|
12793
12793
|
});
|
|
12794
12794
|
}
|
|
@@ -12864,7 +12864,7 @@ const U1 = ({ x: n, y: t, z: e }) => new ae(n, t, e), cD = (n, t) => {
|
|
|
12864
12864
|
if (!V)
|
|
12865
12865
|
return Promise.reject(new Error(`ModelEntryDoorGuidePlugin.load(): textMesh is ${V}`));
|
|
12866
12866
|
const U = (Z = t.name) != null ? Z : "入户门";
|
|
12867
|
-
return V.material = new
|
|
12867
|
+
return V.material = new Gs({ transparent: !0, map: W1(U) }), V.renderOrder = 3, T.children[0].add(V), e.object = T, !0;
|
|
12868
12868
|
}), c = () => {
|
|
12869
12869
|
if (e.animation)
|
|
12870
12870
|
return;
|
|
@@ -12905,7 +12905,7 @@ const U1 = ({ x: n, y: t, z: e }) => new ae(n, t, e), cD = (n, t) => {
|
|
|
12905
12905
|
}, Y1 = ii;
|
|
12906
12906
|
function X1(n, t, e, i = Y1.Linear.None) {
|
|
12907
12907
|
const s = new br(n).to(t, e).easing(i);
|
|
12908
|
-
|
|
12908
|
+
so(() => s.start(0));
|
|
12909
12909
|
const o = ns((a) => {
|
|
12910
12910
|
s.update(a) === !1 && o();
|
|
12911
12911
|
}), r = [];
|
|
@@ -13010,13 +13010,13 @@ function zm(n, t, e) {
|
|
|
13010
13010
|
const i = cr(n[1], n[0]), s = cr(t[1], t[0]);
|
|
13011
13011
|
if (isNaN(i) || isNaN(s) || jm(i, s))
|
|
13012
13012
|
return !1;
|
|
13013
|
-
if (
|
|
13013
|
+
if (To(n[0], t))
|
|
13014
13014
|
return n[0];
|
|
13015
|
-
if (
|
|
13015
|
+
if (To(n[1], t))
|
|
13016
13016
|
return n[1];
|
|
13017
|
-
if (
|
|
13017
|
+
if (To(t[0], n))
|
|
13018
13018
|
return t[0];
|
|
13019
|
-
if (
|
|
13019
|
+
if (To(t[1], n))
|
|
13020
13020
|
return t[1];
|
|
13021
13021
|
if (e && !K1(n, t))
|
|
13022
13022
|
return !1;
|
|
@@ -13028,7 +13028,7 @@ function zm(n, t, e) {
|
|
|
13028
13028
|
const a = (r.y - o.y + i * o.x - s * r.x) / (i - s), l = i * a - i * o.x + o.y;
|
|
13029
13029
|
return { x: a, y: l };
|
|
13030
13030
|
}
|
|
13031
|
-
function
|
|
13031
|
+
function To(n, t) {
|
|
13032
13032
|
return Vh(n, t[0]) || Vh(n, t[1]) ? !0 : (t[0].x - n.x) * (n.x - t[1].x) >= 0 && (t[0].y - n.y) * (n.y - t[1].y) >= 0 && jm(cr(t[0], n), cr(n, t[1]));
|
|
13033
13033
|
}
|
|
13034
13034
|
function q1(n) {
|
|
@@ -13037,11 +13037,11 @@ function q1(n) {
|
|
|
13037
13037
|
t = Math.min(t, o.x), e = Math.max(e, o.x), i = Math.min(i, o.y), s = Math.max(s, o.y);
|
|
13038
13038
|
}), { x: (t + e) / 2, y: (i + s) / 2 };
|
|
13039
13039
|
}
|
|
13040
|
-
function
|
|
13040
|
+
function Lo(n, t, e) {
|
|
13041
13041
|
return (n.x - e.x) * (t.y - e.y) - (t.x - e.x) * (n.y - e.y);
|
|
13042
13042
|
}
|
|
13043
13043
|
function K1(n, t) {
|
|
13044
|
-
return Math.max(n[0].x, n[1].x) >= Math.min(t[0].x, t[1].x) && Math.max(t[0].x, t[1].x) >= Math.min(n[0].x, n[1].x) && Math.max(n[0].y, n[1].y) >= Math.min(t[0].y, t[1].y) &&
|
|
13044
|
+
return Math.max(n[0].x, n[1].x) >= Math.min(t[0].x, t[1].x) && Math.max(t[0].x, t[1].x) >= Math.min(n[0].x, n[1].x) && Math.max(n[0].y, n[1].y) >= Math.min(t[0].y, t[1].y) && Lo(t[0], n[1], n[0]) * Lo(n[1], t[1], n[0]) > 0 && Lo(n[0], t[1], t[0]) * Lo(t[1], n[1], t[0]) > 0 ? 1 : 0;
|
|
13045
13045
|
}
|
|
13046
13046
|
function Om(n, t = 0) {
|
|
13047
13047
|
t <= 0 ? requestAnimationFrame(n) : requestAnimationFrame(() => Om(n, t - 1));
|
|
@@ -13736,7 +13736,7 @@ function cy(n, t, e) {
|
|
|
13736
13736
|
};
|
|
13737
13737
|
});
|
|
13738
13738
|
e(0, r = N);
|
|
13739
|
-
}, m = () =>
|
|
13739
|
+
}, m = () => so(f), v = sc(f, 80);
|
|
13740
13740
|
return kt(() => {
|
|
13741
13741
|
f(), i.on("panoArrived", f), i.on("modeChange", f), i.on("cameraDirectionUpdate", m), i.on("movingToPano", m), i.on("mouseWheel", () => v()), i.on("pinchGesture", () => v());
|
|
13742
13742
|
}), Rt(() => {
|
|
@@ -13849,7 +13849,7 @@ function Bm(n) {
|
|
|
13849
13849
|
});
|
|
13850
13850
|
});
|
|
13851
13851
|
}
|
|
13852
|
-
const
|
|
13852
|
+
const jo = { userAction: !0 };
|
|
13853
13853
|
class gy extends wi {
|
|
13854
13854
|
constructor(e, i) {
|
|
13855
13855
|
super(e, i);
|
|
@@ -13933,10 +13933,10 @@ class gy extends wi {
|
|
|
13933
13933
|
d(this, "onFivePanoArrived", (e) => {
|
|
13934
13934
|
var s, o, r, a, l, c, h, u;
|
|
13935
13935
|
const i = (r = (o = (s = this.five.work) == null ? void 0 : s.observers) == null ? void 0 : o[e]) == null ? void 0 : r.standingPosition;
|
|
13936
|
-
if (this.compassMesh && i && (this.compassMesh.position.copy(i.clone().setY(i.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween =
|
|
13936
|
+
if (this.compassMesh && i && (this.compassMesh.position.copy(i.clone().setY(i.y + 0.01)), this.compassMesh.material.opacity === 0 && ((a = this.compassMeshTween) == null || a.dispose(), this.compassMeshTween = Us(1e3).onUpdate(({ progress: f }) => {
|
|
13937
13937
|
var m;
|
|
13938
13938
|
(m = this.compassMesh) == null || m.material.setValues({ opacity: f }), this.five.needsRender = !0;
|
|
13939
|
-
}).play())), this.logoMesh && i && (this.logoMesh.position.copy(i.clone().setY(i.y + 0.011)), this.logoMesh.material.opacity === 0 && ((l = this.logoMeshTween) == null || l.dispose(), this.logoMeshTween =
|
|
13939
|
+
}).play())), this.logoMesh && i && (this.logoMesh.position.copy(i.clone().setY(i.y + 0.011)), this.logoMesh.material.opacity === 0 && ((l = this.logoMeshTween) == null || l.dispose(), this.logoMeshTween = Us(1e3).onUpdate(({ progress: f }) => {
|
|
13940
13940
|
var m;
|
|
13941
13941
|
(m = this.logoMesh) == null || m.material.setValues({ opacity: f }), this.five.needsRender = !0;
|
|
13942
13942
|
}).play())), this.entryDoorMesh) {
|
|
@@ -13972,7 +13972,7 @@ class gy extends wi {
|
|
|
13972
13972
|
* 启用插件,响应用户操作并展示UI
|
|
13973
13973
|
* @param options
|
|
13974
13974
|
*/
|
|
13975
|
-
enable(e =
|
|
13975
|
+
enable(e = jo) {
|
|
13976
13976
|
this.setState(
|
|
13977
13977
|
{
|
|
13978
13978
|
enabled: !0
|
|
@@ -13984,7 +13984,7 @@ class gy extends wi {
|
|
|
13984
13984
|
* 禁用插件,禁止响应用户操作并隐藏UI
|
|
13985
13985
|
* @param options
|
|
13986
13986
|
*/
|
|
13987
|
-
disable(e =
|
|
13987
|
+
disable(e = jo) {
|
|
13988
13988
|
this.setState(
|
|
13989
13989
|
{
|
|
13990
13990
|
enabled: !1
|
|
@@ -13998,7 +13998,7 @@ class gy extends wi {
|
|
|
13998
13998
|
* @returns
|
|
13999
13999
|
* @todo 需要考虑动画
|
|
14000
14000
|
*/
|
|
14001
|
-
show(e =
|
|
14001
|
+
show(e = jo) {
|
|
14002
14002
|
if (this.state.enabled)
|
|
14003
14003
|
return this.setState(
|
|
14004
14004
|
{
|
|
@@ -14013,7 +14013,7 @@ class gy extends wi {
|
|
|
14013
14013
|
* @returns
|
|
14014
14014
|
* @todo 需要考虑动画
|
|
14015
14015
|
*/
|
|
14016
|
-
hide(e =
|
|
14016
|
+
hide(e = jo) {
|
|
14017
14017
|
if (this.state.enabled)
|
|
14018
14018
|
return this.setState(
|
|
14019
14019
|
{
|
|
@@ -14337,7 +14337,7 @@ let Yn = class Fm {
|
|
|
14337
14337
|
return new Nm(this.position);
|
|
14338
14338
|
}
|
|
14339
14339
|
};
|
|
14340
|
-
const
|
|
14340
|
+
const zo = (n) => n.preventDefault();
|
|
14341
14341
|
class Tr {
|
|
14342
14342
|
constructor(t) {
|
|
14343
14343
|
d(this, "model");
|
|
@@ -14373,7 +14373,7 @@ class Tr {
|
|
|
14373
14373
|
helper: x({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
|
|
14374
14374
|
}), this.container = t.container, this.isMobile = (o = (s = t.openParams) == null ? void 0 : s.isMobile) != null ? o : !1, this.workUtil = t.workUtil, this.userDistanceItemCreator = t.userDistanceItemCreator, this.group = t.group, this.mouseGroup = t.mouseGroup, this.dashed = new Yn(new Ot([0, 0, 0]), new Ot([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new Yn(new Ot([0, 0, 0]), new Ot([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new es(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
14375
14375
|
const e = this.five.getElement();
|
|
14376
|
-
e && (e.addEventListener("touchstart",
|
|
14376
|
+
e && (e.addEventListener("touchstart", zo), e.addEventListener("contextmenu", zo));
|
|
14377
14377
|
}
|
|
14378
14378
|
get currentMeasureType() {
|
|
14379
14379
|
return this.getMeasureType();
|
|
@@ -14396,7 +14396,7 @@ class Tr {
|
|
|
14396
14396
|
var e;
|
|
14397
14397
|
this.disposed = !0, (e = this.magnifier) == null || e.disable(), this.model.getAllLines().forEach((i) => this.removeLine(i)), this.model.areas.forEach((i) => i.remove());
|
|
14398
14398
|
const t = this.five.getElement();
|
|
14399
|
-
t && (t.removeEventListener("touchstart",
|
|
14399
|
+
t && (t.removeEventListener("touchstart", zo), t.removeEventListener("contextmenu", zo));
|
|
14400
14400
|
}
|
|
14401
14401
|
}
|
|
14402
14402
|
let Xn = class {
|
|
@@ -14511,7 +14511,7 @@ let Xn = class {
|
|
|
14511
14511
|
this.id = t.id, this.clear(), this.lines.push(...t.lines);
|
|
14512
14512
|
}
|
|
14513
14513
|
};
|
|
14514
|
-
function
|
|
14514
|
+
function oo(n, t) {
|
|
14515
14515
|
if (n.length < 3) {
|
|
14516
14516
|
console.error("points.length < 3");
|
|
14517
14517
|
return;
|
|
@@ -14522,7 +14522,7 @@ function ro(n, t) {
|
|
|
14522
14522
|
function Ty(n) {
|
|
14523
14523
|
if (n.length < 3)
|
|
14524
14524
|
return [];
|
|
14525
|
-
const t =
|
|
14525
|
+
const t = oo([n[0].clone(), n[1].clone(), n[2].clone()]), e = new y.Quaternion().setFromUnitVectors(new y.Vector3(0, 1, 0), t), s = n.map((r) => r.clone().applyQuaternion(e)).flatMap((r) => [r.x, r.z]);
|
|
14526
14526
|
return Ip(s);
|
|
14527
14527
|
}
|
|
14528
14528
|
function Hm(n) {
|
|
@@ -14732,8 +14732,8 @@ function Qh(n, t) {
|
|
|
14732
14732
|
const s = e[i], o = n.start, r = n.end, a = s.start, l = s.end;
|
|
14733
14733
|
if (ks(o, a) || ks(o, l) || ks(r, a) || ks(r, l) || ks(o, r))
|
|
14734
14734
|
continue;
|
|
14735
|
-
const c =
|
|
14736
|
-
if (c !== h && u !== f || c === 0 &&
|
|
14735
|
+
const c = Oo(o, r, a), h = Oo(o, r, l), u = Oo(a, l, o), f = Oo(a, l, r);
|
|
14736
|
+
if (c !== h && u !== f || c === 0 && Bo(o, r, a) || h === 0 && Bo(o, r, l) || u === 0 && Bo(a, l, o) || f === 0 && Bo(a, l, r))
|
|
14737
14737
|
return !0;
|
|
14738
14738
|
}
|
|
14739
14739
|
return !1;
|
|
@@ -14741,11 +14741,11 @@ function Qh(n, t) {
|
|
|
14741
14741
|
function ks(n, t) {
|
|
14742
14742
|
return n.x === t.x && n.z === t.z && n.y === t.y;
|
|
14743
14743
|
}
|
|
14744
|
-
function
|
|
14744
|
+
function Oo(n, t, e) {
|
|
14745
14745
|
const i = (e.z - n.z) * (t.x - n.x) - (t.z - n.z) * (e.x - n.x);
|
|
14746
14746
|
return i === 0 ? 0 : i < 0 ? 2 : 1;
|
|
14747
14747
|
}
|
|
14748
|
-
function
|
|
14748
|
+
function Bo(n, t, e) {
|
|
14749
14749
|
return t.x <= Math.max(n.x, e.x) && t.x >= Math.min(n.x, e.x) && t.z <= Math.max(n.z, e.z) && t.z >= Math.min(n.z, e.z);
|
|
14750
14750
|
}
|
|
14751
14751
|
const By = `
|
|
@@ -15478,23 +15478,23 @@ function Um(n) {
|
|
|
15478
15478
|
e && n.ballColor >= 0 && (i = n.ballColor);
|
|
15479
15479
|
const s = new zn(), o = new cp(0.3, 0.3), r = t ? _y : Qy, a = new Df().load(r);
|
|
15480
15480
|
a.encoding = hp, a.minFilter = el;
|
|
15481
|
-
const l = new
|
|
15481
|
+
const l = new Gs({
|
|
15482
15482
|
map: a,
|
|
15483
15483
|
transparent: !0,
|
|
15484
15484
|
depthTest: !1
|
|
15485
|
-
}), c = new
|
|
15485
|
+
}), c = new Bs(o, l), h = new dp();
|
|
15486
15486
|
h.add(new up(new ae(0, 0, 0), new ae(0, 0, 0.1)));
|
|
15487
15487
|
const u = new fp(h, 8, 3e-3), f = new Sf({
|
|
15488
15488
|
vertexShader: Gy,
|
|
15489
15489
|
fragmentShader: Wy,
|
|
15490
15490
|
depthTest: !1,
|
|
15491
15491
|
transparent: !0
|
|
15492
|
-
}), m = new
|
|
15492
|
+
}), m = new Bs(u, f), v = new mp(0.01, 20, 20), p = new Gs({
|
|
15493
15493
|
color: i,
|
|
15494
15494
|
depthTest: !1,
|
|
15495
15495
|
transparent: !0,
|
|
15496
15496
|
side: Tf
|
|
15497
|
-
}), g = new
|
|
15497
|
+
}), g = new Bs(v, p);
|
|
15498
15498
|
return g.position.set(0, 0, 0.1), s.name = "mouse-current", s.add(c), e && s.add(m, g), s;
|
|
15499
15499
|
}
|
|
15500
15500
|
class Uy {
|
|
@@ -15545,9 +15545,9 @@ class Uy {
|
|
|
15545
15545
|
const t = Wt(this.five).intersectRaycaster(this.raycaster)[0];
|
|
15546
15546
|
return t || null;
|
|
15547
15547
|
});
|
|
15548
|
-
this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = Um(x({ isMobile: !0 }, t.openParams.crossHairParameter)), this.container.innerHTML = sv, this.container.classList.add("range-piece-controller"), this.content = this.container.querySelector(".range-piece__content"), this.content && (this.content.style.transform = `matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`, this.content.style.opacity = `${this.pieceStyl.opacity}`), t.container.append(this.container), this.intersectMesh = new
|
|
15548
|
+
this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = Um(x({ isMobile: !0 }, t.openParams.crossHairParameter)), this.container.innerHTML = sv, this.container.classList.add("range-piece-controller"), this.content = this.container.querySelector(".range-piece__content"), this.content && (this.content.style.transform = `matrix3d(${this.pieceStyl.matrix3d.toString()}) scale(${this.pieceStyl.scale})`, this.content.style.opacity = `${this.pieceStyl.opacity}`), t.container.append(this.container), this.intersectMesh = new Bs(
|
|
15549
15549
|
new gp(0.04, 0.08, 32),
|
|
15550
|
-
new
|
|
15550
|
+
new Gs({ color: 1245179, opacity: 0, side: Tf, transparent: !0 })
|
|
15551
15551
|
), this.container.addEventListener("animationend", this.computedCenterMouseXY), this.five.on("cameraUpdate", this.onCameraDirectionUpdate), this.hook.on("willChangeState", this.onWillChangeState);
|
|
15552
15552
|
}
|
|
15553
15553
|
dispose() {
|
|
@@ -18931,7 +18931,7 @@ const CD = (n, t) => {
|
|
|
18931
18931
|
name: "ModelItemLabelPlugin",
|
|
18932
18932
|
version: 0
|
|
18933
18933
|
};
|
|
18934
|
-
var
|
|
18934
|
+
var js = /* @__PURE__ */ ((n) => (n.TOP_LEFT = "topLeft", n.TOP_RIGHT = "topRight", n.BOTTOM_LEFT = "bottomLeft", n.BOTTOM_RIGHT = "bottomRight", n))(js || {});
|
|
18935
18935
|
function uC(n) {
|
|
18936
18936
|
if (n.length === 0)
|
|
18937
18937
|
return [];
|
|
@@ -18940,10 +18940,10 @@ function uC(n) {
|
|
|
18940
18940
|
let t = [];
|
|
18941
18941
|
return n.forEach((e) => {
|
|
18942
18942
|
const i = [
|
|
18943
|
-
e[
|
|
18944
|
-
e[
|
|
18945
|
-
e[
|
|
18946
|
-
e[
|
|
18943
|
+
e[js.TOP_LEFT],
|
|
18944
|
+
e[js.BOTTOM_LEFT],
|
|
18945
|
+
e[js.BOTTOM_RIGHT],
|
|
18946
|
+
e[js.TOP_RIGHT]
|
|
18947
18947
|
];
|
|
18948
18948
|
t.push(i);
|
|
18949
18949
|
}), t;
|
|
@@ -20104,7 +20104,7 @@ jr.normal = function(t, e) {
|
|
|
20104
20104
|
jr.direction = function(t, e, i) {
|
|
20105
20105
|
return $C(t, e, i), ig(t, t), t;
|
|
20106
20106
|
};
|
|
20107
|
-
var fi = jr, Xi = [0, 0],
|
|
20107
|
+
var fi = jr, Xi = [0, 0], Vo = [0, 0], Td = [0, 0], Ds = [0, 0], tP = function(n, t) {
|
|
20108
20108
|
var e = null, i = [];
|
|
20109
20109
|
t && (n = n.slice(), n.push(n[0]));
|
|
20110
20110
|
for (var s = n.length, o = 1; o < s; o++) {
|
|
@@ -20112,15 +20112,15 @@ var fi = jr, Xi = [0, 0], Ro = [0, 0], Td = [0, 0], Ds = [0, 0], tP = function(n
|
|
|
20112
20112
|
if (fi.direction(Xi, a, r), e || (e = [0, 0], fi.normal(e, Xi)), o === 1 && Fa(i, e, 1), !l)
|
|
20113
20113
|
fi.normal(e, Xi), Fa(i, e, 1);
|
|
20114
20114
|
else {
|
|
20115
|
-
fi.direction(
|
|
20116
|
-
var c = fi.computeMiter(Td, Ds, Xi,
|
|
20115
|
+
fi.direction(Vo, l, a);
|
|
20116
|
+
var c = fi.computeMiter(Td, Ds, Xi, Vo, 1);
|
|
20117
20117
|
Fa(i, Ds, c);
|
|
20118
20118
|
}
|
|
20119
20119
|
}
|
|
20120
20120
|
if (n.length > 2 && t) {
|
|
20121
20121
|
var h = n[s - 2], u = n[0], f = n[1];
|
|
20122
|
-
fi.direction(Xi, u, h), fi.direction(
|
|
20123
|
-
var m = fi.computeMiter(Td, Ds, Xi,
|
|
20122
|
+
fi.direction(Xi, u, h), fi.direction(Vo, f, u), fi.normal(e, Xi);
|
|
20123
|
+
var m = fi.computeMiter(Td, Ds, Xi, Vo, 1);
|
|
20124
20124
|
i[0][0] = Ds.slice(), i[s - 1][0] = Ds.slice(), i[0][1] = m, i[s - 1][1] = m, i.pop();
|
|
20125
20125
|
}
|
|
20126
20126
|
return i;
|
|
@@ -20338,7 +20338,7 @@ function mP(n) {
|
|
|
20338
20338
|
function yl(n) {
|
|
20339
20339
|
const t = (() => {
|
|
20340
20340
|
if (ni(n) && n.matrix) {
|
|
20341
|
-
const e = new
|
|
20341
|
+
const e = new Os().fromArray(n.matrix);
|
|
20342
20342
|
return n.data.mediaPosition.map((i) => He(i).clone().applyMatrix4(e));
|
|
20343
20343
|
} else
|
|
20344
20344
|
return n.position;
|
|
@@ -20349,7 +20349,7 @@ function Ld(n) {
|
|
|
20349
20349
|
const t = yl(n);
|
|
20350
20350
|
return ai(...Array.isArray(t) ? t : [t]);
|
|
20351
20351
|
}
|
|
20352
|
-
function
|
|
20352
|
+
function Ro(n, t) {
|
|
20353
20353
|
if (n === void 0)
|
|
20354
20354
|
return;
|
|
20355
20355
|
const { min: e, max: i } = t != null ? t : {};
|
|
@@ -20414,15 +20414,15 @@ function AP(n) {
|
|
|
20414
20414
|
extraData: n.extraData
|
|
20415
20415
|
}), n;
|
|
20416
20416
|
}
|
|
20417
|
-
const Jn = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=",
|
|
20417
|
+
const Jn = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=", Fs = {};
|
|
20418
20418
|
var hc = /* @__PURE__ */ ((n) => (n.Default = "default", n.GetAudioDuration = "getAudioDuration", n.PlayAudio = "playAudio", n))(hc || {});
|
|
20419
20419
|
function bP(n, t) {
|
|
20420
|
-
const e = (t == null ? void 0 : t.namespace) || "default", i =
|
|
20420
|
+
const e = (t == null ? void 0 : t.namespace) || "default", i = Fs[e] || (Fs[e] = []);
|
|
20421
20421
|
let s = i.find((o) => !o.realSrc || o.realSrc === Jn);
|
|
20422
|
-
return s || (console.warn("未找到缓存音频,已新建",
|
|
20422
|
+
return s || (console.warn("未找到缓存音频,已新建", Fs), s = new og(Jn), i.push(s)), n && (s.src = n), s;
|
|
20423
20423
|
}
|
|
20424
20424
|
function yP(n, t) {
|
|
20425
|
-
const e = (t == null ? void 0 : t.namespace) || "default", i =
|
|
20425
|
+
const e = (t == null ? void 0 : t.namespace) || "default", i = Fs[e] || (Fs[e] = []), s = n - i.length;
|
|
20426
20426
|
if (!(s <= 0))
|
|
20427
20427
|
for (let o = 0; o < s; o++)
|
|
20428
20428
|
i.push(new og(Jn));
|
|
@@ -20924,7 +20924,7 @@ class Zt extends de {
|
|
|
20924
20924
|
function xP() {
|
|
20925
20925
|
return Math.random().toString(36).slice(-6);
|
|
20926
20926
|
}
|
|
20927
|
-
const
|
|
20927
|
+
const Fo = xP();
|
|
20928
20928
|
function DP(n) {
|
|
20929
20929
|
me(n, "svelte-1b2n9wi", ".text-char.svelte-1b2n9wi{display:inline-block;text-shadow:0.125rem 0rem 0.5rem rgba(0, 0, 0, 0.15)}");
|
|
20930
20930
|
}
|
|
@@ -21081,7 +21081,7 @@ function jP(n) {
|
|
|
21081
21081
|
}
|
|
21082
21082
|
function zP(n, t, e) {
|
|
21083
21083
|
let i, { inDelay: s = 0 } = t, { outDelay: o = 0 } = t, { content: r } = t, { unfolded: a } = t, { isFistUnfoldedUpdate: l = !0 } = t;
|
|
21084
|
-
const c = `__EMOJI_SPLIT_${
|
|
21084
|
+
const c = `__EMOJI_SPLIT_${Fo}__`, h = `__EMOJI_${Fo}__`, u = `__SPACE_${Fo}__`, f = `__NEW_LINE_${Fo}__`;
|
|
21085
21085
|
let m, v, p = [];
|
|
21086
21086
|
function g(E) {
|
|
21087
21087
|
const T = [], V = new RegExp(new RegExp("\\p{Regional_Indicator}\\p{Regional_Indicator}|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?(\\u200D\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?)+|\\p{Emoji_Presentation}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)?|\\p{Emoji}(\\p{Emoji_Modifier}+|\\uFE0F\\u20E3?)", "gu"));
|
|
@@ -22974,7 +22974,7 @@ function iE({
|
|
|
22974
22974
|
total: i.head + i.tail
|
|
22975
22975
|
});
|
|
22976
22976
|
}
|
|
22977
|
-
const
|
|
22977
|
+
const Ns = (n, t, e) => {
|
|
22978
22978
|
if (n && n.hasOwnProperty(t))
|
|
22979
22979
|
return n[t];
|
|
22980
22980
|
if (e === void 0)
|
|
@@ -23001,7 +23001,7 @@ var AE = Array.prototype, bE = Function.prototype, fg = Object.prototype, _a = m
|
|
|
23001
23001
|
return n ? "Symbol(src)_1." + n : "";
|
|
23002
23002
|
}(), mg = bE.toString, gc = fg.hasOwnProperty, gg = fg.toString, yE = RegExp(
|
|
23003
23003
|
"^" + mg.call(gc).replace(dE, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
23004
|
-
), iu = mc.Symbol, wE = AE.splice, CE = pg(mc, "Map"),
|
|
23004
|
+
), iu = mc.Symbol, wE = AE.splice, CE = pg(mc, "Map"), Zs = pg(Object, "create"), nu = iu ? iu.prototype : void 0, su = nu ? nu.toString : void 0;
|
|
23005
23005
|
function an(n) {
|
|
23006
23006
|
var t = -1, e = n ? n.length : 0;
|
|
23007
23007
|
for (this.clear(); ++t < e; ) {
|
|
@@ -23010,14 +23010,14 @@ function an(n) {
|
|
|
23010
23010
|
}
|
|
23011
23011
|
}
|
|
23012
23012
|
function PE() {
|
|
23013
|
-
this.__data__ =
|
|
23013
|
+
this.__data__ = Zs ? Zs(null) : {};
|
|
23014
23014
|
}
|
|
23015
23015
|
function IE(n) {
|
|
23016
23016
|
return this.has(n) && delete this.__data__[n];
|
|
23017
23017
|
}
|
|
23018
23018
|
function EE(n) {
|
|
23019
23019
|
var t = this.__data__;
|
|
23020
|
-
if (
|
|
23020
|
+
if (Zs) {
|
|
23021
23021
|
var e = t[n];
|
|
23022
23022
|
return e === dg ? void 0 : e;
|
|
23023
23023
|
}
|
|
@@ -23025,11 +23025,11 @@ function EE(n) {
|
|
|
23025
23025
|
}
|
|
23026
23026
|
function ME(n) {
|
|
23027
23027
|
var t = this.__data__;
|
|
23028
|
-
return
|
|
23028
|
+
return Zs ? t[n] !== void 0 : gc.call(t, n);
|
|
23029
23029
|
}
|
|
23030
23030
|
function kE(n, t) {
|
|
23031
23031
|
var e = this.__data__;
|
|
23032
|
-
return e[n] =
|
|
23032
|
+
return e[n] = Zs && t === void 0 ? dg : t, this;
|
|
23033
23033
|
}
|
|
23034
23034
|
an.prototype.clear = PE;
|
|
23035
23035
|
an.prototype.delete = IE;
|
|
@@ -23214,7 +23214,7 @@ function KE(n, t, e) {
|
|
|
23214
23214
|
var i = n == null ? void 0 : RE(n, t);
|
|
23215
23215
|
return i === void 0 ? e : i;
|
|
23216
23216
|
}
|
|
23217
|
-
var
|
|
23217
|
+
var No = KE, ur = {}, $E = {
|
|
23218
23218
|
get exports() {
|
|
23219
23219
|
return ur;
|
|
23220
23220
|
},
|
|
@@ -23287,7 +23287,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23287
23287
|
return b ? "Symbol(src)_1." + b : "";
|
|
23288
23288
|
}(), Ie = ot.toString, Xe = Ze.hasOwnProperty, ft = Ze.toString, ds = RegExp(
|
|
23289
23289
|
"^" + Ie.call(Xe).replace(Y, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
23290
|
-
), Jt = Ge ? ge.Buffer : void 0, Pi = ge.Symbol, Hi = ge.Uint8Array, xt = Ce(Object.getPrototypeOf, Object), hn = Object.create, dn = Ze.propertyIsEnumerable, Br = _e.splice, us = Object.getOwnPropertySymbols, un = Jt ? Jt.isBuffer : void 0,
|
|
23290
|
+
), Jt = Ge ? ge.Buffer : void 0, Pi = ge.Symbol, Hi = ge.Uint8Array, xt = Ce(Object.getPrototypeOf, Object), hn = Object.create, dn = Ze.propertyIsEnumerable, Br = _e.splice, us = Object.getOwnPropertySymbols, un = Jt ? Jt.isBuffer : void 0, lo = Ce(Object.keys, Object), fn = Nt(ge, "DataView"), _i = Nt(ge, "Map"), Ft = Nt(ge, "Promise"), mn = Nt(ge, "Set"), fs = Nt(ge, "WeakMap"), Qi = Nt(Object, "create"), ms = Et(fn), Gi = Et(_i), gs = Et(Ft), ps = Et(mn), vs = Et(fs), Ii = Pi ? Pi.prototype : void 0, co = Ii ? Ii.valueOf : void 0;
|
|
23291
23291
|
function ci(b) {
|
|
23292
23292
|
var M = -1, R = b ? b.length : 0;
|
|
23293
23293
|
for (this.clear(); ++M < R; ) {
|
|
@@ -23309,7 +23309,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23309
23309
|
}
|
|
23310
23310
|
return Xe.call(M, b) ? M[b] : void 0;
|
|
23311
23311
|
}
|
|
23312
|
-
function
|
|
23312
|
+
function ho(b) {
|
|
23313
23313
|
var M = this.__data__;
|
|
23314
23314
|
return Qi ? M[b] !== void 0 : Xe.call(M, b);
|
|
23315
23315
|
}
|
|
@@ -23317,7 +23317,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23317
23317
|
var R = this.__data__;
|
|
23318
23318
|
return R[b] = Qi && M === void 0 ? i : M, this;
|
|
23319
23319
|
}
|
|
23320
|
-
ci.prototype.clear = Vr, ci.prototype.delete = Rr, ci.prototype.get = Fr, ci.prototype.has =
|
|
23320
|
+
ci.prototype.clear = Vr, ci.prototype.delete = Rr, ci.prototype.get = Fr, ci.prototype.has = ho, ci.prototype.set = As;
|
|
23321
23321
|
function mt(b) {
|
|
23322
23322
|
var M = -1, R = b ? b.length : 0;
|
|
23323
23323
|
for (this.clear(); ++M < R; ) {
|
|
@@ -23406,13 +23406,13 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23406
23406
|
(M || Xe.call(b, be)) && !(Me && (be == "length" || ma(be, X))) && R.push(be);
|
|
23407
23407
|
return R;
|
|
23408
23408
|
}
|
|
23409
|
-
function
|
|
23409
|
+
function uo(b, M, R) {
|
|
23410
23410
|
var X = b[M];
|
|
23411
|
-
(!(Xe.call(b, M) &&
|
|
23411
|
+
(!(Xe.call(b, M) && vo(X, R)) || R === void 0 && !(M in b)) && (b[M] = R);
|
|
23412
23412
|
}
|
|
23413
23413
|
function pn(b, M) {
|
|
23414
23414
|
for (var R = b.length; R--; )
|
|
23415
|
-
if (
|
|
23415
|
+
if (vo(b[R][0], M))
|
|
23416
23416
|
return R;
|
|
23417
23417
|
return -1;
|
|
23418
23418
|
}
|
|
@@ -23431,7 +23431,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23431
23431
|
return ca(b, Be);
|
|
23432
23432
|
} else {
|
|
23433
23433
|
var Fe = di(b), yt = Fe == h || Fe == u;
|
|
23434
|
-
if (
|
|
23434
|
+
if (Ao(b))
|
|
23435
23435
|
return vn(b, M);
|
|
23436
23436
|
if (Fe == v || Fe == o || yt && !be) {
|
|
23437
23437
|
if (et(b))
|
|
@@ -23451,7 +23451,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23451
23451
|
if (ze.set(b, Be), !it)
|
|
23452
23452
|
var rt = R ? da(b) : Is(b);
|
|
23453
23453
|
return Le(rt || b, function(wt, gt) {
|
|
23454
|
-
rt && (gt = wt, wt = b[gt]),
|
|
23454
|
+
rt && (gt = wt, wt = b[gt]), uo(Be, gt, bs(wt, M, R, X, gt, b, ze));
|
|
23455
23455
|
}), Be;
|
|
23456
23456
|
}
|
|
23457
23457
|
function ta(b) {
|
|
@@ -23471,8 +23471,8 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23471
23471
|
return M.test(Et(b));
|
|
23472
23472
|
}
|
|
23473
23473
|
function oa(b) {
|
|
23474
|
-
if (!
|
|
23475
|
-
return
|
|
23474
|
+
if (!go(b))
|
|
23475
|
+
return lo(b);
|
|
23476
23476
|
var M = [];
|
|
23477
23477
|
for (var R in Object(b))
|
|
23478
23478
|
Xe.call(b, R) && R != "constructor" && M.push(R);
|
|
@@ -23492,11 +23492,11 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23492
23492
|
var R = M ? ys(b.buffer) : b.buffer;
|
|
23493
23493
|
return new b.constructor(R, b.byteOffset, b.byteLength);
|
|
23494
23494
|
}
|
|
23495
|
-
function
|
|
23495
|
+
function fo(b, M, R) {
|
|
23496
23496
|
var X = M ? R(le(b), !0) : le(b);
|
|
23497
23497
|
return Ye(X, K, new b.constructor());
|
|
23498
23498
|
}
|
|
23499
|
-
function
|
|
23499
|
+
function mo(b) {
|
|
23500
23500
|
var M = new b.constructor(b.source, Z.exec(b));
|
|
23501
23501
|
return M.lastIndex = b.lastIndex, M;
|
|
23502
23502
|
}
|
|
@@ -23505,7 +23505,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23505
23505
|
return Ye(X, Ae, new b.constructor());
|
|
23506
23506
|
}
|
|
23507
23507
|
function aa(b) {
|
|
23508
|
-
return
|
|
23508
|
+
return co ? Object(co.call(b)) : {};
|
|
23509
23509
|
}
|
|
23510
23510
|
function la(b, M) {
|
|
23511
23511
|
var R = M ? ys(b.buffer) : b.buffer;
|
|
@@ -23521,7 +23521,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23521
23521
|
R || (R = {});
|
|
23522
23522
|
for (var Me = -1, be = M.length; ++Me < be; ) {
|
|
23523
23523
|
var ze = M[Me], Be = X ? X(R[ze], b[ze], ze, R, b) : void 0;
|
|
23524
|
-
|
|
23524
|
+
uo(R, ze, Be === void 0 ? b[ze] : Be);
|
|
23525
23525
|
}
|
|
23526
23526
|
return R;
|
|
23527
23527
|
}
|
|
@@ -23562,7 +23562,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23562
23562
|
return M && typeof b[0] == "string" && Xe.call(b, "index") && (R.index = b.index, R.input = b.input), R;
|
|
23563
23563
|
}
|
|
23564
23564
|
function Kt(b) {
|
|
23565
|
-
return typeof b.constructor == "function" && !
|
|
23565
|
+
return typeof b.constructor == "function" && !go(b) ? ta(xt(b)) : {};
|
|
23566
23566
|
}
|
|
23567
23567
|
function fa(b, M, R, X) {
|
|
23568
23568
|
var Me = b.constructor;
|
|
@@ -23585,12 +23585,12 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23585
23585
|
case F:
|
|
23586
23586
|
return la(b, X);
|
|
23587
23587
|
case f:
|
|
23588
|
-
return
|
|
23588
|
+
return fo(b, X, R);
|
|
23589
23589
|
case m:
|
|
23590
23590
|
case w:
|
|
23591
23591
|
return new Me(b);
|
|
23592
23592
|
case g:
|
|
23593
|
-
return
|
|
23593
|
+
return mo(b);
|
|
23594
23594
|
case A:
|
|
23595
23595
|
return ra(b, X, R);
|
|
23596
23596
|
case I:
|
|
@@ -23607,7 +23607,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23607
23607
|
function pa(b) {
|
|
23608
23608
|
return !!Se && Se in b;
|
|
23609
23609
|
}
|
|
23610
|
-
function
|
|
23610
|
+
function go(b) {
|
|
23611
23611
|
var M = b && b.constructor, R = typeof M == "function" && M.prototype || Ze;
|
|
23612
23612
|
return b === R;
|
|
23613
23613
|
}
|
|
@@ -23624,10 +23624,10 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23624
23624
|
}
|
|
23625
23625
|
return "";
|
|
23626
23626
|
}
|
|
23627
|
-
function
|
|
23627
|
+
function po(b) {
|
|
23628
23628
|
return bs(b, !0, !0);
|
|
23629
23629
|
}
|
|
23630
|
-
function
|
|
23630
|
+
function vo(b, M) {
|
|
23631
23631
|
return b === M || b !== b && M !== M;
|
|
23632
23632
|
}
|
|
23633
23633
|
function An(b) {
|
|
@@ -23635,24 +23635,24 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23635
23635
|
}
|
|
23636
23636
|
var Cs = Array.isArray;
|
|
23637
23637
|
function bn(b) {
|
|
23638
|
-
return b != null &&
|
|
23638
|
+
return b != null && bo(b.length) && !Ps(b);
|
|
23639
23639
|
}
|
|
23640
23640
|
function va(b) {
|
|
23641
|
-
return
|
|
23641
|
+
return yo(b) && bn(b);
|
|
23642
23642
|
}
|
|
23643
|
-
var
|
|
23643
|
+
var Ao = un || ba;
|
|
23644
23644
|
function Ps(b) {
|
|
23645
23645
|
var M = $t(b) ? ft.call(b) : "";
|
|
23646
23646
|
return M == h || M == u;
|
|
23647
23647
|
}
|
|
23648
|
-
function
|
|
23648
|
+
function bo(b) {
|
|
23649
23649
|
return typeof b == "number" && b > -1 && b % 1 == 0 && b <= s;
|
|
23650
23650
|
}
|
|
23651
23651
|
function $t(b) {
|
|
23652
23652
|
var M = typeof b;
|
|
23653
23653
|
return !!b && (M == "object" || M == "function");
|
|
23654
23654
|
}
|
|
23655
|
-
function
|
|
23655
|
+
function yo(b) {
|
|
23656
23656
|
return !!b && typeof b == "object";
|
|
23657
23657
|
}
|
|
23658
23658
|
function Is(b) {
|
|
@@ -23664,7 +23664,7 @@ var Ho = KE, ur = {}, $E = {
|
|
|
23664
23664
|
function ba() {
|
|
23665
23665
|
return !1;
|
|
23666
23666
|
}
|
|
23667
|
-
n.exports =
|
|
23667
|
+
n.exports = po;
|
|
23668
23668
|
})($E, ur);
|
|
23669
23669
|
const e2 = ur;
|
|
23670
23670
|
var fr = {}, t2 = {
|
|
@@ -23740,7 +23740,7 @@ var fr = {}, t2 = {
|
|
|
23740
23740
|
return b ? "Symbol(src)_1." + b : "";
|
|
23741
23741
|
}(), dn = Jt.toString, Br = RegExp(
|
|
23742
23742
|
"^" + Hi.call(xt).replace(ve, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
23743
|
-
), us = Ye ? Ae.Buffer : void 0, un = Ae.Symbol,
|
|
23743
|
+
), us = Ye ? Ae.Buffer : void 0, un = Ae.Symbol, lo = Ae.Uint8Array, fn = Jt.propertyIsEnumerable, _i = ft.splice, Ft = un ? un.toStringTag : void 0, mn = Object.getOwnPropertySymbols, fs = us ? us.isBuffer : void 0, Qi = Ie(Object.keys, Object), ms = hi(Ae, "DataView"), Gi = hi(Ae, "Map"), gs = hi(Ae, "Promise"), ps = hi(Ae, "Set"), vs = hi(Ae, "WeakMap"), Ii = hi(Object, "create"), co = Et(ms), ci = Et(Gi), Vr = Et(gs), Rr = Et(ps), Fr = Et(vs), ho = un ? un.prototype : void 0, As = ho ? ho.valueOf : void 0;
|
|
23744
23744
|
function mt(b) {
|
|
23745
23745
|
var M = -1, R = b == null ? 0 : b.length;
|
|
23746
23746
|
for (this.clear(); ++M < R; ) {
|
|
@@ -23835,13 +23835,13 @@ var fr = {}, t2 = {
|
|
|
23835
23835
|
for (this.__data__ = new Dt(); ++M < R; )
|
|
23836
23836
|
this.add(b[M]);
|
|
23837
23837
|
}
|
|
23838
|
-
function
|
|
23838
|
+
function uo(b) {
|
|
23839
23839
|
return this.__data__.set(b, i), this;
|
|
23840
23840
|
}
|
|
23841
23841
|
function pn(b) {
|
|
23842
23842
|
return this.__data__.has(b);
|
|
23843
23843
|
}
|
|
23844
|
-
gn.prototype.add = gn.prototype.push =
|
|
23844
|
+
gn.prototype.add = gn.prototype.push = uo, gn.prototype.has = pn;
|
|
23845
23845
|
function qt(b) {
|
|
23846
23846
|
var M = this.__data__ = new bt(b);
|
|
23847
23847
|
this.size = M.size;
|
|
@@ -23871,7 +23871,7 @@ var fr = {}, t2 = {
|
|
|
23871
23871
|
}
|
|
23872
23872
|
qt.prototype.clear = bs, qt.prototype.delete = ta, qt.prototype.get = ia, qt.prototype.has = na, qt.prototype.set = sa;
|
|
23873
23873
|
function oa(b, M) {
|
|
23874
|
-
var R = An(b), X = !R &&
|
|
23874
|
+
var R = An(b), X = !R && vo(b), Me = !R && !X && bn(b), be = !R && !X && !Me && yo(b), ze = R || X || Me || be, Be = ze ? _e(b.length, String) : [], it = Be.length;
|
|
23875
23875
|
for (var Fe in b)
|
|
23876
23876
|
(M || xt.call(b, Fe)) && !(ze && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
23877
23877
|
(Fe == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -23882,7 +23882,7 @@ var fr = {}, t2 = {
|
|
|
23882
23882
|
}
|
|
23883
23883
|
function vn(b, M) {
|
|
23884
23884
|
for (var R = b.length; R--; )
|
|
23885
|
-
if (
|
|
23885
|
+
if (po(b[R][0], M))
|
|
23886
23886
|
return R;
|
|
23887
23887
|
return -1;
|
|
23888
23888
|
}
|
|
@@ -23891,13 +23891,13 @@ var fr = {}, t2 = {
|
|
|
23891
23891
|
return An(b) ? X : Ce(X, R(b));
|
|
23892
23892
|
}
|
|
23893
23893
|
function Wi(b) {
|
|
23894
|
-
return b == null ? b === void 0 ? U : A : Ft && Ft in Object(b) ? di(b) :
|
|
23894
|
+
return b == null ? b === void 0 ? U : A : Ft && Ft in Object(b) ? di(b) : go(b);
|
|
23895
23895
|
}
|
|
23896
|
-
function
|
|
23896
|
+
function fo(b) {
|
|
23897
23897
|
return $t(b) && Wi(b) == a;
|
|
23898
23898
|
}
|
|
23899
|
-
function
|
|
23900
|
-
return b === M ? !0 : b == null || M == null || !$t(b) && !$t(M) ? b !== b && M !== M : ra(b, M, R, X,
|
|
23899
|
+
function mo(b, M, R, X, Me) {
|
|
23900
|
+
return b === M ? !0 : b == null || M == null || !$t(b) && !$t(M) ? b !== b && M !== M : ra(b, M, R, X, mo, Me);
|
|
23901
23901
|
}
|
|
23902
23902
|
function ra(b, M, R, X, Me, be) {
|
|
23903
23903
|
var ze = An(b), Be = An(M), it = ze ? l : Kt(b), Fe = Be ? l : Kt(M);
|
|
@@ -23909,7 +23909,7 @@ var fr = {}, t2 = {
|
|
|
23909
23909
|
ze = !0, yt = !1;
|
|
23910
23910
|
}
|
|
23911
23911
|
if (rt && !yt)
|
|
23912
|
-
return be || (be = new qt()), ze ||
|
|
23912
|
+
return be || (be = new qt()), ze || yo(b) ? ws(b, M, R, X, Me, be) : ha(b, M, it, R, X, Me, be);
|
|
23913
23913
|
if (!(R & s)) {
|
|
23914
23914
|
var wt = yt && xt.call(b, "__wrapped__"), gt = St && xt.call(M, "__wrapped__");
|
|
23915
23915
|
if (wt || gt) {
|
|
@@ -23920,9 +23920,9 @@ var fr = {}, t2 = {
|
|
|
23920
23920
|
return rt ? (be || (be = new qt()), da(b, M, R, X, Me, be)) : !1;
|
|
23921
23921
|
}
|
|
23922
23922
|
function aa(b) {
|
|
23923
|
-
if (!
|
|
23923
|
+
if (!bo(b) || ga(b))
|
|
23924
23924
|
return !1;
|
|
23925
|
-
var M =
|
|
23925
|
+
var M = Ao(b) ? Br : ge;
|
|
23926
23926
|
return M.test(Et(b));
|
|
23927
23927
|
}
|
|
23928
23928
|
function la(b) {
|
|
@@ -23976,11 +23976,11 @@ var fr = {}, t2 = {
|
|
|
23976
23976
|
return !1;
|
|
23977
23977
|
b = b.buffer, M = M.buffer;
|
|
23978
23978
|
case _:
|
|
23979
|
-
return !(b.byteLength != M.byteLength || !be(new
|
|
23979
|
+
return !(b.byteLength != M.byteLength || !be(new lo(b), new lo(M)));
|
|
23980
23980
|
case h:
|
|
23981
23981
|
case u:
|
|
23982
23982
|
case g:
|
|
23983
|
-
return
|
|
23983
|
+
return po(+b, +M);
|
|
23984
23984
|
case f:
|
|
23985
23985
|
return b.name == M.name && b.message == M.message;
|
|
23986
23986
|
case k:
|
|
@@ -24030,8 +24030,8 @@ var fr = {}, t2 = {
|
|
|
24030
24030
|
Ei || (Ei = rt == "constructor");
|
|
24031
24031
|
}
|
|
24032
24032
|
if (gt && !Ei) {
|
|
24033
|
-
var
|
|
24034
|
-
|
|
24033
|
+
var wo = b.constructor, Co = M.constructor;
|
|
24034
|
+
wo != Co && "constructor" in b && "constructor" in M && !(typeof wo == "function" && wo instanceof wo && typeof Co == "function" && Co instanceof Co) && (gt = !1);
|
|
24035
24035
|
}
|
|
24036
24036
|
return be.delete(b), be.delete(M), gt;
|
|
24037
24037
|
}
|
|
@@ -24065,7 +24065,7 @@ var fr = {}, t2 = {
|
|
|
24065
24065
|
var M = Wi(b), R = M == w ? b.constructor : void 0, X = R ? Et(R) : "";
|
|
24066
24066
|
if (X)
|
|
24067
24067
|
switch (X) {
|
|
24068
|
-
case
|
|
24068
|
+
case co:
|
|
24069
24069
|
return Q;
|
|
24070
24070
|
case ci:
|
|
24071
24071
|
return p;
|
|
@@ -24092,7 +24092,7 @@ var fr = {}, t2 = {
|
|
|
24092
24092
|
var M = b && b.constructor, R = typeof M == "function" && M.prototype || Jt;
|
|
24093
24093
|
return b === R;
|
|
24094
24094
|
}
|
|
24095
|
-
function
|
|
24095
|
+
function go(b) {
|
|
24096
24096
|
return dn.call(b);
|
|
24097
24097
|
}
|
|
24098
24098
|
function Et(b) {
|
|
@@ -24108,23 +24108,23 @@ var fr = {}, t2 = {
|
|
|
24108
24108
|
}
|
|
24109
24109
|
return "";
|
|
24110
24110
|
}
|
|
24111
|
-
function
|
|
24111
|
+
function po(b, M) {
|
|
24112
24112
|
return b === M || b !== b && M !== M;
|
|
24113
24113
|
}
|
|
24114
|
-
var
|
|
24114
|
+
var vo = fo(function() {
|
|
24115
24115
|
return arguments;
|
|
24116
|
-
}()) ?
|
|
24116
|
+
}()) ? fo : function(b) {
|
|
24117
24117
|
return $t(b) && xt.call(b, "callee") && !fn.call(b, "callee");
|
|
24118
24118
|
}, An = Array.isArray;
|
|
24119
24119
|
function Cs(b) {
|
|
24120
|
-
return b != null && Ps(b.length) && !
|
|
24120
|
+
return b != null && Ps(b.length) && !Ao(b);
|
|
24121
24121
|
}
|
|
24122
24122
|
var bn = fs || ba;
|
|
24123
24123
|
function va(b, M) {
|
|
24124
|
-
return
|
|
24124
|
+
return mo(b, M);
|
|
24125
24125
|
}
|
|
24126
|
-
function
|
|
24127
|
-
if (!
|
|
24126
|
+
function Ao(b) {
|
|
24127
|
+
if (!bo(b))
|
|
24128
24128
|
return !1;
|
|
24129
24129
|
var M = Wi(b);
|
|
24130
24130
|
return M == m || M == v || M == c || M == P;
|
|
@@ -24132,14 +24132,14 @@ var fr = {}, t2 = {
|
|
|
24132
24132
|
function Ps(b) {
|
|
24133
24133
|
return typeof b == "number" && b > -1 && b % 1 == 0 && b <= r;
|
|
24134
24134
|
}
|
|
24135
|
-
function
|
|
24135
|
+
function bo(b) {
|
|
24136
24136
|
var M = typeof b;
|
|
24137
24137
|
return b != null && (M == "object" || M == "function");
|
|
24138
24138
|
}
|
|
24139
24139
|
function $t(b) {
|
|
24140
24140
|
return b != null && typeof b == "object";
|
|
24141
24141
|
}
|
|
24142
|
-
var
|
|
24142
|
+
var yo = et ? ot(et) : la;
|
|
24143
24143
|
function Is(b) {
|
|
24144
24144
|
return Cs(b) ? oa(b) : ca(b);
|
|
24145
24145
|
}
|
|
@@ -24194,7 +24194,7 @@ const i2 = fr, n2 = (n, t) => i2(n, t), s2 = (n) => Object.keys(n || {}), o2 = (
|
|
|
24194
24194
|
};
|
|
24195
24195
|
};
|
|
24196
24196
|
function l2(n, t) {
|
|
24197
|
-
const e =
|
|
24197
|
+
const e = No(n, "data", {}), i = No(n, "watch", {}), s = No(n, "methods", {}), o = No(t, "onChange", () => {
|
|
24198
24198
|
}), { subscribe: r, notify: a, subscribers: l } = r2(), { targetWatcher: c, getTarget: h } = a2();
|
|
24199
24199
|
let u;
|
|
24200
24200
|
const f = {}, m = () => ({
|
|
@@ -24486,7 +24486,7 @@ function m2(n) {
|
|
|
24486
24486
|
return G(this, arguments, function* ({ data: r, methods: a }, l, c) {
|
|
24487
24487
|
if (t.reset(), r.disabled)
|
|
24488
24488
|
return;
|
|
24489
|
-
r.disabled = !0, l(), yield a.offsetPage({ animated:
|
|
24489
|
+
r.disabled = !0, l(), yield a.offsetPage({ animated: Ns(c, "animated", !0) }), r.disabled = !1, !(yield a._jumpIfNeeded()) && a._applyAutoplayIfNeeded();
|
|
24490
24490
|
});
|
|
24491
24491
|
},
|
|
24492
24492
|
showNextPage(c, h) {
|
|
@@ -24525,7 +24525,7 @@ function m2(n) {
|
|
|
24525
24525
|
});
|
|
24526
24526
|
},
|
|
24527
24527
|
offsetPage({ data: r }, a) {
|
|
24528
|
-
const l =
|
|
24528
|
+
const l = Ns(a, "animated", !0);
|
|
24529
24529
|
return new Promise((c) => {
|
|
24530
24530
|
r.durationMs = l ? r.durationMsInit : 0, r.offset = -r.currentParticleIndex * r.particleWidth, setTimeout(() => {
|
|
24531
24531
|
c();
|
|
@@ -25107,7 +25107,7 @@ function I2(n, t, e) {
|
|
|
25107
25107
|
let { timingFunction: g = "ease-in-out" } = t, { arrows: A = !0 } = t, { infinite: w = !0 } = t, { initialPageIndex: I = 0 } = t, { duration: P = 500 } = t, { autoplay: k = !1 } = t, { autoplayDuration: E = 3e3 } = t, { autoplayDirection: T = Oi } = t, { pauseOnFocus: V = !1 } = t, { autoplayProgressVisible: U = !1 } = t, { dots: N = !0 } = t, { swiping: _ = !0 } = t, { particlesToShow: Q = 1 } = t, { particlesToScroll: H = 1 } = t;
|
|
25108
25108
|
function W(le, Ce) {
|
|
25109
25109
|
return G(this, null, function* () {
|
|
25110
|
-
const Oe =
|
|
25110
|
+
const Oe = Ns(Ce, "animated", !0);
|
|
25111
25111
|
if (typeof le != "number")
|
|
25112
25112
|
throw new Error("pageIndex should be a number");
|
|
25113
25113
|
yield m.showPage(le, { animated: Oe });
|
|
@@ -25115,13 +25115,13 @@ function I2(n, t, e) {
|
|
|
25115
25115
|
}
|
|
25116
25116
|
function F(le) {
|
|
25117
25117
|
return G(this, null, function* () {
|
|
25118
|
-
const Ce =
|
|
25118
|
+
const Ce = Ns(le, "animated", !0);
|
|
25119
25119
|
yield m.showPrevPage({ animated: Ce });
|
|
25120
25120
|
});
|
|
25121
25121
|
}
|
|
25122
25122
|
function Y(le) {
|
|
25123
25123
|
return G(this, null, function* () {
|
|
25124
|
-
const Ce =
|
|
25124
|
+
const Ce = Ns(le, "animated", !0);
|
|
25125
25125
|
yield m.showNextPage({ animated: Ce });
|
|
25126
25126
|
});
|
|
25127
25127
|
}
|
|
@@ -26661,7 +26661,7 @@ function G2(n) {
|
|
|
26661
26661
|
s,
|
|
26662
26662
|
"transition-delay",
|
|
26663
26663
|
/*unfolded*/
|
|
26664
|
-
n[4] ?
|
|
26664
|
+
n[4] ? Ho + "ms" : _o + Lu - Tu - 40 + "ms"
|
|
26665
26665
|
), C(h, "class", "text svelte-sezqcq"), C(c, "class", "title svelte-sezqcq"), C(l, "class", "title-wrapper svelte-sezqcq"), C(r, "class", "content svelte-sezqcq"), L(r, "max-width", ti(
|
|
26666
26666
|
/*maxWidth*/
|
|
26667
26667
|
n[9]
|
|
@@ -26669,7 +26669,7 @@ function G2(n) {
|
|
|
26669
26669
|
r,
|
|
26670
26670
|
"transition-delay",
|
|
26671
26671
|
/*unfolded*/
|
|
26672
|
-
n[4] ?
|
|
26672
|
+
n[4] ? Ho + _o + "ms" : "0ms"
|
|
26673
26673
|
), C(t, "class", p = Ke(`marketing ${/*theme*/
|
|
26674
26674
|
n[6]}`) + " svelte-sezqcq"), te(
|
|
26675
26675
|
t,
|
|
@@ -26696,7 +26696,7 @@ function G2(n) {
|
|
|
26696
26696
|
s,
|
|
26697
26697
|
"transition-delay",
|
|
26698
26698
|
/*unfolded*/
|
|
26699
|
-
E[4] ?
|
|
26699
|
+
E[4] ? Ho + "ms" : _o + Lu - Tu - 40 + "ms"
|
|
26700
26700
|
), /*data*/
|
|
26701
26701
|
E[3].headerPictureUrl ? A ? A.p(E, T) : (A = Pu(E), A.c(), A.m(r, a)) : A && (A.d(1), A = null), (!g || T & /*data*/
|
|
26702
26702
|
8) && u !== (u = /*data*/
|
|
@@ -26709,7 +26709,7 @@ function G2(n) {
|
|
|
26709
26709
|
r,
|
|
26710
26710
|
"transition-delay",
|
|
26711
26711
|
/*unfolded*/
|
|
26712
|
-
E[4] ?
|
|
26712
|
+
E[4] ? Ho + _o + "ms" : "0ms"
|
|
26713
26713
|
), (!g || T & /*theme*/
|
|
26714
26714
|
64 && p !== (p = Ke(`marketing ${/*theme*/
|
|
26715
26715
|
E[6]}`) + " svelte-sezqcq")) && C(t, "class", p), (!g || T & /*theme, unfolded*/
|
|
@@ -26737,7 +26737,7 @@ function G2(n) {
|
|
|
26737
26737
|
}
|
|
26738
26738
|
};
|
|
26739
26739
|
}
|
|
26740
|
-
const Ac = 40,
|
|
26740
|
+
const Ac = 40, Ho = 400, Tu = 500, _o = 180, Lu = 500;
|
|
26741
26741
|
function W2(n, t, e) {
|
|
26742
26742
|
let i, s, o, r, a, l, c, h, { tag: u } = t, f, m = (() => {
|
|
26743
26743
|
var g;
|
|
@@ -28959,7 +28959,7 @@ function qM(n, t) {
|
|
|
28959
28959
|
}
|
|
28960
28960
|
return s;
|
|
28961
28961
|
}
|
|
28962
|
-
function
|
|
28962
|
+
function zs(n, t, e) {
|
|
28963
28963
|
if (n === "fill")
|
|
28964
28964
|
return t;
|
|
28965
28965
|
if (n === "contain") {
|
|
@@ -29044,12 +29044,12 @@ class kg extends Mg {
|
|
|
29044
29044
|
const o = (a = s == null ? void 0 : s.resolveZFighting) != null ? a : !0;
|
|
29045
29045
|
let r = i;
|
|
29046
29046
|
if (o) {
|
|
29047
|
-
const l =
|
|
29047
|
+
const l = oo(i, 5e-4);
|
|
29048
29048
|
r = i.map((c) => c.clone().add(l));
|
|
29049
29049
|
}
|
|
29050
29050
|
Bm(e).then(({ texture: l, transparent: c }) => {
|
|
29051
29051
|
var p;
|
|
29052
|
-
const h = new y.MeshBasicMaterial({ map: l, transparent: c }), u =
|
|
29052
|
+
const h = new y.MeshBasicMaterial({ map: l, transparent: c }), u = zs(
|
|
29053
29053
|
(p = s == null ? void 0 : s.objectFit) != null ? p : "contain",
|
|
29054
29054
|
r,
|
|
29055
29055
|
l.image.width / l.image.height
|
|
@@ -29135,7 +29135,7 @@ class xg extends Mg {
|
|
|
29135
29135
|
return this.coverMesh;
|
|
29136
29136
|
if (!this.videoCoverSrc)
|
|
29137
29137
|
return;
|
|
29138
|
-
const { texture: i, transparent: s } = yield this.getImageTexture(this.videoCoverSrc), o = new y.MeshBasicMaterial({ transparent: !1, map: i }), r =
|
|
29138
|
+
const { texture: i, transparent: s } = yield this.getImageTexture(this.videoCoverSrc), o = new y.MeshBasicMaterial({ transparent: !1, map: i }), r = zs(this.objectFit, this.cornerPoints, i.image.width / i.image.height), a = new Ga(r, o);
|
|
29139
29139
|
return a.position.copy(new ae(0, 0, 0)), a.name = "videoCoverMesh", a;
|
|
29140
29140
|
}))();
|
|
29141
29141
|
return e && (this.children.includes(this.coverMesh) || (this.add(e), this.coverMesh = e)), e;
|
|
@@ -29151,9 +29151,9 @@ class xg extends Mg {
|
|
|
29151
29151
|
if (!this.src)
|
|
29152
29152
|
return;
|
|
29153
29153
|
const s = this.getVideoTexture(this.src), o = new y.MeshBasicMaterial({ transparent: !1, map: s }), r = yield new Promise((l) => {
|
|
29154
|
-
s.metadataLoaded ? l(
|
|
29154
|
+
s.metadataLoaded ? l(zs(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight)) : s.addEventListener(
|
|
29155
29155
|
"videoLoaded",
|
|
29156
|
-
() => l(
|
|
29156
|
+
() => l(zs(this.objectFit, this.cornerPoints, s.image.videoWidth / s.image.videoHeight))
|
|
29157
29157
|
);
|
|
29158
29158
|
}), a = new Ga(r, o);
|
|
29159
29159
|
return a.name = "videoMesh", a.position.copy(new ae(0, 0, 0)), a;
|
|
@@ -29184,7 +29184,7 @@ class xg extends Mg {
|
|
|
29184
29184
|
var m, v, p, g;
|
|
29185
29185
|
if (this.buttonMesh)
|
|
29186
29186
|
return this.buttonMesh;
|
|
29187
|
-
const i = (v = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? v : 1 / 0, s = (g = (p = this.coverMesh) == null ? void 0 : p.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? g : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), a = Math.min(i, s, o) / o * 0.3, { texture: l, transparent: c } = yield this.getImageTexture(this.buttonSrc), h =
|
|
29187
|
+
const i = (v = (m = this.videoMesh) == null ? void 0 : m.geometry.points[0].distanceTo(this.videoMesh.geometry.points[3])) != null ? v : 1 / 0, s = (g = (p = this.coverMesh) == null ? void 0 : p.geometry.points[0].distanceTo(this.coverMesh.geometry.points[3])) != null ? g : 1 / 0, o = this.cornerPoints[0].distanceTo(this.cornerPoints[3]), a = Math.min(i, s, o) / o * 0.3, { texture: l, transparent: c } = yield this.getImageTexture(this.buttonSrc), h = zs("contain", this.cornerPoints, l.image.width / l.image.height), u = new Ga(h, new KM(l));
|
|
29188
29188
|
u.position.copy(new ae(0, 0, 0)), u.name = "buttonMesh", u.scale.set(a, a, a), this.domEvents.addAutoBindEventListener(
|
|
29189
29189
|
u,
|
|
29190
29190
|
"click",
|
|
@@ -29193,7 +29193,7 @@ class xg extends Mg {
|
|
|
29193
29193
|
},
|
|
29194
29194
|
{ noEmitWhenHide: !0 }
|
|
29195
29195
|
);
|
|
29196
|
-
const f =
|
|
29196
|
+
const f = oo(h, 5e-4);
|
|
29197
29197
|
return u.position.add(f), u;
|
|
29198
29198
|
}))();
|
|
29199
29199
|
return this.children.includes(this.buttonMesh) || (this.add(e), this.buttonMesh = e), e;
|
|
@@ -29298,7 +29298,7 @@ function nk(n, t) {
|
|
|
29298
29298
|
e.forEach((o) => {
|
|
29299
29299
|
var a, l, c;
|
|
29300
29300
|
const r = (l = (a = o.floorIndex) != null ? a : o.floor_index) != null ? l : 0;
|
|
29301
|
-
i[r] || (i[r] = []), i[r].push(
|
|
29301
|
+
i[r] || (i[r] = []), i[r].push(Ws(o.position, (c = n.options) == null ? void 0 : c.transform).y);
|
|
29302
29302
|
});
|
|
29303
29303
|
const s = i.map((o) => o.reduce((r, a) => r + a, 0) / o.length);
|
|
29304
29304
|
for (let o = s.length - 1; o > 0; o--)
|
|
@@ -29306,7 +29306,7 @@ function nk(n, t) {
|
|
|
29306
29306
|
return o;
|
|
29307
29307
|
return 0;
|
|
29308
29308
|
}
|
|
29309
|
-
class
|
|
29309
|
+
class Js {
|
|
29310
29310
|
constructor() {
|
|
29311
29311
|
/**
|
|
29312
29312
|
* @description 射线碰撞检测的距离缓存
|
|
@@ -29331,12 +29331,12 @@ class qs {
|
|
|
29331
29331
|
].join(",") : void 0;
|
|
29332
29332
|
}
|
|
29333
29333
|
getVisible(t, e, i = 1) {
|
|
29334
|
-
const s =
|
|
29334
|
+
const s = Js.generateCameraTagKey(e, t, i);
|
|
29335
29335
|
if (s)
|
|
29336
29336
|
return this.cache_visible.get(s);
|
|
29337
29337
|
}
|
|
29338
29338
|
setVisible(t, e, i, s = 1) {
|
|
29339
|
-
const o =
|
|
29339
|
+
const o = Js.generateCameraTagKey(e, t, s);
|
|
29340
29340
|
o && this.cache_visible.set(o, i);
|
|
29341
29341
|
}
|
|
29342
29342
|
}
|
|
@@ -29392,11 +29392,11 @@ class bc {
|
|
|
29392
29392
|
if (!f)
|
|
29393
29393
|
return;
|
|
29394
29394
|
const m = t.workUtil.transform;
|
|
29395
|
-
return Array.isArray(f) && f.length === 4 ? f.map(He).map((v) =>
|
|
29395
|
+
return Array.isArray(f) && f.length === 4 ? f.map(He).map((v) => Ws(v, m).toArray()) : Ws(He(f), m).toArray();
|
|
29396
29396
|
})(), this.matrix = e.matrix ? (() => {
|
|
29397
29397
|
const f = new y.Matrix4().fromArray(e.matrix);
|
|
29398
29398
|
return f.premultiply(t.workUtil.transform), f.elements;
|
|
29399
|
-
})() : e.matrix, this.initialConfig = o, this.computedConfig = r, this.stickType = i, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new
|
|
29399
|
+
})() : e.matrix, this.initialConfig = o, this.computedConfig = r, this.stickType = i, this.config = e.config, this.fiveState = e.fiveState, this.normal = e.normal, this.cache = new Js(), this.hooks = new ht(), Object.keys(e).forEach((f) => {
|
|
29400
29400
|
this[f] === void 0 && e[f] !== void 0 && (this[f] = e[f]);
|
|
29401
29401
|
});
|
|
29402
29402
|
}
|
|
@@ -29449,7 +29449,7 @@ class bc {
|
|
|
29449
29449
|
mode: "Panorama",
|
|
29450
29450
|
workCode: this.workUtil.workCode,
|
|
29451
29451
|
panoIndex: o
|
|
29452
|
-
},
|
|
29452
|
+
}, no(a))), yield this.five.ready();
|
|
29453
29453
|
} else
|
|
29454
29454
|
i === "Mapview" && (yield im(this.five, this.centerPosition, t == null ? void 0 : t.pointConfig));
|
|
29455
29455
|
});
|
|
@@ -29663,7 +29663,7 @@ class bc {
|
|
|
29663
29663
|
}
|
|
29664
29664
|
if (l.visibleDistance !== void 0 && (o.push("visibleDistance"), l.visibleDistance !== "unLimited")) {
|
|
29665
29665
|
const v = this.getDistance(e, 1);
|
|
29666
|
-
if (
|
|
29666
|
+
if (Ro(v, l.visibleDistance) === !1)
|
|
29667
29667
|
return {
|
|
29668
29668
|
value: !1,
|
|
29669
29669
|
checkedList: o,
|
|
@@ -29797,7 +29797,7 @@ class bc {
|
|
|
29797
29797
|
return !1;
|
|
29798
29798
|
if (e.keep === "unfolded")
|
|
29799
29799
|
return !0;
|
|
29800
|
-
if (e.unfoldDistance &&
|
|
29800
|
+
if (e.unfoldDistance && Ro(this.getDistance({ panoIndex: t }), e.unfoldDistance) === !1)
|
|
29801
29801
|
return !1;
|
|
29802
29802
|
}
|
|
29803
29803
|
}
|
|
@@ -29817,7 +29817,7 @@ class bc {
|
|
|
29817
29817
|
return;
|
|
29818
29818
|
if (t.autoUnfold.strategy === "ScreenPostion") {
|
|
29819
29819
|
const i = this.computeTagProject();
|
|
29820
|
-
if (i &&
|
|
29820
|
+
if (i && Ro(i.x, t.autoUnfold.autoUnfoldProjectX) === !1)
|
|
29821
29821
|
return !1;
|
|
29822
29822
|
}
|
|
29823
29823
|
if (t.autoUnfold.strategy === "MinimumDistance") {
|
|
@@ -29832,7 +29832,7 @@ class bc {
|
|
|
29832
29832
|
return !(typeof a == "function" || a.keep || a.autoUnfold === !1 || ((l = a.autoUnfold) == null ? void 0 : l.enable) === !1 || ((c = a.autoUnfold) == null ? void 0 : c.strategy) !== "MinimumDistance");
|
|
29833
29833
|
}).map((a) => ee(x({}, a), { distance: a.tag.getDistance() })).filter(({ distance: a, tagConfig: l }) => {
|
|
29834
29834
|
const c = l.autoUnfold.distance;
|
|
29835
|
-
return !(c &&
|
|
29835
|
+
return !(c && Ro(a, c) === !1);
|
|
29836
29836
|
}).sort((a, l) => a.distance - l.distance).findIndex((a) => a.id === this.id);
|
|
29837
29837
|
if (o === -1 || o <= ((e = t.autoUnfold.maxNumber) != null ? e : 1) - 1 === !1)
|
|
29838
29838
|
return !1;
|
|
@@ -30681,7 +30681,7 @@ class Ak extends Bi {
|
|
|
30681
30681
|
constructor(e) {
|
|
30682
30682
|
super(e);
|
|
30683
30683
|
d(this, "tags", []);
|
|
30684
|
-
d(this, "cache", new
|
|
30684
|
+
d(this, "cache", new Js());
|
|
30685
30685
|
d(this, "config", vk);
|
|
30686
30686
|
d(this, "renderQueue", /* @__PURE__ */ new Map());
|
|
30687
30687
|
/** 插件参数 */
|
|
@@ -30925,7 +30925,7 @@ class bk extends Ak {
|
|
|
30925
30925
|
if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
|
|
30926
30926
|
return;
|
|
30927
30927
|
i.updateWorldMatrix(!1, !1);
|
|
30928
|
-
const a = i.matrixWorld, l = new ae().fromArray(r[0]), c = new ae().fromArray(r[2]), h = ai(l, c).add(new ae(0, 0, 5e-4)), u = new
|
|
30928
|
+
const a = i.matrixWorld, l = new ae().fromArray(r[0]), c = new ae().fromArray(r[2]), h = ai(l, c).add(new ae(0, 0, 5e-4)), u = new Os().setPosition(h), f = new Os().makeScale(s, s, s), m = new Os().multiply(a).multiply(u).multiply(f);
|
|
30929
30929
|
m.decompose(o.position, o.quaternion, o.scale);
|
|
30930
30930
|
const v = o.opacityMesh;
|
|
30931
30931
|
v && m.decompose(v.position, v.quaternion, v.scale);
|
|
@@ -31976,7 +31976,7 @@ class Pl extends bk {
|
|
|
31976
31976
|
i.position.copy(s.position), i.quaternion.copy(s.quaternion);
|
|
31977
31977
|
const o = this.five.camera.position;
|
|
31978
31978
|
i.lookAt(o.clone().setY(i.position.y));
|
|
31979
|
-
const r = s.quaternion.clone(), a = i.quaternion.clone(), l =
|
|
31979
|
+
const r = s.quaternion.clone(), a = i.quaternion.clone(), l = Us();
|
|
31980
31980
|
l.onUpdate(({ progress: h }) => {
|
|
31981
31981
|
s.quaternion.copy(r.clone().slerp(a, h));
|
|
31982
31982
|
}), l.play();
|
|
@@ -32017,7 +32017,7 @@ class Pl extends bk {
|
|
|
32017
32017
|
this.TagContainerSvelte = new Qk({
|
|
32018
32018
|
target: this.container,
|
|
32019
32019
|
props: ee(x({}, a), { state: ee(x({}, this.state), { enabled: !1 }) })
|
|
32020
|
-
}),
|
|
32020
|
+
}), so(() => {
|
|
32021
32021
|
var l;
|
|
32022
32022
|
(l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
|
|
32023
32023
|
});
|
|
@@ -33218,7 +33218,7 @@ class zg extends Bi {
|
|
|
33218
33218
|
}
|
|
33219
33219
|
function Ya(n, t, e) {
|
|
33220
33220
|
var l, c, h;
|
|
33221
|
-
const i = new y.Vector3().fromArray([(l = e.x) != null ? l : 0, (c = e.y) != null ? c : 0, (h = e.z) != null ? h : 0]), s = n.getPointAt(t).clone().add(i), o = n.getTangentAt(t), { longitude: r, latitude: a } =
|
|
33221
|
+
const i = new y.Vector3().fromArray([(l = e.x) != null ? l : 0, (c = e.y) != null ? c : 0, (h = e.z) != null ? h : 0]), s = n.getPointAt(t).clone().add(i), o = n.getTangentAt(t), { longitude: r, latitude: a } = no(o);
|
|
33222
33222
|
return { offset: s.clone(), longitude: r, latitude: a, distance: 0 };
|
|
33223
33223
|
}
|
|
33224
33224
|
class Og extends zg {
|
|
@@ -33466,7 +33466,7 @@ class yc extends zg {
|
|
|
33466
33466
|
if (!m || !f || ((p = this.workUtil.getObserver(l)) == null ? void 0 : p.floorIndex) !== ((g = this.workUtil.getObserver(u)) == null ? void 0 : g.floorIndex))
|
|
33467
33467
|
return;
|
|
33468
33468
|
const v = new y.Vector3().subVectors(m, f);
|
|
33469
|
-
return
|
|
33469
|
+
return no(v.normalize());
|
|
33470
33470
|
})();
|
|
33471
33471
|
i.moveType === void 0 || i.moveType === "justMove" ? s.push({
|
|
33472
33472
|
moveIndex: c,
|
|
@@ -34208,7 +34208,7 @@ class sf {
|
|
|
34208
34208
|
transparent: !0
|
|
34209
34209
|
}), r = new Ap(1, 64, 64);
|
|
34210
34210
|
r.scale(-1, 1, 1);
|
|
34211
|
-
const a = new
|
|
34211
|
+
const a = new Bs(r, o);
|
|
34212
34212
|
a.name = "pano-video-plugin", this.videoMesh = a, this.five.work && this.onFiveDataLoaded(), this.enabled && this.addEventListeners(), this.mountIfNeeded(), window[`__PANOVIDEO_${this.renderID}_DEBUG__`] = this;
|
|
34213
34213
|
}
|
|
34214
34214
|
/** 传入的 ID,不可更改 */
|
|
@@ -35808,7 +35808,7 @@ class j3 extends Bi {
|
|
|
35808
35808
|
this.mesh.visible = !1;
|
|
35809
35809
|
return;
|
|
35810
35810
|
}
|
|
35811
|
-
this.mesh.material.setValues({ opacity: 0 }), this.mesh.visible = !0, this.opacityAnimeTween =
|
|
35811
|
+
this.mesh.material.setValues({ opacity: 0 }), this.mesh.visible = !0, this.opacityAnimeTween = Us(1e3).onUpdate(({ progress: s }) => {
|
|
35812
35812
|
var o;
|
|
35813
35813
|
(o = this.mesh) == null || o.material.setValues({ opacity: s }), this.five.needsRender = !0;
|
|
35814
35814
|
}).play();
|
|
@@ -36010,7 +36010,7 @@ function z3(n, t) {
|
|
|
36010
36010
|
i.indexOf(e[o]) === -1 && (s = !1);
|
|
36011
36011
|
return s;
|
|
36012
36012
|
}
|
|
36013
|
-
const
|
|
36013
|
+
const qs = {
|
|
36014
36014
|
backspace: 8,
|
|
36015
36015
|
"⌫": 8,
|
|
36016
36016
|
tab: 9,
|
|
@@ -36094,13 +36094,13 @@ const Ks = {
|
|
|
36094
36094
|
91: !1
|
|
36095
36095
|
}, Je = {};
|
|
36096
36096
|
for (let n = 1; n < 20; n++)
|
|
36097
|
-
|
|
36098
|
-
let Ue = [],
|
|
36099
|
-
const mi = /* @__PURE__ */ new Map(),
|
|
36097
|
+
qs["f".concat(n)] = 111 + n;
|
|
36098
|
+
let Ue = [], Hs = null, Qg = "all";
|
|
36099
|
+
const mi = /* @__PURE__ */ new Map(), ro = (n) => qs[n.toLowerCase()] || ri[n.toLowerCase()] || n.toUpperCase().charCodeAt(0), O3 = (n) => Object.keys(qs).find((t) => qs[t] === n), B3 = (n) => Object.keys(ri).find((t) => ri[t] === n);
|
|
36100
36100
|
function Gg(n) {
|
|
36101
36101
|
Qg = n || "all";
|
|
36102
36102
|
}
|
|
36103
|
-
function
|
|
36103
|
+
function Ks() {
|
|
36104
36104
|
return Qg || "all";
|
|
36105
36105
|
}
|
|
36106
36106
|
function V3() {
|
|
@@ -36123,7 +36123,7 @@ function F3() {
|
|
|
36123
36123
|
scope: s,
|
|
36124
36124
|
shortcut: r,
|
|
36125
36125
|
mods: o,
|
|
36126
|
-
keys: i.split("+").map((a) =>
|
|
36126
|
+
keys: i.split("+").map((a) => ro(a))
|
|
36127
36127
|
});
|
|
36128
36128
|
});
|
|
36129
36129
|
}), n;
|
|
@@ -36137,11 +36137,11 @@ function N3(n) {
|
|
|
36137
36137
|
return (t.isContentEditable || (s || e === "TEXTAREA" || e === "SELECT") && !t.readOnly) && (i = !1), i;
|
|
36138
36138
|
}
|
|
36139
36139
|
function H3(n) {
|
|
36140
|
-
return typeof n == "string" && (n =
|
|
36140
|
+
return typeof n == "string" && (n = ro(n)), Ue.indexOf(n) !== -1;
|
|
36141
36141
|
}
|
|
36142
36142
|
function _3(n, t) {
|
|
36143
36143
|
let e, i;
|
|
36144
|
-
n || (n =
|
|
36144
|
+
n || (n = Ks());
|
|
36145
36145
|
for (const s in Je)
|
|
36146
36146
|
if (Object.prototype.hasOwnProperty.call(Je, s))
|
|
36147
36147
|
for (e = Je[s], i = 0; i < e.length; )
|
|
@@ -36151,7 +36151,7 @@ function _3(n, t) {
|
|
|
36151
36151
|
} = r;
|
|
36152
36152
|
return wc(a);
|
|
36153
36153
|
}) : i++;
|
|
36154
|
-
|
|
36154
|
+
Ks() === n && Gg(t || "all");
|
|
36155
36155
|
}
|
|
36156
36156
|
function Q3(n) {
|
|
36157
36157
|
let t = n.keyCode || n.which || n.charCode;
|
|
@@ -36165,19 +36165,19 @@ function Q3(n) {
|
|
|
36165
36165
|
function Wg(n) {
|
|
36166
36166
|
if (typeof n == "undefined")
|
|
36167
36167
|
Object.keys(Je).forEach((s) => {
|
|
36168
|
-
Array.isArray(Je[s]) && Je[s].forEach((o) =>
|
|
36168
|
+
Array.isArray(Je[s]) && Je[s].forEach((o) => Qo(o)), delete Je[s];
|
|
36169
36169
|
}), wc(null);
|
|
36170
36170
|
else if (Array.isArray(n))
|
|
36171
36171
|
n.forEach((s) => {
|
|
36172
|
-
s.key &&
|
|
36172
|
+
s.key && Qo(s);
|
|
36173
36173
|
});
|
|
36174
36174
|
else if (typeof n == "object")
|
|
36175
|
-
n.key &&
|
|
36175
|
+
n.key && Qo(n);
|
|
36176
36176
|
else if (typeof n == "string") {
|
|
36177
36177
|
for (var t = arguments.length, e = new Array(t > 1 ? t - 1 : 0), i = 1; i < t; i++)
|
|
36178
36178
|
e[i - 1] = arguments[i];
|
|
36179
36179
|
let [s, o] = e;
|
|
36180
|
-
typeof s == "function" && (o = s, s = ""),
|
|
36180
|
+
typeof s == "function" && (o = s, s = ""), Qo({
|
|
36181
36181
|
key: n,
|
|
36182
36182
|
scope: s,
|
|
36183
36183
|
method: o,
|
|
@@ -36185,7 +36185,7 @@ function Wg(n) {
|
|
|
36185
36185
|
});
|
|
36186
36186
|
}
|
|
36187
36187
|
}
|
|
36188
|
-
const
|
|
36188
|
+
const Qo = (n) => {
|
|
36189
36189
|
let {
|
|
36190
36190
|
key: t,
|
|
36191
36191
|
scope: e,
|
|
@@ -36193,10 +36193,10 @@ const Go = (n) => {
|
|
|
36193
36193
|
splitKey: s = "+"
|
|
36194
36194
|
} = n;
|
|
36195
36195
|
_g(t).forEach((r) => {
|
|
36196
|
-
const a = r.split(s), l = a.length, c = a[l - 1], h = c === "*" ? "*" :
|
|
36196
|
+
const a = r.split(s), l = a.length, c = a[l - 1], h = c === "*" ? "*" : ro(c);
|
|
36197
36197
|
if (!Je[h])
|
|
36198
36198
|
return;
|
|
36199
|
-
e || (e =
|
|
36199
|
+
e || (e = Ks());
|
|
36200
36200
|
const u = l > 1 ? Hg(ri, a) : [], f = [];
|
|
36201
36201
|
Je[h] = Je[h].filter((m) => {
|
|
36202
36202
|
const p = (i ? m.method === i : !0) && m.scope === e && z3(m.mods, u);
|
|
@@ -36233,7 +36233,7 @@ function cf(n, t) {
|
|
|
36233
36233
|
for (const a in pt)
|
|
36234
36234
|
Object.prototype.hasOwnProperty.call(pt, a) && (pt[a] = n[kl[a]]);
|
|
36235
36235
|
n.getModifierState && !(n.altKey && !n.ctrlKey) && n.getModifierState("AltGraph") && (Ue.indexOf(17) === -1 && Ue.push(17), Ue.indexOf(18) === -1 && Ue.push(18), pt[17] = !0, pt[18] = !0);
|
|
36236
|
-
const s =
|
|
36236
|
+
const s = Ks();
|
|
36237
36237
|
if (e)
|
|
36238
36238
|
for (let a = 0; a < e.length; a++)
|
|
36239
36239
|
e[a].scope === s && (n.type === "keydown" && e[a].keydown || n.type === "keyup" && e[a].keyup) && lf(n, e[a], s, t);
|
|
@@ -36246,7 +36246,7 @@ function cf(n, t) {
|
|
|
36246
36246
|
splitKey: c
|
|
36247
36247
|
} = l, h = l.key.split(c), u = [];
|
|
36248
36248
|
for (let f = 0; f < h.length; f++)
|
|
36249
|
-
u.push(
|
|
36249
|
+
u.push(ro(h[f]));
|
|
36250
36250
|
u.sort().join("") === Ue.sort().join("") && lf(n, l, s, t);
|
|
36251
36251
|
}
|
|
36252
36252
|
}
|
|
@@ -36255,7 +36255,7 @@ function lt(n, t, e) {
|
|
|
36255
36255
|
const i = _g(n);
|
|
36256
36256
|
let s = [], o = "all", r = document, a = 0, l = !1, c = !0, h = "+", u = !1, f = !1;
|
|
36257
36257
|
for (e === void 0 && typeof t == "function" && (e = t), Object.prototype.toString.call(t) === "[object Object]" && (t.scope && (o = t.scope), t.element && (r = t.element), t.keyup && (l = t.keyup), t.keydown !== void 0 && (c = t.keydown), t.capture !== void 0 && (u = t.capture), typeof t.splitKey == "string" && (h = t.splitKey), t.single === !0 && (f = !0)), typeof t == "string" && (o = t), f && Wg(n, o); a < i.length; a++)
|
|
36258
|
-
n = i[a].split(h), s = [], n.length > 1 && (s = Hg(ri, n)), n = n[n.length - 1], n = n === "*" ? "*" :
|
|
36258
|
+
n = i[a].split(h), s = [], n.length > 1 && (s = Hg(ri, n)), n = n[n.length - 1], n = n === "*" ? "*" : ro(n), n in Je || (Je[n] = []), Je[n].push({
|
|
36259
36259
|
keyup: l,
|
|
36260
36260
|
keydown: c,
|
|
36261
36261
|
scope: o,
|
|
@@ -36281,11 +36281,11 @@ function lt(n, t, e) {
|
|
|
36281
36281
|
capture: u
|
|
36282
36282
|
}), Ka(r, "keydown", m, u), Ka(r, "keyup", v, u);
|
|
36283
36283
|
}
|
|
36284
|
-
if (!
|
|
36284
|
+
if (!Hs) {
|
|
36285
36285
|
const m = () => {
|
|
36286
36286
|
Ue = [];
|
|
36287
36287
|
};
|
|
36288
|
-
|
|
36288
|
+
Hs = {
|
|
36289
36289
|
listener: m,
|
|
36290
36290
|
capture: u
|
|
36291
36291
|
}, Ka(window, "focus", m, u);
|
|
@@ -36322,18 +36322,18 @@ function wc(n) {
|
|
|
36322
36322
|
capture: a
|
|
36323
36323
|
} = mi.get(s) || {};
|
|
36324
36324
|
o && r && (Ss(s, "keyup", r, a), Ss(s, "keydown", o, a), mi.delete(s));
|
|
36325
|
-
}), mi.clear(), Object.keys(Je).forEach((s) => delete Je[s]),
|
|
36325
|
+
}), mi.clear(), Object.keys(Je).forEach((s) => delete Je[s]), Hs)) {
|
|
36326
36326
|
const {
|
|
36327
36327
|
listener: s,
|
|
36328
36328
|
capture: o
|
|
36329
|
-
} =
|
|
36330
|
-
Ss(window, "focus", s, o),
|
|
36329
|
+
} = Hs;
|
|
36330
|
+
Ss(window, "focus", s, o), Hs = null;
|
|
36331
36331
|
}
|
|
36332
36332
|
}
|
|
36333
36333
|
const $a = {
|
|
36334
36334
|
getPressedKeyString: R3,
|
|
36335
36335
|
setScope: Gg,
|
|
36336
|
-
getScope:
|
|
36336
|
+
getScope: Ks,
|
|
36337
36337
|
deleteScope: _3,
|
|
36338
36338
|
getPressedKeyCodes: V3,
|
|
36339
36339
|
getAllKeyCodes: F3,
|
|
@@ -36341,7 +36341,7 @@ const $a = {
|
|
|
36341
36341
|
filter: N3,
|
|
36342
36342
|
trigger: G3,
|
|
36343
36343
|
unbind: Wg,
|
|
36344
|
-
keyMap:
|
|
36344
|
+
keyMap: qs,
|
|
36345
36345
|
modifier: ri,
|
|
36346
36346
|
modifierMap: kl
|
|
36347
36347
|
};
|
|
@@ -36353,7 +36353,7 @@ if (typeof window != "undefined") {
|
|
|
36353
36353
|
}
|
|
36354
36354
|
const W3 = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAAXNSR0IArs4c6QAAAAZiS0dEAAAAAAAA+UO7fwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9sHDgwCEMBJZu0AAAAdaVRYdENvbW1lbnQAAAAAAENyZWF0ZWQgd2l0aCBHSU1QZC5lBwAABM5JREFUWMO1V0tPG2cUPZ4Hxh6DazIOrjFNqJs0FIMqWFgWQkatsmvVbtggKlSVRVf5AWz4AWz4AUSKEChll19QJYSXkECuhFxsHjEhxCYm+DWGMZ5HF72DJq4bAzFXurI0M/I5997v3u9cC65vTJVn2lX/xHINQOYSBLTLEuIuCWw4Z3IGAEvf6ASmVHjNzHCXBG4A0AjACsAOwEbO0nsFQBnAGYASAIl+ZRMR7SolMEdsByD09fV5R0ZGgg8ePPjW5/N1iqLYpuu6RZblciKR2I9Go69evnwZnZ+fjwI4IS8AKBIRzeQfJWCANwKwh0KhtrGxsYehUOin1tbW+zzP23ietzY2NnIAoGmaLsuyUiqVyvl8XtrY2NiamZn589mzZxsAUgCOAeQAnFI2tI+VxIjaAeDzoaGh7xYWFuZOTk6OZVk+12uYqqq6JEnn0Wg0OT4+/geAXwGEAdwDIFJQXC1wO4DWR48e/RCPxxclSSroVzRFUbSDg4P848ePFwH8DuAhkWih83TRQWxFOXgAwvDwcOfo6OhvXV1d39tsNtuVBwTDWBwOh1UUxVsMw1hXVlbSdCgNV43uYSvrHg6H24aHh38eHBz85TrgF9FYLHA4HLzH43FvbW2d7u/vG+dANp8FpqIlbd3d3V8Fg8EfBUFw4BONZVmL3+9vHhkZCQL4AoAHgJPK8G+yzC0XDofdoVAo5PP5vkadTBAEtr+/39ff3x8gAp/RPOEqx2qjx+NpvXv3bk9DQ0NDvQgwDIOWlhZrMBj8kgi0UJdxRgYMArzL5XJ7vd57qLPZ7Xamp6fnNgBXtQxcjFuHw+Hyer3t9SYgCAITCAScAJoBNNEY/08GOFVVrfVMv7kMNDntFD1vjIAPrlRN0xjckOm6biFQ3jwNPwDMZrOnqVTqfb3Bi8Wivru7W/VCYkwPlKOjo0IikXh7EwQikYgE4Nw0CfXKDCipVCoTj8df3QABbW1tLUc6oUgkFPMkVACUNjc337148eKvw8PDbJ2jP1taWkoCyNDVXDSECmNSK4qiKNLq6urW8+fPI/UicHx8rD59+jSVy+WOAKSJhKENwFItLtoxk8mwsixzHR0dHe3t7c5PAU+n09rs7OzJkydPYqVSaQfANoDXALIk31S2smU1TWMPDg7K5XKZ7+3t9TudTut1U7+wsFCcmJiIpdPpbQBxADsAknQWymYCOukBHYCuKApisdhpMpnURFEU79y503TVyKenpzOTk5M7e3t7MQKPV0Zv1gNm+awB0MvlshqLxfLb29uyJElWURSbXC4XXyvqxcXFs6mpqeTc3Nzu3t7e3wQcA7BPZ8Cov1pNlJplmQtAG8MwHV6v95tAINA5MDBwPxAIuLu6upr8fr/VAN3c3JQjkcjZ+vp6fnl5+d2bN29SuVzuNYAEpf01CdRChUL+X1VskHACuA3Ay3Fcu9vt7nA6nZ7m5uYWQRCaNE3jVVW15PP580KhIGUymWw2m00DOAJwSP4WwPtq4LX2Ao6USxNlQyS/RcQcdLGwlNIz6vEMAaZpNzCk2Pll94LK/cDYimxERiBwG10sxjgvEZBE0UpE6vxj+0Ct5bTaXthgEhRmja8QWNkkPGsuIpfdjpkK+cZUWTC0KredVmtD/gdlSl6EG4AMvQAAAABJRU5ErkJggg==";
|
|
36355
36355
|
let hf = null;
|
|
36356
|
-
class
|
|
36356
|
+
class $s extends jt {
|
|
36357
36357
|
constructor(e) {
|
|
36358
36358
|
var c, h;
|
|
36359
36359
|
super();
|
|
@@ -36437,7 +36437,7 @@ class xl extends Ut {
|
|
|
36437
36437
|
const i = e.map(He).filter(ke);
|
|
36438
36438
|
this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), i.forEach((s) => {
|
|
36439
36439
|
var r;
|
|
36440
|
-
const o = new
|
|
36440
|
+
const o = new $s(ee(x({}, this.style), { color: (r = this._paramsStyle) == null ? void 0 : r.lineColor }));
|
|
36441
36441
|
o.position.copy(s), this.pointGroup.add(o);
|
|
36442
36442
|
}), this.updateEdgePointsVisibility(), this.needsRender = !0;
|
|
36443
36443
|
}
|
|
@@ -36522,7 +36522,7 @@ class ln extends Ug {
|
|
|
36522
36522
|
d(this, "name", "PolylineMesh");
|
|
36523
36523
|
}
|
|
36524
36524
|
}
|
|
36525
|
-
class
|
|
36525
|
+
class _s extends Ug {
|
|
36526
36526
|
constructor(...e) {
|
|
36527
36527
|
super(ee(x({}, e[0]), { withDots: !0 }));
|
|
36528
36528
|
d(this, "name", "PolylineWithDotsMesh");
|
|
@@ -36620,7 +36620,7 @@ class Cc extends jt {
|
|
|
36620
36620
|
this.originObject.remove(this);
|
|
36621
36621
|
}
|
|
36622
36622
|
}
|
|
36623
|
-
class
|
|
36623
|
+
class ao extends Cc {
|
|
36624
36624
|
constructor(e, i) {
|
|
36625
36625
|
super(e);
|
|
36626
36626
|
d(this, "objectHelperConfig");
|
|
@@ -36648,14 +36648,14 @@ class Pc extends Cc {
|
|
|
36648
36648
|
});
|
|
36649
36649
|
}
|
|
36650
36650
|
get pointMeshes() {
|
|
36651
|
-
return this.children.filter((e) => e instanceof
|
|
36651
|
+
return this.children.filter((e) => e instanceof $s);
|
|
36652
36652
|
}
|
|
36653
36653
|
get pointHandles() {
|
|
36654
36654
|
return this.children;
|
|
36655
36655
|
}
|
|
36656
36656
|
enable() {
|
|
36657
36657
|
super.enable(), this.points.filter(ke).forEach((e) => {
|
|
36658
|
-
const i = new
|
|
36658
|
+
const i = new $s();
|
|
36659
36659
|
i.visible = !1, i.position.copy(e), i.draggable = !0, ct.modules.fiveDomEvents.addEventListener(i, "drag", this.onDrag), ct.modules.fiveDomEvents.addEventListener(i, "dragstart", this.onDragstart), ct.modules.fiveDomEvents.addEventListener(i, "dragend", this.onDragend), this.add(i);
|
|
36660
36660
|
});
|
|
36661
36661
|
}
|
|
@@ -36669,7 +36669,7 @@ class Y3 extends Pc {
|
|
|
36669
36669
|
d(this, "onDrag", (e) => {
|
|
36670
36670
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
36671
36671
|
return;
|
|
36672
|
-
const i =
|
|
36672
|
+
const i = io(ct.modules.five, e.raycaster);
|
|
36673
36673
|
this.draggingPoints.forEach((s) => s.position.copy(i.point)), this.originObject.lineMesh.setPoints(this.pointMeshes.map((s) => s.position));
|
|
36674
36674
|
});
|
|
36675
36675
|
}
|
|
@@ -36683,7 +36683,7 @@ class X3 extends Pc {
|
|
|
36683
36683
|
d(this, "onDrag", (e) => {
|
|
36684
36684
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
36685
36685
|
return;
|
|
36686
|
-
const i =
|
|
36686
|
+
const i = io(ct.modules.five, e.raycaster);
|
|
36687
36687
|
this.draggingPoints.forEach((s) => s.position.copy(i.point)), this.originObject.polyLineMesh.setPoints(this.pointMeshes.map((s) => s.position));
|
|
36688
36688
|
});
|
|
36689
36689
|
}
|
|
@@ -36700,7 +36700,7 @@ class ff extends Ci {
|
|
|
36700
36700
|
super(e, i);
|
|
36701
36701
|
d(this, "type", "Polyline");
|
|
36702
36702
|
d(this, "polyLineMesh");
|
|
36703
|
-
e && (this.polyLineMesh = new
|
|
36703
|
+
e && (this.polyLineMesh = new _s(x(x({}, e.style), e)), this.add(this.polyLineMesh)), this.editor = new X3(this), lt("esc", () => {
|
|
36704
36704
|
this.stopCreating();
|
|
36705
36705
|
});
|
|
36706
36706
|
}
|
|
@@ -36725,7 +36725,7 @@ class ff extends Ci {
|
|
|
36725
36725
|
create(e) {
|
|
36726
36726
|
return G(this, null, function* () {
|
|
36727
36727
|
this.removeChildren();
|
|
36728
|
-
const i = new
|
|
36728
|
+
const i = new _s(e);
|
|
36729
36729
|
this.polyLineMesh = i, this.add(this.polyLineMesh), yield Z3(i, this.pointSelector, e), this.editor.enable();
|
|
36730
36730
|
});
|
|
36731
36731
|
}
|
|
@@ -36762,7 +36762,7 @@ class J3 extends Cc {
|
|
|
36762
36762
|
super(e);
|
|
36763
36763
|
d(this, "onDrag", (e) => {
|
|
36764
36764
|
var s;
|
|
36765
|
-
const i =
|
|
36765
|
+
const i = io(ct.modules.five, e.raycaster);
|
|
36766
36766
|
(s = this.originObject.pointMesh) == null || s.position.copy(i.point);
|
|
36767
36767
|
});
|
|
36768
36768
|
}
|
|
@@ -36778,7 +36778,7 @@ class mf extends Ci {
|
|
|
36778
36778
|
super(e, i);
|
|
36779
36779
|
d(this, "type", "Point");
|
|
36780
36780
|
d(this, "pointMesh");
|
|
36781
|
-
this.editor = new J3(this), e && (this.pointMesh = new
|
|
36781
|
+
this.editor = new J3(this), e && (this.pointMesh = new $s(x(x({}, e.style), e)), this.add(this.pointMesh)), lt("esc", () => {
|
|
36782
36782
|
this.stopCreating();
|
|
36783
36783
|
});
|
|
36784
36784
|
}
|
|
@@ -36812,7 +36812,7 @@ class mf extends Ci {
|
|
|
36812
36812
|
*/
|
|
36813
36813
|
create(e) {
|
|
36814
36814
|
return G(this, null, function* () {
|
|
36815
|
-
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new
|
|
36815
|
+
this.pointMesh && this.remove(this.pointMesh), this.add(this.pointMesh = new $s(e)), yield q3(this.pointMesh, this.pointSelector), this.editor.enable();
|
|
36816
36816
|
});
|
|
36817
36817
|
}
|
|
36818
36818
|
}
|
|
@@ -37013,7 +37013,7 @@ class K3 extends Pc {
|
|
|
37013
37013
|
d(this, "onDrag", (e) => {
|
|
37014
37014
|
if (!this.draggingPoints || this.draggingPoints.length === 0)
|
|
37015
37015
|
return;
|
|
37016
|
-
const i =
|
|
37016
|
+
const i = io(ct.modules.five, e.raycaster), s = this.originObject.areaMesh.projectPoint(i.point);
|
|
37017
37017
|
this.draggingPoints.forEach((o) => o.position.copy(s)), this.originObject.areaMesh.setPoints(this.pointMeshes.map((o) => o.position));
|
|
37018
37018
|
});
|
|
37019
37019
|
}
|
|
@@ -37173,7 +37173,7 @@ class pr extends jt {
|
|
|
37173
37173
|
});
|
|
37174
37174
|
}
|
|
37175
37175
|
}
|
|
37176
|
-
class $3 extends
|
|
37176
|
+
class $3 extends ao {
|
|
37177
37177
|
constructor(t) {
|
|
37178
37178
|
super(t, () => {
|
|
37179
37179
|
const e = () => {
|
|
@@ -37252,7 +37252,7 @@ function ex(n, t) {
|
|
|
37252
37252
|
yield Yg(n.bottomPolygon, t);
|
|
37253
37253
|
const i = new Ut();
|
|
37254
37254
|
i.name = "LineHelper", e.add(i);
|
|
37255
|
-
const s = n.bottomPolygon.points.at(-1), o =
|
|
37255
|
+
const s = n.bottomPolygon.points.at(-1), o = oo(n.bottomPolygon.points).normalize(), r = s.clone().add(o.clone().multiplyScalar(10)), a = s.clone().sub(o.clone().multiplyScalar(10));
|
|
37256
37256
|
return i.setPoints([r, a]), t.enable(), new Promise((l, c) => {
|
|
37257
37257
|
const h = (v) => {
|
|
37258
37258
|
f(), l();
|
|
@@ -37273,7 +37273,7 @@ function ex(n, t) {
|
|
|
37273
37273
|
});
|
|
37274
37274
|
});
|
|
37275
37275
|
}
|
|
37276
|
-
class tx extends
|
|
37276
|
+
class tx extends ao {
|
|
37277
37277
|
constructor(t) {
|
|
37278
37278
|
super(t, () => ({ yAxis: t.rectangleMesh.up }));
|
|
37279
37279
|
}
|
|
@@ -37322,7 +37322,7 @@ class Xg extends mr {
|
|
|
37322
37322
|
this.up.copy(nx(i, ct.modules.five.camera.position)), this.points = i, this.geometry = new ix(i), this.planeHelperNeedUpdate = !0, this.geometryInfoNeedUpdate = !0;
|
|
37323
37323
|
}
|
|
37324
37324
|
}
|
|
37325
|
-
class
|
|
37325
|
+
class Qs extends Xg {
|
|
37326
37326
|
constructor(e) {
|
|
37327
37327
|
const o = e != null ? e : {}, { points: i } = o, s = yn(o, ["points"]);
|
|
37328
37328
|
super();
|
|
@@ -37355,13 +37355,13 @@ class Gs extends Xg {
|
|
|
37355
37355
|
super.unhighlight(), this.line.unhighlight();
|
|
37356
37356
|
}
|
|
37357
37357
|
}
|
|
37358
|
-
const
|
|
37358
|
+
const Go = new y.Vector3();
|
|
37359
37359
|
class bf extends Ci {
|
|
37360
37360
|
constructor(e, i) {
|
|
37361
37361
|
super(e, i);
|
|
37362
37362
|
d(this, "type", "Rectangle");
|
|
37363
37363
|
d(this, "rectangleMesh");
|
|
37364
|
-
this.config.canEdit && (this.editor = new tx(this)), e && (this.rectangleMesh = new
|
|
37364
|
+
this.config.canEdit && (this.editor = new tx(this)), e && (this.rectangleMesh = new Qs(x(x({}, e.style), e)), this.add(this.rectangleMesh)), lt("esc", () => {
|
|
37365
37365
|
this.stopCreating();
|
|
37366
37366
|
});
|
|
37367
37367
|
}
|
|
@@ -37386,7 +37386,7 @@ class bf extends Ci {
|
|
|
37386
37386
|
create(e) {
|
|
37387
37387
|
return G(this, null, function* () {
|
|
37388
37388
|
this.removeChildren();
|
|
37389
|
-
const i = new
|
|
37389
|
+
const i = new Qs(e);
|
|
37390
37390
|
this.rectangleMesh = i, this.add(this.rectangleMesh), yield Zg(this.rectangleMesh, this.pointSelector, e);
|
|
37391
37391
|
});
|
|
37392
37392
|
}
|
|
@@ -37397,7 +37397,7 @@ function Zg(n, t, e) {
|
|
|
37397
37397
|
const o = n.parent;
|
|
37398
37398
|
if (!o)
|
|
37399
37399
|
return s(new Error("No container"));
|
|
37400
|
-
const r = (I = e == null ? void 0 : e.limit) != null ? I : "none", a = (P = e == null ? void 0 : e.drawMethod) != null ? P : "diagonal", l = new
|
|
37400
|
+
const r = (I = e == null ? void 0 : e.limit) != null ? I : "none", a = (P = e == null ? void 0 : e.drawMethod) != null ? P : "diagonal", l = new _s(ee(x({}, n.style), { dashed: !0, lengthEnable: !1 })), c = new _s(ee(x({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new _s(ee(x({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
37401
37401
|
o.add(l, h, c), t.enable();
|
|
37402
37402
|
const u = [];
|
|
37403
37403
|
let f = new y.Vector3(), m = new y.Vector3();
|
|
@@ -37413,23 +37413,23 @@ function Zg(n, t, e) {
|
|
|
37413
37413
|
return;
|
|
37414
37414
|
}
|
|
37415
37415
|
if (u.length === 1 && r === "y") {
|
|
37416
|
-
const U = new y.Line3(new y.Vector3(0, 1, 0).add(u[0]), new y.Vector3(0, -1, 0).add(u[0])).closestPointToPoint(k.point, !1,
|
|
37416
|
+
const U = new y.Line3(new y.Vector3(0, 1, 0).add(u[0]), new y.Vector3(0, -1, 0).add(u[0])).closestPointToPoint(k.point, !1, new y.Vector3());
|
|
37417
37417
|
n.setPoints([u[0], U, k.point]);
|
|
37418
37418
|
return;
|
|
37419
37419
|
}
|
|
37420
37420
|
if (u.length === 1) {
|
|
37421
|
-
v ? (f = k.raycaster.ray.intersectPlane(v,
|
|
37421
|
+
v ? (f = k.raycaster.ray.intersectPlane(v, Go), c.setPoints([f, k.point])) : f = k.point.clone(), l.setPoints([E, f]);
|
|
37422
37422
|
return;
|
|
37423
37423
|
}
|
|
37424
37424
|
if (u.length === 2) {
|
|
37425
37425
|
o.remove(l);
|
|
37426
|
-
const V = k.raycaster.ray.intersectPlane(v,
|
|
37426
|
+
const V = k.raycaster.ray.intersectPlane(v, Go);
|
|
37427
37427
|
if (a === "diagonal") {
|
|
37428
37428
|
const U = u[0].distanceTo(u[1]) / 2, N = new y.Vector3().lerpVectors(u[0], u[1], 0.5), _ = new y.Vector3().subVectors(V, N).normalize();
|
|
37429
37429
|
f = new y.Vector3().addVectors(N, _.multiplyScalar(U)), n.setPoints([u[0], f, u[1]]);
|
|
37430
37430
|
} else if (a === "vertex") {
|
|
37431
|
-
const U =
|
|
37432
|
-
f = new y.Line3(u[1].clone().add(U), u[1].clone().sub(U)).closestPointToPoint(k.point, !1,
|
|
37431
|
+
const U = Go.crossVectors(u[0].clone().sub(u[1]), v.normal).normalize();
|
|
37432
|
+
f = new y.Line3(u[1].clone().add(U), u[1].clone().sub(U)).closestPointToPoint(k.point, !1, Go), n.setPoints([u[0], u[1], f]);
|
|
37433
37433
|
}
|
|
37434
37434
|
return;
|
|
37435
37435
|
}
|
|
@@ -37441,7 +37441,7 @@ function Zg(n, t, e) {
|
|
|
37441
37441
|
t.on("select", p), t.on("intersectionUpdate", g), t.on("disable", w);
|
|
37442
37442
|
});
|
|
37443
37443
|
}
|
|
37444
|
-
class sx extends
|
|
37444
|
+
class sx extends ao {
|
|
37445
37445
|
constructor(t) {
|
|
37446
37446
|
super(t, () => ({ yAxis: t.circleMesh.normal }));
|
|
37447
37447
|
}
|
|
@@ -37636,7 +37636,7 @@ class wf extends jt {
|
|
|
37636
37636
|
this.edgeMesh.position.copy(new y.Vector3().lerpVectors(i, e, 0.5)), this.edgeMesh.quaternion.copy(s);
|
|
37637
37637
|
}
|
|
37638
37638
|
}
|
|
37639
|
-
class rx extends
|
|
37639
|
+
class rx extends ao {
|
|
37640
37640
|
constructor(t) {
|
|
37641
37641
|
super(t, () => {
|
|
37642
37642
|
const e = () => {
|
|
@@ -37730,7 +37730,7 @@ function ax(n, t) {
|
|
|
37730
37730
|
});
|
|
37731
37731
|
});
|
|
37732
37732
|
}
|
|
37733
|
-
class lx extends
|
|
37733
|
+
class lx extends ao {
|
|
37734
37734
|
constructor(t) {
|
|
37735
37735
|
super(t, () => {
|
|
37736
37736
|
const e = () => {
|
|
@@ -37777,7 +37777,7 @@ class Pf extends jt {
|
|
|
37777
37777
|
d(this, "topPlane");
|
|
37778
37778
|
d(this, "heightPoint");
|
|
37779
37779
|
d(this, "edgePlanes", []);
|
|
37780
|
-
this.bottomPlane = new
|
|
37780
|
+
this.bottomPlane = new Qs(e), this.topPlane = new Qs(e), this.add(this.bottomPlane), e != null && e.points && this.setPoints(e);
|
|
37781
37781
|
}
|
|
37782
37782
|
get planes() {
|
|
37783
37783
|
return this.children.filter((e) => e instanceof Xg);
|
|
@@ -37824,7 +37824,7 @@ class Pf extends jt {
|
|
|
37824
37824
|
setEdgePlanes() {
|
|
37825
37825
|
for (let e = 0; e < 4; e++) {
|
|
37826
37826
|
let i = this.edgePlanes[e];
|
|
37827
|
-
i || (this.edgePlanes[e] = new
|
|
37827
|
+
i || (this.edgePlanes[e] = new Qs({
|
|
37828
37828
|
color: this.color,
|
|
37829
37829
|
lineColor: this.lineColor,
|
|
37830
37830
|
lineWidth: this.lineWidth,
|
|
@@ -37887,7 +37887,7 @@ function cx(n, t) {
|
|
|
37887
37887
|
i(new Error("No container"));
|
|
37888
37888
|
return;
|
|
37889
37889
|
}
|
|
37890
|
-
const o = new Ut(), r =
|
|
37890
|
+
const o = new Ut(), r = oo(n.bottomPlane.points).normalize(), a = n.bottomPlane.builtPoints.at(-1), l = a.clone().add(r.clone().multiplyScalar(10)), c = a.clone().sub(r.clone().multiplyScalar(10));
|
|
37891
37891
|
o.setPoints([l, c]), s.add(o), t.enable();
|
|
37892
37892
|
const h = (v) => {
|
|
37893
37893
|
f(), e();
|
|
@@ -38474,7 +38474,7 @@ kp();
|
|
|
38474
38474
|
Mp();
|
|
38475
38475
|
export {
|
|
38476
38476
|
YD as AreaMakerPlugin,
|
|
38477
|
-
|
|
38477
|
+
Ys as CSS3DRender,
|
|
38478
38478
|
kr as CSS3DRenderPlugin,
|
|
38479
38479
|
J1 as CameraMovementEffect,
|
|
38480
38480
|
hD as CameraMovementPlugin,
|
|
@@ -38483,7 +38483,7 @@ export {
|
|
|
38483
38483
|
yc as CruisePluginController,
|
|
38484
38484
|
FD as CruisePluginTypes,
|
|
38485
38485
|
XD as CurrentPanoImagePlugin,
|
|
38486
|
-
|
|
38486
|
+
js as DIRECTION,
|
|
38487
38487
|
Dn as DISPLAY_STRATEGY_TYPE,
|
|
38488
38488
|
ik as DimensionType,
|
|
38489
38489
|
$i as FLOOR_PLAN_ATTACHED_TO,
|