@realsee/dnalogel 3.77.3 → 3.77.4
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 +5 -0
- package/dist/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/dist/index.cjs.js +34 -34
- package/dist/index.js +602 -594
- package/dist/index.umd.js +34 -34
- package/libs/Sculpt/Objects/Base/Editor.d.ts +9 -2
- package/libs/Sculpt/Objects/Base/Editor.js +72 -63
- 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
|
@@ -2,14 +2,14 @@ var BA = Object.defineProperty, VA = Object.defineProperties;
|
|
|
2
2
|
var FA = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var xa = Object.getOwnPropertySymbols;
|
|
4
4
|
var fu = Object.prototype.hasOwnProperty, pu = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Jn = Math.pow, ac = (n, t, e) => t in n ? BA(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e,
|
|
5
|
+
var Jn = Math.pow, ac = (n, t, e) => t in n ? BA(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e, _ = (n, t) => {
|
|
6
6
|
for (var e in t || (t = {}))
|
|
7
7
|
fu.call(t, e) && ac(n, e, t[e]);
|
|
8
8
|
if (xa)
|
|
9
9
|
for (var e of xa(t))
|
|
10
10
|
pu.call(t, e) && ac(n, e, t[e]);
|
|
11
11
|
return n;
|
|
12
|
-
},
|
|
12
|
+
}, le = (n, t) => VA(n, FA(t));
|
|
13
13
|
var Kn = (n, t) => {
|
|
14
14
|
var e = {};
|
|
15
15
|
for (var i in n)
|
|
@@ -43,7 +43,7 @@ import { LineGeometry as Pb, LineMaterial as Cb, THREE_Line2 as Ib, Line as M0 }
|
|
|
43
43
|
import { GLTFLoader as Eb } from "@realsee/five/gltf-loader";
|
|
44
44
|
function Mb() {
|
|
45
45
|
console.debug(
|
|
46
|
-
"%c %c@realsee/dnalogel %cv3.77.
|
|
46
|
+
"%c %c@realsee/dnalogel %cv3.77.4",
|
|
47
47
|
[
|
|
48
48
|
"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=')",
|
|
49
49
|
"background-repeat: no-repeat",
|
|
@@ -1767,7 +1767,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1767
1767
|
var U = F.ownerDocument || F;
|
|
1768
1768
|
return U.defaultView || U.parentWindow || t;
|
|
1769
1769
|
}
|
|
1770
|
-
var q = /mobile|tablet|ip(ad|hone|od)|android/i, ie = "ontouchstart" in t, K = S(t, "PointerEvent") !== s, oe = ie && q.test(navigator.userAgent), $ = "touch", ue = "pen", Le = "mouse", re = "kinect", Me = 25, de = 1,
|
|
1770
|
+
var q = /mobile|tablet|ip(ad|hone|od)|android/i, ie = "ontouchstart" in t, K = S(t, "PointerEvent") !== s, oe = ie && q.test(navigator.userAgent), $ = "touch", ue = "pen", Le = "mouse", re = "kinect", Me = 25, de = 1, ce = 2, Se = 4, ee = 8, Te = 1, Re = 2, Ae = 4, Ve = 8, ge = 16, Ie = Re | Ae, Oe = Ve | ge, Xe = Ie | Oe, Ye = ["x", "y"], st = ["clientX", "clientY"];
|
|
1771
1771
|
function Je(F, U) {
|
|
1772
1772
|
var Z = this;
|
|
1773
1773
|
this.manager = F, this.callback = U, this.element = F.element, this.target = F.options.inputTarget, this.domHandler = function(ne) {
|
|
@@ -1886,7 +1886,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1886
1886
|
}
|
|
1887
1887
|
var Bn = {
|
|
1888
1888
|
mousedown: de,
|
|
1889
|
-
mousemove:
|
|
1889
|
+
mousemove: ce,
|
|
1890
1890
|
mouseup: Se
|
|
1891
1891
|
}, no = "mousedown", Vn = "mousemove mouseup";
|
|
1892
1892
|
function Si() {
|
|
@@ -1899,7 +1899,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1899
1899
|
*/
|
|
1900
1900
|
handler: function(U) {
|
|
1901
1901
|
var Z = Bn[U.type];
|
|
1902
|
-
Z & de && U.button === 0 && (this.pressed = !0), Z &
|
|
1902
|
+
Z & de && U.button === 0 && (this.pressed = !0), Z & ce && U.which !== 1 && (Z = Se), this.pressed && (Z & Se && (this.pressed = !1), this.callback(this.manager, Z, {
|
|
1903
1903
|
pointers: [U],
|
|
1904
1904
|
changedPointers: [U],
|
|
1905
1905
|
pointerType: Le,
|
|
@@ -1909,7 +1909,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1909
1909
|
});
|
|
1910
1910
|
var yi = {
|
|
1911
1911
|
pointerdown: de,
|
|
1912
|
-
pointermove:
|
|
1912
|
+
pointermove: ce,
|
|
1913
1913
|
pointerup: Se,
|
|
1914
1914
|
pointercancel: ee,
|
|
1915
1915
|
pointerout: ee
|
|
@@ -1941,7 +1941,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1941
1941
|
});
|
|
1942
1942
|
var mn = {
|
|
1943
1943
|
touchstart: de,
|
|
1944
|
-
touchmove:
|
|
1944
|
+
touchmove: ce,
|
|
1945
1945
|
touchend: Se,
|
|
1946
1946
|
touchcancel: ee
|
|
1947
1947
|
}, Cs = "touchstart", Is = "touchstart touchmove touchend touchcancel";
|
|
@@ -1968,7 +1968,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1968
1968
|
}
|
|
1969
1969
|
var so = {
|
|
1970
1970
|
touchstart: de,
|
|
1971
|
-
touchmove:
|
|
1971
|
+
touchmove: ce,
|
|
1972
1972
|
touchend: Se,
|
|
1973
1973
|
touchcancel: ee
|
|
1974
1974
|
}, _i = "touchstart touchmove touchend touchcancel";
|
|
@@ -1988,7 +1988,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
1988
1988
|
});
|
|
1989
1989
|
function hr(F, U) {
|
|
1990
1990
|
var Z = M(F.touches), ne = this.targetIds;
|
|
1991
|
-
if (U & (de |
|
|
1991
|
+
if (U & (de | ce) && Z.length === 1)
|
|
1992
1992
|
return ne[Z[0].identifier] = !0, [Z, Z];
|
|
1993
1993
|
var be, ze, Qe = M(F.changedTouches), Pt = [], Mt = this.target;
|
|
1994
1994
|
if (ze = Z.filter(function(Ot) {
|
|
@@ -2764,7 +2764,7 @@ var zi = typeof globalThis != "undefined" ? globalThis : typeof window != "undef
|
|
|
2764
2764
|
}
|
|
2765
2765
|
g(wi, {
|
|
2766
2766
|
INPUT_START: de,
|
|
2767
|
-
INPUT_MOVE:
|
|
2767
|
+
INPUT_MOVE: ce,
|
|
2768
2768
|
INPUT_END: Se,
|
|
2769
2769
|
INPUT_CANCEL: ee,
|
|
2770
2770
|
STATE_POSSIBLE: Un,
|
|
@@ -3940,7 +3940,7 @@ class ki extends Ai {
|
|
|
3940
3940
|
f(this, "onPanoArrived", () => {
|
|
3941
3941
|
setTimeout(() => this.updateDomItems({ force: !0 }), 100);
|
|
3942
3942
|
});
|
|
3943
|
-
this.paramsStyle =
|
|
3943
|
+
this.paramsStyle = _({ dashed: !1, lineOpacity: 1 }, e), this.geometry = new Za();
|
|
3944
3944
|
const i = {
|
|
3945
3945
|
color: new y.Color((r = e == null ? void 0 : e.lineColor) != null ? r : hy),
|
|
3946
3946
|
linewidth: (a = e == null ? void 0 : e.lineWidth) != null ? a : dy,
|
|
@@ -3950,7 +3950,7 @@ class ki extends Ai {
|
|
|
3950
3950
|
opacity: (l = e == null ? void 0 : e.lineOpacity) != null ? l : 1,
|
|
3951
3951
|
depthWrite: !1,
|
|
3952
3952
|
transparent: !0
|
|
3953
|
-
}, s = new py(
|
|
3953
|
+
}, s = new py(le(_({}, i), { dashed: !1, depthTest: !0 })), o = new my(le(_({}, i), { dashed: !0, depthTest: !1 }));
|
|
3954
3954
|
if (this.line1 = new ku(this.geometry, s), this.line2 = new ku(this.geometry, o), this.line1.renderOrder = 2, this.line2.renderOrder = 2, this.line1.name = "line1", this.line2.name = "line2", this.add(this.line1), this.five) {
|
|
3955
3955
|
const h = (c = this.five.renderer) == null ? void 0 : c.getSize(new y.Vector2());
|
|
3956
3956
|
h && this.setResolution(h.width, h.height), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("cameraFovUpdate", this.onCameraUpdate), this.five.on("panoArrived", this.onPanoArrived);
|
|
@@ -4038,7 +4038,7 @@ class ki extends Ai {
|
|
|
4038
4038
|
}
|
|
4039
4039
|
setStyle(e) {
|
|
4040
4040
|
var o, r, a, l;
|
|
4041
|
-
if (this.paramsStyle =
|
|
4041
|
+
if (this.paramsStyle = _(_({}, this.paramsStyle), e), Ne(e.lineColor)) {
|
|
4042
4042
|
const c = new y.Color(e.lineColor);
|
|
4043
4043
|
this.line1.material.three_color = c, this.line2.material.three_color = c;
|
|
4044
4044
|
}
|
|
@@ -4196,7 +4196,7 @@ function yy() {
|
|
|
4196
4196
|
lineColor: 3407837,
|
|
4197
4197
|
lineOpacity: 0.7,
|
|
4198
4198
|
occlusionVisibility: !0
|
|
4199
|
-
}, i = new ki(
|
|
4199
|
+
}, i = new ki(le(_({ points: [{ x: -0.5 }, { x: 0.5 }] }, e), { lineColor: 3407837 })), s = new ki(le(_({ points: [{ y: -0.5 }, { y: 0.5 }] }, e), { lineColor: 3407837 }));
|
|
4200
4200
|
return t.add(i, s), t;
|
|
4201
4201
|
}
|
|
4202
4202
|
function wy(n) {
|
|
@@ -4297,7 +4297,7 @@ class _0 {
|
|
|
4297
4297
|
f(this, "abortUpdateMagnifier", () => {
|
|
4298
4298
|
});
|
|
4299
4299
|
var s, o, r, a, l;
|
|
4300
|
-
this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new Nh(t,
|
|
4300
|
+
this.five = t, this.magnifier = (e == null ? void 0 : e.magnifier) !== void 0 ? e.magnifier : new Nh(t, le(_({ dragEnabled: !0 }, e == null ? void 0 : e.magnifierParams), { skipPanorama: (s = e == null ? void 0 : e.skipPanorama) != null ? s : !1 }));
|
|
4301
4301
|
let i = null;
|
|
4302
4302
|
(e == null ? void 0 : e.pointHelper) === "default" || (e == null ? void 0 : e.pointHelper) === void 0 ? i = new U0(t) : (e == null ? void 0 : e.pointHelper) === "highlight" ? i = new Ey(t) : (e == null ? void 0 : e.pointHelper) === null ? i = null : i = e.pointHelper, this.pointHelper = i, this.group.name = "five-point-selector", this.five.scene.add(this.group), (l = this.magnifier) == null || l.appendTo((a = (r = e.container) != null ? r : (o = t.getElement()) == null ? void 0 : o.parentElement) != null ? a : document.body);
|
|
4303
4303
|
}
|
|
@@ -4339,7 +4339,7 @@ function V0(n, t = 3) {
|
|
|
4339
4339
|
function ky(n, t) {
|
|
4340
4340
|
const s = Ei(n).intersectRaycaster(t)[0];
|
|
4341
4341
|
if (s)
|
|
4342
|
-
return
|
|
4342
|
+
return le(_({}, s), { raycaster: t, isVirtual: !1 });
|
|
4343
4343
|
}
|
|
4344
4344
|
const xu = `url("data:image/svg+xml,%3Csvg width='12px' height='12px' viewBox='0 0 12 12' xmlns='http://www.w3.org/2000/svg'%3E%3Cg stroke='none' stroke-width='1' fill='none' fill-rule='evenodd'%3E%3Cpath d='M6,12 C9.3137085,12 12,9.3137085 12,6 C12,2.6862915 9.3137085,0 6,0 C2.6862915,0 0,2.6862915 0,6 C0,9.3137085 2.6862915,12 6,12 Z' fill='%23FF5959'%3E%3C/path%3E%3Cg transform='translate(2, 2)' stroke='%23FFFFFF'%3E%3Ccircle cx='4' cy='4' r='4'%3E%3C/circle%3E%3Cline x1='1.07141075' y1='1.23997894' x2='6.64700843' y2='6.81557662'%3E%3C/line%3E%3C/g%3E%3C/g%3E%3C/svg%3E") 6 6, auto`, xy = new y.Vector3();
|
|
4345
4345
|
function Tn(n) {
|
|
@@ -4517,7 +4517,7 @@ class Ol extends kt {
|
|
|
4517
4517
|
this.config.hitFilter && (i.hitFilter = this.config.hitFilter);
|
|
4518
4518
|
let s = fa(this.five, i);
|
|
4519
4519
|
if (s) {
|
|
4520
|
-
if (this.plane && this.planeMode === "vertical" && (s =
|
|
4520
|
+
if (this.plane && this.planeMode === "vertical" && (s = le(_({}, s), {
|
|
4521
4521
|
point: this.plane.projectPoint(s.point, new y.Vector3()),
|
|
4522
4522
|
face: new y.Face3(0, 0, 0, this.plane.normal.clone()),
|
|
4523
4523
|
originalPoint: s.point.clone()
|
|
@@ -4567,7 +4567,7 @@ class Ol extends kt {
|
|
|
4567
4567
|
return;
|
|
4568
4568
|
}
|
|
4569
4569
|
this.onEnter(), this.cursorError || (this.five.getElement().style.cursor = "");
|
|
4570
|
-
const i =
|
|
4570
|
+
const i = _({}, e);
|
|
4571
4571
|
if (this.adhereEnabled && this.mouseNdcPosition && this.five.renderer) {
|
|
4572
4572
|
const u = {
|
|
4573
4573
|
x: this.mouseNdcPosition.x,
|
|
@@ -4661,15 +4661,15 @@ class Ol extends kt {
|
|
|
4661
4661
|
f(this, "emitIntersectionUpdate", (e) => {
|
|
4662
4662
|
this.emit("intersectionUpdate", e);
|
|
4663
4663
|
});
|
|
4664
|
-
this.five = e, this.config =
|
|
4664
|
+
this.five = e, this.config = _(_({}, this.config), i), this.actionIfNoIntersection = (a = (r = i == null ? void 0 : i.actionIfNoIntersection) != null ? r : i == null ? void 0 : i.actionIfNoModelUnderMouse) != null ? a : "virtualPoint";
|
|
4665
4665
|
const s = (l = i == null ? void 0 : i.mode) != null ? l : "auto";
|
|
4666
4666
|
s === "auto" ? this.mode = B0 ? "fixed" : "cursor" : this.mode = s;
|
|
4667
4667
|
const o = {
|
|
4668
4668
|
autoFixPCPosition: this.mode === "cursor",
|
|
4669
4669
|
initialPosition: this.mode === "fixed" ? { left: "35%", top: "20%" } : void 0
|
|
4670
4670
|
};
|
|
4671
|
-
this.pointSelectorHelper = new _0(this.five,
|
|
4672
|
-
magnifierParams:
|
|
4671
|
+
this.pointSelectorHelper = new _0(this.five, le(_({}, i == null ? void 0 : i.helper), {
|
|
4672
|
+
magnifierParams: _(_({}, o), (c = i == null ? void 0 : i.helper) == null ? void 0 : c.magnifierParams),
|
|
4673
4673
|
skipPanorama: (h = i == null ? void 0 : i.skipPanorama) != null ? h : !1
|
|
4674
4674
|
})), this.pointSelectorHelper.hide();
|
|
4675
4675
|
}
|
|
@@ -6214,7 +6214,7 @@ function Vl(n, t) {
|
|
|
6214
6214
|
if (o.length === 0)
|
|
6215
6215
|
return Yr("No valid targets found"), ll();
|
|
6216
6216
|
zn.storeState(o);
|
|
6217
|
-
const r =
|
|
6217
|
+
const r = le(_(_({}, sd), t), {
|
|
6218
6218
|
targets: o,
|
|
6219
6219
|
update: yw(o, t || {})
|
|
6220
6220
|
}), a = ct(r);
|
|
@@ -6249,7 +6249,7 @@ function A1(n, t) {
|
|
|
6249
6249
|
if (o.length === 0)
|
|
6250
6250
|
return Yr("No valid targets found"), ll();
|
|
6251
6251
|
zn.storeState(o);
|
|
6252
|
-
const r =
|
|
6252
|
+
const r = le(_(_({}, sd), t), {
|
|
6253
6253
|
targets: o,
|
|
6254
6254
|
update: ww(o, t || {})
|
|
6255
6255
|
}), a = ct(r);
|
|
@@ -6278,7 +6278,7 @@ function A1(n, t) {
|
|
|
6278
6278
|
}
|
|
6279
6279
|
function Pw(n, t, e) {
|
|
6280
6280
|
const i = m1[t];
|
|
6281
|
-
return Vl(n,
|
|
6281
|
+
return Vl(n, _(_({}, i), e));
|
|
6282
6282
|
}
|
|
6283
6283
|
function Cw() {
|
|
6284
6284
|
zn.clear();
|
|
@@ -6288,7 +6288,7 @@ function Iw(n, t) {
|
|
|
6288
6288
|
a.setFromCamera({ x: o, y: r }, n.camera);
|
|
6289
6289
|
const c = e.intersectRaycaster(a)[0];
|
|
6290
6290
|
if (c)
|
|
6291
|
-
return
|
|
6291
|
+
return le(_({}, c), { raycaster: a, isVirtual: !1 });
|
|
6292
6292
|
}
|
|
6293
6293
|
function Ew(n, t) {
|
|
6294
6294
|
const e = n.getElement();
|
|
@@ -6503,7 +6503,7 @@ class Zr {
|
|
|
6503
6503
|
s && (e ? s.add(i) : s.remove(i));
|
|
6504
6504
|
});
|
|
6505
6505
|
f(this, "createObject", (t, e) => {
|
|
6506
|
-
const i = new G0(
|
|
6506
|
+
const i = new G0(le(_({ cornerPoints: t }, e), { style: e.wrapperStyle }));
|
|
6507
6507
|
return i.element.classList.add(`${ih}__container`), i.element.id = `${ih}__container--${i.uuid}`, i;
|
|
6508
6508
|
});
|
|
6509
6509
|
t && this.setScene(t);
|
|
@@ -6532,7 +6532,7 @@ class Zr {
|
|
|
6532
6532
|
setState(t, e = { userAction: !0 }) {
|
|
6533
6533
|
if (this.state.disposed)
|
|
6534
6534
|
return vo();
|
|
6535
|
-
const i =
|
|
6535
|
+
const i = _({}, this.state);
|
|
6536
6536
|
this.state = Object.assign(this.state, t), i.visible !== this.state.visible && (t.visible ? this.handleShow() : this.handleHide()), i.enabled !== this.state.enabled && (t.enabled ? this.handleEnable() : this.handleDisable()), i.disposed !== this.state.disposed && this.handleDispose(), this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: e.userAction });
|
|
6537
6537
|
}
|
|
6538
6538
|
dispose() {
|
|
@@ -6707,7 +6707,7 @@ let Ow = class extends Zr {
|
|
|
6707
6707
|
return Object.assign(h, i, (i == null ? void 0 : i.mode) === "behind" ? { scene: this.five.scene } : void 0);
|
|
6708
6708
|
})(), { autoRender: o } = s;
|
|
6709
6709
|
s.mode === "behind" && s.behindFiveContainer && (this.behindFiveContainer = s.behindFiveContainer);
|
|
6710
|
-
const r = this.create3DElement(this.five.camera, e,
|
|
6710
|
+
const r = this.create3DElement(this.five.camera, e, le(_({}, s), { autoRender: !1 }));
|
|
6711
6711
|
if (!r)
|
|
6712
6712
|
return;
|
|
6713
6713
|
const a = r.dispose;
|
|
@@ -6721,7 +6721,7 @@ let Ow = class extends Zr {
|
|
|
6721
6721
|
}, c = () => {
|
|
6722
6722
|
Mi(this.five).then(() => l());
|
|
6723
6723
|
};
|
|
6724
|
-
return o && c(),
|
|
6724
|
+
return o && c(), le(_({}, r), { render: o ? void 0 : c });
|
|
6725
6725
|
});
|
|
6726
6726
|
this.five = e;
|
|
6727
6727
|
}
|
|
@@ -7302,13 +7302,13 @@ function c2(n, t, e) {
|
|
|
7302
7302
|
}
|
|
7303
7303
|
if (n.state.mode === "Mapview")
|
|
7304
7304
|
return n.updateCamera(
|
|
7305
|
-
|
|
7305
|
+
_({
|
|
7306
7306
|
offset: r,
|
|
7307
7307
|
distance: A
|
|
7308
7308
|
}, w),
|
|
7309
7309
|
800
|
|
7310
7310
|
);
|
|
7311
|
-
n.setState(
|
|
7311
|
+
n.setState(_({
|
|
7312
7312
|
mode: "Mapview",
|
|
7313
7313
|
offset: r,
|
|
7314
7314
|
distance: A
|
|
@@ -7339,13 +7339,13 @@ function M1(n, t, e) {
|
|
|
7339
7339
|
const m = u((v = d[1]) != null ? v : 0), p = Bs(t.clone().sub(m).normalize());
|
|
7340
7340
|
if (n.state.mode === "Mapview")
|
|
7341
7341
|
return n.updateCamera(
|
|
7342
|
-
|
|
7342
|
+
_({
|
|
7343
7343
|
offset: t,
|
|
7344
7344
|
distance: i
|
|
7345
7345
|
}, p),
|
|
7346
7346
|
800
|
|
7347
7347
|
);
|
|
7348
|
-
n.setState(
|
|
7348
|
+
n.setState(_({
|
|
7349
7349
|
mode: "Mapview",
|
|
7350
7350
|
offset: t,
|
|
7351
7351
|
distance: i
|
|
@@ -7464,7 +7464,7 @@ class No {
|
|
|
7464
7464
|
if (!r)
|
|
7465
7465
|
return !1;
|
|
7466
7466
|
const D = r.slice(1);
|
|
7467
|
-
return D[0] ? this.notify(
|
|
7467
|
+
return D[0] ? this.notify(le(_({}, t), { object: D[0].object, intersects: D })) : !1;
|
|
7468
7468
|
};
|
|
7469
7469
|
let u = i;
|
|
7470
7470
|
for (h.push(u); u.parent; )
|
|
@@ -7564,7 +7564,7 @@ class No {
|
|
|
7564
7564
|
* @return {void}
|
|
7565
7565
|
*/
|
|
7566
7566
|
addEventListener(t, e, i, s) {
|
|
7567
|
-
t._domEvent || (t._domEvent = {}), t._domEvent[`${e}Handler`] || (t._domEvent[`${e}Handler`] = []), this.boundObject[e] || (this.boundObject[e] = []), this.boundObject[e].includes(t) || this.boundObject[e].push(t), t._domEvent[`${e}Handler`].push([i,
|
|
7567
|
+
t._domEvent || (t._domEvent = {}), t._domEvent[`${e}Handler`] || (t._domEvent[`${e}Handler`] = []), this.boundObject[e] || (this.boundObject[e] = []), this.boundObject[e].includes(t) || this.boundObject[e].push(t), t._domEvent[`${e}Handler`].push([i, _({ noEmitWhenHide: !1, noEmitWhenNotInScene: !1 }, s)]);
|
|
7568
7568
|
}
|
|
7569
7569
|
removeEventListener(t, e, i, ...s) {
|
|
7570
7570
|
var r, a;
|
|
@@ -7830,7 +7830,7 @@ const bT = (n, t) => {
|
|
|
7830
7830
|
var E, M;
|
|
7831
7831
|
const e = new kt();
|
|
7832
7832
|
let i = (M = (E = t == null ? void 0 : t.initialState) == null ? void 0 : E.enabled) != null ? M : !0, s = !1, o = !0, r = null;
|
|
7833
|
-
const l =
|
|
7833
|
+
const l = _(_({}, {
|
|
7834
7834
|
lookAtCurrentCamera: !1,
|
|
7835
7835
|
lockedPanoIndex: null,
|
|
7836
7836
|
lockedLatitude: null,
|
|
@@ -8091,7 +8091,7 @@ function bd(n) {
|
|
|
8091
8091
|
}
|
|
8092
8092
|
};
|
|
8093
8093
|
}
|
|
8094
|
-
function
|
|
8094
|
+
function B(n, t) {
|
|
8095
8095
|
n.appendChild(t);
|
|
8096
8096
|
}
|
|
8097
8097
|
function De(n, t, e) {
|
|
@@ -8112,7 +8112,7 @@ function E2(n) {
|
|
|
8112
8112
|
return z1(yd(n), t), t.sheet;
|
|
8113
8113
|
}
|
|
8114
8114
|
function z1(n, t) {
|
|
8115
|
-
return
|
|
8115
|
+
return B(n.head || n, t), t.sheet;
|
|
8116
8116
|
}
|
|
8117
8117
|
function X(n, t, e) {
|
|
8118
8118
|
n.insertBefore(t, e || null);
|
|
@@ -8181,7 +8181,7 @@ function wd(n, t) {
|
|
|
8181
8181
|
r.source === i.contentWindow && t();
|
|
8182
8182
|
})) : (i.src = "about:blank", i.onload = () => {
|
|
8183
8183
|
o = je(i.contentWindow, "resize", t), t();
|
|
8184
|
-
}),
|
|
8184
|
+
}), B(n, i), () => {
|
|
8185
8185
|
(s || o && i.contentWindow) && o(), Q(i);
|
|
8186
8186
|
};
|
|
8187
8187
|
}
|
|
@@ -8820,7 +8820,7 @@ function V2(n) {
|
|
|
8820
8820
|
);
|
|
8821
8821
|
},
|
|
8822
8822
|
m(h, d) {
|
|
8823
|
-
X(h, t, d),
|
|
8823
|
+
X(h, t, d), B(t, e), B(e, s), B(t, r), B(t, a), l || (c = je(
|
|
8824
8824
|
e,
|
|
8825
8825
|
"click",
|
|
8826
8826
|
/*onClick*/
|
|
@@ -9367,7 +9367,7 @@ function c3(n, t, e) {
|
|
|
9367
9367
|
}
|
|
9368
9368
|
return o.map((T) => {
|
|
9369
9369
|
const O = d(T), b = O ? u(T, C) : T.transform, E = D(T), k = o.filter((S) => S.visible && D(S) < E).length * 10;
|
|
9370
|
-
return
|
|
9370
|
+
return le(_({}, T), { visible: O, transform: b, zIndex: k });
|
|
9371
9371
|
});
|
|
9372
9372
|
}
|
|
9373
9373
|
function p() {
|
|
@@ -9625,7 +9625,7 @@ function A3(n) {
|
|
|
9625
9625
|
/*svgStyle*/
|
|
9626
9626
|
n[1],
|
|
9627
9627
|
t
|
|
9628
|
-
),
|
|
9628
|
+
), B(t, i), s.m(
|
|
9629
9629
|
/*content*/
|
|
9630
9630
|
n[0],
|
|
9631
9631
|
t
|
|
@@ -9820,7 +9820,7 @@ function k3(n) {
|
|
|
9820
9820
|
);
|
|
9821
9821
|
},
|
|
9822
9822
|
m(l, c) {
|
|
9823
|
-
X(l, t, c),
|
|
9823
|
+
X(l, t, c), B(t, e), B(t, s), B(t, o), B(o, a);
|
|
9824
9824
|
},
|
|
9825
9825
|
p(l, [c]) {
|
|
9826
9826
|
c & /*item*/
|
|
@@ -10047,7 +10047,7 @@ function R3(n) {
|
|
|
10047
10047
|
);
|
|
10048
10048
|
},
|
|
10049
10049
|
m(h, d) {
|
|
10050
|
-
X(h, t, d), a && a.m(t, null),
|
|
10050
|
+
X(h, t, d), a && a.m(t, null), B(t, e), l && l.m(t, null), X(h, i, d), c && c.m(h, d), X(h, s, d), o || (r = [
|
|
10051
10051
|
ai(Ri.call(null, t)),
|
|
10052
10052
|
je(
|
|
10053
10053
|
t,
|
|
@@ -10107,7 +10107,7 @@ function Zu(n) {
|
|
|
10107
10107
|
);
|
|
10108
10108
|
},
|
|
10109
10109
|
m(s, o) {
|
|
10110
|
-
X(s, t, o),
|
|
10110
|
+
X(s, t, o), B(t, i);
|
|
10111
10111
|
},
|
|
10112
10112
|
p(s, o) {
|
|
10113
10113
|
o[0] & /*roomNameOtherTypeEnable, room*/
|
|
@@ -10152,7 +10152,7 @@ function qu(n) {
|
|
|
10152
10152
|
);
|
|
10153
10153
|
},
|
|
10154
10154
|
m(i, s) {
|
|
10155
|
-
X(i, t, s),
|
|
10155
|
+
X(i, t, s), B(t, e);
|
|
10156
10156
|
},
|
|
10157
10157
|
p(i, s) {
|
|
10158
10158
|
s[0] & /*roomAreaSize*/
|
|
@@ -10193,7 +10193,7 @@ function Ju(n) {
|
|
|
10193
10193
|
);
|
|
10194
10194
|
},
|
|
10195
10195
|
m(i, s) {
|
|
10196
|
-
X(i, t, s),
|
|
10196
|
+
X(i, t, s), B(t, e);
|
|
10197
10197
|
},
|
|
10198
10198
|
p(i, s) {
|
|
10199
10199
|
s[0] & /*roomDimension*/
|
|
@@ -10320,10 +10320,10 @@ function B3(n, t) {
|
|
|
10320
10320
|
}
|
|
10321
10321
|
function V3(n, t, e) {
|
|
10322
10322
|
let i, s, o, r, a, l, c, h, d, u, m, p, g, v, A, w, { pxmm: I } = t, { roomAreaEnable: C } = t, { roomNameEnable: z } = t, { roomNameOtherTypeEnable: D } = t, { roomDimensionEnable: j } = t, { room: T } = t, { hoveredRoom: O } = t, { getRoomAreaText: b } = t, { getRoomDimensionText: E } = t, { getLabelElement: M } = t, { adaptiveRoomLabelVisibleEnable: k } = t, { fontSize: S } = t;
|
|
10323
|
-
function L(
|
|
10323
|
+
function L(ce, Se) {
|
|
10324
10324
|
if (Se.width === 0 || Se.height === 0)
|
|
10325
10325
|
return () => !1;
|
|
10326
|
-
const ee =
|
|
10326
|
+
const ee = ce.path.map(({ x: Xe, y: Ye }) => [Xe, Ye]), Te = ce.roomLabel.position, { x: Re, y: Ae } = Te, { width: Ve, height: ge } = Se, Ie = Ve / 2, Oe = ge / 2;
|
|
10327
10327
|
return function(Ye) {
|
|
10328
10328
|
const st = Re * Ye, Je = Ae * Ye, $e = ee.map(([at, _t]) => [at * Ye, _t * Ye]);
|
|
10329
10329
|
return [
|
|
@@ -10339,24 +10339,24 @@ function V3(n, t, e) {
|
|
|
10339
10339
|
O.subscribe(function(Se) {
|
|
10340
10340
|
e(27, ue = !!Se && Se.id === T.id);
|
|
10341
10341
|
});
|
|
10342
|
-
const Le = (
|
|
10343
|
-
e(8, oe =
|
|
10344
|
-
}, re = (
|
|
10345
|
-
e(9, $ =
|
|
10346
|
-
}, Me = (
|
|
10347
|
-
e(6, ie =
|
|
10348
|
-
}, de = (
|
|
10349
|
-
e(7, K =
|
|
10350
|
-
};
|
|
10351
|
-
return n.$$set = (
|
|
10352
|
-
"pxmm" in
|
|
10342
|
+
const Le = (ce) => {
|
|
10343
|
+
e(8, oe = ce.detail);
|
|
10344
|
+
}, re = (ce) => {
|
|
10345
|
+
e(9, $ = ce.detail);
|
|
10346
|
+
}, Me = (ce) => {
|
|
10347
|
+
e(6, ie = ce.detail);
|
|
10348
|
+
}, de = (ce) => {
|
|
10349
|
+
e(7, K = ce.detail);
|
|
10350
|
+
};
|
|
10351
|
+
return n.$$set = (ce) => {
|
|
10352
|
+
"pxmm" in ce && e(21, I = ce.pxmm), "roomAreaEnable" in ce && e(0, C = ce.roomAreaEnable), "roomNameEnable" in ce && e(1, z = ce.roomNameEnable), "roomNameOtherTypeEnable" in ce && e(2, D = ce.roomNameOtherTypeEnable), "roomDimensionEnable" in ce && e(3, j = ce.roomDimensionEnable), "room" in ce && e(4, T = ce.room), "hoveredRoom" in ce && e(22, O = ce.hoveredRoom), "getRoomAreaText" in ce && e(23, b = ce.getRoomAreaText), "getRoomDimensionText" in ce && e(24, E = ce.getRoomDimensionText), "getLabelElement" in ce && e(5, M = ce.getLabelElement), "adaptiveRoomLabelVisibleEnable" in ce && e(25, k = ce.adaptiveRoomLabelVisibleEnable), "fontSize" in ce && e(26, S = ce.fontSize);
|
|
10353
10353
|
}, n.$$.update = () => {
|
|
10354
|
-
var
|
|
10354
|
+
var ce, Se;
|
|
10355
10355
|
n.$$.dirty[0] & /*fontSize*/
|
|
10356
10356
|
67108864 && e(28, i = Md[S]), n.$$.dirty[0] & /*getLabelElement, room*/
|
|
10357
10357
|
48 && e(18, s = M == null ? void 0 : M(T)), n.$$.dirty[0] & /*room, getRoomAreaText*/
|
|
10358
10358
|
8388624 && e(17, o = T.size ? b(T.size) : ""), n.$$.dirty[0] & /*room, getRoomDimensionText*/
|
|
10359
|
-
16777232 && e(16, r = T != null && T.dimension ? E((
|
|
10359
|
+
16777232 && e(16, r = T != null && T.dimension ? E((ce = T.dimension) == null ? void 0 : ce.width, (Se = T.dimension) == null ? void 0 : Se.height) : ""), n.$$.dirty[0] & /*clientWidth, clientHeight*/
|
|
10360
10360
|
768 && e(34, a = { width: oe, height: $ }), n.$$.dirty[0] & /*room*/
|
|
10361
10361
|
16 | n.$$.dirty[1] & /*labelElementSize*/
|
|
10362
10362
|
8 && e(33, l = a ? L(T, a) : void 0), n.$$.dirty[0] & /*adaptiveRoomLabelVisibleEnable, pxmm*/
|
|
@@ -10804,7 +10804,7 @@ function of(n, t) {
|
|
|
10804
10804
|
), this.first = e;
|
|
10805
10805
|
},
|
|
10806
10806
|
m(a, l) {
|
|
10807
|
-
X(a, e, l),
|
|
10807
|
+
X(a, e, l), B(e, i), B(i, o), B(e, r);
|
|
10808
10808
|
},
|
|
10809
10809
|
p(a, l) {
|
|
10810
10810
|
t = a, l & /*getRuleDistanceText*/
|
|
@@ -10866,10 +10866,10 @@ function Q3(n) {
|
|
|
10866
10866
|
n[2] ? 1 / 16 + "rem" : "100%");
|
|
10867
10867
|
},
|
|
10868
10868
|
m(p, g) {
|
|
10869
|
-
X(p, t, g),
|
|
10869
|
+
X(p, t, g), B(t, e), B(t, i), B(t, s);
|
|
10870
10870
|
for (let v = 0; v < d.length; v += 1)
|
|
10871
10871
|
d[v] && d[v].m(s, null);
|
|
10872
|
-
|
|
10872
|
+
B(t, o), B(t, r);
|
|
10873
10873
|
for (let v = 0; v < a.length; v += 1)
|
|
10874
10874
|
a[v] && a[v].m(r, null);
|
|
10875
10875
|
},
|
|
@@ -11250,7 +11250,7 @@ function oP(n) {
|
|
|
11250
11250
|
), P(r, "fill", "url(#fpm-room-pattern-0)");
|
|
11251
11251
|
},
|
|
11252
11252
|
m(a, l) {
|
|
11253
|
-
X(a, t, l),
|
|
11253
|
+
X(a, t, l), B(t, e), B(e, i), B(e, s), X(a, o, l), X(a, r, l);
|
|
11254
11254
|
},
|
|
11255
11255
|
p(a, [l]) {
|
|
11256
11256
|
l & /*d*/
|
|
@@ -11306,7 +11306,7 @@ function lP(n) {
|
|
|
11306
11306
|
), P(d, "fill", "url(#room-material-pattern-2)");
|
|
11307
11307
|
},
|
|
11308
11308
|
m(u, m) {
|
|
11309
|
-
X(u, t, m),
|
|
11309
|
+
X(u, t, m), B(t, e), B(e, i), B(t, s), B(s, o), X(u, r, m), X(u, a, m), X(u, l, m), X(u, c, m), X(u, h, m), X(u, d, m);
|
|
11310
11310
|
},
|
|
11311
11311
|
p(u, [m]) {
|
|
11312
11312
|
m & /*d*/
|
|
@@ -11704,7 +11704,7 @@ function bP(n, t, e) {
|
|
|
11704
11704
|
"roomLabelsEnable" in d && e(4, s = d.roomLabelsEnable), "roomDimensionEnable" in d && e(5, o = d.roomDimensionEnable), "floorIndex" in d && e(6, r = d.floorIndex), "floorplanData" in d && e(7, a = d.floorplanData);
|
|
11705
11705
|
}, n.$$.update = () => {
|
|
11706
11706
|
n.$$.dirty & /*floorplanData, floorIndex*/
|
|
11707
|
-
192 && e(0, i = a.floorDatas[r].rooms.map((d) =>
|
|
11707
|
+
192 && e(0, i = a.floorDatas[r].rooms.map((d) => le(_({}, d), {
|
|
11708
11708
|
path: d.path.map((u) => Q1(u, a.bounding))
|
|
11709
11709
|
})));
|
|
11710
11710
|
}, [
|
|
@@ -11953,7 +11953,7 @@ function MP(n) {
|
|
|
11953
11953
|
n[5]}`), P(e, "class", "svelte-1kqo6e4"), P(t, "class", "floorplan-plugin__room-highlight svelte-1kqo6e4");
|
|
11954
11954
|
},
|
|
11955
11955
|
m(l, c) {
|
|
11956
|
-
X(l, t, c),
|
|
11956
|
+
X(l, t, c), B(t, e);
|
|
11957
11957
|
for (let h = 0; h < i.length; h += 1)
|
|
11958
11958
|
i[h] && i[h].m(e, null);
|
|
11959
11959
|
o = !0;
|
|
@@ -12035,7 +12035,7 @@ function mf(n) {
|
|
|
12035
12035
|
);
|
|
12036
12036
|
},
|
|
12037
12037
|
m(s, o) {
|
|
12038
|
-
X(s, t, o),
|
|
12038
|
+
X(s, t, o), B(t, i);
|
|
12039
12039
|
},
|
|
12040
12040
|
p(s, o) {
|
|
12041
12041
|
o & /*missingFloorConfig*/
|
|
@@ -12074,7 +12074,7 @@ function SP(n) {
|
|
|
12074
12074
|
), R(e, "max-width", "none"), P(t, "class", "missing-floor svelte-3vzs9z");
|
|
12075
12075
|
},
|
|
12076
12076
|
m(r, a) {
|
|
12077
|
-
X(r, t, a),
|
|
12077
|
+
X(r, t, a), B(t, e), B(t, s), o && o.m(t, null);
|
|
12078
12078
|
},
|
|
12079
12079
|
p(r, [a]) {
|
|
12080
12080
|
a & /*missingFloorConfig*/
|
|
@@ -12152,7 +12152,7 @@ function zP(n) {
|
|
|
12152
12152
|
);
|
|
12153
12153
|
},
|
|
12154
12154
|
m(i, s) {
|
|
12155
|
-
X(i, t, s),
|
|
12155
|
+
X(i, t, s), B(t, e);
|
|
12156
12156
|
},
|
|
12157
12157
|
p(i, [s]) {
|
|
12158
12158
|
s & /*cameraImageUrl*/
|
|
@@ -12237,7 +12237,7 @@ function _P(n) {
|
|
|
12237
12237
|
);
|
|
12238
12238
|
},
|
|
12239
12239
|
m(r, a) {
|
|
12240
|
-
X(r, t, a),
|
|
12240
|
+
X(r, t, a), B(t, e), B(t, i), B(t, s), B(s, o);
|
|
12241
12241
|
},
|
|
12242
12242
|
p(r, a) {
|
|
12243
12243
|
a & /*northDesc*/
|
|
@@ -13506,7 +13506,7 @@ let ys = class {
|
|
|
13506
13506
|
/**
|
|
13507
13507
|
* @realsee/dnalogel 版本号
|
|
13508
13508
|
*/
|
|
13509
|
-
f(this, "VERSION", "3.77.
|
|
13509
|
+
f(this, "VERSION", "3.77.4");
|
|
13510
13510
|
f(this, "NAME");
|
|
13511
13511
|
f(this, "five");
|
|
13512
13512
|
f(this, "workUtil");
|
|
@@ -13725,7 +13725,7 @@ let hC = class extends fn {
|
|
|
13725
13725
|
* plugin.updateShowState({ longitude: Math.PI / 2 })
|
|
13726
13726
|
*/
|
|
13727
13727
|
f(this, "updateShowState", (e) => {
|
|
13728
|
-
this.showState =
|
|
13728
|
+
this.showState = _(_({}, this.showState), e);
|
|
13729
13729
|
});
|
|
13730
13730
|
f(this, "_disable", (e) => {
|
|
13731
13731
|
var s, o, r;
|
|
@@ -13752,7 +13752,7 @@ let hC = class extends fn {
|
|
|
13752
13752
|
immediately: !1,
|
|
13753
13753
|
isAutoShow: !1,
|
|
13754
13754
|
userAction: !0
|
|
13755
|
-
}, s =
|
|
13755
|
+
}, s = _(_({}, i), e), o = () => te(this, null, function* () {
|
|
13756
13756
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
13757
13757
|
let a = !1, l;
|
|
13758
13758
|
this.showRejection = (d) => {
|
|
@@ -13782,7 +13782,7 @@ let hC = class extends fn {
|
|
|
13782
13782
|
f(this, "_hide", (e) => {
|
|
13783
13783
|
var o;
|
|
13784
13784
|
(o = this.showRejection) == null || o.call(this, pi.BreakOffByHide), this.showPromise = void 0;
|
|
13785
|
-
const s =
|
|
13785
|
+
const s = _(_({}, {
|
|
13786
13786
|
userAction: !0,
|
|
13787
13787
|
isAutoHide: !1
|
|
13788
13788
|
}), e);
|
|
@@ -13853,7 +13853,7 @@ let hC = class extends fn {
|
|
|
13853
13853
|
this.floorIndex = e, this.updateSize(), this.render();
|
|
13854
13854
|
}
|
|
13855
13855
|
});
|
|
13856
|
-
i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState =
|
|
13856
|
+
i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = _({
|
|
13857
13857
|
mode: "Floorplan",
|
|
13858
13858
|
longitude: 0,
|
|
13859
13859
|
latitude: Math.PI / 2,
|
|
@@ -13883,12 +13883,12 @@ let hC = class extends fn {
|
|
|
13883
13883
|
cameraImageUrl: cn,
|
|
13884
13884
|
attachedTo: Fs.BOUNDING_CENTER,
|
|
13885
13885
|
getLabelElement: void 0,
|
|
13886
|
-
missingFloorConfig:
|
|
13886
|
+
missingFloorConfig: _(_({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
|
|
13887
13887
|
i18n: (d) => d,
|
|
13888
13888
|
getRoomAreaText: (d) => (d / 1e6).toFixed(1) + "㎡",
|
|
13889
13889
|
getRoomDimensionText: (d, u) => (d / 1e3).toFixed(1) + "m × " + (u / 1e3).toFixed(1) + "m",
|
|
13890
13890
|
getRuleDistanceText: (d) => d.toString()
|
|
13891
|
-
}, o = i ? Yo(i, ["selector", "scale"]) : {}, r =
|
|
13891
|
+
}, o = i ? Yo(i, ["selector", "scale"]) : {}, r = _(_({}, s.missingFloorConfig), o.missingFloorConfig), a = le(_(_({}, s), o), { missingFloorConfig: r });
|
|
13892
13892
|
this.state = { enabled: !0, visible: !1, config: a }, this.panoIndex = e.getCurrentState().panoIndex, this.initContainer(), e.once("dispose", this.dispose), this.addEventListener();
|
|
13893
13893
|
}
|
|
13894
13894
|
load(e, i, s = !0) {
|
|
@@ -13958,8 +13958,8 @@ let hC = class extends fn {
|
|
|
13958
13958
|
}
|
|
13959
13959
|
updateState(e, i) {
|
|
13960
13960
|
var a;
|
|
13961
|
-
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ?
|
|
13962
|
-
this.state =
|
|
13961
|
+
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? _(_({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? le(_(_({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
|
|
13962
|
+
this.state = le(_(_({}, this.state), e), { config: r }), !Wt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
13963
13963
|
}
|
|
13964
13964
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
13965
13965
|
*
|
|
@@ -13988,7 +13988,7 @@ let hC = class extends fn {
|
|
|
13988
13988
|
render(e) {
|
|
13989
13989
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
13990
13990
|
return;
|
|
13991
|
-
const i =
|
|
13991
|
+
const i = le(_({}, this.state.config), {
|
|
13992
13992
|
visible: this.state.visible,
|
|
13993
13993
|
duration: e != null ? e : 0,
|
|
13994
13994
|
panoIndex: this.panoIndex,
|
|
@@ -16764,7 +16764,7 @@ let pC = class extends fn {
|
|
|
16764
16764
|
* plugin.updateShowState({ longitude: Math.PI / 2 })
|
|
16765
16765
|
*/
|
|
16766
16766
|
f(this, "updateShowState", (e) => {
|
|
16767
|
-
this.showState =
|
|
16767
|
+
this.showState = _(_({}, this.showState), e);
|
|
16768
16768
|
});
|
|
16769
16769
|
f(this, "_disable", (e) => {
|
|
16770
16770
|
var s, o, r;
|
|
@@ -16791,7 +16791,7 @@ let pC = class extends fn {
|
|
|
16791
16791
|
immediately: !1,
|
|
16792
16792
|
isAutoShow: !1,
|
|
16793
16793
|
userAction: !0
|
|
16794
|
-
}, s =
|
|
16794
|
+
}, s = _(_({}, i), e), o = () => te(this, null, function* () {
|
|
16795
16795
|
this.hooks.emit("show", { userAction: s.userAction, auto: s.isAutoShow });
|
|
16796
16796
|
let a = !1, l;
|
|
16797
16797
|
this.showRejection = (d) => {
|
|
@@ -16821,7 +16821,7 @@ let pC = class extends fn {
|
|
|
16821
16821
|
f(this, "_hide", (e) => {
|
|
16822
16822
|
var o;
|
|
16823
16823
|
(o = this.showRejection) == null || o.call(this, pi.BreakOffByHide), this.showPromise = void 0;
|
|
16824
|
-
const s =
|
|
16824
|
+
const s = _(_({}, {
|
|
16825
16825
|
userAction: !0,
|
|
16826
16826
|
isAutoHide: !1
|
|
16827
16827
|
}), e);
|
|
@@ -16893,7 +16893,7 @@ let pC = class extends fn {
|
|
|
16893
16893
|
this.floorIndex = e, this.updateSize(), this.render();
|
|
16894
16894
|
}
|
|
16895
16895
|
});
|
|
16896
|
-
i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState =
|
|
16896
|
+
i != null && i.selector && (this.selector = i.selector, console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法")), this.showState = _({
|
|
16897
16897
|
mode: "Mapview",
|
|
16898
16898
|
longitude: 0,
|
|
16899
16899
|
latitude: Math.PI / 2
|
|
@@ -16922,12 +16922,12 @@ let pC = class extends fn {
|
|
|
16922
16922
|
attachedTo: Fs.BOUNDING_CENTER,
|
|
16923
16923
|
getLabelElement: void 0,
|
|
16924
16924
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
16925
|
-
missingFloorConfig:
|
|
16925
|
+
missingFloorConfig: _(_({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
|
|
16926
16926
|
i18n: (h) => h,
|
|
16927
16927
|
getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
|
|
16928
16928
|
getRoomDimensionText: (h, d) => (h / 1e3).toFixed(1) + "m × " + (d / 1e3).toFixed(1) + "m",
|
|
16929
16929
|
getRuleDistanceText: (h) => h.toString()
|
|
16930
|
-
}, o = i ? Yo(i, ["selector", "scale"]) : {}, r =
|
|
16930
|
+
}, o = i ? Yo(i, ["selector", "scale"]) : {}, r = _(_({}, s.missingFloorConfig), o.missingFloorConfig), a = le(_(_({}, s), o), { missingFloorConfig: r });
|
|
16931
16931
|
this.state = { enabled: !0, visible: !1, config: a }, this.panoIndex = e.getCurrentState().panoIndex, this.initContainer(), Mi(e).then(this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
16932
16932
|
}
|
|
16933
16933
|
load(e, i, s = !0) {
|
|
@@ -17024,8 +17024,8 @@ let pC = class extends fn {
|
|
|
17024
17024
|
}
|
|
17025
17025
|
updateState(e, i) {
|
|
17026
17026
|
var a;
|
|
17027
|
-
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ?
|
|
17028
|
-
this.state =
|
|
17027
|
+
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? _(_({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? le(_(_({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
|
|
17028
|
+
this.state = le(_(_({}, this.state), e), { config: r }), !Wt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
17029
17029
|
}
|
|
17030
17030
|
/** 如果用户是通过 selector 设置父容器,需要在 modelLoaded 之后把 container 自动放到父容器里
|
|
17031
17031
|
*
|
|
@@ -17057,12 +17057,12 @@ let pC = class extends fn {
|
|
|
17057
17057
|
*/
|
|
17058
17058
|
getRelativePose(e) {
|
|
17059
17059
|
const i = this.showState.longitude || 0, o = ((e.longitude - i) % (2 * Math.PI) + 2 * Math.PI) % (2 * Math.PI);
|
|
17060
|
-
return
|
|
17060
|
+
return le(_({}, e), { longitude: o });
|
|
17061
17061
|
}
|
|
17062
17062
|
render(e) {
|
|
17063
17063
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0 || this.showPromise)
|
|
17064
17064
|
return;
|
|
17065
|
-
const i =
|
|
17065
|
+
const i = le(_({}, this.state.config), {
|
|
17066
17066
|
visible: this.state.visible,
|
|
17067
17067
|
duration: e != null ? e : 0,
|
|
17068
17068
|
panoIndex: this.panoIndex,
|
|
@@ -17198,13 +17198,13 @@ let mC = class extends fn {
|
|
|
17198
17198
|
cameraImageUrl: cn,
|
|
17199
17199
|
attachedTo: Fs.BOUNDING_CENTER,
|
|
17200
17200
|
getLabelElement: void 0,
|
|
17201
|
-
missingFloorConfig:
|
|
17201
|
+
missingFloorConfig: _(_({}, this.defaultMissingFloorConfig), i.missingFloorConfig),
|
|
17202
17202
|
i18n: (h) => h,
|
|
17203
17203
|
adaptiveRoomLabelVisibleEnable: !0,
|
|
17204
17204
|
getRoomAreaText: (h) => (h / 1e6).toFixed(1) + "㎡",
|
|
17205
17205
|
getRoomDimensionText: (h, d) => (h / 1e3).toFixed(1) + "m × " + (d / 1e3).toFixed(1) + "m",
|
|
17206
17206
|
getRuleDistanceText: (h) => h.toString()
|
|
17207
|
-
}, o = i ? Yo(i, ["selector", "scale"]) : {}, r =
|
|
17207
|
+
}, o = i ? Yo(i, ["selector", "scale"]) : {}, r = _(_({}, s.missingFloorConfig), o.missingFloorConfig), a = le(_(_({}, s), o), { missingFloorConfig: r });
|
|
17208
17208
|
this.state = { enabled: !0, visible: !1, config: a }, this.initContainer(), e.model.loaded ? this.onFiveModelLoaded() : e.once("modelLoaded", this.onFiveModelLoaded), e.once("dispose", this.dispose), this.addEventListener();
|
|
17209
17209
|
}
|
|
17210
17210
|
load(e, i, s = !0) {
|
|
@@ -17307,8 +17307,8 @@ let mC = class extends fn {
|
|
|
17307
17307
|
}
|
|
17308
17308
|
updateState(e, i) {
|
|
17309
17309
|
var a;
|
|
17310
|
-
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ?
|
|
17311
|
-
this.state =
|
|
17310
|
+
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? _(_({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? le(_(_({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
|
|
17311
|
+
this.state = le(_(_({}, this.state), e), { config: r }), !Wt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
17312
17312
|
}
|
|
17313
17313
|
addEventListener() {
|
|
17314
17314
|
if (!this.state.enabled || this.hasAddedEventListener)
|
|
@@ -17338,7 +17338,7 @@ let mC = class extends fn {
|
|
|
17338
17338
|
render(e) {
|
|
17339
17339
|
if (!this.state.enabled || !this.container || !this.data || this.size.width === 0)
|
|
17340
17340
|
return;
|
|
17341
|
-
const i =
|
|
17341
|
+
const i = le(_({}, this.state.config), {
|
|
17342
17342
|
visible: this.state.visible,
|
|
17343
17343
|
duration: e != null ? e : 0,
|
|
17344
17344
|
panoIndex: this.panoIndex,
|
|
@@ -17379,7 +17379,7 @@ function vC(n) {
|
|
|
17379
17379
|
);
|
|
17380
17380
|
},
|
|
17381
17381
|
m(s, o) {
|
|
17382
|
-
X(s, t, o),
|
|
17382
|
+
X(s, t, o), B(t, e), B(e, i);
|
|
17383
17383
|
},
|
|
17384
17384
|
p(s, [o]) {
|
|
17385
17385
|
o & /*cameraImageUrl*/
|
|
@@ -17500,7 +17500,7 @@ function xf(n, t) {
|
|
|
17500
17500
|
t[1].icon.url})`), R(i, "width", s), R(i, "height", o), P(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), R(e, "top", a), R(e, "left", l), this.first = e;
|
|
17501
17501
|
},
|
|
17502
17502
|
m(c, h) {
|
|
17503
|
-
X(c, e, h),
|
|
17503
|
+
X(c, e, h), B(e, i), B(e, r);
|
|
17504
17504
|
},
|
|
17505
17505
|
p(c, h) {
|
|
17506
17506
|
t = c, h & /*extraObjects*/
|
|
@@ -17651,7 +17651,7 @@ function kC(n) {
|
|
|
17651
17651
|
n[6]) || P(e, "src", i), P(e, "alt", "缺省楼层"), P(t, "class", "missing-floor-wrapper svelte-18287ai");
|
|
17652
17652
|
},
|
|
17653
17653
|
m(s, o) {
|
|
17654
|
-
X(s, t, o),
|
|
17654
|
+
X(s, t, o), B(t, e);
|
|
17655
17655
|
},
|
|
17656
17656
|
p(s, o) {
|
|
17657
17657
|
o & /*missingFloorImageUrl*/
|
|
@@ -17949,7 +17949,7 @@ function Tf(n) {
|
|
|
17949
17949
|
t = W("div"), me(e.$$.fragment), i = ae(), me(s.$$.fragment), P(t, "class", "plugin-floorplan-radar-container svelte-1mvqyqq"), R(t, "width", o), R(t, "height", r);
|
|
17950
17950
|
},
|
|
17951
17951
|
m(u, m) {
|
|
17952
|
-
X(u, t, m), fe(e, t, null),
|
|
17952
|
+
X(u, t, m), fe(e, t, null), B(t, i), fe(s, t, null), a = !0;
|
|
17953
17953
|
},
|
|
17954
17954
|
p(u, m) {
|
|
17955
17955
|
const p = m & /*five, pxmm, floorIndex, floorplanData, hoverEnable, extraObjects, highlightData, missingFloorImageUrl*/
|
|
@@ -18158,7 +18158,7 @@ let OC = class extends Pe {
|
|
|
18158
18158
|
highlightEnable: !1,
|
|
18159
18159
|
cameraImageUrl: cn,
|
|
18160
18160
|
missingFloorImageUrl: rn(i == null ? void 0 : i.staticPrefix, ds)
|
|
18161
|
-
}, o =
|
|
18161
|
+
}, o = _(_({}, s), i == null ? void 0 : i.configs);
|
|
18162
18162
|
this.state = { enabled: !0, visible: !0, config: o }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), e.once("dispose", this.dispose);
|
|
18163
18163
|
}
|
|
18164
18164
|
load(e, i, s = !0) {
|
|
@@ -18242,8 +18242,8 @@ let OC = class extends Pe {
|
|
|
18242
18242
|
this.hooks.emit("hide", { userAction: i }), this.render();
|
|
18243
18243
|
}
|
|
18244
18244
|
updateState(e, i) {
|
|
18245
|
-
const s = this.state, o = e.config ?
|
|
18246
|
-
this.state =
|
|
18245
|
+
const s = this.state, o = e.config ? _(_({}, s.config), e.config) : s.config;
|
|
18246
|
+
this.state = le(_(_({}, this.state), e), { config: o }), !Wt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
18247
18247
|
}
|
|
18248
18248
|
render() {
|
|
18249
18249
|
if (this.disposed || !this.state.enabled)
|
|
@@ -18254,7 +18254,7 @@ let OC = class extends Pe {
|
|
|
18254
18254
|
}
|
|
18255
18255
|
if (!this.data || !this.wrapper)
|
|
18256
18256
|
return;
|
|
18257
|
-
const e =
|
|
18257
|
+
const e = le(_({}, this.state.config), {
|
|
18258
18258
|
five: this.five,
|
|
18259
18259
|
floorplanData: this.data,
|
|
18260
18260
|
visible: this.state.visible,
|
|
@@ -18297,7 +18297,7 @@ function _C(n) {
|
|
|
18297
18297
|
);
|
|
18298
18298
|
},
|
|
18299
18299
|
m(c, h) {
|
|
18300
|
-
X(c, t, h),
|
|
18300
|
+
X(c, t, h), B(t, e), B(e, i);
|
|
18301
18301
|
},
|
|
18302
18302
|
p(c, [h]) {
|
|
18303
18303
|
h & /*cameraImageUrl*/
|
|
@@ -18435,7 +18435,7 @@ function zf(n, t) {
|
|
|
18435
18435
|
t[1].icon.url})`), R(i, "width", s), R(i, "height", o), P(e, "class", "plugin-pano-floorplan__extra-object-item--position svelte-1i87fz7"), R(e, "top", a), R(e, "left", l), this.first = e;
|
|
18436
18436
|
},
|
|
18437
18437
|
m(c, h) {
|
|
18438
|
-
X(c, e, h),
|
|
18438
|
+
X(c, e, h), B(e, i), B(e, r);
|
|
18439
18439
|
},
|
|
18440
18440
|
p(c, h) {
|
|
18441
18441
|
t = c, h & /*extraObjects*/
|
|
@@ -18933,7 +18933,7 @@ function t5(n) {
|
|
|
18933
18933
|
t = W("div"), i && i.c(), e = ae(), s && s.c(), P(t, "class", "floorplan-guide-plugin__room-content svelte-qulme3");
|
|
18934
18934
|
},
|
|
18935
18935
|
m(o, r) {
|
|
18936
|
-
X(o, t, r), i && i.m(t, null),
|
|
18936
|
+
X(o, t, r), i && i.m(t, null), B(t, e), s && s.m(t, null);
|
|
18937
18937
|
},
|
|
18938
18938
|
p(o, r) {
|
|
18939
18939
|
/*roomNameEnable*/
|
|
@@ -18978,7 +18978,7 @@ function _f(n) {
|
|
|
18978
18978
|
t = W("span"), i = _e(e), P(t, "class", "floorplan-guide-plugin__room-name svelte-qulme3");
|
|
18979
18979
|
},
|
|
18980
18980
|
m(s, o) {
|
|
18981
|
-
X(s, t, o),
|
|
18981
|
+
X(s, t, o), B(t, i);
|
|
18982
18982
|
},
|
|
18983
18983
|
p(s, o) {
|
|
18984
18984
|
o & /*room*/
|
|
@@ -19000,7 +19000,7 @@ function Bf(n) {
|
|
|
19000
19000
|
), P(t, "class", "floorplan-guide-plugin__room-area svelte-qulme3");
|
|
19001
19001
|
},
|
|
19002
19002
|
m(i, s) {
|
|
19003
|
-
X(i, t, s),
|
|
19003
|
+
X(i, t, s), B(t, e);
|
|
19004
19004
|
},
|
|
19005
19005
|
p(i, s) {
|
|
19006
19006
|
s & /*roomAreaSize*/
|
|
@@ -19477,7 +19477,7 @@ function p5(n) {
|
|
|
19477
19477
|
), R(t, "width", r), R(t, "height", a), R(t, "top", l), R(t, "transform-origin", c);
|
|
19478
19478
|
},
|
|
19479
19479
|
m(h, d) {
|
|
19480
|
-
X(h, t, d),
|
|
19480
|
+
X(h, t, d), B(t, e), B(t, i), B(t, s), B(s, o);
|
|
19481
19481
|
},
|
|
19482
19482
|
p(h, d) {
|
|
19483
19483
|
d & /*northDesc*/
|
|
@@ -19667,7 +19667,7 @@ function Nf(n) {
|
|
|
19667
19667
|
);
|
|
19668
19668
|
},
|
|
19669
19669
|
m(u, m) {
|
|
19670
|
-
X(u, t, m), fe(e, t, null),
|
|
19670
|
+
X(u, t, m), fe(e, t, null), B(t, i), d && d.m(t, null), r = !0, a || (l = je(
|
|
19671
19671
|
t,
|
|
19672
19672
|
"click",
|
|
19673
19673
|
/*handleFloorplanClick*/
|
|
@@ -20133,10 +20133,10 @@ function y5(n, t, e) {
|
|
|
20133
20133
|
function ie($) {
|
|
20134
20134
|
if (!m || !k)
|
|
20135
20135
|
return;
|
|
20136
|
-
const Le = $.currentTarget.getBoundingClientRect(), re = $.clientX - Le.left, Me = $.clientY - Le.top, de = re / V,
|
|
20136
|
+
const Le = $.currentTarget.getBoundingClientRect(), re = $.clientX - Le.left, Me = $.clientY - Le.top, de = re / V, ce = Me / q;
|
|
20137
20137
|
k({
|
|
20138
20138
|
imageX: de,
|
|
20139
|
-
imageY:
|
|
20139
|
+
imageY: ce,
|
|
20140
20140
|
floorIndex: O,
|
|
20141
20141
|
originalEvent: $
|
|
20142
20142
|
});
|
|
@@ -20152,10 +20152,10 @@ function y5(n, t, e) {
|
|
|
20152
20152
|
var $;
|
|
20153
20153
|
if (n.$$.dirty[0] & /*clientWidth, clientHeight, floorplanData, contentWidth*/
|
|
20154
20154
|
234881032) {
|
|
20155
|
-
const ue = Math.min(L, N), { max: Le, min: re } = a.bounding, Me = Le.x - re.x, de = Le.y - re.y,
|
|
20155
|
+
const ue = Math.min(L, N), { max: Le, min: re } = a.bounding, Me = Le.x - re.x, de = Le.y - re.y, ce = function() {
|
|
20156
20156
|
return Me > de ? [ue, ue / Me * de] : [ue / de * Me, ue];
|
|
20157
20157
|
}();
|
|
20158
|
-
e(27, V =
|
|
20158
|
+
e(27, V = ce[0]), e(29, q = ce[1]), e(28, S = V / Me);
|
|
20159
20159
|
}
|
|
20160
20160
|
n.$$.dirty[0] & /*floorplanData, displayedFloorIndex*/
|
|
20161
20161
|
2097160 && e(30, i = (($ = a.floorDatas[O]) == null ? void 0 : $.rooms.length) > 0);
|
|
@@ -20315,7 +20315,7 @@ let P5 = class extends fn {
|
|
|
20315
20315
|
highlightEnable: !1,
|
|
20316
20316
|
cameraImageUrl: TP,
|
|
20317
20317
|
missingFloorImageUrl: rn(i == null ? void 0 : i.staticPrefix, ds),
|
|
20318
|
-
missingFloorConfig:
|
|
20318
|
+
missingFloorConfig: _(_({}, this.defaultMissingFloorConfig), i == null ? void 0 : i.missingFloorConfig),
|
|
20319
20319
|
clickEnable: !0,
|
|
20320
20320
|
roomLabelsEnable: !1,
|
|
20321
20321
|
roomNameEnable: !0,
|
|
@@ -20331,7 +20331,7 @@ let P5 = class extends fn {
|
|
|
20331
20331
|
cameraSize: 36,
|
|
20332
20332
|
cameraOffset: 28.5,
|
|
20333
20333
|
i18n: (i == null ? void 0 : i.i18n) || ((l) => l)
|
|
20334
|
-
}, o =
|
|
20334
|
+
}, o = _(_({}, s), i == null ? void 0 : i.configs);
|
|
20335
20335
|
this.state = { enabled: !0, visible: !0, config: o }, i != null && i.wrapper && console.warn("不推荐继续使用 params.selector 配置父容器,请使用 appendTo 方法"), typeof (i == null ? void 0 : i.wrapper) == "string" ? this.wrapperSelector = i.wrapper : (i == null ? void 0 : i.wrapper) instanceof Element && (this.wrapper = i.wrapper), e.once("dispose", this.dispose), e.on("panoArrived", this.handlePanoArrived);
|
|
20336
20336
|
}
|
|
20337
20337
|
load(e, i, s = !0) {
|
|
@@ -20431,8 +20431,8 @@ let P5 = class extends fn {
|
|
|
20431
20431
|
}
|
|
20432
20432
|
updateState(e, i) {
|
|
20433
20433
|
var a;
|
|
20434
|
-
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ?
|
|
20435
|
-
this.state =
|
|
20434
|
+
const s = this.state, o = (a = e.config) != null && a.missingFloorConfig ? _(_({}, s.config.missingFloorConfig), e.config.missingFloorConfig) : s.config.missingFloorConfig, r = e.config ? le(_(_({}, s.config), e.config), { missingFloorConfig: o }) : s.config;
|
|
20435
|
+
this.state = le(_(_({}, this.state), e), { config: r }), !Wt(this.state, s, { deep: !0 }) && this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
20436
20436
|
}
|
|
20437
20437
|
render() {
|
|
20438
20438
|
var r, a;
|
|
@@ -20444,7 +20444,7 @@ let P5 = class extends fn {
|
|
|
20444
20444
|
}
|
|
20445
20445
|
if (!this.data || !this.wrapper)
|
|
20446
20446
|
return;
|
|
20447
|
-
const e = (a = (r = this.five.work.observers[this.five.getCurrentState().panoIndex]) == null ? void 0 : r.floorIndex) != null ? a : 0, i = this.state.displayedFloorIndex !== void 0 ? this.state.displayedFloorIndex : e, s = i === e, o =
|
|
20447
|
+
const e = (a = (r = this.five.work.observers[this.five.getCurrentState().panoIndex]) == null ? void 0 : r.floorIndex) != null ? a : 0, i = this.state.displayedFloorIndex !== void 0 ? this.state.displayedFloorIndex : e, s = i === e, o = le(_({}, this.state.config), {
|
|
20448
20448
|
five: this.five,
|
|
20449
20449
|
floorplanData: this.data,
|
|
20450
20450
|
visible: this.state.visible,
|
|
@@ -20572,7 +20572,7 @@ function $1(n, t) {
|
|
|
20572
20572
|
n.traverse((e) => {
|
|
20573
20573
|
var i;
|
|
20574
20574
|
if (e.type === "Mesh") {
|
|
20575
|
-
const s = e, o =
|
|
20575
|
+
const s = e, o = _({ map: s.material.map || {} }, t);
|
|
20576
20576
|
s.material = new Wr(o), s.renderOrder = 1, ((i = e.parent) == null ? void 0 : i.type) === "Mesh" && (e.renderOrder = e.parent.renderOrder + 1);
|
|
20577
20577
|
}
|
|
20578
20578
|
});
|
|
@@ -21736,17 +21736,17 @@ var sv = function() {
|
|
|
21736
21736
|
Me.push(Re.weight), re.push(Re.id);
|
|
21737
21737
|
}), Me.length > 4) {
|
|
21738
21738
|
S || (console.warn("THREE.FBXLoader: Vertex has more than 4 skinning weights assigned to vertex. Deleting additional weights."), S = !0);
|
|
21739
|
-
var
|
|
21739
|
+
var ce = [0, 0, 0, 0], Se = [0, 0, 0, 0];
|
|
21740
21740
|
Me.forEach(function(Re, Ae) {
|
|
21741
21741
|
var Ve = Re, ge = re[Ae];
|
|
21742
21742
|
Se.forEach(function(Ie, Oe, Xe) {
|
|
21743
21743
|
if (Ve > Ie) {
|
|
21744
21744
|
Xe[Oe] = Ve, Ve = Ie;
|
|
21745
|
-
var Ye =
|
|
21746
|
-
|
|
21745
|
+
var Ye = ce[Oe];
|
|
21746
|
+
ce[Oe] = ge, ge = Ye;
|
|
21747
21747
|
}
|
|
21748
21748
|
});
|
|
21749
|
-
}), re =
|
|
21749
|
+
}), re = ce, Me = Se;
|
|
21750
21750
|
}
|
|
21751
21751
|
for (; Me.length < 4; )
|
|
21752
21752
|
Me.push(0), re.push(0);
|
|
@@ -22510,19 +22510,19 @@ var sv = function() {
|
|
|
22510
22510
|
Me.copyPosition(K);
|
|
22511
22511
|
var de = new ot();
|
|
22512
22512
|
de.getInverse(re).multiply(K);
|
|
22513
|
-
var
|
|
22513
|
+
var ce = new ot();
|
|
22514
22514
|
if ($ === 0)
|
|
22515
|
-
|
|
22515
|
+
ce.copy(re).multiply(Le).multiply(de).multiply(L);
|
|
22516
22516
|
else if ($ === 1)
|
|
22517
|
-
|
|
22517
|
+
ce.copy(re).multiply(de).multiply(Le).multiply(L);
|
|
22518
22518
|
else {
|
|
22519
22519
|
var Se = new ot().getInverse(L), ee = new ot().multiply(de).multiply(Se);
|
|
22520
|
-
|
|
22520
|
+
ce.copy(re).multiply(Le).multiply(ee).multiply(L);
|
|
22521
22521
|
}
|
|
22522
22522
|
var Te = new ot().getInverse(ie), Re = new ot().getInverse(N), Ae = new ot();
|
|
22523
22523
|
Ae.copy(E).multiply(q).multiply(ie).multiply(M).multiply(k).multiply(S).multiply(Te).multiply(V).multiply(N).multiply(L).multiply(Re);
|
|
22524
22524
|
var Ve = new ot().copyPosition(Ae), ge = new ot().copy(K).multiply(Ve);
|
|
22525
|
-
return oe.copyPosition(ge), Ae = new ot().multiply(oe).multiply(
|
|
22525
|
+
return oe.copyPosition(ge), Ae = new ot().multiply(oe).multiply(ce), Ae;
|
|
22526
22526
|
}
|
|
22527
22527
|
function C(b) {
|
|
22528
22528
|
b = b || 0;
|
|
@@ -22722,7 +22722,7 @@ const ph = (n, t, e) => {
|
|
|
22722
22722
|
const t = {}, e = (l, c, ...h) => te(void 0, [l, c, ...h], function* (o, r, a = { preload: !0 }) {
|
|
22723
22723
|
return t.interruptCallback && t.interruptCallback(!1), a.asyncStartCallback && (yield a.asyncStartCallback()), o.mode && o.mode !== n.currentMode && (yield n.changeMode(o.mode)), a.preload && o.panoIndex !== void 0 && o.panoIndex !== n.panoIndex && (yield n.preloadPano(o.panoIndex)), a.asyncEndCallback && (yield a.asyncEndCallback()), o.panoIndex === void 0 && o.fov === void 0 && o.latitude === void 0 && o.longitude === void 0 ? !0 : yield new Promise((d, u) => {
|
|
22724
22724
|
const m = o.panoIndex !== void 0 ? o.panoIndex : n.panoIndex;
|
|
22725
|
-
m !== void 0 ? n.moveToPano(m,
|
|
22725
|
+
m !== void 0 ? n.moveToPano(m, _({
|
|
22726
22726
|
duration: r,
|
|
22727
22727
|
// 移动耗时
|
|
22728
22728
|
moveEndCallback: () => d(!0),
|
|
@@ -23010,7 +23010,7 @@ const j5 = `<style type="text/css">
|
|
|
23010
23010
|
const w = g || t.roomInfo, I = v || t.roomRules;
|
|
23011
23011
|
if (!w || !I)
|
|
23012
23012
|
throw new Error("标尺数据依赖不齐全!");
|
|
23013
|
-
return e.loaded = !1, e.options =
|
|
23013
|
+
return e.loaded = !1, e.options = _(_({}, e.options), A || {}), n.model.loaded ? a(w, I) : yield new Promise((C) => n.once("modelLoaded", () => C(a(w, I))));
|
|
23014
23014
|
});
|
|
23015
23015
|
t.roomInfo && t.roomRules && l(t.roomInfo, t.roomRules);
|
|
23016
23016
|
const c = (g, v, A, w) => {
|
|
@@ -23104,7 +23104,7 @@ const j5 = `<style type="text/css">
|
|
|
23104
23104
|
continue;
|
|
23105
23105
|
}
|
|
23106
23106
|
const oe = k.clone().project(A), $ = (oe.x + 1) / 2 * D, ue = (-oe.y + 1) / 2 * j, Le = S.clone().project(A), re = (Le.x + 1) / 2 * D, Me = (-Le.y + 1) / 2 * j, de = Math.sqrt(Math.pow(re - $, 2) + Math.pow(Me - ue, 2));
|
|
23107
|
-
let
|
|
23107
|
+
let ce = de, Se = 50;
|
|
23108
23108
|
const ee = c(
|
|
23109
23109
|
{ x: ~~$, y: ~~ue },
|
|
23110
23110
|
{
|
|
@@ -23114,7 +23114,7 @@ const j5 = `<style type="text/css">
|
|
|
23114
23114
|
D,
|
|
23115
23115
|
j
|
|
23116
23116
|
);
|
|
23117
|
-
if (ee && ee.length === 1 && (T === k ? (
|
|
23117
|
+
if (ee && ee.length === 1 && (T === k ? (ce = Math.sqrt(Math.pow(ee[0].x - $, 2) + Math.pow(ee[0].y - ue, 2)), Se = ce / de * 50) : T === S && (ce = Math.sqrt(Math.pow(ee[0].x - re, 2) + Math.pow(ee[0].y - Me, 2)), Se = 100 - ce / de * 50)), ee && ee.length === 2) {
|
|
23118
23118
|
const ge = {
|
|
23119
23119
|
x: (ee[0].x + ee[1].x) / 2,
|
|
23120
23120
|
y: (ee[0].y + ee[1].y) / 2
|
|
@@ -23298,7 +23298,7 @@ function H5(n) {
|
|
|
23298
23298
|
);
|
|
23299
23299
|
},
|
|
23300
23300
|
m(v, A) {
|
|
23301
|
-
X(v, t, A), g.m(t, null),
|
|
23301
|
+
X(v, t, A), g.m(t, null), B(t, e), B(t, i), B(i, s), B(s, r), a = wd(
|
|
23302
23302
|
s,
|
|
23303
23303
|
/*div0_elementresize_handler*/
|
|
23304
23304
|
n[4].bind(s)
|
|
@@ -23546,7 +23546,7 @@ let X5 = class {
|
|
|
23546
23546
|
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
23547
23547
|
"style",
|
|
23548
23548
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
23549
|
-
), e && (e.data && this.load(e.data), this.state.options =
|
|
23549
|
+
), e && (e.data && this.load(e.data), this.state.options = _(_({}, this.state.options), e.options || {}), (i = e.options) != null && i.className && this.container.classList.add((s = e.options) == null ? void 0 : s.className)), this.five.once("modelLoaded", () => te(this, null, function* () {
|
|
23550
23550
|
var o, r;
|
|
23551
23551
|
(r = (o = this.five.getElement()) == null ? void 0 : o.parentNode) == null || r.append(this.container);
|
|
23552
23552
|
})), this.five.once("dispose", () => this.dispose());
|
|
@@ -23743,7 +23743,7 @@ class J5 extends fn {
|
|
|
23743
23743
|
this.five.scene.add(this.group), this.five.once("dispose", this.dispose), this.setState({
|
|
23744
23744
|
visible: !0,
|
|
23745
23745
|
enabled: !0,
|
|
23746
|
-
config:
|
|
23746
|
+
config: _(_({}, this.state.config), i || {})
|
|
23747
23747
|
});
|
|
23748
23748
|
}
|
|
23749
23749
|
/**
|
|
@@ -23806,7 +23806,7 @@ class J5 extends fn {
|
|
|
23806
23806
|
this.state = {
|
|
23807
23807
|
visible: (o = e.visible) != null ? o : s.visible,
|
|
23808
23808
|
enabled: (r = e.enabled) != null ? r : s.enabled,
|
|
23809
|
-
config:
|
|
23809
|
+
config: _(_({}, s.config), e.config || {})
|
|
23810
23810
|
}, this.hooks.emit("stateChange", {
|
|
23811
23811
|
state: this.state,
|
|
23812
23812
|
prevState: s,
|
|
@@ -23816,7 +23816,7 @@ class J5 extends fn {
|
|
|
23816
23816
|
load(e, i, s = !0) {
|
|
23817
23817
|
return te(this, null, function* () {
|
|
23818
23818
|
const o = yield this.formatData(e);
|
|
23819
|
-
JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data =
|
|
23819
|
+
JSON.stringify(this.data) !== JSON.stringify(o) && (this.hooks.emit("dataChange", o, this.data), this.data = _({}, o), this.init(), i && this.setState(i, { userAction: s }), this.hooks.emit("dataLoaded", this.data));
|
|
23820
23820
|
});
|
|
23821
23821
|
}
|
|
23822
23822
|
formatData(e) {
|
|
@@ -23992,7 +23992,7 @@ class hv {
|
|
|
23992
23992
|
class uI extends hv {
|
|
23993
23993
|
constructor(e) {
|
|
23994
23994
|
var i;
|
|
23995
|
-
e.contentStyle =
|
|
23995
|
+
e.contentStyle = le(_({}, e.contentStyle), {
|
|
23996
23996
|
background: "#FFFFFF",
|
|
23997
23997
|
color: "#041066",
|
|
23998
23998
|
fontFamily: "Arial-BoldMT",
|
|
@@ -24231,8 +24231,8 @@ let Zl = class {
|
|
|
24231
24231
|
});
|
|
24232
24232
|
});
|
|
24233
24233
|
var i, s, o;
|
|
24234
|
-
this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig =
|
|
24235
|
-
helper:
|
|
24234
|
+
this.five = t.five, this.hook = t.hook, this.model = t.model, this.getMeasureType = t.getMeasureType, this.config = t.config, this.editParams = t.editParams, this.magnifierParams = t.magnifierParams, this.magnifier = t.magnifier, this.pointSelectorConfig = le(_({}, t.pointSelectorConfig), {
|
|
24235
|
+
helper: _({ magnifierParams: t.magnifierParams }, (i = t.pointSelectorConfig) == null ? void 0 : i.helper)
|
|
24236
24236
|
}), 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 qo(new Oi([0, 0, 0]), new Oi([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 qo(new Oi([0, 0, 0]), new Oi([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new Rt(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
24237
24237
|
const e = this.five.getElement();
|
|
24238
24238
|
e && (e.addEventListener("touchstart", Na), e.addEventListener("contextmenu", Na));
|
|
@@ -24407,9 +24407,9 @@ let fv = class extends Ai {
|
|
|
24407
24407
|
};
|
|
24408
24408
|
class pI extends hv {
|
|
24409
24409
|
constructor(e) {
|
|
24410
|
-
e.containerStyle =
|
|
24410
|
+
e.containerStyle = le(_({}, e.containerStyle), {
|
|
24411
24411
|
zIndex: "1"
|
|
24412
|
-
}), e.contentStyle =
|
|
24412
|
+
}), e.contentStyle = le(_({}, e.contentStyle), {
|
|
24413
24413
|
background: "#6386FF",
|
|
24414
24414
|
borderRadius: "2px"
|
|
24415
24415
|
});
|
|
@@ -24854,9 +24854,9 @@ class os extends Zl {
|
|
|
24854
24854
|
const s = i.type === "area", o = Array.isArray(i) && ((r = i[0]) == null ? void 0 : r.type) === "line";
|
|
24855
24855
|
s && this.unHighlightArea(i), o && this.unHighlightLines(i);
|
|
24856
24856
|
}
|
|
24857
|
-
}).appendTo(this.container), this.pointSelector = new Ol(this.five,
|
|
24857
|
+
}).appendTo(this.container), this.pointSelector = new Ol(this.five, le(_({}, this.pointSelectorConfig), {
|
|
24858
24858
|
mode: this.editParams.pointSelectorMode,
|
|
24859
|
-
helper:
|
|
24859
|
+
helper: _({ magnifierParams: this.magnifierParams, container: this.container }, this.pointSelectorConfig.helper)
|
|
24860
24860
|
})), this.pointSelector.enable(), this.polyline = new Jo({ model: this.model }), this.area = new mh(void 0, {
|
|
24861
24861
|
five: this.five,
|
|
24862
24862
|
model: this.model,
|
|
@@ -25330,7 +25330,7 @@ class EI {
|
|
|
25330
25330
|
const t = Ei(this.five).intersectRaycaster(this.raycaster)[0];
|
|
25331
25331
|
return t || null;
|
|
25332
25332
|
});
|
|
25333
|
-
this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = mv(
|
|
25333
|
+
this.five = t.five, this.hook = t.hook, this.group = t.group, this.mouseGroup = mv(_({ isMobile: !0 }, t.openParams.crossHairParameter)), this.container.innerHTML = Ly, 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 Lo(
|
|
25334
25334
|
new Ab(0.04, 0.08, 32),
|
|
25335
25335
|
new Wr({ color: 1245179, opacity: 0, side: E0, transparent: !0 })
|
|
25336
25336
|
), this.container.addEventListener("animationend", this.computedCenterMouseXY), this.five.on("cameraUpdate", this.onCameraDirectionUpdate), this.hook.on("willChangeState", this.onWillChangeState);
|
|
@@ -25998,7 +25998,7 @@ function wp(n) {
|
|
|
25998
25998
|
);
|
|
25999
25999
|
},
|
|
26000
26000
|
m(p, g) {
|
|
26001
|
-
X(p, t, g),
|
|
26001
|
+
X(p, t, g), B(t, e), h && h.m(e, null), B(e, i), B(e, o), B(t, r), d(), l || (c = je(t, "click", m), l = !0);
|
|
26002
26002
|
},
|
|
26003
26003
|
p(p, g) {
|
|
26004
26004
|
n = p, /*option*/
|
|
@@ -26039,7 +26039,7 @@ function HI(n) {
|
|
|
26039
26039
|
n[5]), P(t, "class", "Switcher svelte-1v1ixi2");
|
|
26040
26040
|
},
|
|
26041
26041
|
m(c, h) {
|
|
26042
|
-
X(c, t, h),
|
|
26042
|
+
X(c, t, h), B(t, e), B(t, i), r && r.m(t, null), B(t, s), B(t, o);
|
|
26043
26043
|
for (let d = 0; d < l.length; d += 1)
|
|
26044
26044
|
l[d] && l[d].m(o, null);
|
|
26045
26045
|
n[12](t);
|
|
@@ -26231,7 +26231,7 @@ function Ep(n) {
|
|
|
26231
26231
|
n[3]), P(c, "class", "icon svelte-468fdd"), R(c, "background-image", `url(${yv})`), P(l, "class", "button svelte-468fdd"), P(t, "class", "buttons svelte-468fdd");
|
|
26232
26232
|
},
|
|
26233
26233
|
m(g, v) {
|
|
26234
|
-
X(g, t, v),
|
|
26234
|
+
X(g, t, v), B(t, e), B(e, i), B(e, s), B(e, r), B(t, a), B(t, l), B(l, c), B(l, h), B(l, u), m || (p = [
|
|
26235
26235
|
je(
|
|
26236
26236
|
e,
|
|
26237
26237
|
"click",
|
|
@@ -26303,7 +26303,7 @@ function YI(n) {
|
|
|
26303
26303
|
t = W("div"), u && u.c(), e = ae(), i = W("div"), s = W("div"), o = ae(), r = W("div"), m && m.c(), a = ae(), l = W("div"), me(c.$$.fragment), P(s, "class", "mask svelte-468fdd"), P(l, "class", "mode-switcher svelte-468fdd"), P(r, "class", "center svelte-468fdd"), P(i, "class", "bottom svelte-468fdd"), P(t, "class", "Measure-Controller svelte-468fdd");
|
|
26304
26304
|
},
|
|
26305
26305
|
m(v, A) {
|
|
26306
|
-
X(v, t, A), u && u.m(t, null),
|
|
26306
|
+
X(v, t, A), u && u.m(t, null), B(t, e), B(t, i), B(i, s), B(i, o), B(i, r), m && m.m(r, null), B(r, a), B(r, l), fe(c, l, null), d = !0;
|
|
26307
26307
|
},
|
|
26308
26308
|
p(v, [A]) {
|
|
26309
26309
|
/*showExit*/
|
|
@@ -26482,7 +26482,7 @@ function xp(n) {
|
|
|
26482
26482
|
);
|
|
26483
26483
|
},
|
|
26484
26484
|
m(p, g) {
|
|
26485
|
-
X(p, t, g),
|
|
26485
|
+
X(p, t, g), B(t, e), h && h.m(e, null), B(e, i), B(e, o), B(t, r), d(), l || (c = je(t, "click", m), l = !0);
|
|
26486
26486
|
},
|
|
26487
26487
|
p(p, g) {
|
|
26488
26488
|
n = p, /*option*/
|
|
@@ -26526,7 +26526,7 @@ function KI(n) {
|
|
|
26526
26526
|
n[6]}px, -50%)`), P(t, "class", "Switcher svelte-1mfj5mk");
|
|
26527
26527
|
},
|
|
26528
26528
|
m(a, l) {
|
|
26529
|
-
X(a, t, l),
|
|
26529
|
+
X(a, t, l), B(t, e), B(t, i), B(t, s);
|
|
26530
26530
|
for (let c = 0; c < r.length; c += 1)
|
|
26531
26531
|
r[c] && r[c].m(s, null);
|
|
26532
26532
|
n[11](t);
|
|
@@ -26627,7 +26627,7 @@ function Sp(n) {
|
|
|
26627
26627
|
), P(t, "class", "text svelte-82ysdl");
|
|
26628
26628
|
},
|
|
26629
26629
|
m(o, r) {
|
|
26630
|
-
X(o, t, r),
|
|
26630
|
+
X(o, t, r), B(t, e), s = !0;
|
|
26631
26631
|
},
|
|
26632
26632
|
p(o, r) {
|
|
26633
26633
|
(!s || r & /*text*/
|
|
@@ -26825,7 +26825,7 @@ function Lp(n) {
|
|
|
26825
26825
|
);
|
|
26826
26826
|
},
|
|
26827
26827
|
m(h, d) {
|
|
26828
|
-
X(h, t, d),
|
|
26828
|
+
X(h, t, d), B(t, e), B(t, i), B(t, o), a = !0, l || (c = je(
|
|
26829
26829
|
t,
|
|
26830
26830
|
"click",
|
|
26831
26831
|
/*click_handler*/
|
|
@@ -26866,7 +26866,7 @@ function zp(n) {
|
|
|
26866
26866
|
t = W("div"), e = W("div"), i = ae(), o = _e(s), P(e, "class", "icon svelte-ldjbp8"), R(e, "background-image", `url(${yv})`), P(t, "class", "button svelte-ldjbp8");
|
|
26867
26867
|
},
|
|
26868
26868
|
m(h, d) {
|
|
26869
|
-
X(h, t, d),
|
|
26869
|
+
X(h, t, d), B(t, e), B(t, i), B(t, o), a = !0, l || (c = je(
|
|
26870
26870
|
t,
|
|
26871
26871
|
"click",
|
|
26872
26872
|
/*complete*/
|
|
@@ -26935,7 +26935,7 @@ function r4(n) {
|
|
|
26935
26935
|
n[5]), P(l, "class", "controller svelte-ldjbp8"), P(r, "class", "center svelte-ldjbp8"), P(i, "class", "bottom svelte-ldjbp8"), P(t, "class", "Measure-Controller svelte-ldjbp8");
|
|
26936
26936
|
},
|
|
26937
26937
|
m(w, I) {
|
|
26938
|
-
X(w, t, I), p && p.m(t, null),
|
|
26938
|
+
X(w, t, I), p && p.m(t, null), B(t, e), B(t, i), B(i, s), B(i, o), B(i, r), g && g.m(r, null), B(r, a), B(r, l), v && v.m(l, null), B(l, c), B(l, h), fe(d, h, null), B(l, u), A && A.m(l, null), m = !0;
|
|
26939
26939
|
},
|
|
26940
26940
|
p(w, [I]) {
|
|
26941
26941
|
/*showExit*/
|
|
@@ -27199,7 +27199,7 @@ function Op(n) {
|
|
|
27199
27199
|
), P(e, "class", "text svelte-1fzxlsz"), P(t, "class", "Measure-Tips svelte-1fzxlsz");
|
|
27200
27200
|
},
|
|
27201
27201
|
m(r, a) {
|
|
27202
|
-
X(r, t, a),
|
|
27202
|
+
X(r, t, a), B(t, e), B(e, i), n[7](e), o = !0;
|
|
27203
27203
|
},
|
|
27204
27204
|
p(r, a) {
|
|
27205
27205
|
(!o || a & /*tip*/
|
|
@@ -27445,7 +27445,7 @@ class b4 extends ys {
|
|
|
27445
27445
|
), this.allowMeasureType = Array.from(new Set((m = (u = i.editParams) == null ? void 0 : u.allowMeasureType) != null ? m : ["line"])), this.currentMeasureType = (p = this.allowMeasureType[0]) != null ? p : "line", this.group = new Sn(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.visibility = "hidden", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0", this.container.style.zIndex = "1";
|
|
27446
27446
|
const s = (v = (g = i.editParams) == null ? void 0 : g.pointSelectorMode) != null ? v : B0 ? "fixed" : "cursor", o = (A = this.params.openParams) != null ? A : {};
|
|
27447
27447
|
if (this.params.useUIController !== !1) {
|
|
27448
|
-
const w =
|
|
27448
|
+
const w = _({
|
|
27449
27449
|
container: this.container,
|
|
27450
27450
|
openParams: o,
|
|
27451
27451
|
i18n: i.i18n,
|
|
@@ -27455,7 +27455,7 @@ class b4 extends ys {
|
|
|
27455
27455
|
this.useUIController = new c4(this, w);
|
|
27456
27456
|
}
|
|
27457
27457
|
if (this.params.useGuideController !== !1) {
|
|
27458
|
-
const w =
|
|
27458
|
+
const w = _({
|
|
27459
27459
|
container: this.container,
|
|
27460
27460
|
pointSelectorMode: s,
|
|
27461
27461
|
i18n: i.i18n
|
|
@@ -27482,7 +27482,7 @@ class b4 extends ys {
|
|
|
27482
27482
|
e.list && (i = {
|
|
27483
27483
|
polylines: e.list.map((o) => o.polyline).map((o) => {
|
|
27484
27484
|
var r;
|
|
27485
|
-
return
|
|
27485
|
+
return le(_({}, o), {
|
|
27486
27486
|
visibleFiveMode: (r = o.visibleFiveMode) != null ? r : ["Panorama"]
|
|
27487
27487
|
});
|
|
27488
27488
|
})
|
|
@@ -27593,7 +27593,7 @@ class b4 extends ys {
|
|
|
27593
27593
|
pointSelectorConfig: this.params.pointSelectorConfig,
|
|
27594
27594
|
magnifierParams: this.params.magnifierParams,
|
|
27595
27595
|
getMeasureType: () => this.currentMeasureType,
|
|
27596
|
-
mouseGroup: mv(
|
|
27596
|
+
mouseGroup: mv(_({}, e.crossHairParameter)),
|
|
27597
27597
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
27598
27598
|
};
|
|
27599
27599
|
}
|
|
@@ -27638,11 +27638,11 @@ class dn extends Ai {
|
|
|
27638
27638
|
size: (u = e == null ? void 0 : e.size) != null ? u : 8,
|
|
27639
27639
|
map: jp || (jp = new y.TextureLoader().load(y4)),
|
|
27640
27640
|
sizeAttenuation: !1
|
|
27641
|
-
}, a = new y.PointsMaterial(
|
|
27641
|
+
}, a = new y.PointsMaterial(le(_({}, r), {
|
|
27642
27642
|
color: (m = e == null ? void 0 : e.color) != null ? m : 16777215,
|
|
27643
27643
|
depthTest: !0,
|
|
27644
27644
|
opacity: (p = e == null ? void 0 : e.opacity) != null ? p : 1
|
|
27645
|
-
})), l = new y.PointsMaterial(
|
|
27645
|
+
})), l = new y.PointsMaterial(le(_({}, r), {
|
|
27646
27646
|
size: a.size,
|
|
27647
27647
|
color: a.color,
|
|
27648
27648
|
depthWrite: !1,
|
|
@@ -27708,10 +27708,10 @@ class sa extends ki {
|
|
|
27708
27708
|
f(this, "pointGroup", new Ai());
|
|
27709
27709
|
f(this, "_paramsStyle");
|
|
27710
27710
|
f(this, "setStyle", (e) => {
|
|
27711
|
-
super.setStyle(e), this._paramsStyle =
|
|
27711
|
+
super.setStyle(e), this._paramsStyle = _(_({}, this._paramsStyle), e), this.pointMeshes.forEach(
|
|
27712
27712
|
(i) => {
|
|
27713
27713
|
var s, o, r;
|
|
27714
|
-
return i.setStyle(
|
|
27714
|
+
return i.setStyle(le(_({}, this._paramsStyle), { color: (r = (s = this._paramsStyle) == null ? void 0 : s.pointColor) != null ? r : (o = this._paramsStyle) == null ? void 0 : o.lineColor, tip: void 0 }));
|
|
27715
27715
|
}
|
|
27716
27716
|
), this.updateEdgePointsVisibility(), this.needsRender = !0;
|
|
27717
27717
|
});
|
|
@@ -27744,7 +27744,7 @@ class sa extends ki {
|
|
|
27744
27744
|
const i = e.map(We).filter(Ne);
|
|
27745
27745
|
this.pointGroup.removeChildren(), this.addIfNotExists(this.pointGroup), i.forEach((s) => {
|
|
27746
27746
|
var r, a, l;
|
|
27747
|
-
const o = new dn(
|
|
27747
|
+
const o = new dn(le(_({}, this.style), {
|
|
27748
27748
|
color: (l = (r = this._paramsStyle) == null ? void 0 : r.pointColor) != null ? l : (a = this._paramsStyle) == null ? void 0 : a.lineColor,
|
|
27749
27749
|
tip: void 0
|
|
27750
27750
|
}));
|
|
@@ -27810,7 +27810,7 @@ class Jl extends Ai {
|
|
|
27810
27810
|
return this._geometry;
|
|
27811
27811
|
}
|
|
27812
27812
|
setStyle(e) {
|
|
27813
|
-
this.paramsStyle =
|
|
27813
|
+
this.paramsStyle = _(_({}, this.paramsStyle), e), Ne(e.color) && (this.meshFont.material.color.set(new y.Color(e.color).convertSRGBToLinear()), this.needsRender = !0), Ne(e.opacity) && (this.meshFont.material.opacity = e.opacity, this.meshBackground.material.opacity = 0.3 / 0.5 * this.meshFont.material.opacity, this.needsRender = !0), this.setOcclusionVisibility(e);
|
|
27814
27814
|
}
|
|
27815
27815
|
highlight(e) {
|
|
27816
27816
|
var i, s;
|
|
@@ -27863,7 +27863,7 @@ class rr extends Jl {
|
|
|
27863
27863
|
return this.points.length >= 3 ? new y.Vector3().crossVectors(this.points[1].clone().sub(this.points[0]), this.points[2].clone().sub(this.points[0])).normalize() : new y.Vector3(0, 0, 1);
|
|
27864
27864
|
}
|
|
27865
27865
|
get style() {
|
|
27866
|
-
return
|
|
27866
|
+
return le(_({}, super.style), { lengthEnable: this._paramsStyle.lengthEnable });
|
|
27867
27867
|
}
|
|
27868
27868
|
get isBlank() {
|
|
27869
27869
|
return !!this.geometry.isBlank;
|
|
@@ -27887,7 +27887,7 @@ class rr extends Jl {
|
|
|
27887
27887
|
}
|
|
27888
27888
|
setStyle(e) {
|
|
27889
27889
|
var s;
|
|
27890
|
-
this._paramsStyle =
|
|
27890
|
+
this._paramsStyle = _(_({}, this._paramsStyle), e), super.setStyle(this._paramsStyle);
|
|
27891
27891
|
const i = (s = this._paramsStyle.occlusionVisibility) != null ? s : !0;
|
|
27892
27892
|
this.areaDom && (this.areaDom.intersectCheck = !i), this.updateAreaItems();
|
|
27893
27893
|
}
|
|
@@ -28488,12 +28488,12 @@ class _4 extends kt {
|
|
|
28488
28488
|
polygonStyle: this.polygonStyle
|
|
28489
28489
|
});
|
|
28490
28490
|
this.currentMeasureMesh = e, e.line.setStyle({ cssStyle: "pointer-events: none;" }), this.pointSelector.actionIfNoIntersection = "disable", this.updateSelectAdsorbedHelper();
|
|
28491
|
-
const i = new dn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new sa(
|
|
28491
|
+
const i = new dn({ occlusionMode: "depthTest", occlusionVisibility: !0 }), s = new sa(le(_({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), o = new rr(this.polygonStyle), r = new ki(le(_({}, this.lineStyle), {
|
|
28492
28492
|
lineOpacity: 0.5,
|
|
28493
28493
|
lineColor: 3407837,
|
|
28494
28494
|
dashed: !0,
|
|
28495
28495
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
28496
|
-
})), a = new ki(
|
|
28496
|
+
})), a = new ki(le(_({}, this.lineStyle), {
|
|
28497
28497
|
lineOpacity: 0.5,
|
|
28498
28498
|
lineColor: 3407837,
|
|
28499
28499
|
dashed: !0,
|
|
@@ -28514,18 +28514,18 @@ class _4 extends kt {
|
|
|
28514
28514
|
return;
|
|
28515
28515
|
}
|
|
28516
28516
|
if (e.points.length === 0 && (this.pointSelector.actionIfNoIntersection = "disable", this.group.addIfNotExists(i), i.position.copy(I.point), c = null, h = !1), e.points.length >= 1)
|
|
28517
|
-
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setStyle(
|
|
28517
|
+
if (this.pointSelector.actionIfNoIntersection = "virtualPoint", i.removeFromParent(), this.group.addIfNotExists(s), s.setStyle(le(_({}, this.lineStyle), { dashed: !0, cssStyle: "pointer-events: none;" })), s.setPoints([e.points.at(-1), I.point]), I.isAdsorbed)
|
|
28518
28518
|
r.removeFromParent(), a.removeFromParent(), l.removeFromParent(), c = null, h = !1;
|
|
28519
28519
|
else {
|
|
28520
28520
|
const C = e.points.at(-1);
|
|
28521
28521
|
if (Math.abs(I.point.y - C.y) > 0.2) {
|
|
28522
28522
|
const D = new y.Vector3(I.point.x, C.y, I.point.z);
|
|
28523
|
-
r.setStyle(
|
|
28523
|
+
r.setStyle(le(_({}, this.lineStyle), {
|
|
28524
28524
|
lineOpacity: 0.5,
|
|
28525
28525
|
lineColor: 3407837,
|
|
28526
28526
|
dashed: !0,
|
|
28527
28527
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
28528
|
-
})), a.setStyle(
|
|
28528
|
+
})), a.setStyle(le(_({}, this.lineStyle), {
|
|
28529
28529
|
lineOpacity: 0.5,
|
|
28530
28530
|
lineColor: 3407837,
|
|
28531
28531
|
dashed: !0,
|
|
@@ -28533,12 +28533,12 @@ class _4 extends kt {
|
|
|
28533
28533
|
})), r.setPoints([C, D]), a.setPoints([D, I.point]), l.position.copy(D), c = D.clone(), h = !0;
|
|
28534
28534
|
} else {
|
|
28535
28535
|
let D = new y.Vector3();
|
|
28536
|
-
Math.abs(I.point.x - C.x) < Math.abs(I.point.z - C.z) ? D = new y.Vector3(I.point.x, C.y, C.z) : D = new y.Vector3(C.x, C.y, I.point.z), r.setStyle(
|
|
28536
|
+
Math.abs(I.point.x - C.x) < Math.abs(I.point.z - C.z) ? D = new y.Vector3(I.point.x, C.y, C.z) : D = new y.Vector3(C.x, C.y, I.point.z), r.setStyle(le(_({}, this.lineStyle), {
|
|
28537
28537
|
lineOpacity: 0.5,
|
|
28538
28538
|
lineColor: 3407837,
|
|
28539
28539
|
dashed: !0,
|
|
28540
28540
|
cssStyle: "pointer-events: none; opacity: 0.5;"
|
|
28541
|
-
})), a.setStyle(
|
|
28541
|
+
})), a.setStyle(le(_({}, this.lineStyle), {
|
|
28542
28542
|
lineOpacity: 0.5,
|
|
28543
28543
|
lineColor: 3407837,
|
|
28544
28544
|
dashed: !0,
|
|
@@ -28549,7 +28549,7 @@ class _4 extends kt {
|
|
|
28549
28549
|
}
|
|
28550
28550
|
if (e.points.length >= 2) {
|
|
28551
28551
|
const C = [...e.points, I.point];
|
|
28552
|
-
Pv(C) ? (o.setStyle(
|
|
28552
|
+
Pv(C) ? (o.setStyle(_({}, this.polygonStyle)), o.setPoints(C), this.group.addIfNotExists(o)) : o.removeFromParent();
|
|
28553
28553
|
}
|
|
28554
28554
|
}, v = (I) => {
|
|
28555
28555
|
if (!I)
|
|
@@ -28603,12 +28603,12 @@ class _4 extends kt {
|
|
|
28603
28603
|
f(this, "setLengthEnable", (e) => {
|
|
28604
28604
|
this.lineStyle.lengthEnable = e, this.polygonStyle.lengthEnable = e, this.group.children.forEach((i) => {
|
|
28605
28605
|
i.changeConfig({
|
|
28606
|
-
lineStyle:
|
|
28607
|
-
polygonStyle:
|
|
28606
|
+
lineStyle: _({}, this.lineStyle),
|
|
28607
|
+
polygonStyle: _({}, this.polygonStyle)
|
|
28608
28608
|
}), this.addMeshEventListeners(i);
|
|
28609
28609
|
}), this.currentMeasureMesh && this.currentMeasureMesh.changeConfig({
|
|
28610
|
-
lineStyle:
|
|
28611
|
-
polygonStyle:
|
|
28610
|
+
lineStyle: _({}, this.lineStyle),
|
|
28611
|
+
polygonStyle: _({}, this.polygonStyle)
|
|
28612
28612
|
}), this.five.needsRender = !0;
|
|
28613
28613
|
});
|
|
28614
28614
|
/**
|
|
@@ -28619,16 +28619,16 @@ class _4 extends kt {
|
|
|
28619
28619
|
if (this._config && (this._config.unit = e), this.lineStyle.lengthUnit = e, this.polygonStyle.lengthUnit = e, this.group.children.forEach((i) => {
|
|
28620
28620
|
try {
|
|
28621
28621
|
i.changeConfig({
|
|
28622
|
-
lineStyle:
|
|
28623
|
-
polygonStyle:
|
|
28622
|
+
lineStyle: _({}, this.lineStyle),
|
|
28623
|
+
polygonStyle: _({}, this.polygonStyle)
|
|
28624
28624
|
}), this.addMeshEventListeners(i);
|
|
28625
28625
|
} catch (s) {
|
|
28626
28626
|
}
|
|
28627
28627
|
}), this.currentMeasureMesh)
|
|
28628
28628
|
try {
|
|
28629
28629
|
this.currentMeasureMesh.changeConfig({
|
|
28630
|
-
lineStyle:
|
|
28631
|
-
polygonStyle:
|
|
28630
|
+
lineStyle: _({}, this.lineStyle),
|
|
28631
|
+
polygonStyle: _({}, this.polygonStyle)
|
|
28632
28632
|
});
|
|
28633
28633
|
} catch (i) {
|
|
28634
28634
|
}
|
|
@@ -28642,16 +28642,16 @@ class _4 extends kt {
|
|
|
28642
28642
|
if (this._config && (this._config.precision = e), this.lineStyle.precision = e, this.group.children.forEach((i) => {
|
|
28643
28643
|
try {
|
|
28644
28644
|
i.changeConfig({
|
|
28645
|
-
lineStyle:
|
|
28646
|
-
polygonStyle:
|
|
28645
|
+
lineStyle: _({}, this.lineStyle),
|
|
28646
|
+
polygonStyle: _({}, this.polygonStyle)
|
|
28647
28647
|
}), this.addMeshEventListeners(i);
|
|
28648
28648
|
} catch (s) {
|
|
28649
28649
|
}
|
|
28650
28650
|
}), this.currentMeasureMesh)
|
|
28651
28651
|
try {
|
|
28652
28652
|
this.currentMeasureMesh.changeConfig({
|
|
28653
|
-
lineStyle:
|
|
28654
|
-
polygonStyle:
|
|
28653
|
+
lineStyle: _({}, this.lineStyle),
|
|
28654
|
+
polygonStyle: _({}, this.polygonStyle)
|
|
28655
28655
|
});
|
|
28656
28656
|
} catch (i) {
|
|
28657
28657
|
}
|
|
@@ -29188,7 +29188,7 @@ class _4 extends kt {
|
|
|
29188
29188
|
});
|
|
29189
29189
|
this.five = e;
|
|
29190
29190
|
const s = { unit: "m", lengthEnable: !0, precision: 2 };
|
|
29191
|
-
this.config = i ?
|
|
29191
|
+
this.config = i ? _(_({}, s), i) : s, this.group = new Ai(), this.group.name = "MeasureGroup", this.five.scene.add(this.group), this.five.on("panoArrived", this.onMoveToPano), this.five.on("modeChange", this.onModeChange), mt("delete, backspace", this.deleteSelectedMesh), this.initEventListeners();
|
|
29192
29192
|
}
|
|
29193
29193
|
get pointSelector() {
|
|
29194
29194
|
return this._pointSelector ? this._pointSelector : (this._pointSelector = new Ol(this.five, { mode: "cursor", helper: { pointHelper: "highlight" }, skipPanorama: !0 }), this._pointSelector);
|
|
@@ -29365,7 +29365,7 @@ function G4(n) {
|
|
|
29365
29365
|
);
|
|
29366
29366
|
},
|
|
29367
29367
|
m(v, A) {
|
|
29368
|
-
X(v, t, A),
|
|
29368
|
+
X(v, t, A), B(t, e), B(t, i), B(t, s), B(s, o), B(s, r), B(s, a), B(s, l), B(s, c), B(t, h), B(t, d), B(d, u), u.innerHTML = /*content*/
|
|
29369
29369
|
n[2], n[17](u), p || (g = je(
|
|
29370
29370
|
u,
|
|
29371
29371
|
"click",
|
|
@@ -29685,15 +29685,15 @@ const xc = 1e-3, Qp = 0.01, Xp = cd, rL = (n, t) => {
|
|
|
29685
29685
|
}, v = new H4({
|
|
29686
29686
|
target: u,
|
|
29687
29687
|
props: { origins: g.origins }
|
|
29688
|
-
}), A = (de,
|
|
29689
|
-
z(),
|
|
29688
|
+
}), A = (de, ce) => {
|
|
29689
|
+
z(), ce && D();
|
|
29690
29690
|
}, w = () => {
|
|
29691
29691
|
g.forbidden && (g.forbidden = !1, D());
|
|
29692
|
-
}, I = (de,
|
|
29692
|
+
}, I = (de, ce) => {
|
|
29693
29693
|
if (g.tags.length === 0)
|
|
29694
29694
|
return;
|
|
29695
|
-
const Se =
|
|
29696
|
-
ee.position.copy(
|
|
29695
|
+
const Se = ce.longitude - n.state.longitude, ee = n.camera.clone();
|
|
29696
|
+
ee.position.copy(ce.offset), ee.rotateOnWorldAxis(new y.Vector3(0, 1, 0), Se), ee.updateProjectionMatrix(), ee.updateMatrixWorld(!0);
|
|
29697
29697
|
const Te = new y.Frustum(), Re = new y.Matrix4();
|
|
29698
29698
|
Re.multiplyMatrices(ee.projectionMatrix, ee.matrixWorldInverse), Te.setFromProjectionMatrix(Re), g.tags.forEach((Ae) => {
|
|
29699
29699
|
const Ve = ee.position.clone().setY(i).distanceTo(Ae.position);
|
|
@@ -29718,15 +29718,15 @@ const xc = 1e-3, Qp = 0.01, Xp = cd, rL = (n, t) => {
|
|
|
29718
29718
|
}), g.tags = g.tags.filter((Ae) => !Ae.destroying), z();
|
|
29719
29719
|
}, 1900);
|
|
29720
29720
|
}, C = (de) => {
|
|
29721
|
-
de !== Gt.Mode.Panorama && !g.forbidden && (v.$set({ origins: [] }), g.tags.forEach((
|
|
29722
|
-
|
|
29721
|
+
de !== Gt.Mode.Panorama && !g.forbidden && (v.$set({ origins: [] }), g.tags.forEach((ce) => {
|
|
29722
|
+
ce.app.$destroy(), ce = null;
|
|
29723
29723
|
}), g.origins = [], g.tags = [], g.forbidden = !0);
|
|
29724
29724
|
}, z = () => {
|
|
29725
29725
|
if (g.forbidden || !g.enabled)
|
|
29726
29726
|
return;
|
|
29727
|
-
const de = n.camera,
|
|
29727
|
+
const de = n.camera, ce = de.getWorldDirection(new y.Vector3());
|
|
29728
29728
|
g.origins = g.tags.map((Se) => {
|
|
29729
|
-
const ee = Se.position.clone().project(de), Te = Se.position.clone().sub(de.position).setY(0).angleTo(
|
|
29729
|
+
const ee = Se.position.clone().project(de), Te = Se.position.clone().sub(de.position).setY(0).angleTo(ce.setY(0)) < Math.PI / 2;
|
|
29730
29730
|
return {
|
|
29731
29731
|
id: Se.id,
|
|
29732
29732
|
front: Te,
|
|
@@ -29742,7 +29742,7 @@ const xc = 1e-3, Qp = 0.01, Xp = cd, rL = (n, t) => {
|
|
|
29742
29742
|
de.length && (g.tags = g.tags.concat(de), z());
|
|
29743
29743
|
}, s));
|
|
29744
29744
|
}, j = () => {
|
|
29745
|
-
const { clientWidth: de, clientHeight:
|
|
29745
|
+
const { clientWidth: de, clientHeight: ce } = n.getElement(), Se = [], ee = n.camera, Te = new y.Frustum(), Re = new y.Matrix4(), Ae = ee.getWorldDirection(new y.Vector3());
|
|
29746
29746
|
Re.multiplyMatrices(ee.projectionMatrix, ee.matrixWorldInverse), Te.setFromProjectionMatrix(Re);
|
|
29747
29747
|
const Ve = g.tags.filter((Ie) => Te.containsPoint(Ie.position) && !Ie.destroying).length, ge = g.points.reduce((Ie, Oe) => {
|
|
29748
29748
|
if (g.tags.find((rt) => Oe.id === rt.id && !rt.destroying))
|
|
@@ -29758,7 +29758,7 @@ const xc = 1e-3, Qp = 0.01, Xp = cd, rL = (n, t) => {
|
|
|
29758
29758
|
if (rt.position.clone().sub(ee.position).setY(0).angleTo(Ae.setY(0)) > Math.PI / 2)
|
|
29759
29759
|
return !0;
|
|
29760
29760
|
const at = rt.position.clone().project(ee);
|
|
29761
|
-
return Math.sqrt(Math.pow((st.x - at.x) / 2 * de, 2) + Math.pow((st.y - at.y) / 2 *
|
|
29761
|
+
return Math.sqrt(Math.pow((st.x - at.x) / 2 * de, 2) + Math.pow((st.y - at.y) / 2 * ce, 2)) > a;
|
|
29762
29762
|
}))
|
|
29763
29763
|
return Ie;
|
|
29764
29764
|
const Je = {
|
|
@@ -29792,7 +29792,7 @@ const xc = 1e-3, Qp = 0.01, Xp = cd, rL = (n, t) => {
|
|
|
29792
29792
|
if ($e.position.clone().sub(ee.position).setY(0).angleTo(Ae.setY(0)) > Math.PI / 2)
|
|
29793
29793
|
return !0;
|
|
29794
29794
|
const rt = $e.position.clone().project(ee);
|
|
29795
|
-
return Math.sqrt(Math.pow((Ye.x - rt.x) / 2 * de, 2) + Math.pow((Ye.y - rt.y) / 2 *
|
|
29795
|
+
return Math.sqrt(Math.pow((Ye.x - rt.x) / 2 * de, 2) + Math.pow((Ye.y - rt.y) / 2 * ce, 2)) > a;
|
|
29796
29796
|
}))
|
|
29797
29797
|
continue;
|
|
29798
29798
|
const st = new y.Raycaster(
|
|
@@ -29833,14 +29833,14 @@ const xc = 1e-3, Qp = 0.01, Xp = cd, rL = (n, t) => {
|
|
|
29833
29833
|
}
|
|
29834
29834
|
return Se;
|
|
29835
29835
|
}, T = (de) => {
|
|
29836
|
-
g.points = de.points.map((
|
|
29836
|
+
g.points = de.points.map((ce) => {
|
|
29837
29837
|
var Se, ee;
|
|
29838
29838
|
return {
|
|
29839
|
-
id:
|
|
29840
|
-
position: new y.Vector3().fromArray(
|
|
29841
|
-
normal: new y.Vector3().fromArray(
|
|
29842
|
-
replacement: (Se =
|
|
29843
|
-
weight: (ee =
|
|
29839
|
+
id: ce.id,
|
|
29840
|
+
position: new y.Vector3().fromArray(ce.position),
|
|
29841
|
+
normal: new y.Vector3().fromArray(ce.normal),
|
|
29842
|
+
replacement: (Se = ce.replacement) != null ? Se : {},
|
|
29843
|
+
weight: (ee = ce.weight) != null ? ee : -1
|
|
29844
29844
|
};
|
|
29845
29845
|
}), de.render && (g.render = de.render), de.template && (g.template = de.template), de.events && (g.events = de.events), de.enabled === !1 && (g.enabled = de.enabled), de.folded === !0 && (g.folded = de.folded);
|
|
29846
29846
|
}, O = (de) => {
|
|
@@ -29860,12 +29860,12 @@ const xc = 1e-3, Qp = 0.01, Xp = cd, rL = (n, t) => {
|
|
|
29860
29860
|
de.app.$set({ folded: g.folded });
|
|
29861
29861
|
});
|
|
29862
29862
|
}, S = (de) => {
|
|
29863
|
-
g.tags.forEach((
|
|
29864
|
-
|
|
29863
|
+
g.tags.forEach((ce) => {
|
|
29864
|
+
ce.id === de && ce.app.$set({ folded: !1 });
|
|
29865
29865
|
});
|
|
29866
29866
|
}, L = (de) => {
|
|
29867
|
-
g.tags.forEach((
|
|
29868
|
-
|
|
29867
|
+
g.tags.forEach((ce) => {
|
|
29868
|
+
ce.id === de && ce.app.$set({ folded: !0 });
|
|
29869
29869
|
});
|
|
29870
29870
|
}, N = () => {
|
|
29871
29871
|
n.once("renderFrame", z);
|
|
@@ -29965,7 +29965,7 @@ function $4(n) {
|
|
|
29965
29965
|
);
|
|
29966
29966
|
},
|
|
29967
29967
|
m(d, u) {
|
|
29968
|
-
X(d, t, u),
|
|
29968
|
+
X(d, t, u), B(t, e), B(e, i), B(i, o), B(t, r), B(t, a), c || (h = je(
|
|
29969
29969
|
i,
|
|
29970
29970
|
"click",
|
|
29971
29971
|
/*onClick*/
|
|
@@ -30177,10 +30177,10 @@ function o8(n, t, e) {
|
|
|
30177
30177
|
const L = S.map((V) => {
|
|
30178
30178
|
const q = A(k, V), ie = V.name.length * s8, K = C(V.modelPosition[1], c), $ = (r ? v(k, V) : !0) && !I([q[0], q[1] + K], ie);
|
|
30179
30179
|
if (!$)
|
|
30180
|
-
return
|
|
30180
|
+
return le(_({}, V), { visible: $ });
|
|
30181
30181
|
p.push(q);
|
|
30182
30182
|
const ue = w(q);
|
|
30183
|
-
return
|
|
30183
|
+
return le(_({}, V), {
|
|
30184
30184
|
visible: $,
|
|
30185
30185
|
transform: ue,
|
|
30186
30186
|
strokeLength: K
|
|
@@ -30191,7 +30191,7 @@ function o8(n, t, e) {
|
|
|
30191
30191
|
})).sort((V, q) => V.distance - q.distance);
|
|
30192
30192
|
return L.map((V) => {
|
|
30193
30193
|
const q = N.findIndex((ie) => ie.itemLabelItem.id === V.id);
|
|
30194
|
-
return q !== void 0 ?
|
|
30194
|
+
return q !== void 0 ? le(_({}, V), { zIndex: q * 10 }) : V;
|
|
30195
30195
|
});
|
|
30196
30196
|
}, D = () => {
|
|
30197
30197
|
p = [], e(1, d = z(o, d));
|
|
@@ -30258,7 +30258,7 @@ let r8 = class extends Pe {
|
|
|
30258
30258
|
}
|
|
30259
30259
|
};
|
|
30260
30260
|
function a8(n) {
|
|
30261
|
-
return n.model_item_labels.map((t) =>
|
|
30261
|
+
return n.model_item_labels.map((t) => _({
|
|
30262
30262
|
modelPosition: [t.position[0], t.position[1] + t.size[1], t.position[2]]
|
|
30263
30263
|
}, t));
|
|
30264
30264
|
}
|
|
@@ -30518,7 +30518,7 @@ function u8(n) {
|
|
|
30518
30518
|
h && h.c(), t = ae(), e = W("div"), i = W("span"), o = _e(s), r = ae(), a = W("span"), c = _e(l), P(i, "class", "item-model svelte-139cs8e"), P(a, "class", "item-name svelte-139cs8e"), P(e, "class", "item-label-text svelte-139cs8e");
|
|
30519
30519
|
},
|
|
30520
30520
|
m(d, u) {
|
|
30521
|
-
h && h.m(d, u), X(d, t, u), X(d, e, u),
|
|
30521
|
+
h && h.m(d, u), X(d, t, u), X(d, e, u), B(e, i), B(i, o), B(e, r), B(e, a), B(a, c);
|
|
30522
30522
|
},
|
|
30523
30523
|
p(d, u) {
|
|
30524
30524
|
/*itemLabel*/
|
|
@@ -30557,7 +30557,7 @@ function Jp(n) {
|
|
|
30557
30557
|
n[0].icon})`), P(t, "class", "icon-wrap svelte-139cs8e");
|
|
30558
30558
|
},
|
|
30559
30559
|
m(r, a) {
|
|
30560
|
-
X(r, t, a),
|
|
30560
|
+
X(r, t, a), B(t, e), s || (o = je(
|
|
30561
30561
|
t,
|
|
30562
30562
|
"click",
|
|
30563
30563
|
/*click_handler*/
|
|
@@ -30608,7 +30608,7 @@ function p8(n) {
|
|
|
30608
30608
|
);
|
|
30609
30609
|
},
|
|
30610
30610
|
m(p, g) {
|
|
30611
|
-
X(p, t, g),
|
|
30611
|
+
X(p, t, g), B(t, e), m.m(e, null), B(t, o), B(t, r), c || (h = je(
|
|
30612
30612
|
e,
|
|
30613
30613
|
"click",
|
|
30614
30614
|
/*onClick*/
|
|
@@ -30720,7 +30720,7 @@ const { Raycaster: v8, Vector3: uL } = y, Kp = (n, t, e, i) => {
|
|
|
30720
30720
|
}
|
|
30721
30721
|
}, b8 = (n) => `translate(${n[0]}px, ${n[1]}px)`;
|
|
30722
30722
|
function $p(n) {
|
|
30723
|
-
return n.map((t) =>
|
|
30723
|
+
return n.map((t) => _({
|
|
30724
30724
|
observerIndex: void 0,
|
|
30725
30725
|
visible: !1,
|
|
30726
30726
|
isFold: !1
|
|
@@ -30899,15 +30899,15 @@ function C8(n, t, e) {
|
|
|
30899
30899
|
}, C = (S, L) => {
|
|
30900
30900
|
const N = L.map((q) => {
|
|
30901
30901
|
if (S.state.panoIndex !== q.panoIndex)
|
|
30902
|
-
return
|
|
30902
|
+
return le(_({}, q), { visible: !1 });
|
|
30903
30903
|
const ie = I(S, q);
|
|
30904
30904
|
q.name.length * P8;
|
|
30905
30905
|
const K = A8(q.modelPosition[1], l), oe = S.currentMode === Gt.Mode.Panorama ? w(new i(q.position[0], q.position[1], q.position[2])) : !0, $ = o ? A(S, q) : !1, ue = oe && !$;
|
|
30906
30906
|
if (!ue)
|
|
30907
|
-
return
|
|
30907
|
+
return le(_({}, q), { visible: ue });
|
|
30908
30908
|
g.push(ie);
|
|
30909
30909
|
const Le = b8(ie);
|
|
30910
|
-
return
|
|
30910
|
+
return le(_({}, q), {
|
|
30911
30911
|
visible: ue,
|
|
30912
30912
|
transform: Le,
|
|
30913
30913
|
strokeLength: K
|
|
@@ -30918,7 +30918,7 @@ function C8(n, t, e) {
|
|
|
30918
30918
|
})).sort((q, ie) => q.distance - ie.distance);
|
|
30919
30919
|
return N.map((q) => {
|
|
30920
30920
|
const ie = V.findIndex((K) => K.itemLabelItem.id === q.id);
|
|
30921
|
-
return ie !== void 0 ?
|
|
30921
|
+
return ie !== void 0 ? le(_({}, q), { zIndex: ie * 10 }) : q;
|
|
30922
30922
|
});
|
|
30923
30923
|
}, z = () => {
|
|
30924
30924
|
g = [], e(1, d = C(s, d));
|
|
@@ -30960,14 +30960,14 @@ function C8(n, t, e) {
|
|
|
30960
30960
|
longitude: Math.PI + Math.atan2(ie.x, ie.z),
|
|
30961
30961
|
latitude: Math.acos(ie.y / ie.length()) - Math.PI / 2
|
|
30962
30962
|
};
|
|
30963
|
-
s.setState(
|
|
30963
|
+
s.setState(le(_({}, K), {
|
|
30964
30964
|
mode: Gt.Mode.Panorama,
|
|
30965
30965
|
panoIndex: S.observerIndex
|
|
30966
30966
|
})), s.once("initAnimationEnded", () => {
|
|
30967
|
-
e(1, d = d.map((oe) =>
|
|
30967
|
+
e(1, d = d.map((oe) => le(_({}, oe), {
|
|
30968
30968
|
isFold: oe.id !== S.id
|
|
30969
30969
|
}))), s.once("cameraUpdate", () => {
|
|
30970
|
-
e(1, d = d.map((oe) =>
|
|
30970
|
+
e(1, d = d.map((oe) => le(_({}, oe), { isFold: !1 })));
|
|
30971
30971
|
});
|
|
30972
30972
|
});
|
|
30973
30973
|
}
|
|
@@ -31022,7 +31022,7 @@ class I8 extends Pe {
|
|
|
31022
31022
|
}
|
|
31023
31023
|
}
|
|
31024
31024
|
function E8(n) {
|
|
31025
|
-
return n.item_labels.map((t) =>
|
|
31025
|
+
return n.item_labels.map((t) => le(_({}, t), {
|
|
31026
31026
|
modelPosition: [t.position[0], t.position[1], t.position[2]],
|
|
31027
31027
|
observerIndex: void 0
|
|
31028
31028
|
}));
|
|
@@ -31126,7 +31126,7 @@ function x8(n) {
|
|
|
31126
31126
|
n[0].inSight ? 1 : 0}`), P(t, "class", "plugin-DoorLabelPlugin-item svelte-1irjijd");
|
|
31127
31127
|
},
|
|
31128
31128
|
m(p, g) {
|
|
31129
|
-
X(p, t, g),
|
|
31129
|
+
X(p, t, g), B(t, e), B(e, i), B(i, o), B(e, r), B(e, a), n[4](t), u || (m = je(
|
|
31130
31130
|
e,
|
|
31131
31131
|
"click",
|
|
31132
31132
|
/*click_handler*/
|
|
@@ -31365,7 +31365,7 @@ class R8 extends ys {
|
|
|
31365
31365
|
position: d,
|
|
31366
31366
|
toward: O8(r.rad)
|
|
31367
31367
|
});
|
|
31368
|
-
}), this.labelItems = this.doorLabels.map((r) =>
|
|
31368
|
+
}), this.labelItems = this.doorLabels.map((r) => le(_({}, r), {
|
|
31369
31369
|
left: 0,
|
|
31370
31370
|
top: 0,
|
|
31371
31371
|
visible: !1,
|
|
@@ -31380,7 +31380,7 @@ class R8 extends ys {
|
|
|
31380
31380
|
}
|
|
31381
31381
|
setState(e, i) {
|
|
31382
31382
|
const s = this.state;
|
|
31383
|
-
this.state =
|
|
31383
|
+
this.state = _(_({}, s), e);
|
|
31384
31384
|
const o = s.enabled && s.visible, r = this.state.enabled && this.state.visible;
|
|
31385
31385
|
o !== r && this.applyState();
|
|
31386
31386
|
}
|
|
@@ -31565,11 +31565,11 @@ function iE(n) {
|
|
|
31565
31565
|
const {
|
|
31566
31566
|
line1RelativeIndex: Me,
|
|
31567
31567
|
line2RelativeIndex: de,
|
|
31568
|
-
x:
|
|
31568
|
+
x: ce,
|
|
31569
31569
|
y: Se
|
|
31570
31570
|
} = re, ee = oe + Me, Te = ue + de + 2;
|
|
31571
31571
|
for (let Oe = ee; Oe < Te; Oe++)
|
|
31572
|
-
N < V ? (v[Oe * 6 + 0] =
|
|
31572
|
+
N < V ? (v[Oe * 6 + 0] = ce, v[Oe * 6 + 2] = Se) : (v[Oe * 6 + 3] = ce, v[Oe * 6 + 5] = Se), z = Oe;
|
|
31573
31573
|
let Re, Ae, Ve, ge, Ie;
|
|
31574
31574
|
N < V ? (Re = v[oe * 6 + 1], Ae = v[ee * 6 + 1], Ve = v[Te * 6 + 1], ge = v[Le * 6 + 1], Ie = (Ae + Ve) / 2) : (Re = v[oe * 6 + 4], Ae = v[ee * 6 + 4], Ve = v[Te * 6 + 4], ge = v[Le * 6 + 4], Ie = (Ae + Ve) / 2);
|
|
31575
31575
|
for (let Oe = oe; Oe < ee; Oe++) {
|
|
@@ -32439,7 +32439,7 @@ class aa {
|
|
|
32439
32439
|
this.cache_visible.clear(), this.cache_raycasterDistance.clear();
|
|
32440
32440
|
}
|
|
32441
32441
|
static generateCameraTagKey(t, e, i = 3) {
|
|
32442
|
-
const s =
|
|
32442
|
+
const s = _(_({}, e.five.getCurrentState()), t), o = s.mode === "Panorama" ? e.workUtil.getObserverPosition(s.panoIndex) : e.five.camera.position;
|
|
32443
32443
|
return o ? [
|
|
32444
32444
|
//
|
|
32445
32445
|
o.x.toFixed(i),
|
|
@@ -32668,7 +32668,7 @@ class ME extends ys {
|
|
|
32668
32668
|
const z = d[I];
|
|
32669
32669
|
d[I] = it({}, c, z, ...Object.values(C), l, { _isMerged: !0 });
|
|
32670
32670
|
});
|
|
32671
|
-
const m =
|
|
32671
|
+
const m = le(_({}, h), { configWithFiveMode: d });
|
|
32672
32672
|
return kl(m), Object.values(d).forEach((I) => kl(I)), m._isMerged = !0, m;
|
|
32673
32673
|
}
|
|
32674
32674
|
}
|
|
@@ -32816,7 +32816,7 @@ function Tc(n, t, e) {
|
|
|
32816
32816
|
const C = h[w];
|
|
32817
32817
|
h[w] = it({}, l, C, ...Object.values(I), a, { _isMerged: !0 });
|
|
32818
32818
|
});
|
|
32819
|
-
const u =
|
|
32819
|
+
const u = le(_({}, c), { configWithFiveMode: h });
|
|
32820
32820
|
return kl(u), Object.values(h).forEach((w) => kl(w)), u._isMerged = !0, u;
|
|
32821
32821
|
}
|
|
32822
32822
|
function lm(n) {
|
|
@@ -32918,7 +32918,7 @@ class Wd {
|
|
|
32918
32918
|
const r = Tc(e, t.config), a = this.getConfig(e);
|
|
32919
32919
|
e.config = a, this.id = (h = e.id) != null ? h : Dt(), this.enabled = (d = e.enabled) != null ? d : !0, this.contentType = e.contentType, this.hoverEnabled = (m = (u = a.popoverConfig) == null ? void 0 : u.enabled) != null ? m : !0, this.data = (p = a.initialData) != null && p.important ? it(e.data, s, a.initialData) : it(e.data, a.initialData, s);
|
|
32920
32920
|
let l;
|
|
32921
|
-
typeof a.unfoldedConfig == "object" ? a.unfoldedConfig.keep === "unfolded" ? l = !0 : a.unfoldedConfig.keep === "folded" ? l = !1 : l = !this.can("fold") : l = !this.can("fold"), this.state =
|
|
32921
|
+
typeof a.unfoldedConfig == "object" ? a.unfoldedConfig.keep === "unfolded" ? l = !0 : a.unfoldedConfig.keep === "folded" ? l = !1 : l = !this.can("fold") : l = !this.can("fold"), this.state = _({
|
|
32922
32922
|
visible: void 0,
|
|
32923
32923
|
unfolded: l
|
|
32924
32924
|
}, a.initialState), this.isPopoverConfigEnabled() && (this.state.unfolded = !1), this.normalLineLength = (v = (g = e.style) == null ? void 0 : g.point) == null ? void 0 : v.normalLen, this.originPosition = e.position, e.originPosition = this.originPosition, this.position = (() => {
|
|
@@ -32989,7 +32989,7 @@ class Wd {
|
|
|
32989
32989
|
if (vi(o))
|
|
32990
32990
|
return this;
|
|
32991
32991
|
const r = this.workUtil.getObserverPosition(o), a = this.centerPosition.clone().sub(r).normalize();
|
|
32992
|
-
this.five.setState(
|
|
32992
|
+
this.five.setState(_({
|
|
32993
32993
|
mode: "Panorama",
|
|
32994
32994
|
workCode: this.workUtil.workCode,
|
|
32995
32995
|
panoIndex: o
|
|
@@ -33047,7 +33047,7 @@ class Wd {
|
|
|
33047
33047
|
return;
|
|
33048
33048
|
}
|
|
33049
33049
|
const r = s ? Vl : A1;
|
|
33050
|
-
this._currentBlinkInstance = r(o,
|
|
33050
|
+
this._currentBlinkInstance = r(o, _({
|
|
33051
33051
|
begin: () => {
|
|
33052
33052
|
s === !1 && (this.dom && (this.dom.style.visibility = ""), this.contentDom && (this.contentDom.style.visibility = ""));
|
|
33053
33053
|
},
|
|
@@ -33110,7 +33110,7 @@ class Wd {
|
|
|
33110
33110
|
* @param deepMerge 是否深度合并 data,默认为 true
|
|
33111
33111
|
*/
|
|
33112
33112
|
setData(t, e = !0) {
|
|
33113
|
-
e ? this.data = it(this.data, t) : this.data =
|
|
33113
|
+
e ? this.data = it(this.data, t) : this.data = _(_({}, this.data), t), this.hooks.emit("dataChanged", this.data);
|
|
33114
33114
|
}
|
|
33115
33115
|
/**
|
|
33116
33116
|
* @description 修改标签位置
|
|
@@ -33149,7 +33149,7 @@ class Wd {
|
|
|
33149
33149
|
return (l = o != null ? o : i) != null ? l : {};
|
|
33150
33150
|
}
|
|
33151
33151
|
getDistance(t, e = 3) {
|
|
33152
|
-
const i =
|
|
33152
|
+
const i = _(_({}, this.five.getCurrentState()), t), { panoIndex: s, mode: o } = i, r = o === "Panorama" ? this.workUtil.getObserverPosition(s) : this.five.camera.position, a = this.centerPosition;
|
|
33153
33153
|
return !r || !a ? -1 : r.distanceTo(a);
|
|
33154
33154
|
}
|
|
33155
33155
|
/**
|
|
@@ -33163,7 +33163,7 @@ class Wd {
|
|
|
33163
33163
|
getVisible(t) {
|
|
33164
33164
|
if (!this.enabled || !this.plugin.state.enabled || !this.fiveUtil.model)
|
|
33165
33165
|
return !1;
|
|
33166
|
-
const e =
|
|
33166
|
+
const e = _(_({}, this.five.getCurrentState()), t);
|
|
33167
33167
|
let i = this.cache.getVisible(this, e);
|
|
33168
33168
|
return vi(i) && (i = this.computeVisible(e).value, this.cache.setVisible(this, e, i)), i;
|
|
33169
33169
|
}
|
|
@@ -33224,7 +33224,7 @@ class Wd {
|
|
|
33224
33224
|
return t != null ? t : "Dom";
|
|
33225
33225
|
}
|
|
33226
33226
|
computeVisible(t) {
|
|
33227
|
-
const e =
|
|
33227
|
+
const e = _(_({}, this.five.getCurrentState()), t), { panoIndex: i, mode: s } = e, o = [];
|
|
33228
33228
|
return (() => {
|
|
33229
33229
|
var c, d, u, m;
|
|
33230
33230
|
const l = (c = this.getConfig().visibleConfig) != null ? c : {};
|
|
@@ -33245,7 +33245,7 @@ class Wd {
|
|
|
33245
33245
|
if (l.followModelVisibility === !0 && ["poincare", "aerophoto", "sand"].includes(this.workUtil.fromType) && (s === "Floorplan" || s === "Mapview")) {
|
|
33246
33246
|
const h = this.computeVisibleByFloorIndex(), { value: g } = h, v = Kn(h, ["value"]);
|
|
33247
33247
|
if (g === !1)
|
|
33248
|
-
return
|
|
33248
|
+
return _({ value: !1, checkedList: o, reason: "followModelVisibility check failed" }, v);
|
|
33249
33249
|
}
|
|
33250
33250
|
if (ls(s) && l.visiblePanoIndex !== void 0 && l.visiblePanoIndex !== "all" && i !== void 0) {
|
|
33251
33251
|
if (o.push("visiblePanoIndex"), Array.isArray(l.visiblePanoIndex) && !l.visiblePanoIndex.includes(i))
|
|
@@ -33435,7 +33435,7 @@ class Wd {
|
|
|
33435
33435
|
}).map((l) => ({ tag: l, id: l.id, tagConfig: l.getConfig().unfoldedConfig })).filter(({ tagConfig: l }) => {
|
|
33436
33436
|
var c, h;
|
|
33437
33437
|
return !(typeof l == "function" || l.keep || l.autoUnfold === !1 || ((c = l.autoUnfold) == null ? void 0 : c.enable) === !1 || ((h = l.autoUnfold) == null ? void 0 : h.strategy) !== "MinimumDistance");
|
|
33438
|
-
}).map((l) =>
|
|
33438
|
+
}).map((l) => le(_({}, l), { distance: l.tag.getDistance() })).filter(({ distance: l, tagConfig: c }) => {
|
|
33439
33439
|
const h = c.autoUnfold.distance;
|
|
33440
33440
|
return !(h && xr(l, h) === !1);
|
|
33441
33441
|
}).sort((l, c) => l.distance - c.distance).findIndex((l) => l.id === this.id);
|
|
@@ -33503,7 +33503,7 @@ class Wd {
|
|
|
33503
33503
|
return { reason: `plugin.state.visible is ${this.plugin.state.visible}` };
|
|
33504
33504
|
if (!this.enabled)
|
|
33505
33505
|
return { reason: `tag ${this.id} enabled is: ${this.enabled}` };
|
|
33506
|
-
const t =
|
|
33506
|
+
const t = le(_({}, this.computeVisible()), {
|
|
33507
33507
|
tagInstance: this
|
|
33508
33508
|
});
|
|
33509
33509
|
return t.value !== this.state.visible ? { reason: "插件故障,请联系维护人员, err: 0", info: t } : this.state.visible ? { reason: "应该是能看见才对", info: t } : t.value === !0 ? { reason: "插件故障,请联系维护人员, err: 1", info: t } : { reason: (e = t.reason.type) != null ? e : t.reason, info: t };
|
|
@@ -33875,7 +33875,7 @@ function hm(n) {
|
|
|
33875
33875
|
);
|
|
33876
33876
|
},
|
|
33877
33877
|
m(c, h) {
|
|
33878
|
-
X(c, t, h),
|
|
33878
|
+
X(c, t, h), B(t, e), B(e, i), B(i, s), B(s, o), B(s, r), l && l.m(e, null);
|
|
33879
33879
|
},
|
|
33880
33880
|
p(c, h) {
|
|
33881
33881
|
h & /*color*/
|
|
@@ -34296,7 +34296,7 @@ function GE(n) {
|
|
|
34296
34296
|
t = W("span"), i = _e(e), P(t, "class", "text-char svelte-1b2n9wi");
|
|
34297
34297
|
},
|
|
34298
34298
|
m(a, l) {
|
|
34299
|
-
X(a, t, l),
|
|
34299
|
+
X(a, t, l), B(t, i), o();
|
|
34300
34300
|
},
|
|
34301
34301
|
p(a, l) {
|
|
34302
34302
|
n = a, l & /*contentList*/
|
|
@@ -34534,7 +34534,7 @@ function mm(n) {
|
|
|
34534
34534
|
n[0] + " svelte-1ogmlqq"), R(s, "background-image", "url(" + c8 + ")"), P(t, "class", "arrow-wrapper svelte-1ogmlqq");
|
|
34535
34535
|
},
|
|
34536
34536
|
m(d, u) {
|
|
34537
|
-
X(d, t, u), fe(e, t, null),
|
|
34537
|
+
X(d, t, u), fe(e, t, null), B(t, i), B(t, s), l = !0, c || (h = je(
|
|
34538
34538
|
s,
|
|
34539
34539
|
"click",
|
|
34540
34540
|
/*click_handler*/
|
|
@@ -35160,7 +35160,7 @@ function ym(n) {
|
|
|
35160
35160
|
t = W("span"), i = _e(e), P(t, "class", "placeholder svelte-1j0cz4o");
|
|
35161
35161
|
},
|
|
35162
35162
|
m(s, o) {
|
|
35163
|
-
X(s, t, o),
|
|
35163
|
+
X(s, t, o), B(t, i);
|
|
35164
35164
|
},
|
|
35165
35165
|
p(s, o) {
|
|
35166
35166
|
o & /*edit*/
|
|
@@ -35320,7 +35320,7 @@ function wm(n) {
|
|
|
35320
35320
|
);
|
|
35321
35321
|
},
|
|
35322
35322
|
m(m, p) {
|
|
35323
|
-
fe(t, m, p), X(m, e, p), X(m, i, p),
|
|
35323
|
+
fe(t, m, p), X(m, e, p), X(m, i, p), B(i, s), B(s, o), B(o, r), fe(a, r, null), B(o, l), h && h.m(o, null), c = !0;
|
|
35324
35324
|
},
|
|
35325
35325
|
p(m, p) {
|
|
35326
35326
|
var A, w;
|
|
@@ -35640,7 +35640,7 @@ function PM(n) {
|
|
|
35640
35640
|
), P(i, "gradientUnits", "userSpaceOnUse"), P(t, "class", "line svelte-blgtit"), P(t, "viewBox", "0 0 105 21");
|
|
35641
35641
|
},
|
|
35642
35642
|
m(a, l) {
|
|
35643
|
-
X(a, t, l),
|
|
35643
|
+
X(a, t, l), B(t, e), B(e, i), B(i, s), B(i, o), r && r.m(t, null);
|
|
35644
35644
|
},
|
|
35645
35645
|
p(a, [l]) {
|
|
35646
35646
|
/*unfolded*/
|
|
@@ -35772,7 +35772,7 @@ function Em(n, t) {
|
|
|
35772
35772
|
e = W("div"), me(i.$$.fragment), s = ae(), P(e, "class", "sc-carousel-dots__dot-container svelte-670fde"), this.first = e;
|
|
35773
35773
|
},
|
|
35774
35774
|
m(a, l) {
|
|
35775
|
-
X(a, e, l), fe(i, e, null),
|
|
35775
|
+
X(a, e, l), fe(i, e, null), B(e, s), o = !0;
|
|
35776
35776
|
},
|
|
35777
35777
|
p(a, l) {
|
|
35778
35778
|
t = a;
|
|
@@ -35887,7 +35887,7 @@ function OM(n) {
|
|
|
35887
35887
|
);
|
|
35888
35888
|
},
|
|
35889
35889
|
m(o, r) {
|
|
35890
|
-
X(o, t, r),
|
|
35890
|
+
X(o, t, r), B(t, e), i || (s = je(
|
|
35891
35891
|
t,
|
|
35892
35892
|
"click",
|
|
35893
35893
|
/*click_handler*/
|
|
@@ -36314,7 +36314,7 @@ function m9({
|
|
|
36314
36314
|
head: 0,
|
|
36315
36315
|
tail: 0
|
|
36316
36316
|
};
|
|
36317
|
-
return
|
|
36317
|
+
return le(_({}, i), {
|
|
36318
36318
|
total: i.head + i.tail
|
|
36319
36319
|
});
|
|
36320
36320
|
}
|
|
@@ -36573,29 +36573,29 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36573
36573
|
function de(x, G) {
|
|
36574
36574
|
return x.set(G[0], G[1]), x;
|
|
36575
36575
|
}
|
|
36576
|
-
function
|
|
36576
|
+
function ce(x, G) {
|
|
36577
36577
|
return x.add(G), x;
|
|
36578
36578
|
}
|
|
36579
36579
|
function Se(x, G) {
|
|
36580
|
-
for (var J = -1,
|
|
36580
|
+
for (var J = -1, he = x ? x.length : 0; ++J < he && G(x[J], J, x) !== !1; )
|
|
36581
36581
|
;
|
|
36582
36582
|
return x;
|
|
36583
36583
|
}
|
|
36584
36584
|
function ee(x, G) {
|
|
36585
|
-
for (var J = -1,
|
|
36585
|
+
for (var J = -1, he = G.length, Ue = x.length; ++J < he; )
|
|
36586
36586
|
x[Ue + J] = G[J];
|
|
36587
36587
|
return x;
|
|
36588
36588
|
}
|
|
36589
|
-
function Te(x, G, J,
|
|
36589
|
+
function Te(x, G, J, he) {
|
|
36590
36590
|
var Ue = -1, He = x ? x.length : 0;
|
|
36591
|
-
for (
|
|
36591
|
+
for (he && He && (J = x[++Ue]); ++Ue < He; )
|
|
36592
36592
|
J = G(J, x[Ue], Ue, x);
|
|
36593
36593
|
return J;
|
|
36594
36594
|
}
|
|
36595
36595
|
function Re(x, G) {
|
|
36596
|
-
for (var J = -1,
|
|
36597
|
-
|
|
36598
|
-
return
|
|
36596
|
+
for (var J = -1, he = Array(x); ++J < x; )
|
|
36597
|
+
he[J] = G(J);
|
|
36598
|
+
return he;
|
|
36599
36599
|
}
|
|
36600
36600
|
function Ae(x, G) {
|
|
36601
36601
|
return x == null ? void 0 : x[G];
|
|
@@ -36611,8 +36611,8 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36611
36611
|
}
|
|
36612
36612
|
function ge(x) {
|
|
36613
36613
|
var G = -1, J = Array(x.size);
|
|
36614
|
-
return x.forEach(function(
|
|
36615
|
-
J[++G] = [Ue,
|
|
36614
|
+
return x.forEach(function(he, Ue) {
|
|
36615
|
+
J[++G] = [Ue, he];
|
|
36616
36616
|
}), J;
|
|
36617
36617
|
}
|
|
36618
36618
|
function Ie(x, G) {
|
|
@@ -36622,8 +36622,8 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36622
36622
|
}
|
|
36623
36623
|
function Oe(x) {
|
|
36624
36624
|
var G = -1, J = Array(x.size);
|
|
36625
|
-
return x.forEach(function(
|
|
36626
|
-
J[++G] =
|
|
36625
|
+
return x.forEach(function(he) {
|
|
36626
|
+
J[++G] = he;
|
|
36627
36627
|
}), J;
|
|
36628
36628
|
}
|
|
36629
36629
|
var Xe = Array.prototype, Ye = Function.prototype, st = Object.prototype, Je = ue["__core-js_shared__"], $e = function() {
|
|
@@ -36635,8 +36635,8 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36635
36635
|
function _i(x) {
|
|
36636
36636
|
var G = -1, J = x ? x.length : 0;
|
|
36637
36637
|
for (this.clear(); ++G < J; ) {
|
|
36638
|
-
var
|
|
36639
|
-
this.set(
|
|
36638
|
+
var he = x[G];
|
|
36639
|
+
this.set(he[0], he[1]);
|
|
36640
36640
|
}
|
|
36641
36641
|
}
|
|
36642
36642
|
function Gn() {
|
|
@@ -36665,8 +36665,8 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36665
36665
|
function Lt(x) {
|
|
36666
36666
|
var G = -1, J = x ? x.length : 0;
|
|
36667
36667
|
for (this.clear(); ++G < J; ) {
|
|
36668
|
-
var
|
|
36669
|
-
this.set(
|
|
36668
|
+
var he = x[G];
|
|
36669
|
+
this.set(he[0], he[1]);
|
|
36670
36670
|
}
|
|
36671
36671
|
}
|
|
36672
36672
|
function oo() {
|
|
@@ -36676,8 +36676,8 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36676
36676
|
var G = this.__data__, J = Di(G, x);
|
|
36677
36677
|
if (J < 0)
|
|
36678
36678
|
return !1;
|
|
36679
|
-
var
|
|
36680
|
-
return J ==
|
|
36679
|
+
var he = G.length - 1;
|
|
36680
|
+
return J == he ? G.pop() : cr.call(G, J, 1), !0;
|
|
36681
36681
|
}
|
|
36682
36682
|
function ro(x) {
|
|
36683
36683
|
var G = this.__data__, J = Di(G, x);
|
|
@@ -36687,15 +36687,15 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36687
36687
|
return Di(this.__data__, x) > -1;
|
|
36688
36688
|
}
|
|
36689
36689
|
function lo(x, G) {
|
|
36690
|
-
var J = this.__data__,
|
|
36691
|
-
return
|
|
36690
|
+
var J = this.__data__, he = Di(J, x);
|
|
36691
|
+
return he < 0 ? J.push([x, G]) : J[he][1] = G, this;
|
|
36692
36692
|
}
|
|
36693
36693
|
Lt.prototype.clear = oo, Lt.prototype.delete = ur, Lt.prototype.get = ro, Lt.prototype.has = ao, Lt.prototype.set = lo;
|
|
36694
36694
|
function zt(x) {
|
|
36695
36695
|
var G = -1, J = x ? x.length : 0;
|
|
36696
36696
|
for (this.clear(); ++G < J; ) {
|
|
36697
|
-
var
|
|
36698
|
-
this.set(
|
|
36697
|
+
var he = x[G];
|
|
36698
|
+
this.set(he[0], he[1]);
|
|
36699
36699
|
}
|
|
36700
36700
|
}
|
|
36701
36701
|
function Ms() {
|
|
@@ -36736,23 +36736,23 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36736
36736
|
function qi(x, G) {
|
|
36737
36737
|
var J = this.__data__;
|
|
36738
36738
|
if (J instanceof Lt) {
|
|
36739
|
-
var
|
|
36740
|
-
if (!Si ||
|
|
36741
|
-
return
|
|
36742
|
-
J = this.__data__ = new zt(
|
|
36739
|
+
var he = J.__data__;
|
|
36740
|
+
if (!Si || he.length < e - 1)
|
|
36741
|
+
return he.push([x, G]), this;
|
|
36742
|
+
J = this.__data__ = new zt(he);
|
|
36743
36743
|
}
|
|
36744
36744
|
return J.set(x, G), this;
|
|
36745
36745
|
}
|
|
36746
36746
|
Bt.prototype.clear = fr, Bt.prototype.delete = pr, Bt.prototype.get = Un, Bt.prototype.has = Zt, Bt.prototype.set = qi;
|
|
36747
36747
|
function ei(x, G) {
|
|
36748
|
-
var J = Ar(x) || fo(x) ? Re(x.length, String) : [],
|
|
36748
|
+
var J = Ar(x) || fo(x) ? Re(x.length, String) : [], he = J.length, Ue = !!he;
|
|
36749
36749
|
for (var He in x)
|
|
36750
|
-
(G || at.call(x, He)) && !(Ue && (He == "length" || Pt(He,
|
|
36750
|
+
(G || at.call(x, He)) && !(Ue && (He == "length" || Pt(He, he))) && J.push(He);
|
|
36751
36751
|
return J;
|
|
36752
36752
|
}
|
|
36753
36753
|
function di(x, G, J) {
|
|
36754
|
-
var
|
|
36755
|
-
(!(at.call(x, G) && Pa(
|
|
36754
|
+
var he = x[G];
|
|
36755
|
+
(!(at.call(x, G) && Pa(he, J)) || J === void 0 && !(G in x)) && (x[G] = J);
|
|
36756
36756
|
}
|
|
36757
36757
|
function Di(x, G) {
|
|
36758
36758
|
for (var J = x.length; J--; )
|
|
@@ -36763,9 +36763,9 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36763
36763
|
function Et(x, G) {
|
|
36764
36764
|
return x && Zn(G, yr(G), x);
|
|
36765
36765
|
}
|
|
36766
|
-
function ti(x, G, J,
|
|
36766
|
+
function ti(x, G, J, he, Ue, He, qe) {
|
|
36767
36767
|
var et;
|
|
36768
|
-
if (
|
|
36768
|
+
if (he && (et = He ? he(x, Ue, He, qe) : he(x)), et !== void 0)
|
|
36769
36769
|
return et;
|
|
36770
36770
|
if (!Ki(x))
|
|
36771
36771
|
return x;
|
|
@@ -36795,15 +36795,15 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36795
36795
|
if (qe.set(x, et), !xt)
|
|
36796
36796
|
var jt = J ? vr(x) : yr(x);
|
|
36797
36797
|
return Se(jt || x, function(Jt, Ft) {
|
|
36798
|
-
jt && (Ft = Jt, Jt = x[Ft]), di(et, Ft, ti(Jt, G, J,
|
|
36798
|
+
jt && (Ft = Jt, Jt = x[Ft]), di(et, Ft, ti(Jt, G, J, he, Ft, x, qe));
|
|
36799
36799
|
}), et;
|
|
36800
36800
|
}
|
|
36801
36801
|
function co(x) {
|
|
36802
36802
|
return Ki(x) ? Xt(x) : {};
|
|
36803
36803
|
}
|
|
36804
36804
|
function ho(x, G, J) {
|
|
36805
|
-
var
|
|
36806
|
-
return Ar(x) ?
|
|
36805
|
+
var he = G(x);
|
|
36806
|
+
return Ar(x) ? he : ee(he, J(x));
|
|
36807
36807
|
}
|
|
36808
36808
|
function Qn(x) {
|
|
36809
36809
|
return _t.call(x);
|
|
@@ -36837,16 +36837,16 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36837
36837
|
return new x.constructor(J, x.byteOffset, x.byteLength);
|
|
36838
36838
|
}
|
|
36839
36839
|
function Yn(x, G, J) {
|
|
36840
|
-
var
|
|
36841
|
-
return Te(
|
|
36840
|
+
var he = G ? J(ge(x), !0) : ge(x);
|
|
36841
|
+
return Te(he, de, new x.constructor());
|
|
36842
36842
|
}
|
|
36843
36843
|
function yn(x) {
|
|
36844
36844
|
var G = new x.constructor(x.source, V.exec(x));
|
|
36845
36845
|
return G.lastIndex = x.lastIndex, G;
|
|
36846
36846
|
}
|
|
36847
36847
|
function wi(x, G, J) {
|
|
36848
|
-
var
|
|
36849
|
-
return Te(
|
|
36848
|
+
var he = G ? J(Oe(x), !0) : Oe(x);
|
|
36849
|
+
return Te(he, ce, new x.constructor());
|
|
36850
36850
|
}
|
|
36851
36851
|
function mr(x) {
|
|
36852
36852
|
return so ? Object(so.call(x)) : {};
|
|
@@ -36856,15 +36856,15 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36856
36856
|
return new x.constructor(J, x.byteOffset, x.length);
|
|
36857
36857
|
}
|
|
36858
36858
|
function ks(x, G) {
|
|
36859
|
-
var J = -1,
|
|
36860
|
-
for (G || (G = Array(
|
|
36859
|
+
var J = -1, he = x.length;
|
|
36860
|
+
for (G || (G = Array(he)); ++J < he; )
|
|
36861
36861
|
G[J] = x[J];
|
|
36862
36862
|
return G;
|
|
36863
36863
|
}
|
|
36864
|
-
function Zn(x, G, J,
|
|
36864
|
+
function Zn(x, G, J, he) {
|
|
36865
36865
|
J || (J = {});
|
|
36866
36866
|
for (var Ue = -1, He = G.length; ++Ue < He; ) {
|
|
36867
|
-
var qe = G[Ue], et =
|
|
36867
|
+
var qe = G[Ue], et = he ? he(J[qe], x[qe], qe, J, x) : void 0;
|
|
36868
36868
|
di(J, qe, et === void 0 ? x[qe] : et);
|
|
36869
36869
|
}
|
|
36870
36870
|
return J;
|
|
@@ -36885,9 +36885,9 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36885
36885
|
}
|
|
36886
36886
|
var Z = Ps ? Ie(Ps, Object) : oc, ne = Qn;
|
|
36887
36887
|
(Vn && ne(new Vn(new ArrayBuffer(1))) != D || Si && ne(new Si()) != u || yi && ne(yi.resolve()) != g || Fn && ne(new Fn()) != A || Hn && ne(new Hn()) != C) && (ne = function(x) {
|
|
36888
|
-
var G = _t.call(x), J = G == p ? x.constructor : void 0,
|
|
36889
|
-
if (
|
|
36890
|
-
switch (
|
|
36888
|
+
var G = _t.call(x), J = G == p ? x.constructor : void 0, he = J ? si(J) : void 0;
|
|
36889
|
+
if (he)
|
|
36890
|
+
switch (he) {
|
|
36891
36891
|
case pn:
|
|
36892
36892
|
return D;
|
|
36893
36893
|
case mn:
|
|
@@ -36908,7 +36908,7 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36908
36908
|
function ze(x) {
|
|
36909
36909
|
return typeof x.constructor == "function" && !ni(x) ? co(lt(x)) : {};
|
|
36910
36910
|
}
|
|
36911
|
-
function Qe(x, G, J,
|
|
36911
|
+
function Qe(x, G, J, he) {
|
|
36912
36912
|
var Ue = x.constructor;
|
|
36913
36913
|
switch (G) {
|
|
36914
36914
|
case z:
|
|
@@ -36917,7 +36917,7 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36917
36917
|
case l:
|
|
36918
36918
|
return new Ue(+x);
|
|
36919
36919
|
case D:
|
|
36920
|
-
return Vi(x,
|
|
36920
|
+
return Vi(x, he);
|
|
36921
36921
|
case j:
|
|
36922
36922
|
case T:
|
|
36923
36923
|
case O:
|
|
@@ -36927,16 +36927,16 @@ var Qa = dk, xl = {}, uk = {
|
|
|
36927
36927
|
case k:
|
|
36928
36928
|
case S:
|
|
36929
36929
|
case L:
|
|
36930
|
-
return uo(x,
|
|
36930
|
+
return uo(x, he);
|
|
36931
36931
|
case u:
|
|
36932
|
-
return Yn(x,
|
|
36932
|
+
return Yn(x, he, J);
|
|
36933
36933
|
case m:
|
|
36934
36934
|
case w:
|
|
36935
36935
|
return new Ue(x);
|
|
36936
36936
|
case v:
|
|
36937
36937
|
return yn(x);
|
|
36938
36938
|
case A:
|
|
36939
|
-
return wi(x,
|
|
36939
|
+
return wi(x, he, J);
|
|
36940
36940
|
case I:
|
|
36941
36941
|
return mr(x);
|
|
36942
36942
|
}
|
|
@@ -37022,34 +37022,34 @@ var Sl = {}, pk = {
|
|
|
37022
37022
|
(function(n, t) {
|
|
37023
37023
|
var e = 200, i = "__lodash_hash_undefined__", s = 1, o = 2, r = 9007199254740991, a = "[object Arguments]", l = "[object Array]", c = "[object AsyncFunction]", h = "[object Boolean]", d = "[object Date]", u = "[object Error]", m = "[object Function]", p = "[object GeneratorFunction]", g = "[object Map]", v = "[object Number]", A = "[object Null]", w = "[object Object]", I = "[object Promise]", C = "[object Proxy]", z = "[object RegExp]", D = "[object Set]", j = "[object String]", T = "[object Symbol]", O = "[object Undefined]", b = "[object WeakMap]", E = "[object ArrayBuffer]", M = "[object DataView]", k = "[object Float32Array]", S = "[object Float64Array]", L = "[object Int8Array]", N = "[object Int16Array]", V = "[object Int32Array]", q = "[object Uint8Array]", ie = "[object Uint8ClampedArray]", K = "[object Uint16Array]", oe = "[object Uint32Array]", $ = /[\\^$.*+?()[\]{}|]/g, ue = /^\[object .+?Constructor\]$/, Le = /^(?:0|[1-9]\d*)$/, re = {};
|
|
37024
37024
|
re[k] = re[S] = re[L] = re[N] = re[V] = re[q] = re[ie] = re[K] = re[oe] = !0, re[a] = re[l] = re[E] = re[h] = re[M] = re[d] = re[u] = re[m] = re[g] = re[v] = re[w] = re[z] = re[D] = re[j] = re[b] = !1;
|
|
37025
|
-
var Me = typeof zi == "object" && zi && zi.Object === Object && zi, de = typeof self == "object" && self && self.Object === Object && self,
|
|
37025
|
+
var Me = typeof zi == "object" && zi && zi.Object === Object && zi, de = typeof self == "object" && self && self.Object === Object && self, ce = Me || de || Function("return this")(), Se = t && !t.nodeType && t, ee = Se && !0 && n && !n.nodeType && n, Te = ee && ee.exports === Se, Re = Te && Me.process, Ae = function() {
|
|
37026
37026
|
try {
|
|
37027
37027
|
return Re && Re.binding && Re.binding("util");
|
|
37028
37028
|
} catch (x) {
|
|
37029
37029
|
}
|
|
37030
37030
|
}(), Ve = Ae && Ae.isTypedArray;
|
|
37031
37031
|
function ge(x, G) {
|
|
37032
|
-
for (var J = -1,
|
|
37032
|
+
for (var J = -1, he = x == null ? 0 : x.length, Ue = 0, He = []; ++J < he; ) {
|
|
37033
37033
|
var qe = x[J];
|
|
37034
37034
|
G(qe, J, x) && (He[Ue++] = qe);
|
|
37035
37035
|
}
|
|
37036
37036
|
return He;
|
|
37037
37037
|
}
|
|
37038
37038
|
function Ie(x, G) {
|
|
37039
|
-
for (var J = -1,
|
|
37039
|
+
for (var J = -1, he = G.length, Ue = x.length; ++J < he; )
|
|
37040
37040
|
x[Ue + J] = G[J];
|
|
37041
37041
|
return x;
|
|
37042
37042
|
}
|
|
37043
37043
|
function Oe(x, G) {
|
|
37044
|
-
for (var J = -1,
|
|
37044
|
+
for (var J = -1, he = x == null ? 0 : x.length; ++J < he; )
|
|
37045
37045
|
if (G(x[J], J, x))
|
|
37046
37046
|
return !0;
|
|
37047
37047
|
return !1;
|
|
37048
37048
|
}
|
|
37049
37049
|
function Xe(x, G) {
|
|
37050
|
-
for (var J = -1,
|
|
37051
|
-
|
|
37052
|
-
return
|
|
37050
|
+
for (var J = -1, he = Array(x); ++J < x; )
|
|
37051
|
+
he[J] = G(J);
|
|
37052
|
+
return he;
|
|
37053
37053
|
}
|
|
37054
37054
|
function Ye(x) {
|
|
37055
37055
|
return function(G) {
|
|
@@ -37064,8 +37064,8 @@ var Sl = {}, pk = {
|
|
|
37064
37064
|
}
|
|
37065
37065
|
function $e(x) {
|
|
37066
37066
|
var G = -1, J = Array(x.size);
|
|
37067
|
-
return x.forEach(function(
|
|
37068
|
-
J[++G] = [Ue,
|
|
37067
|
+
return x.forEach(function(he, Ue) {
|
|
37068
|
+
J[++G] = [Ue, he];
|
|
37069
37069
|
}), J;
|
|
37070
37070
|
}
|
|
37071
37071
|
function rt(x, G) {
|
|
@@ -37075,21 +37075,21 @@ var Sl = {}, pk = {
|
|
|
37075
37075
|
}
|
|
37076
37076
|
function at(x) {
|
|
37077
37077
|
var G = -1, J = Array(x.size);
|
|
37078
|
-
return x.forEach(function(
|
|
37079
|
-
J[++G] =
|
|
37078
|
+
return x.forEach(function(he) {
|
|
37079
|
+
J[++G] = he;
|
|
37080
37080
|
}), J;
|
|
37081
37081
|
}
|
|
37082
|
-
var _t = Array.prototype, Xi = Function.prototype, Qt = Object.prototype, hi =
|
|
37082
|
+
var _t = Array.prototype, Xi = Function.prototype, Qt = Object.prototype, hi = ce["__core-js_shared__"], bi = Xi.toString, lt = Qt.hasOwnProperty, Xt = function() {
|
|
37083
37083
|
var x = /[^.]+$/.exec(hi && hi.keys && hi.keys.IE_PROTO || "");
|
|
37084
37084
|
return x ? "Symbol(src)_1." + x : "";
|
|
37085
37085
|
}(), Yt = Qt.toString, cr = RegExp(
|
|
37086
37086
|
"^" + bi.call(lt).replace($, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
37087
|
-
), Ps = Te ?
|
|
37087
|
+
), Ps = Te ? ce.Buffer : void 0, Bn = ce.Symbol, no = ce.Uint8Array, Vn = Qt.propertyIsEnumerable, Si = _t.splice, yi = Bn ? Bn.toStringTag : void 0, Fn = Object.getOwnPropertySymbols, Hn = Ps ? Ps.isBuffer : void 0, Yi = rt(Object.keys, Object), pn = Z(ce, "DataView"), mn = Z(ce, "Map"), Cs = Z(ce, "Promise"), Is = Z(ce, "Set"), Nn = Z(ce, "WeakMap"), Zi = Z(Object, "create"), so = si(pn), _i = si(mn), Gn = si(Cs), hr = si(Is), dr = si(Nn), Es = Bn ? Bn.prototype : void 0, gn = Es ? Es.valueOf : void 0;
|
|
37088
37088
|
function Lt(x) {
|
|
37089
37089
|
var G = -1, J = x == null ? 0 : x.length;
|
|
37090
37090
|
for (this.clear(); ++G < J; ) {
|
|
37091
|
-
var
|
|
37092
|
-
this.set(
|
|
37091
|
+
var he = x[G];
|
|
37092
|
+
this.set(he[0], he[1]);
|
|
37093
37093
|
}
|
|
37094
37094
|
}
|
|
37095
37095
|
function oo() {
|
|
@@ -37119,8 +37119,8 @@ var Sl = {}, pk = {
|
|
|
37119
37119
|
function zt(x) {
|
|
37120
37120
|
var G = -1, J = x == null ? 0 : x.length;
|
|
37121
37121
|
for (this.clear(); ++G < J; ) {
|
|
37122
|
-
var
|
|
37123
|
-
this.set(
|
|
37122
|
+
var he = x[G];
|
|
37123
|
+
this.set(he[0], he[1]);
|
|
37124
37124
|
}
|
|
37125
37125
|
}
|
|
37126
37126
|
function Ms() {
|
|
@@ -37130,8 +37130,8 @@ var Sl = {}, pk = {
|
|
|
37130
37130
|
var G = this.__data__, J = Ji(G, x);
|
|
37131
37131
|
if (J < 0)
|
|
37132
37132
|
return !1;
|
|
37133
|
-
var
|
|
37134
|
-
return J ==
|
|
37133
|
+
var he = G.length - 1;
|
|
37134
|
+
return J == he ? G.pop() : Si.call(G, J, 1), --this.size, !0;
|
|
37135
37135
|
}
|
|
37136
37136
|
function vn(x) {
|
|
37137
37137
|
var G = this.__data__, J = Ji(G, x);
|
|
@@ -37141,15 +37141,15 @@ var Sl = {}, pk = {
|
|
|
37141
37141
|
return Ji(this.__data__, x) > -1;
|
|
37142
37142
|
}
|
|
37143
37143
|
function Wn(x, G) {
|
|
37144
|
-
var J = this.__data__,
|
|
37145
|
-
return
|
|
37144
|
+
var J = this.__data__, he = Ji(J, x);
|
|
37145
|
+
return he < 0 ? (++this.size, J.push([x, G])) : J[he][1] = G, this;
|
|
37146
37146
|
}
|
|
37147
37147
|
zt.prototype.clear = Ms, zt.prototype.delete = Bi, zt.prototype.get = vn, zt.prototype.has = An, zt.prototype.set = Wn;
|
|
37148
37148
|
function Bt(x) {
|
|
37149
37149
|
var G = -1, J = x == null ? 0 : x.length;
|
|
37150
37150
|
for (this.clear(); ++G < J; ) {
|
|
37151
|
-
var
|
|
37152
|
-
this.set(
|
|
37151
|
+
var he = x[G];
|
|
37152
|
+
this.set(he[0], he[1]);
|
|
37153
37153
|
}
|
|
37154
37154
|
}
|
|
37155
37155
|
function fr() {
|
|
@@ -37170,8 +37170,8 @@ var Sl = {}, pk = {
|
|
|
37170
37170
|
return U(this, x).has(x);
|
|
37171
37171
|
}
|
|
37172
37172
|
function qi(x, G) {
|
|
37173
|
-
var J = U(this, x),
|
|
37174
|
-
return J.set(x, G), this.size += J.size ==
|
|
37173
|
+
var J = U(this, x), he = J.size;
|
|
37174
|
+
return J.set(x, G), this.size += J.size == he ? 0 : 1, this;
|
|
37175
37175
|
}
|
|
37176
37176
|
Bt.prototype.clear = fr, Bt.prototype.delete = pr, Bt.prototype.get = Un, Bt.prototype.has = Zt, Bt.prototype.set = qi;
|
|
37177
37177
|
function ei(x) {
|
|
@@ -37206,16 +37206,16 @@ var Sl = {}, pk = {
|
|
|
37206
37206
|
function ii(x, G) {
|
|
37207
37207
|
var J = this.__data__;
|
|
37208
37208
|
if (J instanceof zt) {
|
|
37209
|
-
var
|
|
37210
|
-
if (!mn ||
|
|
37211
|
-
return
|
|
37212
|
-
J = this.__data__ = new Bt(
|
|
37209
|
+
var he = J.__data__;
|
|
37210
|
+
if (!mn || he.length < e - 1)
|
|
37211
|
+
return he.push([x, G]), this.size = ++J.size, this;
|
|
37212
|
+
J = this.__data__ = new Bt(he);
|
|
37213
37213
|
}
|
|
37214
37214
|
return J.set(x, G), this.size = J.size, this;
|
|
37215
37215
|
}
|
|
37216
37216
|
Et.prototype.clear = ti, Et.prototype.delete = co, Et.prototype.get = ho, Et.prototype.has = Qn, Et.prototype.set = ii;
|
|
37217
37217
|
function Xn(x, G) {
|
|
37218
|
-
var J = fo(x),
|
|
37218
|
+
var J = fo(x), he = !J && Pa(x), Ue = !J && !he && po(x), He = !J && !he && !Ue && Ea(x), qe = J || he || Ue || He, et = qe ? Xe(x.length, String) : [], xt = et.length;
|
|
37219
37219
|
for (var nt in x)
|
|
37220
37220
|
(G || lt.call(x, nt)) && !(qe && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
37221
37221
|
(nt == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -37231,8 +37231,8 @@ var Sl = {}, pk = {
|
|
|
37231
37231
|
return -1;
|
|
37232
37232
|
}
|
|
37233
37233
|
function bn(x, G, J) {
|
|
37234
|
-
var
|
|
37235
|
-
return fo(x) ?
|
|
37234
|
+
var he = G(x);
|
|
37235
|
+
return fo(x) ? he : Ie(he, J(x));
|
|
37236
37236
|
}
|
|
37237
37237
|
function Vi(x) {
|
|
37238
37238
|
return x == null ? x === void 0 ? O : A : yi && yi in Object(x) ? ne(x) : ni(x);
|
|
@@ -37240,10 +37240,10 @@ var Sl = {}, pk = {
|
|
|
37240
37240
|
function Yn(x) {
|
|
37241
37241
|
return Ki(x) && Vi(x) == a;
|
|
37242
37242
|
}
|
|
37243
|
-
function yn(x, G, J,
|
|
37244
|
-
return x === G ? !0 : x == null || G == null || !Ki(x) && !Ki(G) ? x !== x && G !== G : wi(x, G, J,
|
|
37243
|
+
function yn(x, G, J, he, Ue) {
|
|
37244
|
+
return x === G ? !0 : x == null || G == null || !Ki(x) && !Ki(G) ? x !== x && G !== G : wi(x, G, J, he, yn, Ue);
|
|
37245
37245
|
}
|
|
37246
|
-
function wi(x, G, J,
|
|
37246
|
+
function wi(x, G, J, he, Ue, He) {
|
|
37247
37247
|
var qe = fo(x), et = fo(G), xt = qe ? l : ze(x), nt = et ? l : ze(G);
|
|
37248
37248
|
xt = xt == a ? w : xt, nt = nt == a ? w : nt;
|
|
37249
37249
|
var qt = xt == w, ui = nt == w, jt = xt == nt;
|
|
@@ -37253,15 +37253,15 @@ var Sl = {}, pk = {
|
|
|
37253
37253
|
qe = !0, qt = !1;
|
|
37254
37254
|
}
|
|
37255
37255
|
if (jt && !qt)
|
|
37256
|
-
return He || (He = new Et()), qe || Ea(x) ? Zn(x, G, J,
|
|
37256
|
+
return He || (He = new Et()), qe || Ea(x) ? Zn(x, G, J, he, Ue, He) : gr(x, G, xt, J, he, Ue, He);
|
|
37257
37257
|
if (!(J & s)) {
|
|
37258
37258
|
var Jt = qt && lt.call(x, "__wrapped__"), Ft = ui && lt.call(G, "__wrapped__");
|
|
37259
37259
|
if (Jt || Ft) {
|
|
37260
37260
|
var qn = Jt ? x.value() : x, wn = Ft ? G.value() : G;
|
|
37261
|
-
return He || (He = new Et()), Ue(qn, wn, J,
|
|
37261
|
+
return He || (He = new Et()), Ue(qn, wn, J, he, He);
|
|
37262
37262
|
}
|
|
37263
37263
|
}
|
|
37264
|
-
return jt ? (He || (He = new Et()), vr(x, G, J,
|
|
37264
|
+
return jt ? (He || (He = new Et()), vr(x, G, J, he, Ue, He)) : !1;
|
|
37265
37265
|
}
|
|
37266
37266
|
function mr(x) {
|
|
37267
37267
|
if (!Ia(x) || Mt(x))
|
|
@@ -37280,7 +37280,7 @@ var Sl = {}, pk = {
|
|
|
37280
37280
|
lt.call(x, J) && J != "constructor" && G.push(J);
|
|
37281
37281
|
return G;
|
|
37282
37282
|
}
|
|
37283
|
-
function Zn(x, G, J,
|
|
37283
|
+
function Zn(x, G, J, he, Ue, He) {
|
|
37284
37284
|
var qe = J & s, et = x.length, xt = G.length;
|
|
37285
37285
|
if (et != xt && !(qe && xt > et))
|
|
37286
37286
|
return !1;
|
|
@@ -37290,8 +37290,8 @@ var Sl = {}, pk = {
|
|
|
37290
37290
|
var qt = -1, ui = !0, jt = J & o ? new ei() : void 0;
|
|
37291
37291
|
for (He.set(x, G), He.set(G, x); ++qt < et; ) {
|
|
37292
37292
|
var Jt = x[qt], Ft = G[qt];
|
|
37293
|
-
if (
|
|
37294
|
-
var qn = qe ?
|
|
37293
|
+
if (he)
|
|
37294
|
+
var qn = qe ? he(Ft, Jt, qt, G, x, He) : he(Jt, Ft, qt, x, G, He);
|
|
37295
37295
|
if (qn !== void 0) {
|
|
37296
37296
|
if (qn)
|
|
37297
37297
|
continue;
|
|
@@ -37300,20 +37300,20 @@ var Sl = {}, pk = {
|
|
|
37300
37300
|
}
|
|
37301
37301
|
if (jt) {
|
|
37302
37302
|
if (!Oe(G, function(wn, xs) {
|
|
37303
|
-
if (!st(jt, xs) && (Jt === wn || Ue(Jt, wn, J,
|
|
37303
|
+
if (!st(jt, xs) && (Jt === wn || Ue(Jt, wn, J, he, He)))
|
|
37304
37304
|
return jt.push(xs);
|
|
37305
37305
|
})) {
|
|
37306
37306
|
ui = !1;
|
|
37307
37307
|
break;
|
|
37308
37308
|
}
|
|
37309
|
-
} else if (!(Jt === Ft || Ue(Jt, Ft, J,
|
|
37309
|
+
} else if (!(Jt === Ft || Ue(Jt, Ft, J, he, He))) {
|
|
37310
37310
|
ui = !1;
|
|
37311
37311
|
break;
|
|
37312
37312
|
}
|
|
37313
37313
|
}
|
|
37314
37314
|
return He.delete(x), He.delete(G), ui;
|
|
37315
37315
|
}
|
|
37316
|
-
function gr(x, G, J,
|
|
37316
|
+
function gr(x, G, J, he, Ue, He, qe) {
|
|
37317
37317
|
switch (J) {
|
|
37318
37318
|
case M:
|
|
37319
37319
|
if (x.byteLength != G.byteLength || x.byteOffset != G.byteOffset)
|
|
@@ -37333,14 +37333,14 @@ var Sl = {}, pk = {
|
|
|
37333
37333
|
case g:
|
|
37334
37334
|
var et = $e;
|
|
37335
37335
|
case D:
|
|
37336
|
-
var xt =
|
|
37336
|
+
var xt = he & s;
|
|
37337
37337
|
if (et || (et = at), x.size != G.size && !xt)
|
|
37338
37338
|
return !1;
|
|
37339
37339
|
var nt = qe.get(x);
|
|
37340
37340
|
if (nt)
|
|
37341
37341
|
return nt == G;
|
|
37342
|
-
|
|
37343
|
-
var qt = Zn(et(x), et(G),
|
|
37342
|
+
he |= o, qe.set(x, G);
|
|
37343
|
+
var qt = Zn(et(x), et(G), he, Ue, He, qe);
|
|
37344
37344
|
return qe.delete(x), qt;
|
|
37345
37345
|
case T:
|
|
37346
37346
|
if (gn)
|
|
@@ -37348,7 +37348,7 @@ var Sl = {}, pk = {
|
|
|
37348
37348
|
}
|
|
37349
37349
|
return !1;
|
|
37350
37350
|
}
|
|
37351
|
-
function vr(x, G, J,
|
|
37351
|
+
function vr(x, G, J, he, Ue, He) {
|
|
37352
37352
|
var qe = J & s, et = F(x), xt = et.length, nt = F(G), qt = nt.length;
|
|
37353
37353
|
if (xt != qt && !qe)
|
|
37354
37354
|
return !1;
|
|
@@ -37365,9 +37365,9 @@ var Sl = {}, pk = {
|
|
|
37365
37365
|
for (var qn = qe; ++ui < xt; ) {
|
|
37366
37366
|
jt = et[ui];
|
|
37367
37367
|
var wn = x[jt], xs = G[jt];
|
|
37368
|
-
if (
|
|
37369
|
-
var uu = qe ?
|
|
37370
|
-
if (!(uu === void 0 ? wn === xs || Ue(wn, xs, J,
|
|
37368
|
+
if (he)
|
|
37369
|
+
var uu = qe ? he(xs, wn, jt, G, x, He) : he(wn, xs, jt, x, G, He);
|
|
37370
|
+
if (!(uu === void 0 ? wn === xs || Ue(wn, xs, J, he, He) : uu)) {
|
|
37371
37371
|
Ft = !1;
|
|
37372
37372
|
break;
|
|
37373
37373
|
}
|
|
@@ -37394,11 +37394,11 @@ var Sl = {}, pk = {
|
|
|
37394
37394
|
var G = lt.call(x, yi), J = x[yi];
|
|
37395
37395
|
try {
|
|
37396
37396
|
x[yi] = void 0;
|
|
37397
|
-
var
|
|
37397
|
+
var he = !0;
|
|
37398
37398
|
} catch (He) {
|
|
37399
37399
|
}
|
|
37400
37400
|
var Ue = Yt.call(x);
|
|
37401
|
-
return
|
|
37401
|
+
return he && (G ? x[yi] = J : delete x[yi]), Ue;
|
|
37402
37402
|
}
|
|
37403
37403
|
var be = Fn ? function(x) {
|
|
37404
37404
|
return x == null ? [] : (x = Object(x), ge(Fn(x), function(G) {
|
|
@@ -37406,9 +37406,9 @@ var Sl = {}, pk = {
|
|
|
37406
37406
|
}));
|
|
37407
37407
|
} : oc, ze = Vi;
|
|
37408
37408
|
(pn && ze(new pn(new ArrayBuffer(1))) != M || mn && ze(new mn()) != g || Cs && ze(Cs.resolve()) != I || Is && ze(new Is()) != D || Nn && ze(new Nn()) != b) && (ze = function(x) {
|
|
37409
|
-
var G = Vi(x), J = G == w ? x.constructor : void 0,
|
|
37410
|
-
if (
|
|
37411
|
-
switch (
|
|
37409
|
+
var G = Vi(x), J = G == w ? x.constructor : void 0, he = J ? si(J) : "";
|
|
37410
|
+
if (he)
|
|
37411
|
+
switch (he) {
|
|
37412
37412
|
case so:
|
|
37413
37413
|
return M;
|
|
37414
37414
|
case _i:
|
|
@@ -38314,7 +38314,7 @@ function Rk(n) {
|
|
|
38314
38314
|
), P(s, "class", "sc-carousel__pages-window svelte-sme1z4"), P(e, "class", "sc-carousel__content-container svelte-sme1z4"), P(t, "class", "sc-carousel__carousel-container svelte-sme1z4");
|
|
38315
38315
|
},
|
|
38316
38316
|
m(I, C) {
|
|
38317
|
-
X(I, t, C),
|
|
38317
|
+
X(I, t, C), B(t, e), m && m.m(e, null), B(e, i), B(e, s), B(s, o), g && g.m(o, null), n[39](o), B(s, a), v && v.m(s, null), n[40](s), B(e, l), A && A.m(e, null), B(t, c), w && w.m(t, null), h = !0, d || (u = [
|
|
38318
38318
|
ai(r = YM.call(null, o, {
|
|
38319
38319
|
thresholdProvider: (
|
|
38320
38320
|
/*swipeable_function*/
|
|
@@ -38522,7 +38522,7 @@ function _k(n, t, e) {
|
|
|
38522
38522
|
E && (yield m.offsetPage({ animated: !0 }));
|
|
38523
38523
|
});
|
|
38524
38524
|
}
|
|
38525
|
-
function
|
|
38525
|
+
function ce(ge) {
|
|
38526
38526
|
d.focused = ge.detail.value;
|
|
38527
38527
|
}
|
|
38528
38528
|
function Se() {
|
|
@@ -38578,7 +38578,7 @@ function _k(n, t, e) {
|
|
|
38578
38578
|
re,
|
|
38579
38579
|
Me,
|
|
38580
38580
|
de,
|
|
38581
|
-
|
|
38581
|
+
ce,
|
|
38582
38582
|
Se,
|
|
38583
38583
|
ee,
|
|
38584
38584
|
I,
|
|
@@ -38711,7 +38711,7 @@ function Fk(n) {
|
|
|
38711
38711
|
);
|
|
38712
38712
|
},
|
|
38713
38713
|
m(h, d) {
|
|
38714
|
-
c.m(h, d), X(h, t, d), X(h, e, d),
|
|
38714
|
+
c.m(h, d), X(h, t, d), X(h, e, d), B(e, i), B(i, s), o || (r = je(
|
|
38715
38715
|
s,
|
|
38716
38716
|
"click",
|
|
38717
38717
|
/*click_handler_1*/
|
|
@@ -39082,7 +39082,7 @@ function Qm(n) {
|
|
|
39082
39082
|
);
|
|
39083
39083
|
},
|
|
39084
39084
|
m(d, u) {
|
|
39085
|
-
X(d, t, u),
|
|
39085
|
+
X(d, t, u), B(t, e), c[i].m(e, null), a = !0;
|
|
39086
39086
|
},
|
|
39087
39087
|
p(d, u) {
|
|
39088
39088
|
n = d;
|
|
@@ -39795,10 +39795,10 @@ function eg(n) {
|
|
|
39795
39795
|
P(e, "class", "tags svelte-12mj8bz"), P(t, "class", "tags-wrapper svelte-12mj8bz");
|
|
39796
39796
|
},
|
|
39797
39797
|
m(h, d) {
|
|
39798
|
-
X(h, t, d),
|
|
39798
|
+
X(h, t, d), B(t, e);
|
|
39799
39799
|
for (let u = 0; u < a.length; u += 1)
|
|
39800
39800
|
a[u] && a[u].m(e, null);
|
|
39801
|
-
|
|
39801
|
+
B(e, i);
|
|
39802
39802
|
for (let u = 0; u < c.length; u += 1)
|
|
39803
39803
|
c[u] && c[u].m(e, null);
|
|
39804
39804
|
s || (o = [
|
|
@@ -39854,7 +39854,7 @@ function tg(n) {
|
|
|
39854
39854
|
t = W("div"), i = _e(e), P(t, "class", "tag primary-tag svelte-12mj8bz"), R(t, "min-width", Kd);
|
|
39855
39855
|
},
|
|
39856
39856
|
m(s, o) {
|
|
39857
|
-
X(s, t, o),
|
|
39857
|
+
X(s, t, o), B(t, i);
|
|
39858
39858
|
},
|
|
39859
39859
|
p(s, o) {
|
|
39860
39860
|
o & /*primaryTags*/
|
|
@@ -39876,7 +39876,7 @@ function ig(n) {
|
|
|
39876
39876
|
t = W("div"), i = _e(e), P(t, "class", "tag secondary-tag svelte-12mj8bz"), R(t, "min-width", Kd);
|
|
39877
39877
|
},
|
|
39878
39878
|
m(s, o) {
|
|
39879
|
-
X(s, t, o),
|
|
39879
|
+
X(s, t, o), B(t, i);
|
|
39880
39880
|
},
|
|
39881
39881
|
p(s, o) {
|
|
39882
39882
|
o & /*secondaryTags*/
|
|
@@ -39898,7 +39898,7 @@ function ng(n) {
|
|
|
39898
39898
|
t = W("div"), i = _e(e), P(t, "class", "description svelte-12mj8bz");
|
|
39899
39899
|
},
|
|
39900
39900
|
m(s, o) {
|
|
39901
|
-
X(s, t, o),
|
|
39901
|
+
X(s, t, o), B(t, i);
|
|
39902
39902
|
},
|
|
39903
39903
|
p(s, o) {
|
|
39904
39904
|
o & /*data*/
|
|
@@ -39922,7 +39922,7 @@ function sg(n) {
|
|
|
39922
39922
|
t = W("div"), s && s.c(), e = ae(), i = W("div"), o && o.c(), P(i, "class", "action-section svelte-12mj8bz"), P(t, "class", "price-wrapper svelte-12mj8bz");
|
|
39923
39923
|
},
|
|
39924
39924
|
m(r, a) {
|
|
39925
|
-
X(r, t, a), s && s.m(t, null),
|
|
39925
|
+
X(r, t, a), s && s.m(t, null), B(t, e), B(t, i), o && o.m(i, null);
|
|
39926
39926
|
},
|
|
39927
39927
|
p(r, a) {
|
|
39928
39928
|
/*havePrice*/
|
|
@@ -39948,7 +39948,7 @@ function og(n) {
|
|
|
39948
39948
|
t = W("div"), e = W("span"), s = _e(i), o = ae(), r && r.c(), P(e, "class", "value svelte-12mj8bz"), P(t, "class", "price-section svelte-12mj8bz");
|
|
39949
39949
|
},
|
|
39950
39950
|
m(a, l) {
|
|
39951
|
-
X(a, t, l),
|
|
39951
|
+
X(a, t, l), B(t, e), B(e, s), B(t, o), r && r.m(t, null);
|
|
39952
39952
|
},
|
|
39953
39953
|
p(a, l) {
|
|
39954
39954
|
l & /*data*/
|
|
@@ -39971,7 +39971,7 @@ function rg(n) {
|
|
|
39971
39971
|
t = W("span"), i = _e(e), P(t, "class", "unit svelte-12mj8bz");
|
|
39972
39972
|
},
|
|
39973
39973
|
m(s, o) {
|
|
39974
|
-
X(s, t, o),
|
|
39974
|
+
X(s, t, o), B(t, i);
|
|
39975
39975
|
},
|
|
39976
39976
|
p(s, o) {
|
|
39977
39977
|
o & /*data*/
|
|
@@ -39993,7 +39993,7 @@ function ag(n) {
|
|
|
39993
39993
|
t = W("span"), i = _e(e), P(t, "class", "highlight-text svelte-12mj8bz");
|
|
39994
39994
|
},
|
|
39995
39995
|
m(s, o) {
|
|
39996
|
-
X(s, t, o),
|
|
39996
|
+
X(s, t, o), B(t, i);
|
|
39997
39997
|
},
|
|
39998
39998
|
p(s, o) {
|
|
39999
39999
|
o & /*data*/
|
|
@@ -40022,7 +40022,7 @@ function lg(n) {
|
|
|
40022
40022
|
), s = ae(), a.c(), P(e, "class", "more-text svelte-12mj8bz"), P(t, "class", "more-share-wrapper svelte-12mj8bz");
|
|
40023
40023
|
},
|
|
40024
40024
|
m(l, c) {
|
|
40025
|
-
X(l, t, c),
|
|
40025
|
+
X(l, t, c), B(t, e), B(e, i), B(e, s), a.m(e, null);
|
|
40026
40026
|
},
|
|
40027
40027
|
p(l, c) {
|
|
40028
40028
|
c & /*viewMoreText*/
|
|
@@ -40155,7 +40155,7 @@ function a7(n) {
|
|
|
40155
40155
|
);
|
|
40156
40156
|
},
|
|
40157
40157
|
m(O, b) {
|
|
40158
|
-
X(O, t, b), fe(e, t, null),
|
|
40158
|
+
X(O, t, b), fe(e, t, null), B(t, i), B(t, s), B(t, o), B(t, r), C && C.m(r, null), B(r, a), B(r, l), B(l, c), B(c, h), B(h, d), B(d, m), B(l, p), z && z.m(l, null), B(l, g), D && D.m(l, null), B(l, v), j && j.m(l, null), B(l, A), T && T.m(l, null), I = !0;
|
|
40159
40159
|
},
|
|
40160
40160
|
p(O, [b]) {
|
|
40161
40161
|
const E = {};
|
|
@@ -40666,7 +40666,7 @@ function f7(n, t, e) {
|
|
|
40666
40666
|
e(
|
|
40667
40667
|
5,
|
|
40668
40668
|
u.onplay = (v) => {
|
|
40669
|
-
h.emit("playStateChange",
|
|
40669
|
+
h.emit("playStateChange", _({
|
|
40670
40670
|
event: v,
|
|
40671
40671
|
state: "playing",
|
|
40672
40672
|
mediaInstance: u
|
|
@@ -40676,7 +40676,7 @@ function f7(n, t, e) {
|
|
|
40676
40676
|
), e(
|
|
40677
40677
|
5,
|
|
40678
40678
|
u.onpause = (v) => {
|
|
40679
|
-
h.emit("playStateChange",
|
|
40679
|
+
h.emit("playStateChange", _({
|
|
40680
40680
|
event: v,
|
|
40681
40681
|
state: "paused",
|
|
40682
40682
|
mediaInstance: u
|
|
@@ -40686,7 +40686,7 @@ function f7(n, t, e) {
|
|
|
40686
40686
|
), e(
|
|
40687
40687
|
5,
|
|
40688
40688
|
u.onended = (v) => {
|
|
40689
|
-
h.emit("playStateChange",
|
|
40689
|
+
h.emit("playStateChange", _({
|
|
40690
40690
|
event: v,
|
|
40691
40691
|
state: "paused",
|
|
40692
40692
|
mediaInstance: u
|
|
@@ -40717,11 +40717,11 @@ function f7(n, t, e) {
|
|
|
40717
40717
|
v !== u && (m || u == null || u.pause());
|
|
40718
40718
|
});
|
|
40719
40719
|
function g(v) {
|
|
40720
|
-
u && (h.emit("click",
|
|
40720
|
+
u && (h.emit("click", _({
|
|
40721
40721
|
event: v,
|
|
40722
40722
|
target: "AudioTagPlayIcon",
|
|
40723
40723
|
audioInstance: u
|
|
40724
|
-
}, l)), d.set({ currentMediaElement: u }), h.emit("playStateChange",
|
|
40724
|
+
}, l)), d.set({ currentMediaElement: u }), h.emit("playStateChange", _({
|
|
40725
40725
|
event: v,
|
|
40726
40726
|
state: u.paused ? "playing" : "paused",
|
|
40727
40727
|
mediaInstance: u
|
|
@@ -40814,7 +40814,7 @@ function m7(n) {
|
|
|
40814
40814
|
);
|
|
40815
40815
|
},
|
|
40816
40816
|
m(v, A) {
|
|
40817
|
-
X(v, t, A), g && g.m(t, null),
|
|
40817
|
+
X(v, t, A), g && g.m(t, null), B(t, e), B(t, i), B(i, s), B(s, o), B(o, r), B(r, a), B(a, l), B(a, c), B(r, h), B(h, d), B(h, u), B(o, m), n[10](s), p = !0;
|
|
40818
40818
|
},
|
|
40819
40819
|
p(v, [A]) {
|
|
40820
40820
|
/*shadow*/
|
|
@@ -40993,7 +40993,7 @@ function dg(n) {
|
|
|
40993
40993
|
);
|
|
40994
40994
|
},
|
|
40995
40995
|
m(w, I) {
|
|
40996
|
-
X(w, t, I), fe(e, t, null),
|
|
40996
|
+
X(w, t, I), fe(e, t, null), B(t, i), B(t, s), B(s, o), B(o, r), g && g.m(r, null), B(o, a), B(o, l), fe(c, l, null), B(t, h), fe(d, t, null), u = !0, m || (p = [
|
|
40997
40997
|
je(
|
|
40998
40998
|
l,
|
|
40999
40999
|
"click",
|
|
@@ -41105,7 +41105,7 @@ function ug(n) {
|
|
|
41105
41105
|
t = W("div"), me(e.$$.fragment), i = ae(), me(s.$$.fragment), P(t, "class", "audio svelte-1s6gk4a");
|
|
41106
41106
|
},
|
|
41107
41107
|
m(l, c) {
|
|
41108
|
-
X(l, t, c), fe(e, t, null),
|
|
41108
|
+
X(l, t, c), fe(e, t, null), B(t, i), fe(s, t, null), a = !0;
|
|
41109
41109
|
},
|
|
41110
41110
|
p(l, c) {
|
|
41111
41111
|
n = l;
|
|
@@ -41305,7 +41305,7 @@ function fg(n) {
|
|
|
41305
41305
|
t = W("div"), e = W("div"), me(i.$$.fragment), P(e, "class", "audio-tag svelte-nclraj"), P(t, "class", "audio-tag__wrapper svelte-nclraj");
|
|
41306
41306
|
},
|
|
41307
41307
|
m(o, r) {
|
|
41308
|
-
X(o, t, r),
|
|
41308
|
+
X(o, t, r), B(t, e), fe(i, e, null), s = !0;
|
|
41309
41309
|
},
|
|
41310
41310
|
p(o, r) {
|
|
41311
41311
|
const a = {};
|
|
@@ -41373,7 +41373,7 @@ function I7(n) {
|
|
|
41373
41373
|
t = W("div"), e = W("div"), me(i.$$.fragment), s = ae(), o = W("div"), me(r.$$.fragment), P(e, "class", "audio-icon__wrapper svelte-nclraj"), P(o, "class", "text svelte-nclraj"), P(t, "class", "audio__inner svelte-nclraj");
|
|
41374
41374
|
},
|
|
41375
41375
|
m(l, c) {
|
|
41376
|
-
X(l, t, c),
|
|
41376
|
+
X(l, t, c), B(t, e), fe(i, e, null), B(t, s), B(t, o), fe(r, o, null), a = !0;
|
|
41377
41377
|
},
|
|
41378
41378
|
p(l, c) {
|
|
41379
41379
|
const h = {};
|
|
@@ -41752,7 +41752,7 @@ function _7(n) {
|
|
|
41752
41752
|
const r = sA(t);
|
|
41753
41753
|
return Rc.set(t, r), r;
|
|
41754
41754
|
})(), { width: s, height: o } = yield i;
|
|
41755
|
-
return
|
|
41755
|
+
return le(_({}, n), {
|
|
41756
41756
|
width: s / e,
|
|
41757
41757
|
height: o / e
|
|
41758
41758
|
});
|
|
@@ -41764,7 +41764,7 @@ function B7(n) {
|
|
|
41764
41764
|
if (!t)
|
|
41765
41765
|
throw new Error("KeyframeIcon requires steps");
|
|
41766
41766
|
const { width: o, height: r } = yield sA(e), a = o / i, l = r / i, c = a / t, h = l, d = 1 / s * t + "s";
|
|
41767
|
-
return
|
|
41767
|
+
return le(_({}, n), {
|
|
41768
41768
|
width: c,
|
|
41769
41769
|
height: h,
|
|
41770
41770
|
duration: d
|
|
@@ -41929,7 +41929,7 @@ function Ag(n) {
|
|
|
41929
41929
|
);
|
|
41930
41930
|
},
|
|
41931
41931
|
m(l, c) {
|
|
41932
|
-
X(l, t, c), s && s.m(t, null),
|
|
41932
|
+
X(l, t, c), s && s.m(t, null), B(t, e), a.m(t, null), i = !0;
|
|
41933
41933
|
},
|
|
41934
41934
|
p(l, c) {
|
|
41935
41935
|
/*shadow*/
|
|
@@ -42219,7 +42219,7 @@ function yg(n) {
|
|
|
42219
42219
|
), P(o, "class", "icon-bg-circle-inner-shadow svelte-o1ee3r"), P(e, "class", "icon-bg-circle svelte-o1ee3r"), P(t, "class", "icon-bg svelte-o1ee3r");
|
|
42220
42220
|
},
|
|
42221
42221
|
m(r, a) {
|
|
42222
|
-
X(r, t, a),
|
|
42222
|
+
X(r, t, a), B(t, e), B(e, i), B(e, s), B(e, o);
|
|
42223
42223
|
},
|
|
42224
42224
|
p(r, a) {
|
|
42225
42225
|
a & /*bgcolor*/
|
|
@@ -42321,7 +42321,7 @@ function wg(n) {
|
|
|
42321
42321
|
), P(o, "class", "icon-bg-circle-inner-shadow svelte-o1ee3r"), P(e, "class", "icon-bg-circle svelte-o1ee3r"), P(t, "class", "icon-bg svelte-o1ee3r");
|
|
42322
42322
|
},
|
|
42323
42323
|
m(r, a) {
|
|
42324
|
-
X(r, t, a),
|
|
42324
|
+
X(r, t, a), B(t, e), B(e, i), B(e, s), B(e, o);
|
|
42325
42325
|
},
|
|
42326
42326
|
p(r, a) {
|
|
42327
42327
|
a & /*bgcolor*/
|
|
@@ -42535,7 +42535,7 @@ function tx(n) {
|
|
|
42535
42535
|
}
|
|
42536
42536
|
function as(n) {
|
|
42537
42537
|
const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, o = (s != null ? s : t) * i, r = typeof e == "number" ? o * (e / t) : void 0;
|
|
42538
|
-
return
|
|
42538
|
+
return le(_({}, n), { width: o, height: r });
|
|
42539
42539
|
}
|
|
42540
42540
|
function Or(n) {
|
|
42541
42541
|
if (!n)
|
|
@@ -42558,7 +42558,7 @@ function ix(n, t, e) {
|
|
|
42558
42558
|
function C(S) {
|
|
42559
42559
|
return te(this, null, function* () {
|
|
42560
42560
|
if (typeof p == "number")
|
|
42561
|
-
return
|
|
42561
|
+
return le(_({}, S), { width: p });
|
|
42562
42562
|
const L = yield _7(S);
|
|
42563
42563
|
return w("iconLoaded", L), L;
|
|
42564
42564
|
});
|
|
@@ -42684,7 +42684,7 @@ function Pg(n) {
|
|
|
42684
42684
|
), P(t, "class", "text-wrapper svelte-e58ijk");
|
|
42685
42685
|
},
|
|
42686
42686
|
m(a, l) {
|
|
42687
|
-
X(a, t, l), fe(e, t, null),
|
|
42687
|
+
X(a, t, l), fe(e, t, null), B(t, i), B(t, s), B(s, o), r = !0;
|
|
42688
42688
|
},
|
|
42689
42689
|
p(a, l) {
|
|
42690
42690
|
(!r || l & /*title*/
|
|
@@ -42733,7 +42733,7 @@ function sx(n) {
|
|
|
42733
42733
|
t = W("div"), me(e.$$.fragment), i = ae(), o && o.c(), P(t, "class", "wrapper svelte-e58ijk");
|
|
42734
42734
|
},
|
|
42735
42735
|
m(r, a) {
|
|
42736
|
-
X(r, t, a), fe(e, t, null),
|
|
42736
|
+
X(r, t, a), fe(e, t, null), B(t, i), o && o.m(t, null), s = !0;
|
|
42737
42737
|
},
|
|
42738
42738
|
p(r, [a]) {
|
|
42739
42739
|
const l = {};
|
|
@@ -42841,7 +42841,7 @@ function Ig(n) {
|
|
|
42841
42841
|
), P(o, "class", "icon-bg-circle-inner-shadow svelte-ezi5lu"), P(e, "class", "icon-bg-circle svelte-ezi5lu"), P(t, "class", "icon-bg svelte-ezi5lu");
|
|
42842
42842
|
},
|
|
42843
42843
|
m(r, a) {
|
|
42844
|
-
X(r, t, a),
|
|
42844
|
+
X(r, t, a), B(t, e), B(e, i), B(e, s), B(e, o);
|
|
42845
42845
|
},
|
|
42846
42846
|
p(r, a) {
|
|
42847
42847
|
a & /*bgcolor*/
|
|
@@ -42891,7 +42891,7 @@ function cx(n) {
|
|
|
42891
42891
|
);
|
|
42892
42892
|
},
|
|
42893
42893
|
m(w, I) {
|
|
42894
|
-
X(w, t, I), v && v.m(t, null),
|
|
42894
|
+
X(w, t, I), v && v.m(t, null), B(t, e), A && A.m(t, null), B(t, i), B(t, s), B(s, o), B(o, r), B(o, a), B(s, l), B(l, c), B(l, h), B(s, d), B(d, u), B(d, m), B(d, p), g = !0;
|
|
42895
42895
|
},
|
|
42896
42896
|
p(w, [I]) {
|
|
42897
42897
|
/*shadow*/
|
|
@@ -42932,7 +42932,7 @@ function cx(n) {
|
|
|
42932
42932
|
}
|
|
42933
42933
|
function hx(n) {
|
|
42934
42934
|
const { originWidth: t, originHeight: e, scale: i = 1, wantedWidth: s } = n, o = (s != null ? s : t) * i, r = typeof e == "number" ? o * (e / t) : void 0;
|
|
42935
|
-
return
|
|
42935
|
+
return le(_({}, n), { width: o, height: r });
|
|
42936
42936
|
}
|
|
42937
42937
|
function dx(n, t, e) {
|
|
42938
42938
|
let i, s, o, r, a, { width: l = null } = t, { icon: c = null } = t, { shadow: h = !1 } = t;
|
|
@@ -43241,7 +43241,7 @@ function Ix(n) {
|
|
|
43241
43241
|
);
|
|
43242
43242
|
},
|
|
43243
43243
|
m(z, D) {
|
|
43244
|
-
X(z, t, D),
|
|
43244
|
+
X(z, t, D), B(t, e), B(e, i), ~d && I[d].m(i, null), n[16](t), g = !0, v || (A = je(
|
|
43245
43245
|
t,
|
|
43246
43246
|
"click",
|
|
43247
43247
|
/*click_handler_1*/
|
|
@@ -43783,7 +43783,7 @@ class rA extends Wd {
|
|
|
43783
43783
|
c.classList.add("tag-media-container");
|
|
43784
43784
|
const h = "black";
|
|
43785
43785
|
c.style.backgroundColor = h, c.style.border = `3px solid ${h}`;
|
|
43786
|
-
const d =
|
|
43786
|
+
const d = _({ mode: "behind", cornerPoints: l, container: c }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || d.mode === "behind" ? "behind" : "front", m = new Nv(le(_({}, d), { mode: u })), p = this.computeNormal();
|
|
43787
43787
|
m.position.add(p.clone().setLength(tn.Z_FIGHTING_OFFSET)), s.add(m);
|
|
43788
43788
|
let g;
|
|
43789
43789
|
m.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, m, (A) => {
|
|
@@ -44159,7 +44159,7 @@ function Ux(n, t) {
|
|
|
44159
44159
|
return n;
|
|
44160
44160
|
}
|
|
44161
44161
|
function Qx(n) {
|
|
44162
|
-
const t = Ws(
|
|
44162
|
+
const t = Ws(_({
|
|
44163
44163
|
position: "absolute",
|
|
44164
44164
|
display: "block",
|
|
44165
44165
|
borderRadius: "4px",
|
|
@@ -44395,7 +44395,7 @@ function Jx() {
|
|
|
44395
44395
|
] };
|
|
44396
44396
|
}
|
|
44397
44397
|
function es(n) {
|
|
44398
|
-
const t = Ws(
|
|
44398
|
+
const t = Ws(_({
|
|
44399
44399
|
background: "#FFFF00",
|
|
44400
44400
|
width: "9px",
|
|
44401
44401
|
height: "9px",
|
|
@@ -44905,11 +44905,11 @@ class hA {
|
|
|
44905
44905
|
f(this, "camera");
|
|
44906
44906
|
f(this, "container");
|
|
44907
44907
|
f(this, "defaults");
|
|
44908
|
-
this.camera = t, this.container = e, this.defaults =
|
|
44908
|
+
this.camera = t, this.container = e, this.defaults = _({}, i || {});
|
|
44909
44909
|
}
|
|
44910
44910
|
/** 创建无限长直线(Line + LineBasicMaterial),穿过整个平面 */
|
|
44911
44911
|
createSolidLine(t, e, i) {
|
|
44912
|
-
const s =
|
|
44912
|
+
const s = _(_({ color: 16777215, renderOrder: Wi.DRAG_GUIDE_LINE }, this.defaults), i || {}), o = e.clone().normalize(), r = this.computeInfiniteLineLength(t), a = t.clone().add(o.clone().multiplyScalar(-r)), l = t.clone().add(o.clone().multiplyScalar(r)), c = new Float32Array([a.x, a.y, a.z, l.x, l.y, l.z]), h = new y.BufferGeometry();
|
|
44913
44913
|
h.setAttribute("position", new y.BufferAttribute(c, 3));
|
|
44914
44914
|
const d = new y.LineBasicMaterial({
|
|
44915
44915
|
color: s.color,
|
|
@@ -44939,7 +44939,7 @@ class hA {
|
|
|
44939
44939
|
}
|
|
44940
44940
|
/** 更新默认配置 */
|
|
44941
44941
|
updateDefaults(t) {
|
|
44942
|
-
this.defaults =
|
|
44942
|
+
this.defaults = _(_({}, this.defaults), t);
|
|
44943
44943
|
}
|
|
44944
44944
|
}
|
|
44945
44945
|
var y0, w0;
|
|
@@ -45241,11 +45241,11 @@ class a6 {
|
|
|
45241
45241
|
return s6();
|
|
45242
45242
|
if (!this.state.enabled && t.enabled !== !0 && t.disposed !== !0)
|
|
45243
45243
|
return r6();
|
|
45244
|
-
const i =
|
|
45245
|
-
this.state =
|
|
45244
|
+
const i = _({}, this.state);
|
|
45245
|
+
this.state = _(_({}, this.state), t), t.disposed !== void 0 && t.disposed !== i.disposed && t.disposed && this.handleDispose(), t.visible !== void 0 && this.handleVisible(t.visible), t.enabled !== void 0 && this.handleEnable(t.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: i });
|
|
45246
45246
|
}
|
|
45247
45247
|
addControllers(t) {
|
|
45248
|
-
this.controllers =
|
|
45248
|
+
this.controllers = _(_({}, this.controllers), t), this.setState(this.state);
|
|
45249
45249
|
}
|
|
45250
45250
|
/**
|
|
45251
45251
|
* @description 初始化 helpers 的位置
|
|
@@ -46402,8 +46402,8 @@ class dA extends ys {
|
|
|
46402
46402
|
return g6();
|
|
46403
46403
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
46404
46404
|
return A6();
|
|
46405
|
-
const s =
|
|
46406
|
-
this.state =
|
|
46405
|
+
const s = _({}, this.state);
|
|
46406
|
+
this.state = _(_({}, this.state), e), e.disposed !== void 0 && e.disposed !== s.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: s });
|
|
46407
46407
|
}
|
|
46408
46408
|
getObject3DHelper(e) {
|
|
46409
46409
|
return this.objectHelperMap.get(e);
|
|
@@ -46425,7 +46425,7 @@ class dA extends ys {
|
|
|
46425
46425
|
console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
|
|
46426
46426
|
return;
|
|
46427
46427
|
}
|
|
46428
|
-
const s = new a6(), o = [], r = (I = this.five.getElement()) == null ? void 0 : I.parentElement, a = this.five.camera, c =
|
|
46428
|
+
const s = new a6(), o = [], r = (I = this.five.getElement()) == null ? void 0 : I.parentElement, a = this.five.camera, c = _(_({}, {
|
|
46429
46429
|
moveHelper: !0,
|
|
46430
46430
|
rotateHelper: !0,
|
|
46431
46431
|
scaleHelper: !0,
|
|
@@ -46436,7 +46436,7 @@ class dA extends ys {
|
|
|
46436
46436
|
return typeof C == "boolean" ? C : C.enable;
|
|
46437
46437
|
}, w = {};
|
|
46438
46438
|
if (A(h)) {
|
|
46439
|
-
const C =
|
|
46439
|
+
const C = _(_({}, this.getConfig(c.moveHelper)), c), z = new Wx(e, _({}, C)), D = new Sr(
|
|
46440
46440
|
this.five,
|
|
46441
46441
|
v,
|
|
46442
46442
|
t6,
|
|
@@ -46449,7 +46449,7 @@ class dA extends ys {
|
|
|
46449
46449
|
w.moveController = D.helperController, o.push(() => D.dispose());
|
|
46450
46450
|
}
|
|
46451
46451
|
if (A(d)) {
|
|
46452
|
-
const C =
|
|
46452
|
+
const C = _(_({}, this.getConfig(c.rotateHelper)), c), z = new Xx(e, _({ container: r }, C)), D = new Sr(
|
|
46453
46453
|
this.five,
|
|
46454
46454
|
v,
|
|
46455
46455
|
l6,
|
|
@@ -46498,7 +46498,7 @@ class dA extends ys {
|
|
|
46498
46498
|
e.isCSS3DObject && (this.css3DObjectModeMap.set(e, e.mode), e.mode = "behind");
|
|
46499
46499
|
});
|
|
46500
46500
|
} else {
|
|
46501
|
-
const C =
|
|
46501
|
+
const C = _(_({}, this.getConfig(c.scaleHelper)), c), z = new u6(e, C), D = new Sr(
|
|
46502
46502
|
this.five,
|
|
46503
46503
|
v,
|
|
46504
46504
|
m6,
|
|
@@ -46582,7 +46582,7 @@ class b6 {
|
|
|
46582
46582
|
return this._pointSelector;
|
|
46583
46583
|
const t = (i = this.config) == null ? void 0 : i.magnifier;
|
|
46584
46584
|
let e = t === null || t === !1 ? { magnifier: null } : { magnifierParams: t };
|
|
46585
|
-
return (s = this.config) != null && s.hideCursorCircle && (e =
|
|
46585
|
+
return (s = this.config) != null && s.hideCursorCircle && (e = le(_({}, e), { pointHelper: null })), this._pointSelector = new Ol(this.five, {
|
|
46586
46586
|
mode: "cursor",
|
|
46587
46587
|
helper: e,
|
|
46588
46588
|
hitFilter: (o = this.config) == null ? void 0 : o.hitFilter
|
|
@@ -46669,7 +46669,7 @@ class pA extends Ai {
|
|
|
46669
46669
|
if (r !== 0 && a === void 0)
|
|
46670
46670
|
return;
|
|
46671
46671
|
const l = (c = this.lines[r]) != null ? c : (() => {
|
|
46672
|
-
const h = new sa(
|
|
46672
|
+
const h = new sa(le(_({}, this.style), {
|
|
46673
46673
|
pointVisibility: this.withDots ? { startPoint: r === 0, endPoint: !0 } : !1
|
|
46674
46674
|
}));
|
|
46675
46675
|
return this.lines[r] = h, this.add(h), h;
|
|
@@ -46678,7 +46678,7 @@ class pA extends Ai {
|
|
|
46678
46678
|
}), s.length === 0 ? (this.lines.forEach((o) => o.removeFromParent()), this.lines = []) : s.length === 1 || this.lines.length > s.length - 1 && this.lines.splice(s.length - 1).forEach((o) => o.removeFromParent());
|
|
46679
46679
|
}
|
|
46680
46680
|
setStyle(e) {
|
|
46681
|
-
this.paramsStyle =
|
|
46681
|
+
this.paramsStyle = _(_({}, this.paramsStyle), e), this.lines.forEach((i) => i.setStyle(this.paramsStyle));
|
|
46682
46682
|
}
|
|
46683
46683
|
highlight() {
|
|
46684
46684
|
this.lines.forEach((e) => e.highlight());
|
|
@@ -46689,13 +46689,13 @@ class pA extends Ai {
|
|
|
46689
46689
|
}
|
|
46690
46690
|
class $s extends pA {
|
|
46691
46691
|
constructor(...e) {
|
|
46692
|
-
super(
|
|
46692
|
+
super(le(_({}, e[0]), { withDots: !1 }));
|
|
46693
46693
|
f(this, "name", "PolylineMesh");
|
|
46694
46694
|
}
|
|
46695
46695
|
}
|
|
46696
46696
|
class cs extends pA {
|
|
46697
46697
|
constructor(...e) {
|
|
46698
|
-
super(
|
|
46698
|
+
super(le(_({}, e[0]), { withDots: !0 }));
|
|
46699
46699
|
f(this, "name", "PolylineWithDotsMesh");
|
|
46700
46700
|
}
|
|
46701
46701
|
}
|
|
@@ -46725,7 +46725,7 @@ class Qi extends Ai {
|
|
|
46725
46725
|
const s = i != null ? i : this;
|
|
46726
46726
|
return s.updateMatrixWorld(), fy(s, e);
|
|
46727
46727
|
});
|
|
46728
|
-
e != null && e.id && (this.uuid = e.id), this.config =
|
|
46728
|
+
e != null && e.id && (this.uuid = e.id), this.config = _({ defaultAction: !0, occlusionVisibility: !0, occlusionMode: "translucence" }, i), e && (Ne((s = this.config) == null ? void 0 : s.occlusionMode) && (e.style = le(_({}, e.style), { occlusionMode: this.config.occlusionMode })), Ne((o = this.config) == null ? void 0 : o.occlusionVisibility) && (e.style = le(_({}, e.style), { occlusionVisibility: this.config.occlusionVisibility }))), mt("esc", () => {
|
|
46729
46729
|
this.stopCreating();
|
|
46730
46730
|
}), this.config.defaultAction && (mt("backspace, delete", () => {
|
|
46731
46731
|
this.selected && this.delete();
|
|
@@ -46858,7 +46858,7 @@ class ya extends nc {
|
|
|
46858
46858
|
f(this, "onMoveStart", (e) => {
|
|
46859
46859
|
this.currentOperation = {
|
|
46860
46860
|
type: "move",
|
|
46861
|
-
|
|
46861
|
+
start_timestamp: Date.now(),
|
|
46862
46862
|
axis: e
|
|
46863
46863
|
};
|
|
46864
46864
|
});
|
|
@@ -46866,7 +46866,7 @@ class ya extends nc {
|
|
|
46866
46866
|
f(this, "onRotateStart", (e) => {
|
|
46867
46867
|
this.currentOperation = {
|
|
46868
46868
|
type: "rotate",
|
|
46869
|
-
|
|
46869
|
+
start_timestamp: Date.now(),
|
|
46870
46870
|
axis: e
|
|
46871
46871
|
};
|
|
46872
46872
|
});
|
|
@@ -46874,42 +46874,50 @@ class ya extends nc {
|
|
|
46874
46874
|
f(this, "onScaleStart", (e) => {
|
|
46875
46875
|
this.currentOperation = {
|
|
46876
46876
|
type: "scale",
|
|
46877
|
-
|
|
46877
|
+
start_timestamp: Date.now(),
|
|
46878
46878
|
axis: e
|
|
46879
46879
|
};
|
|
46880
46880
|
});
|
|
46881
|
-
//
|
|
46882
|
-
|
|
46883
|
-
|
|
46884
|
-
|
|
46885
|
-
|
|
46886
|
-
|
|
46887
|
-
//
|
|
46888
|
-
|
|
46889
|
-
|
|
46890
|
-
|
|
46881
|
+
// 移动中的处理
|
|
46882
|
+
f(this, "onMove", () => {
|
|
46883
|
+
this.currentOperation && (this.currentOperation = le(_({}, this.currentOperation), {
|
|
46884
|
+
status: "moving"
|
|
46885
|
+
}), this.onObjectUpdate(!1));
|
|
46886
|
+
});
|
|
46887
|
+
// 旋转中的处理
|
|
46888
|
+
f(this, "onRotate", () => {
|
|
46889
|
+
this.currentOperation && (this.currentOperation = le(_({}, this.currentOperation), {
|
|
46890
|
+
status: "rotating"
|
|
46891
|
+
}), this.onObjectUpdate(!1));
|
|
46892
|
+
});
|
|
46893
|
+
// 缩放中的处理
|
|
46894
|
+
f(this, "onScale", () => {
|
|
46895
|
+
this.currentOperation && (this.currentOperation = le(_({}, this.currentOperation), {
|
|
46896
|
+
status: "scaling"
|
|
46897
|
+
}), this.onObjectUpdate(!1));
|
|
46898
|
+
});
|
|
46891
46899
|
f(this, "onMoveEnd", () => {
|
|
46892
|
-
this.onObjectUpdate();
|
|
46900
|
+
this.onObjectUpdate(!0);
|
|
46893
46901
|
});
|
|
46894
|
-
// 旋转结束,触发 objectUpdate
|
|
46895
46902
|
f(this, "onRotateEnd", () => {
|
|
46896
|
-
this.onObjectUpdate();
|
|
46903
|
+
this.onObjectUpdate(!0);
|
|
46897
46904
|
});
|
|
46898
|
-
// 缩放结束,触发 objectUpdate
|
|
46899
46905
|
f(this, "onScaleEnd", () => {
|
|
46900
|
-
this.onObjectUpdate();
|
|
46906
|
+
this.onObjectUpdate(!0);
|
|
46901
46907
|
});
|
|
46902
46908
|
// 统一的触发 objectUpdate 方法
|
|
46903
|
-
|
|
46904
|
-
|
|
46909
|
+
// @param isHandleEnd 是否为操作结束,true 表示松手,false 表示拖动中
|
|
46910
|
+
f(this, "onObjectUpdate", (e = !0) => {
|
|
46911
|
+
if (!this.currentOperation) {
|
|
46912
|
+
this.hooks.emit("objectUpdate");
|
|
46905
46913
|
return;
|
|
46906
|
-
|
|
46907
|
-
|
|
46908
|
-
|
|
46909
|
-
|
|
46910
|
-
|
|
46911
|
-
};
|
|
46912
|
-
this.hooks.emit("objectUpdate",
|
|
46914
|
+
}
|
|
46915
|
+
const i = le(_({}, this.currentOperation), {
|
|
46916
|
+
end_timestamp: e ? Date.now() : void 0,
|
|
46917
|
+
// 只在松手时设置结束时间
|
|
46918
|
+
is_handle_end: e
|
|
46919
|
+
});
|
|
46920
|
+
this.hooks.emit("objectUpdate", i), e && (this.currentOperation = null);
|
|
46913
46921
|
});
|
|
46914
46922
|
this.objectHelperConfig = i;
|
|
46915
46923
|
}
|
|
@@ -46920,13 +46928,13 @@ class ya extends nc {
|
|
|
46920
46928
|
enable() {
|
|
46921
46929
|
super.enable();
|
|
46922
46930
|
const e = typeof this.objectHelperConfig == "function" ? this.objectHelperConfig() : this.objectHelperConfig;
|
|
46923
|
-
tt.modules.object3DHelper.addObject3DHelper(this.originObject,
|
|
46931
|
+
tt.modules.object3DHelper.addObject3DHelper(this.originObject, _({ positionFrom: "boundingBox" }, e));
|
|
46924
46932
|
const i = tt.modules.object3DHelper.getObject3DHelper(this.originObject).helper;
|
|
46925
|
-
i.hooks.on("moveStart", this.onMoveStart), i.hooks.on("rotateStart", this.onRotateStart), i.hooks.on("scaleStart", this.onScaleStart), i.hooks.on("moveEnd", this.onMoveEnd), i.hooks.on("rotateEnd", this.onRotateEnd), i.hooks.on("scaleEnd", this.onScaleEnd);
|
|
46933
|
+
i.hooks.on("moveStart", this.onMoveStart), i.hooks.on("rotateStart", this.onRotateStart), i.hooks.on("scaleStart", this.onScaleStart), i.hooks.on("move", this.onMove), i.hooks.on("rotate", this.onRotate), i.hooks.on("scale", this.onScale), i.hooks.on("moveEnd", this.onMoveEnd), i.hooks.on("rotateEnd", this.onRotateEnd), i.hooks.on("scaleEnd", this.onScaleEnd);
|
|
46926
46934
|
}
|
|
46927
46935
|
disable() {
|
|
46928
|
-
var e, i, s, o, r, a;
|
|
46929
|
-
super.disable(), (e = this.helper) == null || e.hooks.off("moveStart", this.onMoveStart), (i = this.helper) == null || i.hooks.off("rotateStart", this.onRotateStart), (s = this.helper) == null || s.hooks.off("scaleStart", this.onScaleStart), (o = this.helper) == null || o.hooks.off("
|
|
46936
|
+
var e, i, s, o, r, a, l, c, h;
|
|
46937
|
+
super.disable(), (e = this.helper) == null || e.hooks.off("moveStart", this.onMoveStart), (i = this.helper) == null || i.hooks.off("rotateStart", this.onRotateStart), (s = this.helper) == null || s.hooks.off("scaleStart", this.onScaleStart), (o = this.helper) == null || o.hooks.off("move", this.onMove), (r = this.helper) == null || r.hooks.off("rotate", this.onRotate), (a = this.helper) == null || a.hooks.off("scale", this.onScale), (l = this.helper) == null || l.hooks.off("moveEnd", this.onMoveEnd), (c = this.helper) == null || c.hooks.off("rotateEnd", this.onRotateEnd), (h = this.helper) == null || h.hooks.off("scaleEnd", this.onScaleEnd), tt.modules.object3DHelper.removeObject3DHelper(this.originObject);
|
|
46930
46938
|
}
|
|
46931
46939
|
initialHelperMatrix() {
|
|
46932
46940
|
var e;
|
|
@@ -46999,13 +47007,13 @@ class kg extends Qi {
|
|
|
46999
47007
|
f(this, "polyLineMesh");
|
|
47000
47008
|
f(this, "_editor");
|
|
47001
47009
|
f(this, "creatingObject");
|
|
47002
|
-
e && (this.polyLineMesh = new cs(
|
|
47010
|
+
e && (this.polyLineMesh = new cs(_(_({}, e.style), e)), this.add(this.polyLineMesh));
|
|
47003
47011
|
}
|
|
47004
47012
|
get editor() {
|
|
47005
47013
|
return this._editor || (this._editor = new P6(this)), this._editor;
|
|
47006
47014
|
}
|
|
47007
47015
|
get data() {
|
|
47008
|
-
return
|
|
47016
|
+
return le(_({}, this.baseData), {
|
|
47009
47017
|
points: li(this.applyObjectMatrixWorld(this.polyLineMesh.points)),
|
|
47010
47018
|
style: {
|
|
47011
47019
|
lineColor: new y.Color(this.polyLineMesh.lineColor).getHex(),
|
|
@@ -47056,7 +47064,7 @@ function C6(n, t, e) {
|
|
|
47056
47064
|
return;
|
|
47057
47065
|
const { promise: s, resolve: o, reject: r } = to(), a = (z = e == null ? void 0 : e.limit) != null ? z : "none", l = new $s(n.style);
|
|
47058
47066
|
i.add(l);
|
|
47059
|
-
const c = new $s(
|
|
47067
|
+
const c = new $s(le(_({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
47060
47068
|
i.add(c), t.enable();
|
|
47061
47069
|
const h = [];
|
|
47062
47070
|
let d, u, m;
|
|
@@ -47111,13 +47119,13 @@ class xg extends Qi {
|
|
|
47111
47119
|
f(this, "type", "Point");
|
|
47112
47120
|
f(this, "pointMesh");
|
|
47113
47121
|
f(this, "_editor");
|
|
47114
|
-
e && (this.pointMesh = new dn(
|
|
47122
|
+
e && (this.pointMesh = new dn(_(_({}, e.style), e)), this.add(this.pointMesh));
|
|
47115
47123
|
}
|
|
47116
47124
|
get editor() {
|
|
47117
47125
|
return this._editor || (this._editor = new I6(this)), this._editor;
|
|
47118
47126
|
}
|
|
47119
47127
|
get data() {
|
|
47120
|
-
return
|
|
47128
|
+
return le(_({}, this.baseData), {
|
|
47121
47129
|
point: li(this.applyObjectMatrixWorld(this.pointMesh.position)),
|
|
47122
47130
|
style: {
|
|
47123
47131
|
color: this.pointMesh.color.getHex(),
|
|
@@ -47177,7 +47185,7 @@ class kh extends rr {
|
|
|
47177
47185
|
i && this.setPoints(i), s && this.setStyle(s);
|
|
47178
47186
|
}
|
|
47179
47187
|
get style() {
|
|
47180
|
-
return
|
|
47188
|
+
return le(_({}, super.style), {
|
|
47181
47189
|
lineWidth: this.lineWidth,
|
|
47182
47190
|
lineColor: this.lineColor
|
|
47183
47191
|
});
|
|
@@ -47194,10 +47202,10 @@ class kh extends rr {
|
|
|
47194
47202
|
}), !1;
|
|
47195
47203
|
}
|
|
47196
47204
|
setPoints(e, i) {
|
|
47197
|
-
super.setPoints(e,
|
|
47205
|
+
super.setPoints(e, _({ closed: !0 }, i)), this.points && (this.line.setPoints(this.points, _({ closed: !0 }, i)), this.addIfNotExists(this.line));
|
|
47198
47206
|
}
|
|
47199
47207
|
setStyle(e) {
|
|
47200
|
-
super.setStyle(e), e.lineOpacity !== void 0 ? this.line.setStyle(
|
|
47208
|
+
super.setStyle(e), e.lineOpacity !== void 0 ? this.line.setStyle(le(_({}, e), {
|
|
47201
47209
|
// 强制设置line的lineOpacity
|
|
47202
47210
|
lineOpacity: e.lineOpacity
|
|
47203
47211
|
})) : this.line.setStyle(e), this.needsRender = !0;
|
|
@@ -47300,7 +47308,7 @@ class Sg extends Qi {
|
|
|
47300
47308
|
f(this, "maxHistorySize", 50);
|
|
47301
47309
|
f(this, "_editor");
|
|
47302
47310
|
f(this, "creatingObject");
|
|
47303
|
-
e && (this.areaMesh = new xh(
|
|
47311
|
+
e && (this.areaMesh = new xh(_(_({}, e.style), e)), this.areaMesh.userData = (s = this.areaMesh.userData) != null ? s : {}, typeof this.areaMesh.userData.dragSelectPixelDistance != "number" && (this.areaMesh.userData.dragSelectPixelDistance = 10), this.add(this.areaMesh));
|
|
47304
47312
|
}
|
|
47305
47313
|
get editor() {
|
|
47306
47314
|
return this._editor || (this._editor = new E6(this)), this._editor;
|
|
@@ -47311,7 +47319,7 @@ class Sg extends Qi {
|
|
|
47311
47319
|
typeof e == "function" && e(), this._editor && this._editor.updatePointMeshes();
|
|
47312
47320
|
}
|
|
47313
47321
|
get data() {
|
|
47314
|
-
return this.updateMatrixWorld(),
|
|
47322
|
+
return this.updateMatrixWorld(), le(_({}, this.baseData), {
|
|
47315
47323
|
points: li(this.applyObjectMatrixWorld(this.areaMesh.points)),
|
|
47316
47324
|
style: {
|
|
47317
47325
|
color: this.areaMesh.color.getHex(),
|
|
@@ -47402,28 +47410,28 @@ function ru(n, t, e) {
|
|
|
47402
47410
|
l && c && c.model && c.model.bounding && typeof ((Le = c.model.bounding.max) == null ? void 0 : Le.y) == "number" && (d = c.model.bounding.max.y + 1);
|
|
47403
47411
|
const u = new $s(n.style);
|
|
47404
47412
|
r == null || r.add(u);
|
|
47405
|
-
const m = new $s(
|
|
47413
|
+
const m = new $s(le(_({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
47406
47414
|
r == null || r.add(m);
|
|
47407
47415
|
let p = [];
|
|
47408
47416
|
const g = (re = w) => {
|
|
47409
47417
|
p.forEach((Me, de) => {
|
|
47410
|
-
const
|
|
47411
|
-
|
|
47418
|
+
const ce = re[de];
|
|
47419
|
+
ce && Me.position.copy(ce);
|
|
47412
47420
|
});
|
|
47413
47421
|
};
|
|
47414
47422
|
function v() {
|
|
47415
47423
|
var Me, de;
|
|
47416
|
-
p.forEach((
|
|
47424
|
+
p.forEach((ce) => {
|
|
47417
47425
|
var Se;
|
|
47418
|
-
return (Se =
|
|
47426
|
+
return (Se = ce.parent) == null ? void 0 : Se.remove(ce);
|
|
47419
47427
|
});
|
|
47420
47428
|
const re = (de = (Me = n.line) == null ? void 0 : Me.style) != null ? de : n.style;
|
|
47421
|
-
p = w.map((
|
|
47429
|
+
p = w.map((ce, Se) => {
|
|
47422
47430
|
var Te, Re;
|
|
47423
|
-
const ee = new dn(
|
|
47431
|
+
const ee = new dn(le(_({}, re), {
|
|
47424
47432
|
color: (Te = re.pointColor) != null ? Te : re.lineColor,
|
|
47425
47433
|
tip: void 0,
|
|
47426
|
-
point:
|
|
47434
|
+
point: ce
|
|
47427
47435
|
}));
|
|
47428
47436
|
return ee.name = `PolygonPointMesh_${Se}`, ee.userData = (Re = ee.userData) != null ? Re : {}, ee.userData.dragSelectPixelDistance = h, r == null || r.add(ee), ee;
|
|
47429
47437
|
}), g();
|
|
@@ -47444,7 +47452,7 @@ function ru(n, t, e) {
|
|
|
47444
47452
|
var re;
|
|
47445
47453
|
O() && (w.push(j.pop()), k(D), v(), (re = e == null ? void 0 : e.onRedo) == null || re.call(e), t.pointSelectorHelper && t.pointSelectorHelper.magnifier && t.pointSelectorHelper.magnifier.render());
|
|
47446
47454
|
}, M = (re) => {
|
|
47447
|
-
var de,
|
|
47455
|
+
var de, ce;
|
|
47448
47456
|
j.length = 0;
|
|
47449
47457
|
let Me = w.length === 0 ? re.point : I.clone();
|
|
47450
47458
|
if (l && (Me = Me.clone().setY(d)), e.__onWillAddPoint(Me, w), !((e == null ? void 0 : e.experimental_max_point_count) != null && w.length === e.experimental_max_point_count)) {
|
|
@@ -47453,7 +47461,7 @@ function ru(n, t, e) {
|
|
|
47453
47461
|
n.setPoints(w, { closed: !1 }), v(), console.warn("[Polygon] 检测到自相交,无法添加该点"), (de = e == null ? void 0 : e.__onSelfIntersect) == null || de.call(e, Se);
|
|
47454
47462
|
return;
|
|
47455
47463
|
}
|
|
47456
|
-
v(), (
|
|
47464
|
+
v(), (ce = e == null ? void 0 : e.onPointPlaced) == null || ce.call(e, w), z && (S(), s());
|
|
47457
47465
|
}
|
|
47458
47466
|
}, k = (re) => {
|
|
47459
47467
|
const Me = () => {
|
|
@@ -47468,7 +47476,7 @@ function ru(n, t, e) {
|
|
|
47468
47476
|
const de = w.at(-1).clone();
|
|
47469
47477
|
if (w.length < 3 && (l ? (I = re.point.clone().setY(d), u.setPoints([de, I]), m.setPoints([])) : a === "none" ? (I = re.point, u.setPoints([de, I]), m.setPoints([])) : a === "xoz" ? (C = C != null ? C : new y.Plane().setFromNormalAndCoplanarPoint(new y.Vector3(0, 1, 0), w[0]), t.plane = C, I = C.projectPoint(re.point, new y.Vector3()), u.setPoints([de, I]), m.setPoints([I, re.point])) : a === "y" && (w.length === 1 ? (I = re.point, u.setPoints([de, I]), m.setPoints([])) : (C = C != null ? C : new y.Plane().setFromCoplanarPoints(w[0], w[1], new y.Vector3(0, 1, 0).add(w[0])), t.plane = C, I = C.projectPoint(re.point, new y.Vector3()), u.setPoints([de, I]), m.setPoints([I, re.point])))), w.length >= 3) {
|
|
47470
47478
|
l ? I = re.point.clone().setY(d) : I = n.projectPoint(re.point);
|
|
47471
|
-
const
|
|
47479
|
+
const ce = w[0];
|
|
47472
47480
|
let Se = !1;
|
|
47473
47481
|
if (typeof (e == null ? void 0 : e.autoClosePixelDistance) == "number") {
|
|
47474
47482
|
if (c && c.camera && c.getElement) {
|
|
@@ -47478,12 +47486,12 @@ function ru(n, t, e) {
|
|
|
47478
47486
|
x: (st.x * 0.5 + 0.5) * Te,
|
|
47479
47487
|
y: (1 - (st.y * 0.5 + 0.5)) * Re
|
|
47480
47488
|
};
|
|
47481
|
-
}, Ve = Ae(
|
|
47489
|
+
}, Ve = Ae(ce), ge = Ae(I), Ie = Ae(re.point), Oe = Math.sqrt(Jn(Ve.x - ge.x, 2) + Jn(Ve.y - ge.y, 2)), Xe = Math.sqrt(Jn(Ve.x - Ie.x, 2) + Jn(Ve.y - Ie.y, 2));
|
|
47482
47490
|
(Oe < e.autoClosePixelDistance || Xe < e.autoClosePixelDistance) && (Se = !0);
|
|
47483
47491
|
}
|
|
47484
47492
|
} else
|
|
47485
|
-
(
|
|
47486
|
-
Se ? (I =
|
|
47493
|
+
(ce.distanceTo(I) < 0.2 || ce.distanceTo(re.point) < 0.2) && (Se = !0);
|
|
47494
|
+
Se ? (I = ce, re.point.copy(ce), t.pointSelectorHelper.updateWithIntersect(re, { emitEvent: !1 }), z = !0) : z = !1, u.setPoints([de, I]), m.setPoints([I, re.point]);
|
|
47487
47495
|
}
|
|
47488
47496
|
w.length >= 2 ? (n.setPoints([...w, I], { closed: !1 }), n.line.setPoints(n.points.slice(0, -1)), n.isBlank ? (t.cursorError = !0, u.setStyle({ lineColor: 16734553 }), m.setStyle({ lineColor: 16734553 })) : (t.cursorError = !1, u.setStyle({ lineColor: n.lineColor }), m.setStyle({ lineColor: n.lineColor }))) : n.setPoints([]), v();
|
|
47489
47497
|
}, S = () => {
|
|
@@ -47778,7 +47786,7 @@ class Us extends Ai {
|
|
|
47778
47786
|
return this.edgeMesh.color;
|
|
47779
47787
|
}
|
|
47780
47788
|
setStyle(e = {}) {
|
|
47781
|
-
this.paramStyle =
|
|
47789
|
+
this.paramStyle = _(_({}, this.paramStyle), e), this.prismMesh.setStyle(this.paramStyle), this.edgeMesh.setStyle(this.paramStyle);
|
|
47782
47790
|
}
|
|
47783
47791
|
/**
|
|
47784
47792
|
* Check if the prism is a box (has 4 bottom positions)
|
|
@@ -48006,13 +48014,13 @@ class Dg extends Qi {
|
|
|
48006
48014
|
f(this, "type", "Prism");
|
|
48007
48015
|
f(this, "prismMesh");
|
|
48008
48016
|
f(this, "_editor");
|
|
48009
|
-
e && (this.prismMesh = new Us(
|
|
48017
|
+
e && (this.prismMesh = new Us(_(_({}, e.style), e)), this.add(this.prismMesh));
|
|
48010
48018
|
}
|
|
48011
48019
|
get editor() {
|
|
48012
48020
|
return this._editor || (this._editor = new gA(this.prismMesh)), this._editor;
|
|
48013
48021
|
}
|
|
48014
48022
|
get data() {
|
|
48015
|
-
return
|
|
48023
|
+
return le(_({}, this.baseData), {
|
|
48016
48024
|
points: li(this.applyObjectMatrixWorld(this.prismMesh.bottomPositions, this.prismMesh)),
|
|
48017
48025
|
heightPoint: li(this.applyObjectMatrixWorld(this.prismMesh.topPosition, this.prismMesh)),
|
|
48018
48026
|
style: {
|
|
@@ -48208,7 +48216,7 @@ class Dl extends au {
|
|
|
48208
48216
|
i && this.setPoints(i), s && this.setStyle(s);
|
|
48209
48217
|
}
|
|
48210
48218
|
get style() {
|
|
48211
|
-
return
|
|
48219
|
+
return _(_({}, super.style), this.line.style);
|
|
48212
48220
|
}
|
|
48213
48221
|
get lineWidth() {
|
|
48214
48222
|
return this.line.lineWidth;
|
|
@@ -48239,13 +48247,13 @@ class Th extends Qi {
|
|
|
48239
48247
|
f(this, "type", "Rectangle");
|
|
48240
48248
|
f(this, "rectangleMesh");
|
|
48241
48249
|
f(this, "_editor");
|
|
48242
|
-
e && (this.rectangleMesh = new Dl(
|
|
48250
|
+
e && (this.rectangleMesh = new Dl(_(_({}, e.style), e)), this.add(this.rectangleMesh));
|
|
48243
48251
|
}
|
|
48244
48252
|
get editor() {
|
|
48245
48253
|
return this._editor || (this._editor = new AA(this.rectangleMesh)), this._editor;
|
|
48246
48254
|
}
|
|
48247
48255
|
get data() {
|
|
48248
|
-
return
|
|
48256
|
+
return le(_({}, this.baseData), {
|
|
48249
48257
|
points: li(this.applyObjectMatrixWorld(this.rectangleMesh.points, this.rectangleMesh)),
|
|
48250
48258
|
style: {
|
|
48251
48259
|
color: this.rectangleMesh.color.getHex(),
|
|
@@ -48296,7 +48304,7 @@ function D6(n, t, e) {
|
|
|
48296
48304
|
const { promise: i, reject: s, resolve: o } = to(), r = n.parent;
|
|
48297
48305
|
if (!r)
|
|
48298
48306
|
return s(new Error("No container"));
|
|
48299
|
-
const a = (I = e == null ? void 0 : e.limit) != null ? I : "none", l = new cs(
|
|
48307
|
+
const a = (I = e == null ? void 0 : e.limit) != null ? I : "none", l = new cs(le(_({}, n.style), { dashed: !0 })), c = new cs(le(_({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new cs(le(_({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
48300
48308
|
r.add(l, h, c), t.enable();
|
|
48301
48309
|
const d = [];
|
|
48302
48310
|
let u = new y.Vector3(), m = new y.Vector3();
|
|
@@ -48346,7 +48354,7 @@ function T6(n, t, e) {
|
|
|
48346
48354
|
const { promise: i, reject: s, resolve: o } = to(), r = n.parent;
|
|
48347
48355
|
if (!r)
|
|
48348
48356
|
return s(new Error("No container"));
|
|
48349
|
-
const a = (I = e == null ? void 0 : e.limit) != null ? I : "none", l = new cs(
|
|
48357
|
+
const a = (I = e == null ? void 0 : e.limit) != null ? I : "none", l = new cs(le(_({}, n.style), { dashed: !0 })), c = new cs(le(_({}, n.style), { dashed: !0, lengthEnable: !1 })), h = new cs(le(_({}, n.style), { dashed: !1, lengthEnable: !1 }));
|
|
48350
48358
|
r.add(l, h, c), t.enable(), t.setAdherePoints(S6(t.five, { excludes: [n] }));
|
|
48351
48359
|
const d = [];
|
|
48352
48360
|
let u = new y.Vector3(), m = new y.Vector3();
|
|
@@ -48458,13 +48466,13 @@ class Tg extends Qi {
|
|
|
48458
48466
|
f(this, "type", "Circle");
|
|
48459
48467
|
f(this, "circleMesh");
|
|
48460
48468
|
f(this, "_editor");
|
|
48461
|
-
e && (this.circleMesh = new ca(
|
|
48469
|
+
e && (this.circleMesh = new ca(_(_({}, e.style), e)), this.add(this.circleMesh));
|
|
48462
48470
|
}
|
|
48463
48471
|
get editor() {
|
|
48464
48472
|
return this._editor || (this._editor = new yA(this.circleMesh)), this._editor;
|
|
48465
48473
|
}
|
|
48466
48474
|
get data() {
|
|
48467
|
-
return
|
|
48475
|
+
return le(_({}, this.baseData), {
|
|
48468
48476
|
center: li(this.applyObjectMatrixWorld(this.circleMesh.center, this.circleMesh)),
|
|
48469
48477
|
normal: li(this.circleMesh.normal.clone().applyQuaternion(this.circleMesh.quaternion)),
|
|
48470
48478
|
radius: this.circleMesh.radius,
|
|
@@ -48578,7 +48586,7 @@ class Lh extends Ai {
|
|
|
48578
48586
|
this.addIfNotExists(this.bottomCircle), this.bottomCircle.setPoints({ center: e, normal: this.normal, radius: this.radius }), this.setEdgeMesh();
|
|
48579
48587
|
}
|
|
48580
48588
|
setStyle(e) {
|
|
48581
|
-
this.params =
|
|
48589
|
+
this.params = _(_({}, this.params), e), this.bottomCircle.setStyle(this.params), this.topCircle.setStyle(this.params);
|
|
48582
48590
|
}
|
|
48583
48591
|
highlight() {
|
|
48584
48592
|
this.highlighted || (this.highlighted = !0, this.edgeMesh.highlight(), this.bottomCircle.highlight(), this.topCircle.highlight(), this.needsRender = !0);
|
|
@@ -48643,13 +48651,13 @@ class Lg extends Qi {
|
|
|
48643
48651
|
f(this, "type", "Cylinder");
|
|
48644
48652
|
f(this, "cylinderMesh");
|
|
48645
48653
|
f(this, "_editor");
|
|
48646
|
-
e && (this.cylinderMesh = new Lh(
|
|
48654
|
+
e && (this.cylinderMesh = new Lh(_(_({}, e.style), e)), this.add(this.cylinderMesh));
|
|
48647
48655
|
}
|
|
48648
48656
|
get editor() {
|
|
48649
48657
|
return this._editor || (this._editor = new CA(this.cylinderMesh)), this._editor;
|
|
48650
48658
|
}
|
|
48651
48659
|
get data() {
|
|
48652
|
-
return
|
|
48660
|
+
return le(_({}, this.baseData), {
|
|
48653
48661
|
bottomCenter: li(this.applyObjectMatrixWorld(this.cylinderMesh.bottomCenter, this.cylinderMesh)),
|
|
48654
48662
|
topCenter: li(this.applyObjectMatrixWorld(this.cylinderMesh.topCenter, this.cylinderMesh)),
|
|
48655
48663
|
radius: this.cylinderMesh.radius,
|
|
@@ -48823,13 +48831,13 @@ class zg extends Qi {
|
|
|
48823
48831
|
f(this, "type", "Box");
|
|
48824
48832
|
f(this, "boxMesh");
|
|
48825
48833
|
f(this, "_editor");
|
|
48826
|
-
e && (this.boxMesh = new zh(
|
|
48834
|
+
e && (this.boxMesh = new zh(_(_({}, e.style), e)), this.add(this.boxMesh));
|
|
48827
48835
|
}
|
|
48828
48836
|
get editor() {
|
|
48829
48837
|
return this._editor || (this._editor = new EA(this.boxMesh)), this._editor;
|
|
48830
48838
|
}
|
|
48831
48839
|
get data() {
|
|
48832
|
-
return
|
|
48840
|
+
return le(_({}, this.baseData), {
|
|
48833
48841
|
points: li(this.applyObjectMatrixWorld(this.boxMesh.bottomPositions, this.boxMesh)),
|
|
48834
48842
|
heightPoint: li(this.applyObjectMatrixWorld(this.boxMesh.topPosition, this.boxMesh)),
|
|
48835
48843
|
style: {
|
|
@@ -48890,7 +48898,7 @@ function MA(n, t, e) {
|
|
|
48890
48898
|
return;
|
|
48891
48899
|
}
|
|
48892
48900
|
const r = new Dl(n.style);
|
|
48893
|
-
o.add(r), yield lu(r, t,
|
|
48901
|
+
o.add(r), yield lu(r, t, le(_({}, e), {
|
|
48894
48902
|
onPointPlaced: () => {
|
|
48895
48903
|
var v;
|
|
48896
48904
|
(v = e == null ? void 0 : e.onPointPlaced) == null || v.call(e);
|
|
@@ -48932,13 +48940,13 @@ class Og extends Qi {
|
|
|
48932
48940
|
f(this, "lineMesh");
|
|
48933
48941
|
f(this, "_editor");
|
|
48934
48942
|
f(this, "creatingObject");
|
|
48935
|
-
e && (this.lineMesh = new sa(
|
|
48943
|
+
e && (this.lineMesh = new sa(_(_({}, e.style), e)), this.add(this.lineMesh));
|
|
48936
48944
|
}
|
|
48937
48945
|
get editor() {
|
|
48938
48946
|
return this._editor || (this._editor = new w6(this)), this._editor;
|
|
48939
48947
|
}
|
|
48940
48948
|
get data() {
|
|
48941
|
-
return
|
|
48949
|
+
return le(_({}, this.baseData), {
|
|
48942
48950
|
points: li(this.applyObjectMatrixWorld(this.lineMesh.points)),
|
|
48943
48951
|
style: {
|
|
48944
48952
|
lineColor: new y.Color(this.lineMesh.color).getHex(),
|
|
@@ -48989,7 +48997,7 @@ function kA(n, t, e) {
|
|
|
48989
48997
|
return;
|
|
48990
48998
|
const { promise: s, resolve: o, reject: r } = to(), a = (j = e == null ? void 0 : e.limit) != null ? j : "none", l = new ki(n.style);
|
|
48991
48999
|
i.add(l);
|
|
48992
|
-
const c = new ki(
|
|
49000
|
+
const c = new ki(le(_({}, n.style), { dashed: !0, lengthEnable: !1 }));
|
|
48993
49001
|
i.add(c), t.enable();
|
|
48994
49002
|
const h = [];
|
|
48995
49003
|
let d, u, m;
|
|
@@ -49059,7 +49067,7 @@ const Do = class extends kt {
|
|
|
49059
49067
|
const e = this.items.find((i) => i.selected && i.type === "Polygon");
|
|
49060
49068
|
e && typeof e.redo == "function" && (e.redo(), this.five.needsRender = !0);
|
|
49061
49069
|
});
|
|
49062
|
-
this.five = e, this.theme = i, this.config =
|
|
49070
|
+
this.five = e, this.theme = i, this.config = _({
|
|
49063
49071
|
magnifier: { width: 190, height: 190, scale: 2, dragEnabled: !0 }
|
|
49064
49072
|
}, s), this.group = new Ai(), this.group.name = "Sculpt", this.group.__sculpt__ = this, e.scene.add(this.group), Do.modules.init(e, this.config), mt("ctrl+z, command+z", this.undo), mt("ctrl+shift+z, command+shift+z", this.redo), Do.modules.fiveDomEvents.addEventListener(this.group, "click", ({ intersects: o, origDomEvent: r }) => {
|
|
49065
49073
|
var l;
|
|
@@ -49089,8 +49097,8 @@ const Do = class extends kt {
|
|
|
49089
49097
|
this.clear();
|
|
49090
49098
|
const s = (o = e == null ? void 0 : e.items) == null ? void 0 : o.map((r) => {
|
|
49091
49099
|
var l;
|
|
49092
|
-
const a =
|
|
49093
|
-
style:
|
|
49100
|
+
const a = le(_({}, r), {
|
|
49101
|
+
style: _(_({}, (l = this.theme) == null ? void 0 : l[r.type.toLowerCase()]), r.style)
|
|
49094
49102
|
});
|
|
49095
49103
|
return r.type === "Point" ? new xg(a, i) : r.type === "line" ? new Og(a, i) : r.type === "Polyline" ? new kg(a, i) : r.type === "Polygon" ? new Sg(a, i) : r.type === "Prism" ? new Dg(a, i) : r.type === "Rectangle" ? new Th(a, i) : r.type === "Circle" ? new Tg(a, i) : r.type === "Cylinder" ? new Lg(a, i) : r.type === "Box" ? new zg(a, i) : null;
|
|
49096
49104
|
});
|
|
@@ -49346,7 +49354,7 @@ class R6 extends Wd {
|
|
|
49346
49354
|
(l = (a = this.tag3DContentSvelte) == null ? void 0 : a.dispose) == null || l.call(a);
|
|
49347
49355
|
const h = document.createElement("div");
|
|
49348
49356
|
h.classList.add("tag-media-container");
|
|
49349
|
-
const d =
|
|
49357
|
+
const d = _({ mode: "front", cornerPoints: c, container: h }, this.config.tag3DConfig), u = this.computeRenderType() === "BehindDom" || d.mode === "behind" ? "behind" : "front", m = new Nv(le(_({}, d), { mode: u })), p = this.computeNormal();
|
|
49350
49358
|
m.position.add(p.clone().setLength(tn.Z_FIGHTING_OFFSET)), this.plugin.group.add(m);
|
|
49351
49359
|
let g;
|
|
49352
49360
|
m.mode === "behind" && this.config.clickable !== !1 && (g = this.addObjectClickHandler(this, m, (A) => {
|
|
@@ -49904,7 +49912,7 @@ function X6(n) {
|
|
|
49904
49912
|
);
|
|
49905
49913
|
},
|
|
49906
49914
|
m(A, w) {
|
|
49907
|
-
X(A, t, w), m.m(t, null),
|
|
49915
|
+
X(A, t, w), m.m(t, null), B(t, e), fe(i, t, null), B(t, s), B(t, o), B(t, r), B(t, a), g[l].m(a, null), h = !0;
|
|
49908
49916
|
},
|
|
49909
49917
|
p(A, [w]) {
|
|
49910
49918
|
u === (u = d(A)) && m ? m.p(A, w) : (m.d(1), m = u(A), m && (m.c(), m.m(t, e))), w & /*folded*/
|
|
@@ -50255,7 +50263,7 @@ function cS(n) {
|
|
|
50255
50263
|
);
|
|
50256
50264
|
},
|
|
50257
50265
|
m(d, u) {
|
|
50258
|
-
X(d, t, u),
|
|
50266
|
+
X(d, t, u), B(t, e), B(e, i), B(i, s), B(s, o), B(s, r), B(i, a), B(a, l), B(a, c), B(e, h);
|
|
50259
50267
|
},
|
|
50260
50268
|
p(d, [u]) {
|
|
50261
50269
|
u & /*color*/
|
|
@@ -50345,7 +50353,7 @@ function uS(n) {
|
|
|
50345
50353
|
);
|
|
50346
50354
|
},
|
|
50347
50355
|
m(A, w) {
|
|
50348
|
-
X(A, t, w),
|
|
50356
|
+
X(A, t, w), B(t, e), B(e, i), B(i, s), B(s, o), B(s, r), B(i, a), B(a, l), B(a, c), B(i, h), B(h, d), B(h, u), B(e, m), B(m, p), B(m, g), B(m, v);
|
|
50349
50357
|
},
|
|
50350
50358
|
p(A, [w]) {
|
|
50351
50359
|
w & /*size*/
|
|
@@ -50409,7 +50417,7 @@ function gS(n) {
|
|
|
50409
50417
|
), P(l, "class", "pano-tag-audio-popup-inline-player-elapsed-time svelte-16y5k2u"), P(o, "class", "pano-tag-audio-popup-inline-player-progress svelte-16y5k2u"), P(t, "class", "pano-tag-audio-popup-inline-player-wrapper svelte-16y5k2u");
|
|
50410
50418
|
},
|
|
50411
50419
|
m(m, p) {
|
|
50412
|
-
X(m, t, p),
|
|
50420
|
+
X(m, t, p), B(t, e), fe(i, e, null), B(t, s), B(t, o), B(o, r), B(o, a), B(o, l), B(l, c), h = !0, d || (u = je(t, "click", O1(function() {
|
|
50413
50421
|
ri(
|
|
50414
50422
|
/*onClick*/
|
|
50415
50423
|
n[3]
|
|
@@ -50492,7 +50500,7 @@ function Fg(n) {
|
|
|
50492
50500
|
), P(t, "class", "tag-popup-title svelte-817q8q");
|
|
50493
50501
|
},
|
|
50494
50502
|
m(i, s) {
|
|
50495
|
-
X(i, t, s),
|
|
50503
|
+
X(i, t, s), B(t, e);
|
|
50496
50504
|
},
|
|
50497
50505
|
p(i, s) {
|
|
50498
50506
|
s[0] & /*finalTitle*/
|
|
@@ -50534,7 +50542,7 @@ function Hg(n) {
|
|
|
50534
50542
|
X(a, t, l);
|
|
50535
50543
|
for (let c = 0; c < s.length; c += 1)
|
|
50536
50544
|
s[c] && s[c].m(t, null);
|
|
50537
|
-
|
|
50545
|
+
B(t, e);
|
|
50538
50546
|
for (let c = 0; c < r.length; c += 1)
|
|
50539
50547
|
r[c] && r[c].m(t, null);
|
|
50540
50548
|
},
|
|
@@ -50581,7 +50589,7 @@ function Ng(n) {
|
|
|
50581
50589
|
t = W("div"), i = _e(e), P(t, "class", "tag-popup-tag tag-popup-tag-primary svelte-817q8q");
|
|
50582
50590
|
},
|
|
50583
50591
|
m(s, o) {
|
|
50584
|
-
X(s, t, o),
|
|
50592
|
+
X(s, t, o), B(t, i);
|
|
50585
50593
|
},
|
|
50586
50594
|
p(s, o) {
|
|
50587
50595
|
o[0] & /*primaryTags*/
|
|
@@ -50603,7 +50611,7 @@ function Gg(n) {
|
|
|
50603
50611
|
t = W("div"), i = _e(e), P(t, "class", "tag-popup-tag tag-popup-tag-secondary svelte-817q8q");
|
|
50604
50612
|
},
|
|
50605
50613
|
m(s, o) {
|
|
50606
|
-
X(s, t, o),
|
|
50614
|
+
X(s, t, o), B(t, i);
|
|
50607
50615
|
},
|
|
50608
50616
|
p(s, o) {
|
|
50609
50617
|
o[0] & /*secondaryTags*/
|
|
@@ -50628,7 +50636,7 @@ function PS(n) {
|
|
|
50628
50636
|
n[2].data.mediaData[0].url) || P(e, "src", i), P(e, "class", "tag-popup-video-fallback"), e.controls = !1, e.autoplay = !1, e.muted = !0, e.loop = !0, P(e, "preload", "metadata"), P(e, "disablepictureinpicture", ""), e.playsInline = !0, R(e, "width", "100%"), R(e, "height", "100%"), R(e, "object-fit", "cover"), P(o, "class", "tag-popup-media-type svelte-817q8q"), P(t, "class", "tag-popup-media svelte-817q8q");
|
|
50629
50637
|
},
|
|
50630
50638
|
m(h, d) {
|
|
50631
|
-
X(h, t, d),
|
|
50639
|
+
X(h, t, d), B(t, e), B(t, s), B(t, o), fe(r, o, null), B(t, a), c && c.m(t, null), l = !0;
|
|
50632
50640
|
},
|
|
50633
50641
|
p(h, d) {
|
|
50634
50642
|
(!l || d[0] & /*tag*/
|
|
@@ -50671,7 +50679,7 @@ function CS(n) {
|
|
|
50671
50679
|
n[5] || ""), P(e, "draggable", "false"), P(e, "class", "svelte-817q8q"), P(t, "class", "tag-popup-media svelte-817q8q");
|
|
50672
50680
|
},
|
|
50673
50681
|
m(p, g) {
|
|
50674
|
-
X(p, t, g),
|
|
50682
|
+
X(p, t, g), B(t, e), B(t, o), ~r && d[r].m(t, null), B(t, l), m && m.m(t, null), c = !0;
|
|
50675
50683
|
},
|
|
50676
50684
|
p(p, g) {
|
|
50677
50685
|
(!c || g[0] & /*mediaUrl*/
|
|
@@ -50712,7 +50720,7 @@ function IS(n) {
|
|
|
50712
50720
|
n[17]) || P(e, "src", i), P(e, "class", "tag-popup-video-iframe"), P(e, "frameborder", "0"), P(e, "allow", "accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share"), P(e, "referrerpolicy", "strict-origin-when-cross-origin"), e.allowFullscreen = !0, R(e, "width", "100%"), R(e, "height", "100%"), R(e, "position", "absolute"), R(e, "top", "0"), R(e, "left", "0"), P(o, "class", "iframe-overlay svelte-817q8q"), P(t, "class", "tag-popup-media svelte-817q8q");
|
|
50713
50721
|
},
|
|
50714
50722
|
m(l, c) {
|
|
50715
|
-
X(l, t, c),
|
|
50723
|
+
X(l, t, c), B(t, e), B(t, s), B(t, o), B(t, r), a && a.m(t, null);
|
|
50716
50724
|
},
|
|
50717
50725
|
p(l, c) {
|
|
50718
50726
|
c[0] & /*videoPlayerTitle*/
|
|
@@ -50746,7 +50754,7 @@ function Wg(n) {
|
|
|
50746
50754
|
), P(t, "class", "tag-popup-media-index svelte-817q8q");
|
|
50747
50755
|
},
|
|
50748
50756
|
m(o, r) {
|
|
50749
|
-
X(o, t, r),
|
|
50757
|
+
X(o, t, r), B(t, e), B(t, i), B(t, s);
|
|
50750
50758
|
},
|
|
50751
50759
|
p(o, r) {
|
|
50752
50760
|
r[0] & /*currentMediaIndex*/
|
|
@@ -50819,7 +50827,7 @@ function Ug(n) {
|
|
|
50819
50827
|
), P(t, "class", "tag-popup-media-index svelte-817q8q");
|
|
50820
50828
|
},
|
|
50821
50829
|
m(o, r) {
|
|
50822
|
-
X(o, t, r),
|
|
50830
|
+
X(o, t, r), B(t, e), B(t, i), B(t, s);
|
|
50823
50831
|
},
|
|
50824
50832
|
p(o, r) {
|
|
50825
50833
|
r[0] & /*currentMediaIndex*/
|
|
@@ -50852,7 +50860,7 @@ function Qg(n) {
|
|
|
50852
50860
|
), P(t, "class", "tag-popup-media-index svelte-817q8q");
|
|
50853
50861
|
},
|
|
50854
50862
|
m(o, r) {
|
|
50855
|
-
X(o, t, r),
|
|
50863
|
+
X(o, t, r), B(t, e), B(t, i), B(t, s);
|
|
50856
50864
|
},
|
|
50857
50865
|
p(o, r) {
|
|
50858
50866
|
r[0] & /*currentMediaIndex*/
|
|
@@ -50882,7 +50890,7 @@ function Xg(n) {
|
|
|
50882
50890
|
), P(t, "class", "tag-popup-description svelte-817q8q");
|
|
50883
50891
|
},
|
|
50884
50892
|
m(i, s) {
|
|
50885
|
-
X(i, t, s),
|
|
50893
|
+
X(i, t, s), B(t, e);
|
|
50886
50894
|
},
|
|
50887
50895
|
p(i, s) {
|
|
50888
50896
|
s[0] & /*finalDescription*/
|
|
@@ -50959,7 +50967,7 @@ function Zg(n) {
|
|
|
50959
50967
|
), P(i, "class", "tag-popup-price-value"), P(t, "class", "tag-popup-price svelte-817q8q");
|
|
50960
50968
|
},
|
|
50961
50969
|
m(r, a) {
|
|
50962
|
-
X(r, t, a), o && o.m(t, null),
|
|
50970
|
+
X(r, t, a), o && o.m(t, null), B(t, e), B(t, i), B(i, s);
|
|
50963
50971
|
},
|
|
50964
50972
|
p(r, a) {
|
|
50965
50973
|
/*marketingPriceUnit*/
|
|
@@ -50985,7 +50993,7 @@ function qg(n) {
|
|
|
50985
50993
|
), P(t, "class", "tag-popup-price-unit");
|
|
50986
50994
|
},
|
|
50987
50995
|
m(i, s) {
|
|
50988
|
-
X(i, t, s),
|
|
50996
|
+
X(i, t, s), B(t, e);
|
|
50989
50997
|
},
|
|
50990
50998
|
p(i, s) {
|
|
50991
50999
|
s[0] & /*marketingPriceUnit*/
|
|
@@ -51064,7 +51072,7 @@ function kS(n) {
|
|
|
51064
51072
|
n[0] + " svelte-817q8q");
|
|
51065
51073
|
},
|
|
51066
51074
|
m(E, M) {
|
|
51067
|
-
X(E, t, M),
|
|
51075
|
+
X(E, t, M), B(t, e), g && g.m(e, null), B(e, i), v && v.m(e, null), B(e, s), ~o && w[o].m(e, null), B(e, a), C && C.m(e, null), B(e, l), z && z.m(e, null), B(e, c), D && D.m(e, null), B(e, h), T && T.m(e, null), B(e, d), b && b.m(e, null), p = !0;
|
|
51068
51076
|
},
|
|
51069
51077
|
p(E, M) {
|
|
51070
51078
|
/*finalTitle*/
|
|
@@ -51140,7 +51148,7 @@ function xS(n) {
|
|
|
51140
51148
|
}
|
|
51141
51149
|
function SS(n, t, e) {
|
|
51142
51150
|
let i, s, o, r, a, l, c, h, d, u, m, p, g, v, A, w, I, C, z, D, j, T, O, b, E, M, { $$slots: k = {}, $$scope: S } = t, { tag: L } = t, { config: N = {} } = t, { theme: V = void 0 } = t, { placement: q = "right-top" } = t, { audioInstance: ie = null } = t, { audioPlaying: K = !1 } = t, { audioCurrentTime: oe = 0 } = t, { audioDuration: $ = 0 } = t, ue = 0, Le = "00:00", re = null, Me = 0, de = 0;
|
|
51143
|
-
function
|
|
51151
|
+
function ce() {
|
|
51144
51152
|
return $ > 0 ? oe / $ * 100 : 0;
|
|
51145
51153
|
}
|
|
51146
51154
|
function Se() {
|
|
@@ -51154,7 +51162,7 @@ function SS(n, t, e) {
|
|
|
51154
51162
|
function ee() {
|
|
51155
51163
|
if (!s)
|
|
51156
51164
|
return;
|
|
51157
|
-
const Ae =
|
|
51165
|
+
const Ae = ce();
|
|
51158
51166
|
$ > 0 ? (K || (de = Ae), e(9, ue = de), e(10, Le = xS(de / 100 * $)), Me = Date.now()) : (de = 0, e(9, ue = 0), e(10, Le = "00:00"));
|
|
51159
51167
|
}
|
|
51160
51168
|
function Te() {
|
|
@@ -51341,7 +51349,7 @@ function TS(n) {
|
|
|
51341
51349
|
);
|
|
51342
51350
|
},
|
|
51343
51351
|
m(p, g) {
|
|
51344
|
-
X(p, t, g),
|
|
51352
|
+
X(p, t, g), B(t, e), B(e, i), B(i, s), B(i, o), B(e, a), B(a, l), B(a, c), B(t, d);
|
|
51345
51353
|
},
|
|
51346
51354
|
p(p, [g]) {
|
|
51347
51355
|
g & /*color*/
|
|
@@ -51460,7 +51468,7 @@ function OS(n) {
|
|
|
51460
51468
|
);
|
|
51461
51469
|
},
|
|
51462
51470
|
m(p, g) {
|
|
51463
|
-
X(p, t, g),
|
|
51471
|
+
X(p, t, g), B(t, e), B(e, i), B(i, s), B(i, o), B(e, a), B(a, l), B(a, c), B(t, d);
|
|
51464
51472
|
},
|
|
51465
51473
|
p(p, [g]) {
|
|
51466
51474
|
g & /*color*/
|
|
@@ -51552,7 +51560,7 @@ function Jg(n) {
|
|
|
51552
51560
|
n[0].showShare ? "both-buttons" : "single-button") + " svelte-18owx9v");
|
|
51553
51561
|
},
|
|
51554
51562
|
m(a, l) {
|
|
51555
|
-
X(a, t, l), o && o.m(t, null),
|
|
51563
|
+
X(a, t, l), o && o.m(t, null), B(t, e), r && r.m(t, null), s = !0;
|
|
51556
51564
|
},
|
|
51557
51565
|
p(a, l) {
|
|
51558
51566
|
/*toolbar*/
|
|
@@ -51602,7 +51610,7 @@ function Kg(n) {
|
|
|
51602
51610
|
), i = ae(), me(s.$$.fragment), P(t, "class", "tag-popover-btn view-more svelte-18owx9v");
|
|
51603
51611
|
},
|
|
51604
51612
|
m(l, c) {
|
|
51605
|
-
X(l, t, c),
|
|
51613
|
+
X(l, t, c), B(t, e), B(t, i), fe(s, t, null), o = !0, r || (a = je(
|
|
51606
51614
|
t,
|
|
51607
51615
|
"click",
|
|
51608
51616
|
/*handleViewMore*/
|
|
@@ -52075,7 +52083,7 @@ function e0(n) {
|
|
|
52075
52083
|
);
|
|
52076
52084
|
},
|
|
52077
52085
|
m(h, d) {
|
|
52078
|
-
X(h, t, d),
|
|
52086
|
+
X(h, t, d), B(t, e), fe(i, e, null), n[35](e), n[36](t), a = !0, l || (c = [
|
|
52079
52087
|
je(
|
|
52080
52088
|
e,
|
|
52081
52089
|
"mouseenter",
|
|
@@ -52351,7 +52359,7 @@ function XS(n, t, e) {
|
|
|
52351
52359
|
function de(ee) {
|
|
52352
52360
|
Rn.call(this, n, ee);
|
|
52353
52361
|
}
|
|
52354
|
-
function
|
|
52362
|
+
function ce(ee) {
|
|
52355
52363
|
Ze[ee ? "unshift" : "push"](() => {
|
|
52356
52364
|
E = ee, e(9, E);
|
|
52357
52365
|
});
|
|
@@ -52438,7 +52446,7 @@ function XS(n, t, e) {
|
|
|
52438
52446
|
s,
|
|
52439
52447
|
Me,
|
|
52440
52448
|
de,
|
|
52441
|
-
|
|
52449
|
+
ce,
|
|
52442
52450
|
Se
|
|
52443
52451
|
];
|
|
52444
52452
|
}
|
|
@@ -52530,7 +52538,7 @@ function t0(n) {
|
|
|
52530
52538
|
n[9].scale})`);
|
|
52531
52539
|
},
|
|
52532
52540
|
m(A, w) {
|
|
52533
|
-
X(A, t, w), u[e].m(t, null),
|
|
52541
|
+
X(A, t, w), u[e].m(t, null), B(t, s), g[o].m(t, null), n[36](t), h = !0;
|
|
52534
52542
|
},
|
|
52535
52543
|
p(A, w) {
|
|
52536
52544
|
let I = e;
|
|
@@ -52998,7 +53006,7 @@ function tD(n, t, e) {
|
|
|
52998
53006
|
function de(ee) {
|
|
52999
53007
|
b = ee, e(12, b);
|
|
53000
53008
|
}
|
|
53001
|
-
function
|
|
53009
|
+
function ce(ee) {
|
|
53002
53010
|
Ze[ee ? "unshift" : "push"](() => {
|
|
53003
53011
|
k = ee, e(13, k);
|
|
53004
53012
|
});
|
|
@@ -53066,7 +53074,7 @@ function tD(n, t, e) {
|
|
|
53066
53074
|
re,
|
|
53067
53075
|
Me,
|
|
53068
53076
|
de,
|
|
53069
|
-
|
|
53077
|
+
ce,
|
|
53070
53078
|
Se
|
|
53071
53079
|
];
|
|
53072
53080
|
}
|
|
@@ -53461,7 +53469,7 @@ class Oh extends kE {
|
|
|
53461
53469
|
return console.error("updateRenderPlaneTag: tag2DContainer not found");
|
|
53462
53470
|
this.TagContainerSvelte = new aD({
|
|
53463
53471
|
target: this.container,
|
|
53464
|
-
props:
|
|
53472
|
+
props: le(_({}, a), { state: le(_({}, this.state), { enabled: !1 }) })
|
|
53465
53473
|
}), ma(() => {
|
|
53466
53474
|
var l;
|
|
53467
53475
|
(l = this.TagContainerSvelte) == null || l.$set({ state: this.state });
|
|
@@ -53470,7 +53478,7 @@ class Oh extends kE {
|
|
|
53470
53478
|
}
|
|
53471
53479
|
}), this.renderQueue.clear();
|
|
53472
53480
|
});
|
|
53473
|
-
this.params = it({}, { debug: !1, config: this.config },
|
|
53481
|
+
this.params = it({}, { debug: !1, config: this.config }, _({}, i)), this.debug = this.params.debug, this.config = this.params.config, this.debug && this.debugUtil.bindLog(), mE(1, { namespace: Gd.PlayAudio });
|
|
53474
53482
|
try {
|
|
53475
53483
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), this.NAME = SA + "-" + window.__PANOTAGPLUGIN_DEBUG_LIST__.length, window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
53476
53484
|
get: function() {
|
|
@@ -53600,7 +53608,7 @@ class Oh extends kE {
|
|
|
53600
53608
|
setState(e, i) {
|
|
53601
53609
|
if (this.checkDisposed())
|
|
53602
53610
|
return;
|
|
53603
|
-
const { userAction: s = !0 } = i != null ? i : {}, o =
|
|
53611
|
+
const { userAction: s = !0 } = i != null ? i : {}, o = _({}, this.state);
|
|
53604
53612
|
this.state = Object.assign(this.state, e), o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: s });
|
|
53605
53613
|
}
|
|
53606
53614
|
/**
|
|
@@ -53852,7 +53860,7 @@ function r0(n) {
|
|
|
53852
53860
|
n[10]})`);
|
|
53853
53861
|
},
|
|
53854
53862
|
m(i, s) {
|
|
53855
|
-
X(i, t, s),
|
|
53863
|
+
X(i, t, s), B(t, e);
|
|
53856
53864
|
},
|
|
53857
53865
|
p(i, s) {
|
|
53858
53866
|
s & /*text*/
|
|
@@ -53926,7 +53934,7 @@ function a0(n) {
|
|
|
53926
53934
|
);
|
|
53927
53935
|
},
|
|
53928
53936
|
m(v, A) {
|
|
53929
|
-
X(v, t, A), g && g.m(t, null),
|
|
53937
|
+
X(v, t, A), g && g.m(t, null), B(t, e), B(t, i), B(i, s), B(s, r), B(s, a), B(s, c), B(i, h), B(i, d), B(d, u), B(t, m), B(t, p);
|
|
53930
53938
|
},
|
|
53931
53939
|
p(v, A) {
|
|
53932
53940
|
/*name*/
|
|
@@ -54001,7 +54009,7 @@ function l0(n) {
|
|
|
54001
54009
|
);
|
|
54002
54010
|
},
|
|
54003
54011
|
m(i, s) {
|
|
54004
|
-
X(i, t, s),
|
|
54012
|
+
X(i, t, s), B(t, e);
|
|
54005
54013
|
},
|
|
54006
54014
|
p(i, s) {
|
|
54007
54015
|
s & /*name*/
|
|
@@ -54048,7 +54056,7 @@ function cD(n) {
|
|
|
54048
54056
|
);
|
|
54049
54057
|
},
|
|
54050
54058
|
m(u, m) {
|
|
54051
|
-
X(u, t, m),
|
|
54059
|
+
X(u, t, m), B(t, e), B(t, i), B(t, s), B(t, o), B(t, r), B(r, a), B(r, l), h && h.m(r, null), B(r, c), d && d.m(r, null);
|
|
54052
54060
|
},
|
|
54053
54061
|
p(u, [m]) {
|
|
54054
54062
|
m & /*icon_url*/
|
|
@@ -54145,7 +54153,7 @@ function fD(n, t, e) {
|
|
|
54145
54153
|
}), i.push(l);
|
|
54146
54154
|
});
|
|
54147
54155
|
const s = t.transform, o = i.map((r) => hs(new y.Vector3().fromArray(r), s).toArray());
|
|
54148
|
-
return [
|
|
54156
|
+
return [le(_({}, e), { type: "CatmullRomCurve3", points: o })];
|
|
54149
54157
|
}
|
|
54150
54158
|
const pD = (
|
|
54151
54159
|
/* glsl */
|
|
@@ -54453,7 +54461,7 @@ class jh {
|
|
|
54453
54461
|
unitLength: o * i,
|
|
54454
54462
|
skipPositions: this.skippedPositions
|
|
54455
54463
|
});
|
|
54456
|
-
this._curvePath = l, this._curvePoints = c, this.mesh.geometry.copy(r), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = a, this.five.needsRender = !0, this.path = t, this.geometryStyle =
|
|
54464
|
+
this._curvePath = l, this._curvePoints = c, this.mesh.geometry.copy(r), this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxV.value = a, this.five.needsRender = !0, this.path = t, this.geometryStyle = _(_({}, this.geometryStyle), e);
|
|
54457
54465
|
}
|
|
54458
54466
|
/** 设置线条材质 */
|
|
54459
54467
|
setMartial(t) {
|
|
@@ -54461,7 +54469,7 @@ class jh {
|
|
|
54461
54469
|
if (this.disposed)
|
|
54462
54470
|
return this.logError("disposed");
|
|
54463
54471
|
this.setDefaultVisible((i = t == null ? void 0 : t.visible) != null ? i : !1), this.setColor((s = t == null ? void 0 : t.color) != null ? s : "#ffffff"), this.setOpacity((o = t == null ? void 0 : t.opacity) != null ? o : 0.5), this.setTextureUrl((a = (r = t == null ? void 0 : t.texture) == null ? void 0 : r.url) != null ? a : Wl), (t == null ? void 0 : t.background_color) !== void 0 && this.setBackgroundColor(t.background_color), (t == null ? void 0 : t.background_opacity) !== void 0 && this.setBackgroundOpacity(t.background_opacity), (t == null ? void 0 : t.border_color) !== void 0 && this.setBorderColor(t.border_color), (t == null ? void 0 : t.border_opacity) !== void 0 && this.setBorderOpacity(t.border_opacity), (t == null ? void 0 : t.border_width) !== void 0 && this.setBorderWidth(t.border_width), (t == null ? void 0 : t.background_clip) !== void 0 && this.setBackgroundClip(t.background_clip);
|
|
54464
|
-
const e =
|
|
54472
|
+
const e = _(_({}, this.materialStyle), t);
|
|
54465
54473
|
this.materialStyle = e;
|
|
54466
54474
|
}
|
|
54467
54475
|
/** 设置模型状态 */
|
|
@@ -54470,7 +54478,7 @@ class jh {
|
|
|
54470
54478
|
const s = new y.Vector3(), o = new y.Vector3().fromArray(t.translate);
|
|
54471
54479
|
o.y += this.heightOffset, s.add(o), this.group.position.copy(s), i(this.startTagContainer, o), i(this.endTagContainer, o);
|
|
54472
54480
|
}
|
|
54473
|
-
const e =
|
|
54481
|
+
const e = _(_({}, this.meshStyle), t);
|
|
54474
54482
|
this.meshStyle = e;
|
|
54475
54483
|
function i(s, o) {
|
|
54476
54484
|
if (!(s != null && s.tag))
|
|
@@ -54611,7 +54619,7 @@ class jh {
|
|
|
54611
54619
|
s.tag = r, gD(r) && (s.tag.element = (h) => {
|
|
54612
54620
|
var m, p;
|
|
54613
54621
|
(m = s.app) == null || m.$destroy();
|
|
54614
|
-
const d = t === "start" ?
|
|
54622
|
+
const d = t === "start" ? le(_({}, r.data), { name: this.name, distance: Math.round((p = i == null ? void 0 : i.getLength()) != null ? p : 0), i18n: this.plugin.config.i18n }) : r.data, u = new dD({ target: h, intro: !0, props: _({ fontSize: this.currentFontSize }, d) });
|
|
54615
54623
|
return s.app = u, () => u.$destroy();
|
|
54616
54624
|
}), s.plugin.load({ tagList: [s.tag] });
|
|
54617
54625
|
const a = this.meshStyle.translate;
|
|
@@ -54723,7 +54731,7 @@ class TA extends ys {
|
|
|
54723
54731
|
return this.disposedErrorLog();
|
|
54724
54732
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
54725
54733
|
return this.disableErrorLog();
|
|
54726
|
-
const s =
|
|
54734
|
+
const s = _({}, this.state);
|
|
54727
54735
|
this.state = it({}, this.state, e), e.disposed !== void 0 && e.disposed !== s.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), e.playing !== void 0 && e.playing !== s.playing && this.changePlayState(e.playing, i), e.speed !== void 0 && e.speed !== s.speed && this.changeSpeed(e.speed), Wt(s, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (o = i == null ? void 0 : i.userAction) != null ? o : !0 });
|
|
54728
54736
|
}
|
|
54729
54737
|
/**
|
|
@@ -54837,7 +54845,7 @@ class LA extends TA {
|
|
|
54837
54845
|
this.state.speed = e, this.hooks.emit("speedChange", e, { userAction: i });
|
|
54838
54846
|
});
|
|
54839
54847
|
f(this, "moveToStart", () => {
|
|
54840
|
-
this.five.setState(
|
|
54848
|
+
this.five.setState(le(_({}, Uc(this.curve, 0, this.curveOffset)), { mode: "Model" }));
|
|
54841
54849
|
});
|
|
54842
54850
|
f(this, "playFromStart", () => {
|
|
54843
54851
|
this.clearPauseData(), this.setState({ playing: !0 });
|
|
@@ -54865,7 +54873,7 @@ class LA extends TA {
|
|
|
54865
54873
|
}
|
|
54866
54874
|
load(e, i) {
|
|
54867
54875
|
var a, l, c, h, d, u, m, p, g;
|
|
54868
|
-
this.handlePause(), this.clear(), this.data =
|
|
54876
|
+
this.handlePause(), this.clear(), this.data = _({ id: Dt() }, e);
|
|
54869
54877
|
const s = (() => {
|
|
54870
54878
|
if (this.data.path instanceof y.Curve)
|
|
54871
54879
|
return this.data.path.curves[0];
|
|
@@ -54907,7 +54915,7 @@ class LA extends TA {
|
|
|
54907
54915
|
let o = (l = s == null ? void 0 : s.playedProgress) != null ? l : 0;
|
|
54908
54916
|
(o < 0 || o >= 1) && (o = 0);
|
|
54909
54917
|
const r = Uc(this.curve, o, this.curveOffset);
|
|
54910
|
-
if (this.hooks.emit("progressChange", o), this.five.setState(
|
|
54918
|
+
if (this.hooks.emit("progressChange", o), this.five.setState(le(_({}, r), { mode: "Model" })), yield this.five.ready(), this.playStartedTime = performance.now(), this.config.allowBroke) {
|
|
54911
54919
|
const c = this.addInterruptListener(() => {
|
|
54912
54920
|
this.state.playing && (this.hooks.emit("broke"), this.handlePause(), c(), i(new Error("broke")));
|
|
54913
54921
|
});
|
|
@@ -54997,7 +55005,7 @@ class hu extends TA {
|
|
|
54997
55005
|
var h, d;
|
|
54998
55006
|
this.clear();
|
|
54999
55007
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
55000
|
-
this.data =
|
|
55008
|
+
this.data = _({ id: r.keyframesId }, r), this.hooks.emit("dataChange", r, o);
|
|
55001
55009
|
let a = [], l;
|
|
55002
55010
|
const c = this.data.keyframes.filter((u) => u.data.panoIndex !== void 0);
|
|
55003
55011
|
c.filter((u, m) => {
|
|
@@ -55031,7 +55039,7 @@ class hu extends TA {
|
|
|
55031
55039
|
* @description Play from first keyframe
|
|
55032
55040
|
*/
|
|
55033
55041
|
playFromStart(e) {
|
|
55034
|
-
return this.playFrom(
|
|
55042
|
+
return this.playFrom(le(_({}, e), { index: 0 }));
|
|
55035
55043
|
}
|
|
55036
55044
|
/**
|
|
55037
55045
|
* @description Format data
|
|
@@ -55049,7 +55057,7 @@ class hu extends TA {
|
|
|
55049
55057
|
keyframes: i.keyframes.map((s, o) => {
|
|
55050
55058
|
var l;
|
|
55051
55059
|
const r = i.keyframes[o + 1], a = (() => !r || r.start === void 0 || s.end === void 0 ? 0 : r.start - s.end)();
|
|
55052
|
-
return
|
|
55060
|
+
return le(_({ id: (l = s.uuid) != null ? l : Dt(), moveIndex: o, stay: a, index: o }, s), { guildPluginOptions: i.guildPluginOptions });
|
|
55053
55061
|
})
|
|
55054
55062
|
};
|
|
55055
55063
|
if (i.panoIndexList) {
|
|
@@ -55070,11 +55078,11 @@ class hu extends TA {
|
|
|
55070
55078
|
i.moveType === void 0 || i.moveType === "justMove" ? s.push({
|
|
55071
55079
|
moveIndex: c,
|
|
55072
55080
|
stay: i.stay,
|
|
55073
|
-
data:
|
|
55074
|
-
}) : i.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: i.stay, data: { effect: "Move", panoIndex: l, moveEffect: o } }), h && s.push({ moveIndex: c, stay: i.stay, data:
|
|
55081
|
+
data: _({ effect: "Move", panoIndex: l, moveEffect: o }, h != null ? h : {})
|
|
55082
|
+
}) : i.moveType === "moveAndRotate" && (s.push({ moveIndex: c, stay: i.stay, data: { effect: "Move", panoIndex: l, moveEffect: o } }), h && s.push({ moveIndex: c, stay: i.stay, data: _({ effect: "Rotate", panoIndex: l }, h) }));
|
|
55075
55083
|
}), {
|
|
55076
55084
|
keyframesId: Dt(),
|
|
55077
|
-
keyframes: s.map((l, c) =>
|
|
55085
|
+
keyframes: s.map((l, c) => _({ id: Dt(), index: c }, l)),
|
|
55078
55086
|
guildPluginOptions: i.guildPluginOptions,
|
|
55079
55087
|
useGuildLine: i.useGuildLine
|
|
55080
55088
|
};
|
|
@@ -55296,7 +55304,7 @@ class hu extends TA {
|
|
|
55296
55304
|
})(), c = this.five.getCurrentState(), h = Math.PI * 2;
|
|
55297
55305
|
let d = e.longitude;
|
|
55298
55306
|
d !== void 0 && (d = (d % h + h) % h, e.direction === "left" ? d <= c.longitude && (d += h) : e.direction === "right" && d >= c.longitude && (d -= h));
|
|
55299
|
-
const u = (() => i.duration ? i.duration : l ? vD(c,
|
|
55307
|
+
const u = (() => i.duration ? i.duration : l ? vD(c, le(_({}, e), { longitude: d })) / l : 800)();
|
|
55300
55308
|
r.currentPlayKeyframe && (r.currentPlayKeyframe.originDuration = u);
|
|
55301
55309
|
const m = this.getSpeededDuration(u);
|
|
55302
55310
|
return new Promise((p) => {
|
|
@@ -55461,9 +55469,9 @@ class OA {
|
|
|
55461
55469
|
const i = t === "panorama" ? this.panoramaItem : this.modelItem, s = t === "panorama" ? e.panorama_style : e.model_style, o = e.path, r = s, a = s, l = s;
|
|
55462
55470
|
if (e.pano_group) {
|
|
55463
55471
|
const h = t === "panorama" && e.panorama_style.skip_group === !0;
|
|
55464
|
-
i.setGeometryByPanoGroup(e.pano_group,
|
|
55472
|
+
i.setGeometryByPanoGroup(e.pano_group, _(le(_({}, e), { skipPanoGroup: h }), r));
|
|
55465
55473
|
} else
|
|
55466
|
-
e.path && i.setGeometryByPath(o,
|
|
55474
|
+
e.path && i.setGeometryByPath(o, _({}, r));
|
|
55467
55475
|
i.name = e.name, i.setMeshStyle(l), i.setMartial(a), i.setVisibleFloorIndexes((c = e.visible_floor_indexes) != null ? c : null), i.setStartTag(s == null ? void 0 : s.start_tag), i.setEndTag(s == null ? void 0 : s.end_tag);
|
|
55468
55476
|
}
|
|
55469
55477
|
show() {
|
|
@@ -55478,7 +55486,7 @@ class OA {
|
|
|
55478
55486
|
walk(t) {
|
|
55479
55487
|
return te(this, null, function* () {
|
|
55480
55488
|
if (this.hooks.emit("walkStart", { userAction: !0 }), this.panoramaItem.panoGroup.length) {
|
|
55481
|
-
const e =
|
|
55489
|
+
const e = _({ panoIndexList: this.panoramaItem.panoGroup }, t), [i] = yield Ys(wD(this.five, e));
|
|
55482
55490
|
if (i)
|
|
55483
55491
|
return this.logError(i.message);
|
|
55484
55492
|
} else {
|
|
@@ -55567,7 +55575,7 @@ let PD = class extends fn {
|
|
|
55567
55575
|
var p, g, v, A, w, I, C;
|
|
55568
55576
|
const o = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, r = yield this.formatData(e);
|
|
55569
55577
|
this.hooks.emit("dataChange", r, o), this.data = r;
|
|
55570
|
-
const a = r.config, l = !r.lines && r.routes, c = (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : rn(this.staticPrefix, ld), h =
|
|
55578
|
+
const a = r.config, l = !r.lines && r.routes, c = (p = a == null ? void 0 : a.arrowTextureUrl) != null ? p : rn(this.staticPrefix, ld), h = le(_({}, a), {
|
|
55571
55579
|
model_style: {
|
|
55572
55580
|
texture: { url: c }
|
|
55573
55581
|
},
|
|
@@ -55619,8 +55627,8 @@ let PD = class extends fn {
|
|
|
55619
55627
|
var o;
|
|
55620
55628
|
if (this.disposed)
|
|
55621
55629
|
return this.disposedErrorLog();
|
|
55622
|
-
const s =
|
|
55623
|
-
this.state =
|
|
55630
|
+
const s = _({}, this.state);
|
|
55631
|
+
this.state = _(_({}, this.state), e), e.visible !== void 0 && e.visible !== s.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== s.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), Wt(s, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: (o = i == null ? void 0 : i.userAction) != null ? o : !0 }), this.five.needsRender = !0);
|
|
55624
55632
|
}
|
|
55625
55633
|
/** 添加一个 GuideLineItem */
|
|
55626
55634
|
addGuideLineItem(e) {
|
|
@@ -55631,19 +55639,19 @@ let PD = class extends fn {
|
|
|
55631
55639
|
}
|
|
55632
55640
|
processItemUrls(e) {
|
|
55633
55641
|
var o, r, a, l;
|
|
55634
|
-
const i =
|
|
55642
|
+
const i = _({}, e), s = Wl;
|
|
55635
55643
|
if (i.panorama_style) {
|
|
55636
55644
|
const c = (r = (o = i.panorama_style.texture) == null ? void 0 : o.url) != null ? r : s;
|
|
55637
|
-
i.panorama_style =
|
|
55638
|
-
texture:
|
|
55645
|
+
i.panorama_style = le(_({}, i.panorama_style), {
|
|
55646
|
+
texture: le(_({}, i.panorama_style.texture), {
|
|
55639
55647
|
url: rn(this.staticPrefix, c)
|
|
55640
55648
|
})
|
|
55641
55649
|
});
|
|
55642
55650
|
}
|
|
55643
55651
|
if (i.model_style) {
|
|
55644
55652
|
const c = (l = (a = i.model_style.texture) == null ? void 0 : a.url) != null ? l : s;
|
|
55645
|
-
i.model_style =
|
|
55646
|
-
texture:
|
|
55653
|
+
i.model_style = le(_({}, i.model_style), {
|
|
55654
|
+
texture: le(_({}, i.model_style.texture), {
|
|
55647
55655
|
url: rn(this.staticPrefix, c)
|
|
55648
55656
|
})
|
|
55649
55657
|
});
|
|
@@ -56038,7 +56046,7 @@ class kD extends ys {
|
|
|
56038
56046
|
o.video_list.forEach((l) => {
|
|
56039
56047
|
this.controllerMap.set(
|
|
56040
56048
|
l.render_id,
|
|
56041
|
-
new h0(this.five,
|
|
56049
|
+
new h0(this.five, le(_({}, l), {
|
|
56042
56050
|
fiveUtil: this.fiveUtil,
|
|
56043
56051
|
panoIndex: r,
|
|
56044
56052
|
renderID: a,
|
|
@@ -56117,7 +56125,7 @@ class kD extends ys {
|
|
|
56117
56125
|
const o = s.render_id;
|
|
56118
56126
|
this.controllerMap.set(
|
|
56119
56127
|
s.render_id,
|
|
56120
|
-
new h0(this.five,
|
|
56128
|
+
new h0(this.five, le(_({}, s), {
|
|
56121
56129
|
fiveUtil: this.fiveUtil,
|
|
56122
56130
|
panoIndex: e,
|
|
56123
56131
|
renderID: o,
|
|
@@ -56315,7 +56323,7 @@ class xo extends y.Mesh {
|
|
|
56315
56323
|
f(this, "opacityAnime");
|
|
56316
56324
|
/** u / m: 每米水管对应到贴图上,应该对应的 u 的长度 */
|
|
56317
56325
|
f(this, "uPreMeter", 1);
|
|
56318
|
-
e.geometryConfig && (this.geometryConfig =
|
|
56326
|
+
e.geometryConfig && (this.geometryConfig = _(_({}, this.geometryConfig), e.geometryConfig)), this.customID = e.id || this.uuid, this.pathPoints = e.path, this.path = xo.calculatePath(e.path.map((l) => new y.Vector3().fromArray(l))), this.pathLength = this.path.getLength(), this.texture = xo.formatTexture(e.texture);
|
|
56319
56327
|
const { radius: s, tubularSegments: o, radialSegments: r } = this.geometryConfig, a = xo.formatTexture(e.texture);
|
|
56320
56328
|
this.geometry = xo.formatGeometryUV(
|
|
56321
56329
|
new y.TubeBufferGeometry(this.path, o, s, r),
|
|
@@ -56601,7 +56609,7 @@ let GD = class extends fn {
|
|
|
56601
56609
|
return te(this, arguments, function* (e = {}) {
|
|
56602
56610
|
if (this.state.visible)
|
|
56603
56611
|
return;
|
|
56604
|
-
const i =
|
|
56612
|
+
const i = _({
|
|
56605
56613
|
userAction: !0,
|
|
56606
56614
|
anime: { duration: 500 }
|
|
56607
56615
|
}, e);
|
|
@@ -56618,7 +56626,7 @@ let GD = class extends fn {
|
|
|
56618
56626
|
return te(this, arguments, function* (e = {}) {
|
|
56619
56627
|
if (this.state.visible === !1)
|
|
56620
56628
|
return;
|
|
56621
|
-
const i =
|
|
56629
|
+
const i = _({
|
|
56622
56630
|
userAction: !0,
|
|
56623
56631
|
anime: { duration: 500 }
|
|
56624
56632
|
}, e);
|
|
@@ -56724,7 +56732,7 @@ let GD = class extends fn {
|
|
|
56724
56732
|
}
|
|
56725
56733
|
updateState(e, i) {
|
|
56726
56734
|
const s = this.state;
|
|
56727
|
-
this.state =
|
|
56735
|
+
this.state = _(_({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
56728
56736
|
}
|
|
56729
56737
|
/** 加载管道贴图,如果再加载中,复用之前的加载 Promise */
|
|
56730
56738
|
loadPipeTexture(e) {
|
|
@@ -56865,7 +56873,7 @@ function p0(n) {
|
|
|
56865
56873
|
));
|
|
56866
56874
|
},
|
|
56867
56875
|
m(a, l) {
|
|
56868
|
-
X(a, t, l),
|
|
56876
|
+
X(a, t, l), B(t, e), n[22](t), X(a, i, l), X(a, s, l), n[23](s), o || (r = je(t, "click", function() {
|
|
56869
56877
|
ri(
|
|
56870
56878
|
/*onClick*/
|
|
56871
56879
|
n[4]
|
|
@@ -57454,14 +57462,14 @@ let JD = class extends fn {
|
|
|
57454
57462
|
visible: !0
|
|
57455
57463
|
};
|
|
57456
57464
|
this.state = Object.assign(s, i == null ? void 0 : i.initialState);
|
|
57457
|
-
const o =
|
|
57465
|
+
const o = _({
|
|
57458
57466
|
modelDepthTest: !0
|
|
57459
57467
|
}, i == null ? void 0 : i.config);
|
|
57460
57468
|
this._config = o, this.modelGroup = new y.Group(), this.modelGroup.name = "ModelMakerPluginGroup", this.itemMap = /* @__PURE__ */ new Map(), this.state.enabled && this._enable({ userAction: !1 });
|
|
57461
57469
|
}
|
|
57462
57470
|
/** 插件配置项 */
|
|
57463
57471
|
get config() {
|
|
57464
|
-
return
|
|
57472
|
+
return _({}, this._config);
|
|
57465
57473
|
}
|
|
57466
57474
|
/** 是否已经被销毁 */
|
|
57467
57475
|
get disposed() {
|
|
@@ -57513,7 +57521,7 @@ let JD = class extends fn {
|
|
|
57513
57521
|
return Promise.resolve();
|
|
57514
57522
|
if (this.disposed)
|
|
57515
57523
|
return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
|
|
57516
|
-
const i =
|
|
57524
|
+
const i = _({ userAction: !0 }, e);
|
|
57517
57525
|
this.updateState({ visible: !0 }, i.userAction), yield this._show(i);
|
|
57518
57526
|
});
|
|
57519
57527
|
}
|
|
@@ -57525,7 +57533,7 @@ let JD = class extends fn {
|
|
|
57525
57533
|
return te(this, null, function* () {
|
|
57526
57534
|
if (this.state.visible === !1)
|
|
57527
57535
|
return;
|
|
57528
|
-
const i =
|
|
57536
|
+
const i = _({ userAction: !0 }, e);
|
|
57529
57537
|
this.updateState({ visible: !1 }, i.userAction), yield this._hide(i);
|
|
57530
57538
|
});
|
|
57531
57539
|
}
|
|
@@ -57584,7 +57592,7 @@ let JD = class extends fn {
|
|
|
57584
57592
|
*/
|
|
57585
57593
|
updateConfig(e, i = {}) {
|
|
57586
57594
|
var r;
|
|
57587
|
-
const s = this.config, o =
|
|
57595
|
+
const s = this.config, o = _(_({}, s), e);
|
|
57588
57596
|
this._config = o, this.hooks.emit("configChange", { prevConfig: s, config: o, userAction: (r = i.userAction) != null ? r : !0 });
|
|
57589
57597
|
}
|
|
57590
57598
|
/** 根据 ID 获取标注 */
|
|
@@ -57598,9 +57606,9 @@ let JD = class extends fn {
|
|
|
57598
57606
|
return i(e) ? {
|
|
57599
57607
|
list: e.list.filter((s) => s.object_data.points.length >= 3).map((s) => {
|
|
57600
57608
|
const o = new y.Shape(), r = s.object_data.points[0];
|
|
57601
|
-
return o.moveTo(r[0], r[2]), s.object_data.points.slice(1).forEach((l) => o.lineTo(l[0], l[2])), o.lineTo(r[0], r[2]),
|
|
57609
|
+
return o.moveTo(r[0], r[2]), s.object_data.points.slice(1).forEach((l) => o.lineTo(l[0], l[2])), o.lineTo(r[0], r[2]), le(_({}, s), {
|
|
57602
57610
|
floor_index: s.object_data.floorIndex,
|
|
57603
|
-
object_data:
|
|
57611
|
+
object_data: le(_({}, s.object_data), {
|
|
57604
57612
|
bottom_y: r[1] + s.object_data.fixedY,
|
|
57605
57613
|
shape: o.toJSON(),
|
|
57606
57614
|
height: s.object_data.height + s.object_data.fixedHeight
|
|
@@ -57624,7 +57632,7 @@ let JD = class extends fn {
|
|
|
57624
57632
|
}
|
|
57625
57633
|
updateState(e, i) {
|
|
57626
57634
|
const s = this.state;
|
|
57627
|
-
this.state =
|
|
57635
|
+
this.state = _(_({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
57628
57636
|
}
|
|
57629
57637
|
_enable(e) {
|
|
57630
57638
|
this.hooks.emit("enable", { userAction: e.userAction }), this.five.scene.add(this.modelGroup), this.updateChildrenMountedState(), this.five.needsRender = !0, this.five.on("wantsTapGesture", this.onWantsFiveTapGesture), this.five.on("initAnimationWillStart", this.onFiveInitAnimationWillStart), this.five.on("initAnimationEnded", this.onFiveInitAnimationEnded), this.five.on("modeChange", this.onFiveModeChange), this.five.on("cameraUpdate", this.onFiveCameraUpdate);
|
|
@@ -57718,7 +57726,7 @@ class KD extends ys {
|
|
|
57718
57726
|
visible: !0
|
|
57719
57727
|
};
|
|
57720
57728
|
this.state = Object.assign(s, i == null ? void 0 : i.initialState);
|
|
57721
|
-
const o =
|
|
57729
|
+
const o = _({
|
|
57722
57730
|
width: 1.4,
|
|
57723
57731
|
yOffset: 0.01,
|
|
57724
57732
|
yRotate: 0,
|
|
@@ -57731,7 +57739,7 @@ class KD extends ys {
|
|
|
57731
57739
|
}
|
|
57732
57740
|
/** 插件配置项 */
|
|
57733
57741
|
get config() {
|
|
57734
|
-
return
|
|
57742
|
+
return _({}, this._config);
|
|
57735
57743
|
}
|
|
57736
57744
|
/** 是否已经被销毁 */
|
|
57737
57745
|
get disposed() {
|
|
@@ -57769,7 +57777,7 @@ class KD extends ys {
|
|
|
57769
57777
|
return Promise.resolve();
|
|
57770
57778
|
if (this.disposed)
|
|
57771
57779
|
return Promise.reject(new Error("不能在已销毁的插件上调用 show"));
|
|
57772
|
-
const i =
|
|
57780
|
+
const i = _({ userAction: !0 }, e);
|
|
57773
57781
|
this.updateState({ visible: !0 }, i.userAction), this.checkMsg.pluginHidden = "", this._show(i);
|
|
57774
57782
|
});
|
|
57775
57783
|
}
|
|
@@ -57781,7 +57789,7 @@ class KD extends ys {
|
|
|
57781
57789
|
return te(this, null, function* () {
|
|
57782
57790
|
if (this.state.visible === !1)
|
|
57783
57791
|
return;
|
|
57784
|
-
const i =
|
|
57792
|
+
const i = _({ userAction: !0 }, e);
|
|
57785
57793
|
this.updateState({ visible: !1 }, i.userAction), this.checkMsg.pluginDisabled = "调用 hide 隐藏", this._hide(i);
|
|
57786
57794
|
});
|
|
57787
57795
|
}
|
|
@@ -57806,7 +57814,7 @@ class KD extends ys {
|
|
|
57806
57814
|
*/
|
|
57807
57815
|
updateConfig(e, i = {}) {
|
|
57808
57816
|
var r;
|
|
57809
|
-
const s = this.config, o =
|
|
57817
|
+
const s = this.config, o = _(_({}, s), e);
|
|
57810
57818
|
this._config = o, s.imageURL !== o.imageURL && this.reloadTexture(o.imageURL), s.yOffset !== o.yOffset && this.updateMeshPosition(this.five.getCurrentState().panoIndex), s.yRotate !== o.yRotate && this.updateMeshQuaternion(o.yRotate), s.width !== o.width && (this.mesh.geometry = new y.PlaneBufferGeometry(o.width, o.width)), this.hooks.emit("configChange", { prevConfig: s, config: o, userAction: (r = i.userAction) != null ? r : !0 });
|
|
57811
57819
|
}
|
|
57812
57820
|
/** 问什么看不到模型 */
|
|
@@ -57822,7 +57830,7 @@ class KD extends ys {
|
|
|
57822
57830
|
}
|
|
57823
57831
|
updateState(e, i) {
|
|
57824
57832
|
const s = this.state;
|
|
57825
|
-
this.state =
|
|
57833
|
+
this.state = _(_({}, this.state), e), this.hooks.emit("stateChange", { state: this.state, prevState: s, userAction: i });
|
|
57826
57834
|
}
|
|
57827
57835
|
/** 根据各种条件更新 Mesh 的可见性 */
|
|
57828
57836
|
updateMeshVisible() {
|
|
@@ -57968,7 +57976,7 @@ function v0(n) {
|
|
|
57968
57976
|
), P(t, "class", "model-maker-tag svelte-1q9fx3x");
|
|
57969
57977
|
},
|
|
57970
57978
|
m(i, s) {
|
|
57971
|
-
X(i, t, s),
|
|
57979
|
+
X(i, t, s), B(t, e);
|
|
57972
57980
|
},
|
|
57973
57981
|
p(i, s) {
|
|
57974
57982
|
s & /*text*/
|
|
@@ -58045,7 +58053,7 @@ const A0 = (n, t) => {
|
|
|
58045
58053
|
class Zc extends du {
|
|
58046
58054
|
constructor(...e) {
|
|
58047
58055
|
const i = e[0], s = eo(i.model), o = new y.Vector3().lerpVectors(ss(s, 0), ss(s, 5), 0.5);
|
|
58048
|
-
super(
|
|
58056
|
+
super(le(_({}, i), { position: o }));
|
|
58049
58057
|
f(this, "onModelShownFloorChange", (e) => {
|
|
58050
58058
|
this.updateFiveCurrentFloorState(e), this.updateVisible();
|
|
58051
58059
|
});
|
|
@@ -58246,7 +58254,7 @@ class rT extends fn {
|
|
|
58246
58254
|
return this.items.find((i) => i.rawData.id === e);
|
|
58247
58255
|
}
|
|
58248
58256
|
registerTagRenderer(e) {
|
|
58249
|
-
this.tagRendererMap =
|
|
58257
|
+
this.tagRendererMap = _(_({}, this.tagRendererMap), e), this.updateTagRenderer();
|
|
58250
58258
|
}
|
|
58251
58259
|
hasCustomTagRenderer(e) {
|
|
58252
58260
|
return !!this.tagRendererMap[e];
|