next-flow-interface 0.23.6 → 0.23.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/api/index.d.ts +2 -0
- package/dist/api/index.d.ts.map +1 -1
- package/dist/api/index.js +60 -59
- package/dist/index.d.ts +14 -14
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +296 -275
- package/dist/service/attributes/animation/loop/rv-loop-attribute-api.d.ts +1 -1
- package/dist/service/attributes/animation/loop/rv-loop-attribute-api.d.ts.map +1 -1
- package/dist/service/attributes/animation/native/rv-native-attribute-api.d.ts +1 -1
- package/dist/service/attributes/animation/native/rv-native-attribute-api.d.ts.map +1 -1
- package/dist/service/attributes/basic/rv-basic-attribute-api.d.ts +1 -1
- package/dist/service/attributes/basic/rv-basic-attribute-api.d.ts.map +1 -1
- package/dist/service/attributes/code/rv-code-attribute-api.d.ts +1 -1
- package/dist/service/attributes/code/rv-code-attribute-api.d.ts.map +1 -1
- package/dist/service/attributes/label/rv-label-attribute-api.d.ts +1 -1
- package/dist/service/attributes/label/rv-label-attribute-api.d.ts.map +1 -1
- package/dist/service/attributes/location/rv-location-attribute-api.d.ts +1 -1
- package/dist/service/attributes/location/rv-location-attribute-api.d.ts.map +1 -1
- package/dist/service/attributes/material/rv-material-attribute-api.d.ts +4 -4
- package/dist/service/attributes/material/rv-material-attribute-api.d.ts.map +1 -1
- package/dist/service/engine/animation/factory/loop/rs-loop-animation-manager-api.d.ts +2 -2
- package/dist/service/engine/animation/factory/loop/rs-loop-animation-manager-api.d.ts.map +1 -1
- package/dist/service/engine/render/label/rs-label-service-api.d.ts +1 -1
- package/dist/service/engine/render/label/rs-label-service-api.d.ts.map +1 -1
- package/dist/service/engine/render/material/rs-material-service-api.d.ts +3 -3
- package/dist/service/engine/render/material/rs-material-service-api.d.ts.map +1 -1
- package/dist/service/engine/render/material/separate/rs-separate-service-api.d.ts +1 -1
- package/dist/service/engine/render/material/separate/rs-separate-service-api.d.ts.map +1 -1
- package/dist/service/main/batch/batch-apply-service-api.d.ts +1 -1
- package/dist/service/main/batch/batch-apply-service-api.d.ts.map +1 -1
- package/dist/service/sync/attribute/attribute-service-api.d.ts +100 -1
- package/dist/service/sync/attribute/attribute-service-api.d.ts.map +1 -1
- package/dist/service/sync/interface/step/node/animation/loop/rv-loop.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/animation/native/rv-native.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/animation/rv-animation.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/basic/rv-basic.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/code/rv-code.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/label/rv-label.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/location/rv-location.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/material/general/rv-material-general.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/material/general/rv-material-type.enum.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/material/node/rv-material-node.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/material/pbr/rv-material-pbr.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/material/preset/rv-preset-type.enum.d.ts.map +1 -0
- package/dist/service/sync/interface/step/{attributes → node}/material/rv-material.interface.d.ts +1 -1
- package/dist/service/sync/interface/step/node/material/rv-material.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/material/texture/rv-material-texture.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/node/rv-node.interface.d.ts.map +1 -0
- package/dist/service/sync/interface/step/rv-step.interface.d.ts +1 -1
- package/dist/service/sync/interface/step/rv-step.interface.d.ts.map +1 -1
- package/dist/service/sync/material/node/rv-node-material-analyzer-api.d.ts +1 -1
- package/dist/service/sync/material/node/rv-node-material-analyzer-api.d.ts.map +1 -1
- package/dist/service/sync/step/node/rv-node-service-api.d.ts +14 -5
- package/dist/service/sync/step/node/rv-node-service-api.d.ts.map +1 -1
- package/dist/service/sync/step/rv-step-service-api.d.ts +2 -1
- package/dist/service/sync/step/rv-step-service-api.d.ts.map +1 -1
- package/dist/service/target/dto/t-attributes-subscriber.type.d.ts +1 -1
- package/dist/service/target/dto/t-attributes-subscriber.type.d.ts.map +1 -1
- package/dist/service/target/t-node-service-api.d.ts +1 -1
- package/dist/service/target/t-node-service-api.d.ts.map +1 -1
- package/dist/utils/rv-utils.d.ts +6 -0
- package/dist/utils/rv-utils.d.ts.map +1 -1
- package/package.json +1 -1
- package/dist/service/sync/interface/step/attributes/animation/loop/rv-loop.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/animation/native/rv-native.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/animation/rv-animation.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/basic/rv-basic.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/code/rv-code.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/label/rv-label.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/location/rv-location.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/material/general/rv-material-general.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/material/general/rv-material-type.enum.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/material/node/rv-material-node.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/material/pbr/rv-material-pbr.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/material/preset/rv-preset-type.enum.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/material/rv-material.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/material/texture/rv-material-texture.interface.d.ts.map +0 -1
- package/dist/service/sync/interface/step/attributes/rv-node.interface.d.ts.map +0 -1
- /package/dist/service/sync/interface/step/{attributes → node}/animation/loop/rv-loop.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/animation/native/rv-native.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/animation/rv-animation.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/basic/rv-basic.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/code/rv-code.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/label/rv-label.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/location/rv-location.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/material/general/rv-material-general.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/material/general/rv-material-type.enum.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/material/node/rv-material-node.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/material/pbr/rv-material-pbr.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/material/preset/rv-preset-type.enum.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/material/texture/rv-material-texture.interface.d.ts +0 -0
- /package/dist/service/sync/interface/step/{attributes → node}/rv-node.interface.d.ts +0 -0
package/dist/index.js
CHANGED
|
@@ -1,22 +1,23 @@
|
|
|
1
|
-
import { BaseTexture as
|
|
2
|
-
import { fileTypeFromBlob as
|
|
3
|
-
|
|
1
|
+
import { BaseTexture as vt, Material as tr, AbstractMesh as rr, Quaternion as M, Vector3 as nr } from "@babylonjs/core";
|
|
2
|
+
import { fileTypeFromBlob as er, fileTypeFromStream as Y, fileTypeFromBuffer as or } from "file-type";
|
|
3
|
+
var ur = /* @__PURE__ */ ((t) => (t.OPAQUE = "OPAQUE", t.ALPHA_TEST = "ALPHA_TEST", t.ALPHA_BLEND = "ALPHA_BLEND", t.ALPHA_TEST_AND_BLEND = "ALPHA_TEST_AND_BLEND", t))(ur || {}), sr = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.PBR = "PBR", t.STANDARD = "STANDARD", t.NODE = "NODE", t.OTHER = "OTHER", t.TERRAIN = "TERRAIN", t.FUR = "FUR", t.WATER = "WATER", t.LAVA = "LAVA", t.SKY = "SKY", t.BACKGROUND = "BACKGROUND", t.MULTI = "MULTI", t.SHADER = "SHADER", t))(sr || {});
|
|
4
|
+
class ir extends Error {
|
|
4
5
|
constructor(n) {
|
|
5
6
|
super(n), this.name = "NotFoundError";
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
|
-
class
|
|
9
|
+
class He extends ir {
|
|
9
10
|
constructor(n) {
|
|
10
11
|
super(n), this.name = "DomNotFoundError";
|
|
11
12
|
}
|
|
12
13
|
}
|
|
13
|
-
class
|
|
14
|
+
class Ve extends Error {
|
|
14
15
|
constructor(n) {
|
|
15
16
|
super(`${n} is a static class and cannot be instantiated.`), this.name = "StaticClassInstantiationError";
|
|
16
17
|
}
|
|
17
18
|
}
|
|
18
|
-
var
|
|
19
|
-
class
|
|
19
|
+
var cr = /* @__PURE__ */ ((t) => (t[t.TOP = 0] = "TOP", t[t.RIGHT = 1] = "RIGHT", t[t.BOTTOM = 2] = "BOTTOM", t[t.LEFT = 3] = "LEFT", t[t.TOP_LEFT = 4] = "TOP_LEFT", t[t.BOTTOM_LEFT = 5] = "BOTTOM_LEFT", t[t.TOP_RIGHT = 6] = "TOP_RIGHT", t[t.BOTTOM_RIGHT = 7] = "BOTTOM_RIGHT", t[t.UNKNOWN = 8] = "UNKNOWN", t))(cr || {}), fr = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.SWITCH = "SWITCH", t.DRAWER = "DRAWER", t.DIALOG = "DIALOG", t.CONTENT = "CONTENT", t.WINDOW = "WINDOW", t.SERVICE = "SERVICE", t))(fr || {}), j = /* @__PURE__ */ ((t) => (t.Default = "Default", t))(j || {});
|
|
20
|
+
class _e {
|
|
20
21
|
constructor(n, r = null, e = "", o = j.Default, s = 0, i = 0) {
|
|
21
22
|
this.nid = n, this.node = r, this.text = e, this.theme = o, this.x = s, this.y = i;
|
|
22
23
|
}
|
|
@@ -31,10 +32,10 @@ class Ge {
|
|
|
31
32
|
lastClickTime = 0;
|
|
32
33
|
lastSp = null;
|
|
33
34
|
}
|
|
34
|
-
var
|
|
35
|
+
var ar = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(ar || {}), Er = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Er || {}), lr = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(lr || {}), hr = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(hr || {});
|
|
35
36
|
class K {
|
|
36
|
-
constructor(n, r, e = [], o = !1, s = 0, i = 0, a = !1, l, E = null,
|
|
37
|
-
this.options = n, this.id = r, this.lines = e, this.showIcon = o, this.x = s, this.y = i, this.closeOnOutsideClick = a, this.theme = l, this.controller = E, this.createTime =
|
|
37
|
+
constructor(n, r, e = [], o = !1, s = 0, i = 0, a = !1, l, E = null, h = /* @__PURE__ */ new Date()) {
|
|
38
|
+
this.options = n, this.id = r, this.lines = e, this.showIcon = o, this.x = s, this.y = i, this.closeOnOutsideClick = a, this.theme = l, this.controller = E, this.createTime = h;
|
|
38
39
|
}
|
|
39
40
|
static fromOptions(n, r, e) {
|
|
40
41
|
let { showIcon: o } = r;
|
|
@@ -54,12 +55,12 @@ class K {
|
|
|
54
55
|
}
|
|
55
56
|
var V = /* @__PURE__ */ ((t) => (t.BUTTON = "BUTTON", t.DIVIDER = "DIVIDER", t.CHECKBOX = "CHECKBOX", t.SUB = "SUB", t.VIEW = "VIEW", t))(V || {});
|
|
56
57
|
class $ {
|
|
57
|
-
constructor(n, r, e = V.BUTTON, o = "", s = "", i = void 0, a = void 0, l = "", E = !1,
|
|
58
|
-
}, T = () => {
|
|
58
|
+
constructor(n, r, e = V.BUTTON, o = "", s = "", i = void 0, a = void 0, l = "", E = !1, h = "", T = () => {
|
|
59
59
|
}, L = () => {
|
|
60
|
-
},
|
|
61
|
-
},
|
|
62
|
-
|
|
60
|
+
}, S = () => {
|
|
61
|
+
}, B = e === V.BUTTON, b = !1, U = () => {
|
|
62
|
+
}, m = void 0, G = /* @__PURE__ */ new Date()) {
|
|
63
|
+
this.options = n, this.id = r, this.type = e, this.text = o, this.tip = s, this.icon = i, this.view = a, this.color = l, this.disabled = E, this.shortcut = h, this.onClick = T, this.onMouseOver = L, this.onMouseOut = S, this.closeAllOnClick = B, this.checkboxDefaultValue = b, this.onCheckboxChange = U, this.sub = m, this.createTime = G;
|
|
63
64
|
}
|
|
64
65
|
static fromOptions(n, r) {
|
|
65
66
|
return new $(
|
|
@@ -83,21 +84,21 @@ class $ {
|
|
|
83
84
|
);
|
|
84
85
|
}
|
|
85
86
|
}
|
|
86
|
-
var J = /* @__PURE__ */ ((t) => (t.GREEN = "GREEN", t.PURPLE = "PURPLE", t.BLUE = "BLUE", t.PINK = "PINK", t))(J || {}),
|
|
87
|
+
var J = /* @__PURE__ */ ((t) => (t.GREEN = "GREEN", t.PURPLE = "PURPLE", t.BLUE = "BLUE", t.PINK = "PINK", t))(J || {}), Ar = /* @__PURE__ */ ((t) => (t.LEFT = "LEFT", t.CENTER = "CENTER", t.RIGHT = "RIGHT", t))(Ar || {});
|
|
87
88
|
class Q {
|
|
88
|
-
constructor(n, r, e = "", o = void 0, s = "", i = "LEFT", a = void 0, l = void 0, E = void 0,
|
|
89
|
-
},
|
|
90
|
-
}, Ht = () => {
|
|
91
|
-
}, Vt = () => {
|
|
89
|
+
constructor(n, r, e = "", o = void 0, s = "", i = "LEFT", a = void 0, l = void 0, E = void 0, h = J.BLUE, T = !1, L = "", S = {}, B = "", b = "", U = !1, m = "", G = "", xt = U, Bt = !1, bt = () => {
|
|
90
|
+
}, Gt = () => !0, Ht = !0, Vt = () => {
|
|
92
91
|
}, _t = () => {
|
|
93
92
|
}, Mt = () => {
|
|
94
93
|
}, Ft = () => {
|
|
95
94
|
}, Wt = () => {
|
|
96
95
|
}, yt = () => {
|
|
97
|
-
}, kt = () =>
|
|
98
|
-
}, zt =
|
|
99
|
-
},
|
|
100
|
-
|
|
96
|
+
}, kt = () => {
|
|
97
|
+
}, zt = () => {
|
|
98
|
+
}, Xt = () => () => {
|
|
99
|
+
}, Yt = !0, jt = !0, Kt = !1, $t = !0, Jt = !1, Qt = m, qt = /* @__PURE__ */ new Date(), Zt = () => {
|
|
100
|
+
}, pt = /* @__PURE__ */ new Map()) {
|
|
101
|
+
this.options = n, this.id = r, this.title = e, this.titleIcon = o, this.content = s, this.contentAlign = i, this.contentView = a, this.icon = l, this.view = E, this.theme = h, this.leftMode = T, this.className = L, this.style = S, this.confirmText = B, this.cancelText = b, this.enableInput = U, this.defaultValue = m, this.inputPlaceholder = G, this.autoFocus = xt, this.allowEmpty = Bt, this.onChange = bt, this.onCheck = Gt, this.enableCloseButton = Ht, this.onConfirm = Vt, this.onCancel = _t, this.onClose = Mt, this.onConfirmButtonClick = Ft, this.onCancelButtonClick = Wt, this.onOutsideClick = yt, this.onCloseButtonClick = kt, this.onRender = zt, this.onEffect = Xt, this.closeOnConfirm = Yt, this.closeOnCancel = jt, this.closeOnOutsideClick = Kt, this.closeOnCloseButtonClick = $t, this.alignButton = Jt, this.inputValue = Qt, this.createTime = qt, this.focusInput = Zt, this.elements = pt;
|
|
101
102
|
}
|
|
102
103
|
static fromOptions(n, r) {
|
|
103
104
|
return new Q(
|
|
@@ -143,45 +144,45 @@ class Q {
|
|
|
143
144
|
setHide = () => {
|
|
144
145
|
};
|
|
145
146
|
}
|
|
146
|
-
var
|
|
147
|
-
const f = "*/*", u = "unknown/unknown",
|
|
148
|
-
...D,
|
|
149
|
-
...d,
|
|
147
|
+
var Or = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Or || {}), Dr = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(Dr || {});
|
|
148
|
+
const f = "*/*", u = "unknown/unknown", O = "babylonjs/scene", F = "babylonjs/mesh", q = "babylonjs/light", Z = "babylonjs/camera", D = "babylonjs/texture", C = "babylonjs/material", w = "babylonjs/uv", p = "babylonjs/animation", v = "model/gltf-binary", tt = "model/gltf+json", W = "model/stl", rt = "model/obj", nt = "audio/mpeg", et = "audio/wav", Rr = "audio/aac", Nr = "audio/ogg", Tr = "audio/flac", Lr = "audio/opus", ot = "image/jpeg", ut = "image/png", Sr = "image/gif", Ir = "image/bmp", Cr = "image/webp", dr = "image/svg+xml", Pr = "image/tiff", Ur = "image/x-icon", mr = "image/heif", wr = "image/avif", st = "video/mp4", gr = "video/webm", xr = "video/x-msvideo", Br = "video/mpeg", br = "video/quicktime", Gr = "video/x-ms-wmv", Hr = "video/x-flv", Vr = "video/ogg", _r = "video/3gpp", Mr = "video/x-matroska", it = "application/json", ct = "nextflow/sync", ft = "text/plain", Fr = "text/markdown", R = [ot, ut], d = [O, v, tt, W, rt], N = [st], y = [O, F, q, Z, D, C, w, p], g = [nt, et], P = [ft], x = [it], Wr = [ct], at = [
|
|
150
149
|
...R,
|
|
150
|
+
...d,
|
|
151
|
+
...N,
|
|
151
152
|
...y,
|
|
152
|
-
...
|
|
153
|
-
...
|
|
154
|
-
...
|
|
153
|
+
...g,
|
|
154
|
+
...P,
|
|
155
|
+
...x
|
|
155
156
|
], Et = [
|
|
156
|
-
...D,
|
|
157
|
-
...d,
|
|
158
157
|
...R,
|
|
159
|
-
...x,
|
|
160
|
-
...U,
|
|
161
|
-
...B
|
|
162
|
-
], lt = [
|
|
163
|
-
...D,
|
|
164
158
|
...d,
|
|
159
|
+
...N,
|
|
160
|
+
...g,
|
|
161
|
+
...P,
|
|
162
|
+
...x
|
|
163
|
+
], lt = [
|
|
165
164
|
...R,
|
|
166
|
-
...
|
|
167
|
-
|
|
165
|
+
...d,
|
|
166
|
+
...N,
|
|
167
|
+
...P
|
|
168
|
+
], ht = [...R, ...N, D], At = [D, C, w];
|
|
168
169
|
async function Ot(t) {
|
|
169
170
|
if (t && t instanceof Blob) {
|
|
170
171
|
if (t instanceof File && t.name.endsWith(".babylon"))
|
|
171
|
-
return
|
|
172
|
-
const n = await
|
|
172
|
+
return O;
|
|
173
|
+
const n = await er(t);
|
|
173
174
|
return !n && t instanceof File && t.name.endsWith(".stl") ? W : n?.mime ?? u;
|
|
174
175
|
}
|
|
175
176
|
return u;
|
|
176
177
|
}
|
|
177
178
|
async function k(t) {
|
|
178
|
-
return t ? t.endsWith(".babylon") ?
|
|
179
|
+
return t ? t.endsWith(".babylon") ? O : (await import("mime")).default.getType(t) ?? u : u;
|
|
179
180
|
}
|
|
180
181
|
async function Dt(t) {
|
|
181
182
|
if (!t)
|
|
182
183
|
return u;
|
|
183
184
|
if (t.endsWith(".babylon"))
|
|
184
|
-
return
|
|
185
|
+
return O;
|
|
185
186
|
try {
|
|
186
187
|
const n = await fetch(t);
|
|
187
188
|
if (!n.body)
|
|
@@ -197,12 +198,12 @@ async function Dt(t) {
|
|
|
197
198
|
return u;
|
|
198
199
|
}
|
|
199
200
|
async function Rt(t) {
|
|
200
|
-
return t ? (await
|
|
201
|
+
return t ? (await or(t))?.mime ?? u : u;
|
|
201
202
|
}
|
|
202
203
|
async function Nt(t) {
|
|
203
204
|
return (await Y(t))?.mime ?? u;
|
|
204
205
|
}
|
|
205
|
-
async function
|
|
206
|
+
async function yr(t) {
|
|
206
207
|
if (t) {
|
|
207
208
|
if (typeof ReadableStream < "u" && t instanceof ReadableStream)
|
|
208
209
|
return Nt(t);
|
|
@@ -212,66 +213,66 @@ async function _r(t) {
|
|
|
212
213
|
return t.startsWith("http://") || t.startsWith("https://") ? Dt(t) : k(t);
|
|
213
214
|
if (t instanceof ArrayBuffer || t instanceof Uint8Array)
|
|
214
215
|
return Rt(t);
|
|
215
|
-
if (t instanceof Zt)
|
|
216
|
-
return O;
|
|
217
|
-
if (t instanceof pt)
|
|
218
|
-
return C;
|
|
219
216
|
if (t instanceof vt)
|
|
217
|
+
return D;
|
|
218
|
+
if (t instanceof tr)
|
|
219
|
+
return C;
|
|
220
|
+
if (t instanceof rr)
|
|
220
221
|
return F;
|
|
221
222
|
} else return u;
|
|
222
223
|
return u;
|
|
223
224
|
}
|
|
224
|
-
async function
|
|
225
|
-
return t ===
|
|
225
|
+
async function kr(t = u) {
|
|
226
|
+
return t === O ? "babylon" : Tt(t) || Lt(t) ? t : t === f || t === u ? "" : (await import("mime")).default.getExtension(t) ?? "";
|
|
226
227
|
}
|
|
227
|
-
function
|
|
228
|
+
function zr(t = u) {
|
|
228
229
|
return t == f ? !0 : t == u ? !1 : at.includes(t);
|
|
229
230
|
}
|
|
230
|
-
function
|
|
231
|
+
function Xr(t = u) {
|
|
231
232
|
return t == f ? !0 : t == u ? !1 : Et.includes(t);
|
|
232
233
|
}
|
|
233
|
-
function
|
|
234
|
-
return t == f ? !0 : t == u ? !1 :
|
|
234
|
+
function Yr(t = u) {
|
|
235
|
+
return t == f ? !0 : t == u ? !1 : R.includes(t);
|
|
235
236
|
}
|
|
236
|
-
function
|
|
237
|
+
function jr(t = u) {
|
|
237
238
|
return t == f ? !0 : t == u ? !1 : d.includes(t);
|
|
238
239
|
}
|
|
239
|
-
function
|
|
240
|
-
return t == f ? !0 : t == u ? !1 :
|
|
240
|
+
function Kr(t = u) {
|
|
241
|
+
return t == f ? !0 : t == u ? !1 : N.includes(t);
|
|
241
242
|
}
|
|
242
|
-
function
|
|
243
|
-
return t == f ? !0 : t == u ? !1 :
|
|
243
|
+
function $r(t = u) {
|
|
244
|
+
return t == f ? !0 : t == u ? !1 : P.includes(t);
|
|
244
245
|
}
|
|
245
|
-
function
|
|
246
|
-
return t == f ? !0 : t == u ? !1 :
|
|
246
|
+
function Jr(t = u) {
|
|
247
|
+
return t == f ? !0 : t == u ? !1 : x.includes(t);
|
|
247
248
|
}
|
|
248
249
|
function Tt(t = u) {
|
|
249
250
|
return t == f ? !0 : t == u ? !1 : y.includes(t);
|
|
250
251
|
}
|
|
251
|
-
function
|
|
252
|
-
return t == f ? !0 : t == u ? !1 :
|
|
252
|
+
function Qr(t = u) {
|
|
253
|
+
return t == f ? !0 : t == u ? !1 : g.includes(t);
|
|
253
254
|
}
|
|
254
|
-
function
|
|
255
|
+
function qr(t = u) {
|
|
255
256
|
return t == f ? !0 : t == u ? !1 : lt.includes(t);
|
|
256
257
|
}
|
|
257
|
-
function
|
|
258
|
-
return t == f ? !0 : t == u ? !1 :
|
|
258
|
+
function Zr(t = u) {
|
|
259
|
+
return t == f ? !0 : t == u ? !1 : ht.includes(t);
|
|
259
260
|
}
|
|
260
|
-
function
|
|
261
|
-
return t == f ? !0 : t == u ? !1 : t ==
|
|
261
|
+
function pr(t = u) {
|
|
262
|
+
return t == f ? !0 : t == u ? !1 : t == D;
|
|
262
263
|
}
|
|
263
|
-
function
|
|
264
|
+
function vr(t = u) {
|
|
264
265
|
return t == f ? !0 : t == u ? !1 : t == C;
|
|
265
266
|
}
|
|
266
|
-
function
|
|
267
|
-
return t == f ? !0 : t == u ? !1 : t ==
|
|
267
|
+
function tn(t = u) {
|
|
268
|
+
return t == f ? !0 : t == u ? !1 : t == w;
|
|
268
269
|
}
|
|
269
270
|
function Lt(t = u) {
|
|
270
|
-
return t == f ? !0 : t == u ? !1 :
|
|
271
|
+
return t == f ? !0 : t == u ? !1 : At.includes(t);
|
|
271
272
|
}
|
|
272
|
-
const
|
|
273
|
-
var
|
|
274
|
-
class
|
|
273
|
+
const Me = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({ __proto__: null, AAC: Rr, ANIMATION: p, ANY: f, ATTACH_LIST: At, AVI: xr, AVIF: wr, BMP: Ir, CAMERA: Z, FLAC: Tr, FLV: Hr, GIF: Sr, GLB: v, GLTF: tt, GP3: _r, HEIF: mr, ICO: Ur, JPG: ot, JSON: it, LIGHT: q, MARKDOWN: Fr, MATERIAL: C, MESH: F, MKV: Mr, MOV: br, MP3: nt, MP4: st, MPEG: Br, NF: ct, OBJ: rt, OGG: Nr, OGV: Vr, OPUS: Lr, PNG: ut, SCENE: O, STL: W, SUPPORT_ALL_LIST: at, SUPPORT_AUDIO_LIST: g, SUPPORT_BABYLON_LIST: y, SUPPORT_FILE_LIST: Et, SUPPORT_IMAGE_LIST: R, SUPPORT_JSON_LIST: x, SUPPORT_MODEL_LIST: d, SUPPORT_NEXTFLOW_LIST: Wr, SUPPORT_RENDER_LIST: lt, SUPPORT_TEXTURE_LIST: ht, SUPPORT_TEXT_LIST: P, SUPPORT_VIDEO_LIST: N, SVG: dr, TEXTURE: D, TIFF: Pr, TXT: ft, UNKNOWN: u, UV: w, WAV: et, WMV: Gr, WebM: gr, WebP: Cr, getExtension: kr, getMime: yr, getMimeByBlob: Ot, getMimeByBuffer: Rt, getMimeByPath: k, getMimeByStream: Nt, getMimeByUrl: Dt, isAttach: Lt, isBabylon: Tt, isMaterial: vr, isSupport: zr, isSupportAudio: Qr, isSupportFile: Xr, isSupportImage: Yr, isSupportJson: Jr, isSupportModel: jr, isSupportRender: qr, isSupportText: $r, isSupportTexture: Zr, isSupportVideo: Kr, isTexture: pr, isUV: tn }, Symbol.toStringTag, { value: "Module" }));
|
|
274
|
+
var rn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.LOADED = "LOADED", t.ERROR = "ERROR", t.CANCELED = "CANCELED", t))(rn || {}), nn = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.LOADING = "LOADING", t.PAUSED = "PAUSED", t.LOADED = "LOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(nn || {}), en = /* @__PURE__ */ ((t) => (t.BLOB = "BLOB", t.OBJECT = "OBJECT", t))(en || {}), on = /* @__PURE__ */ ((t) => (t.WAITING = "WAITING", t.UPLOADING = "UPLOADING", t.PAUSED = "PAUSED", t.COMPLETED = "COMPLETED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(on || {}), un = /* @__PURE__ */ ((t) => (t.START = "START", t.PROGRESS = "PROGRESS", t.PAUSE = "PAUSE", t.RESUME = "RESUME", t.UPLOADED = "UPLOADED", t.FAILED = "FAILED", t.CANCELED = "CANCELED", t))(un || {}), sn = /* @__PURE__ */ ((t) => (t.ZH = "zh", t.EN = "en", t))(sn || {}), cn = /* @__PURE__ */ ((t) => (t.PENDING = "PENDING", t.PROGRESSING = "PROGRESSING", t.ENDED = "ENDED", t.CANCELED = "CANCELED", t.BANNED = "BANNED", t))(cn || {}), fn = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.SELF = "SELF", t.ALL = "ALL", t))(fn || {});
|
|
275
|
+
class Fe {
|
|
275
276
|
constructor(n, r, e, o) {
|
|
276
277
|
this.text = n, this.type = r, this.duration = e, this.id = o;
|
|
277
278
|
}
|
|
@@ -279,26 +280,26 @@ class Ve {
|
|
|
279
280
|
height = 20;
|
|
280
281
|
opacity = 0;
|
|
281
282
|
}
|
|
282
|
-
var
|
|
283
|
-
async function
|
|
283
|
+
var an = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.INSTALL = "INSTALL", t.ENABLE = "ENABLE", t.OPEN = "OPEN", t.CLOSE = "CLOSE", t.DISABLE = "DISABLE", t.UNINSTALL = "UNINSTALL", t.DEBUG = "DEBUG", t))(an || {}), En = /* @__PURE__ */ ((t) => (t.DISPLAY = "DISPLAY", t.FULL = "FULL", t.HP_BOX = "HP_BOX", t.VR = "VR", t.MR = "MR", t))(En || {}), I = /* @__PURE__ */ ((t) => (t.EDITOR = "EDITOR", t.VIEWER = "VIEWER", t.VISITOR = "VISITOR", t))(I || {}), ln = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.DESCRIPTION = "DESCRIPTION", t))(ln || {}), hn = /* @__PURE__ */ ((t) => (t.XS = "XS", t.SM = "SM", t.MD = "MD", t.LG = "LG", t.XL = "XL", t))(hn || {}), An = /* @__PURE__ */ ((t) => (t.DEFAULT = "DEFAULT", t.BACKGROUND = "BACKGROUND", t.LIGHT = "LIGHT", t.DARK = "DARK", t))(An || {}), On = /* @__PURE__ */ ((t) => (t.GENERAL = "GENERAL", t.RHINE = "RHINE", t))(On || {}), Dn = /* @__PURE__ */ ((t) => (t.Global = "GLOBAL", t.Step = "STEP", t.Node = "NODE", t))(Dn || {}), Rn = /* @__PURE__ */ ((t) => (t.UNDO = "UNDO", t.REDO = "REDO", t))(Rn || {}), Nn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t))(Nn || {}), Tn = /* @__PURE__ */ ((t) => (t.OSS = "OSS", t.URL = "URL", t))(Tn || {}), Ln = /* @__PURE__ */ ((t) => (t.TEXT = "TEXT", t.CUBE = "CUBE", t.SPHERE = "SPHERE", t.CONE = "CONE", t.PRISM = "PRISM", t.POLYHEDRON = "POLYHEDRON", t.TORUS = "TORUS", t.CYLINDER = "CYLINDER", t.ICO_SPHERE = "ICO_SPHERE", t.CAPSULE = "CAPSULE", t.PLANE = "PLANE", t))(Ln || {}), Sn = /* @__PURE__ */ ((t) => (t.BASIC = "BASIC", t.PROVIDE = "PROVIDE", t.UPLOAD = "UPLOAD", t))(Sn || {}), In = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.INSTALL = "INSTALL", t.ENABLE = "ENABLE", t.OPEN = "OPEN", t))(In || {}), Cn = /* @__PURE__ */ ((t) => (t.LATEST_STABLE = "LATEST_STABLE", t.LATEST_NIGHTLY = "LATEST_NIGHTLY", t.LATEST_CANARY = "LATEST_CANARY", t))(Cn || {}), dn = /* @__PURE__ */ ((t) => (t.TEXTURE = "TEXTURE", t.MATERIAL = "MATERIAL", t.UV = "UV", t))(dn || {}), Pn = /* @__PURE__ */ ((t) => (t.FILE = "FILE", t.ATTACH = "ATTACH", t))(Pn || {}), Un = /* @__PURE__ */ ((t) => (t.NONE = "NONE", t.METAL = "METAL", t.PLASTIC = "PLASTIC", t.GLASS = "GLASS", t.WOOD = "WOOD", t.MIRROR = "MIRROR", t.CRYSTAL = "CRYSTAL", t.PAINT = "PAINT", t.CLOTH = "CLOTH", t))(Un || {}), mn = /* @__PURE__ */ ((t) => (t.ADD = "ADD", t.REMOVE = "REMOVE", t))(mn || {}), wn = /* @__PURE__ */ ((t) => (t.SYNC = "SYNC", t.STEP = "STEP", t.SELECT = "SELECT", t.ADD = "ADD", t.UPDATE = "UPDATE", t.DELETE = "DELETE", t))(wn || {});
|
|
284
|
+
async function gn(t) {
|
|
284
285
|
const n = await crypto.subtle.digest("SHA-256", t);
|
|
285
286
|
return Array.from(new Uint8Array(n)).map((e) => e.toString(16).padStart(2, "0")).join("");
|
|
286
287
|
}
|
|
287
288
|
const H = {
|
|
288
|
-
computeSHA256:
|
|
289
|
+
computeSHA256: gn
|
|
289
290
|
};
|
|
290
|
-
function
|
|
291
|
+
function xn(t, n) {
|
|
291
292
|
const r = [];
|
|
292
293
|
return r.push({ path: t, value: n }), r;
|
|
293
294
|
}
|
|
294
|
-
const
|
|
295
|
-
recursPathValue:
|
|
295
|
+
const We = {
|
|
296
|
+
recursPathValue: xn
|
|
296
297
|
};
|
|
297
298
|
function St(t) {
|
|
298
299
|
const n = Math.floor(t).toString().length, r = n <= 1 ? 2 : 1;
|
|
299
300
|
return t.toFixed(r);
|
|
300
301
|
}
|
|
301
|
-
function
|
|
302
|
+
function Bn(t) {
|
|
302
303
|
const n = ["B", "KB", "MB", "GB", "TB", "PB", "EB", "ZB", "YB"];
|
|
303
304
|
let r = 0;
|
|
304
305
|
for (; t >= 1024 && r < n.length - 1; )
|
|
@@ -306,11 +307,11 @@ function xn(t) {
|
|
|
306
307
|
let e = St(t);
|
|
307
308
|
return e.endsWith(".0") && (e = e.slice(0, -2)), e.endsWith(".00") && (e = e.slice(0, -3)), `${e} ${n[r]}`;
|
|
308
309
|
}
|
|
309
|
-
function
|
|
310
|
+
function bn(t) {
|
|
310
311
|
const n = t.lastIndexOf(".");
|
|
311
312
|
return n === -1 ? [t, ""] : [t.substring(0, n), t.substring(n + 1)];
|
|
312
313
|
}
|
|
313
|
-
function
|
|
314
|
+
function Gn(t) {
|
|
314
315
|
return t ? t instanceof File ? [t] : t instanceof FileList ? Array.from(t) : t : [];
|
|
315
316
|
}
|
|
316
317
|
async function It(t) {
|
|
@@ -321,13 +322,13 @@ async function It(t) {
|
|
|
321
322
|
}
|
|
322
323
|
const o = n.map((E) => Math.floor(t.size * E)), s = await Promise.all(
|
|
323
324
|
o.map(async (E) => {
|
|
324
|
-
const
|
|
325
|
-
return H.computeSHA256(
|
|
325
|
+
const h = E, T = Math.min(h + r, t.size), L = t.slice(h, T), S = await L.arrayBuffer();
|
|
326
|
+
return H.computeSHA256(S);
|
|
326
327
|
})
|
|
327
328
|
), i = new TextEncoder(), a = s.join(""), l = i.encode(a);
|
|
328
329
|
return H.computeSHA256(l);
|
|
329
330
|
}
|
|
330
|
-
async function
|
|
331
|
+
async function Hn(t, n, r, e) {
|
|
331
332
|
if (n === t.name && r === t.size)
|
|
332
333
|
if (e) {
|
|
333
334
|
if (e === await It(t))
|
|
@@ -336,7 +337,7 @@ async function bn(t, n, r, e) {
|
|
|
336
337
|
return !0;
|
|
337
338
|
return !1;
|
|
338
339
|
}
|
|
339
|
-
async function
|
|
340
|
+
async function Vn(t) {
|
|
340
341
|
const n = await fetch(t, { method: "HEAD" });
|
|
341
342
|
if (!n.ok)
|
|
342
343
|
throw new Error(`HEAD request failed with status: ${String(n.status)}`);
|
|
@@ -353,31 +354,31 @@ async function Gn(t) {
|
|
|
353
354
|
}
|
|
354
355
|
return { name: new URL(t).pathname.split("/").pop() ?? "unknown", size: e };
|
|
355
356
|
}
|
|
356
|
-
const
|
|
357
|
+
const ye = {
|
|
357
358
|
to3n: St,
|
|
358
|
-
convertBytesToHigherUnit:
|
|
359
|
-
splitName:
|
|
360
|
-
ensureFileArray:
|
|
359
|
+
convertBytesToHigherUnit: Bn,
|
|
360
|
+
splitName: bn,
|
|
361
|
+
ensureFileArray: Gn,
|
|
361
362
|
chunkHash: It,
|
|
362
|
-
isSameFile:
|
|
363
|
-
getFileInfo:
|
|
363
|
+
isSameFile: Hn,
|
|
364
|
+
getFileInfo: Vn
|
|
364
365
|
};
|
|
365
|
-
function
|
|
366
|
+
function _n(t) {
|
|
366
367
|
return t * (180 / Math.PI);
|
|
367
368
|
}
|
|
368
|
-
function
|
|
369
|
+
function Mn(t) {
|
|
369
370
|
return t * (Math.PI / 180);
|
|
370
371
|
}
|
|
371
|
-
function
|
|
372
|
+
function Fn(t, n, r = 1e-6) {
|
|
372
373
|
return Math.abs(t - n) < r;
|
|
373
374
|
}
|
|
374
|
-
function
|
|
375
|
+
function Wn(t, n, r, e) {
|
|
375
376
|
return Math.sqrt((r - t) ** 2 + (e - n) ** 2);
|
|
376
377
|
}
|
|
377
|
-
function
|
|
378
|
+
function yn(t, n, r, e, o, s) {
|
|
378
379
|
return Math.sqrt((e - t) ** 2 + (o - n) ** 2 + (s - r) ** 2);
|
|
379
380
|
}
|
|
380
|
-
function
|
|
381
|
+
function kn(t, n) {
|
|
381
382
|
let r = 1 / 0, e = -1;
|
|
382
383
|
for (let o = 0; o < n.length; o++) {
|
|
383
384
|
const s = Math.abs(t - n[o]);
|
|
@@ -385,13 +386,13 @@ function Wn(t, n) {
|
|
|
385
386
|
}
|
|
386
387
|
return e;
|
|
387
388
|
}
|
|
388
|
-
const
|
|
389
|
-
toDegrees:
|
|
390
|
-
toRadians:
|
|
391
|
-
approximatelyEqual:
|
|
392
|
-
getDistance:
|
|
393
|
-
getDistance3d:
|
|
394
|
-
getNearestNumberIndex:
|
|
389
|
+
const zn = {
|
|
390
|
+
toDegrees: _n,
|
|
391
|
+
toRadians: Mn,
|
|
392
|
+
approximatelyEqual: Fn,
|
|
393
|
+
getDistance: Wn,
|
|
394
|
+
getDistance3d: yn,
|
|
395
|
+
getNearestNumberIndex: kn
|
|
395
396
|
};
|
|
396
397
|
function _(t) {
|
|
397
398
|
if (t.type.includes("touch")) {
|
|
@@ -406,27 +407,27 @@ function _(t) {
|
|
|
406
407
|
const n = t;
|
|
407
408
|
return [n.clientX, n.clientY];
|
|
408
409
|
}
|
|
409
|
-
function
|
|
410
|
+
function Xn(t, n) {
|
|
410
411
|
const [r, e] = _(t), [o, s] = _(n);
|
|
411
|
-
return
|
|
412
|
+
return zn.getDistance(r, e, o, s);
|
|
412
413
|
}
|
|
413
|
-
function
|
|
414
|
+
function Yn(t) {
|
|
414
415
|
t.preventDefault();
|
|
415
416
|
}
|
|
416
|
-
function
|
|
417
|
+
function jn(t) {
|
|
417
418
|
t.stopPropagation();
|
|
418
419
|
}
|
|
419
|
-
function
|
|
420
|
+
function Kn(t) {
|
|
420
421
|
t.preventDefault(), t.stopPropagation();
|
|
421
422
|
}
|
|
422
|
-
const
|
|
423
|
+
const ke = {
|
|
423
424
|
getEventPosition: _,
|
|
424
|
-
getDistanceBetweenEvents:
|
|
425
|
-
preventDefaultListener:
|
|
426
|
-
stopPropagationListener:
|
|
427
|
-
preventDefaultStopPropagationListener:
|
|
425
|
+
getDistanceBetweenEvents: Xn,
|
|
426
|
+
preventDefaultListener: Yn,
|
|
427
|
+
stopPropagationListener: jn,
|
|
428
|
+
preventDefaultStopPropagationListener: Kn
|
|
428
429
|
};
|
|
429
|
-
async function
|
|
430
|
+
async function $n(t, n = 3) {
|
|
430
431
|
let r;
|
|
431
432
|
for (let e = 0; e < n; e++)
|
|
432
433
|
try {
|
|
@@ -440,7 +441,7 @@ ${t}`);
|
|
|
440
441
|
}
|
|
441
442
|
throw r;
|
|
442
443
|
}
|
|
443
|
-
async function
|
|
444
|
+
async function Jn(t, n = 3) {
|
|
444
445
|
let r;
|
|
445
446
|
for (let e = 0; e < n; e++)
|
|
446
447
|
try {
|
|
@@ -454,38 +455,38 @@ ${t}`);
|
|
|
454
455
|
}
|
|
455
456
|
throw r;
|
|
456
457
|
}
|
|
457
|
-
const
|
|
458
|
-
fetchJsonWithRetry:
|
|
459
|
-
fetchBlobWithRetry:
|
|
458
|
+
const ze = {
|
|
459
|
+
fetchJsonWithRetry: $n,
|
|
460
|
+
fetchBlobWithRetry: Jn
|
|
460
461
|
};
|
|
461
462
|
function z(t, n) {
|
|
462
463
|
const r = 10 ** n;
|
|
463
464
|
return Math.round(t * r) / r;
|
|
464
465
|
}
|
|
465
|
-
function
|
|
466
|
+
function Qn(t) {
|
|
466
467
|
return z(t, 2);
|
|
467
468
|
}
|
|
468
|
-
function
|
|
469
|
+
function qn(t) {
|
|
469
470
|
return z(t, 3);
|
|
470
471
|
}
|
|
471
|
-
function
|
|
472
|
+
function Zn(t) {
|
|
472
473
|
return typeof t == "number" && !isNaN(t) && isFinite(t);
|
|
473
474
|
}
|
|
474
475
|
const c = {
|
|
475
476
|
roundToX: z,
|
|
476
|
-
r2:
|
|
477
|
-
r3:
|
|
478
|
-
isValidNumber:
|
|
477
|
+
r2: Qn,
|
|
478
|
+
r3: qn,
|
|
479
|
+
isValidNumber: Zn
|
|
479
480
|
};
|
|
480
|
-
function
|
|
481
|
-
return t === "space" ?
|
|
481
|
+
function pn(t) {
|
|
482
|
+
return t === "space" ? I.EDITOR : t === "m" ? I.VISITOR : I.VIEWER;
|
|
482
483
|
}
|
|
483
|
-
function
|
|
484
|
+
function vn(t) {
|
|
484
485
|
return new URLSearchParams(window.location.search).get(t) ?? void 0;
|
|
485
486
|
}
|
|
486
|
-
const
|
|
487
|
-
getPageTypeBySpaceText:
|
|
488
|
-
getSearchParams:
|
|
487
|
+
const Xe = {
|
|
488
|
+
getPageTypeBySpaceText: pn,
|
|
489
|
+
getSearchParams: vn
|
|
489
490
|
};
|
|
490
491
|
function Ct(t) {
|
|
491
492
|
const n = [];
|
|
@@ -498,14 +499,14 @@ function Ct(t) {
|
|
|
498
499
|
function dt(t) {
|
|
499
500
|
return t.join(".");
|
|
500
501
|
}
|
|
501
|
-
function
|
|
502
|
+
function A(t) {
|
|
502
503
|
return typeof t == "string" ? Ct(t) : t;
|
|
503
504
|
}
|
|
504
|
-
function
|
|
505
|
+
function te(t) {
|
|
505
506
|
return typeof t != "string" ? dt(t) : t;
|
|
506
507
|
}
|
|
507
|
-
function
|
|
508
|
-
const r =
|
|
508
|
+
function re(t, n) {
|
|
509
|
+
const r = A(n);
|
|
509
510
|
let e = t;
|
|
510
511
|
for (const o of r) {
|
|
511
512
|
if (e == null)
|
|
@@ -514,35 +515,55 @@ function vn(t, n) {
|
|
|
514
515
|
}
|
|
515
516
|
return e;
|
|
516
517
|
}
|
|
517
|
-
function
|
|
518
|
-
const e =
|
|
518
|
+
function ne(t, n, r) {
|
|
519
|
+
const e = A(n);
|
|
519
520
|
let o = t;
|
|
520
521
|
for (let s = 0; s < e.length - 1; s++)
|
|
521
522
|
o = o[e[s]];
|
|
522
523
|
o[e[e.length - 1]] = r;
|
|
523
524
|
}
|
|
524
|
-
function
|
|
525
|
-
const r =
|
|
525
|
+
function Pt(t, n) {
|
|
526
|
+
const r = A(t), e = A(n), o = r.length > e.length ? e.length : r.length;
|
|
526
527
|
for (let s = 0; s < o; s++)
|
|
527
528
|
if (r[s] != e[s])
|
|
528
529
|
return !1;
|
|
529
530
|
return !0;
|
|
530
531
|
}
|
|
531
|
-
|
|
532
|
+
function ee(t, n) {
|
|
533
|
+
const r = A(t);
|
|
534
|
+
return n.some((e) => Pt(r, e));
|
|
535
|
+
}
|
|
536
|
+
function Ut(t, n) {
|
|
537
|
+
const r = A(t), e = A(n);
|
|
538
|
+
if (r.length !== e.length)
|
|
539
|
+
return !1;
|
|
540
|
+
for (let o = 0; o < r.length; o++)
|
|
541
|
+
if (r[o] !== e[o])
|
|
542
|
+
return !1;
|
|
543
|
+
return !0;
|
|
544
|
+
}
|
|
545
|
+
function oe(t, n) {
|
|
546
|
+
const r = A(t);
|
|
547
|
+
return n.some((e) => Ut(r, e));
|
|
548
|
+
}
|
|
549
|
+
const Ye = {
|
|
532
550
|
makeRvPath: Ct,
|
|
533
551
|
makeRvPathString: dt,
|
|
534
|
-
ensureRvPath:
|
|
535
|
-
ensureRvPathString:
|
|
536
|
-
getByRvPath:
|
|
537
|
-
setByRvPath:
|
|
538
|
-
|
|
552
|
+
ensureRvPath: A,
|
|
553
|
+
ensureRvPathString: te,
|
|
554
|
+
getByRvPath: re,
|
|
555
|
+
setByRvPath: ne,
|
|
556
|
+
checkRvPathSame: Ut,
|
|
557
|
+
checkAnyRvPathSame: oe,
|
|
558
|
+
checkRvPathOverlay: Pt,
|
|
559
|
+
checkAnyRvPathOverlay: ee
|
|
539
560
|
};
|
|
540
|
-
function
|
|
561
|
+
function je(t) {
|
|
541
562
|
return new Promise((n) => {
|
|
542
563
|
setTimeout(n, t);
|
|
543
564
|
});
|
|
544
565
|
}
|
|
545
|
-
function
|
|
566
|
+
function Ke(t, n) {
|
|
546
567
|
if (n === 0)
|
|
547
568
|
return t;
|
|
548
569
|
let r, e = 0, o, s = null;
|
|
@@ -550,17 +571,17 @@ function Xe(t, n) {
|
|
|
550
571
|
e = Date.now(), r && t.apply(o, r);
|
|
551
572
|
}
|
|
552
573
|
return function(...l) {
|
|
553
|
-
const E = Date.now(),
|
|
574
|
+
const E = Date.now(), h = E - e;
|
|
554
575
|
if (r = l, o = this, e === 0) {
|
|
555
576
|
setTimeout(i, 1);
|
|
556
577
|
return;
|
|
557
578
|
}
|
|
558
|
-
s && (clearTimeout(s), s = null),
|
|
579
|
+
s && (clearTimeout(s), s = null), h < n ? s = setTimeout(() => {
|
|
559
580
|
i(), s = null;
|
|
560
|
-
}, n -
|
|
581
|
+
}, n - h) : i();
|
|
561
582
|
};
|
|
562
583
|
}
|
|
563
|
-
function
|
|
584
|
+
function ue(t) {
|
|
564
585
|
const n = Math.floor(t / 3600), r = Math.floor(t % 3600 / 60), e = Math.floor(t % 60);
|
|
565
586
|
return [
|
|
566
587
|
n > 0 ? String(n).padStart(2, "0") : null,
|
|
@@ -568,52 +589,52 @@ function ne(t) {
|
|
|
568
589
|
String(e).padStart(2, "0")
|
|
569
590
|
].filter(Boolean).join(":");
|
|
570
591
|
}
|
|
571
|
-
function
|
|
592
|
+
function se(t = /* @__PURE__ */ new Date()) {
|
|
572
593
|
const n = t.getFullYear().toString(), r = (t.getMonth() + 1).toString().padStart(2, "0"), e = t.getDate().toString().padStart(2, "0"), o = t.getHours().toString().padStart(2, "0"), s = t.getMinutes().toString().padStart(2, "0"), i = t.getSeconds().toString().padStart(2, "0"), a = t.getMilliseconds().toString().padStart(3, "0");
|
|
573
594
|
return n + r + e + o + s + i + a;
|
|
574
595
|
}
|
|
575
|
-
function
|
|
596
|
+
function ie(t, n) {
|
|
576
597
|
const r = n - t, e = Math.floor(r / 1e3), o = Math.floor(e / 3600), s = Math.floor(e % 3600 / 60), i = e % 60;
|
|
577
598
|
return `${o > 0 ? `${o.toString().padStart(2, "0")}:` : ""}${s.toString().padStart(2, "0")}:${i.toString().padStart(2, "0")}`;
|
|
578
599
|
}
|
|
579
|
-
const
|
|
580
|
-
convertTimeText:
|
|
581
|
-
formatDateTo17Digits:
|
|
582
|
-
formatDuration:
|
|
600
|
+
const $e = {
|
|
601
|
+
convertTimeText: ue,
|
|
602
|
+
formatDateTo17Digits: se,
|
|
603
|
+
formatDuration: ie
|
|
583
604
|
};
|
|
584
|
-
function
|
|
605
|
+
function ce(t) {
|
|
585
606
|
const n = new RegExp(`(^|&)${t}=([^&]*)(&|$)`, "i"), r = window.location.search.substring(1).match(n);
|
|
586
607
|
return r != null ? decodeURIComponent(r[2]) : "";
|
|
587
608
|
}
|
|
588
|
-
function
|
|
609
|
+
function fe(t) {
|
|
589
610
|
const n = new RegExp(`(^|&)${t}=([^&]*)(&|$)`, "i"), r = window.location.hash.substring(1).match(n);
|
|
590
611
|
return r != null ? decodeURIComponent(r[2]) : "";
|
|
591
612
|
}
|
|
592
|
-
function
|
|
613
|
+
function ae(t) {
|
|
593
614
|
return new RegExp(
|
|
594
615
|
"^(?!mailto:)(?:(?:http|https|ftp)://|//)(?:\\S+(?::\\S*)?@)?(?:(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[0-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(?:(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)(?:\\.(?:[a-z\\u00a1-\\uffff0-9]+-?)*[a-z\\u00a1-\\uffff0-9]+)*(?:\\.(?:[a-z\\u00a1-\\uffff]{2,})))|localhost)(?:\\d{2,5})?(?:(/|\\?|#)[^\\s]*)?$",
|
|
595
616
|
"i"
|
|
596
617
|
).test(t);
|
|
597
618
|
}
|
|
598
|
-
async function
|
|
619
|
+
async function Ee() {
|
|
599
620
|
const t = window.location.href;
|
|
600
|
-
return
|
|
621
|
+
return mt(t);
|
|
601
622
|
}
|
|
602
|
-
async function
|
|
623
|
+
async function le(t) {
|
|
603
624
|
try {
|
|
604
625
|
return await navigator.clipboard.writeText(t), !0;
|
|
605
626
|
} catch {
|
|
606
627
|
return !1;
|
|
607
628
|
}
|
|
608
629
|
}
|
|
609
|
-
async function
|
|
630
|
+
async function mt(t) {
|
|
610
631
|
try {
|
|
611
632
|
return await navigator.clipboard.writeText(t), !0;
|
|
612
633
|
} catch {
|
|
613
634
|
return !1;
|
|
614
635
|
}
|
|
615
636
|
}
|
|
616
|
-
function
|
|
637
|
+
function he(t, n = !0) {
|
|
617
638
|
try {
|
|
618
639
|
const o = new URL(t).pathname.split("/").pop() ?? "";
|
|
619
640
|
return !n && o.includes(".") ? o.substring(0, o.lastIndexOf(".")) : o;
|
|
@@ -621,26 +642,26 @@ function ae(t, n = !0) {
|
|
|
621
642
|
return "";
|
|
622
643
|
}
|
|
623
644
|
}
|
|
624
|
-
const
|
|
625
|
-
getParam:
|
|
626
|
-
getHashParam:
|
|
627
|
-
check:
|
|
628
|
-
copyCurrentUrlToClipboard:
|
|
629
|
-
copyText:
|
|
630
|
-
trySetClipboard:
|
|
631
|
-
extractFilenameFromUrl:
|
|
645
|
+
const Je = {
|
|
646
|
+
getParam: ce,
|
|
647
|
+
getHashParam: fe,
|
|
648
|
+
check: ae,
|
|
649
|
+
copyCurrentUrlToClipboard: Ee,
|
|
650
|
+
copyText: le,
|
|
651
|
+
trySetClipboard: mt,
|
|
652
|
+
extractFilenameFromUrl: he
|
|
632
653
|
};
|
|
633
|
-
function
|
|
654
|
+
function Ae(t, n = -1, r = [0, 0]) {
|
|
634
655
|
return t ? n === -1 ? [t.x, t.y] : [c.roundToX(t.x, n), c.roundToX(t.y, n)] : r;
|
|
635
656
|
}
|
|
636
|
-
function
|
|
657
|
+
function Oe(t, n = -1, r = [0, 0, 0]) {
|
|
637
658
|
return t ? n === -1 ? [t.x, t.y, t.z] : [
|
|
638
659
|
c.roundToX(t.x, n),
|
|
639
660
|
c.roundToX(t.y, n),
|
|
640
661
|
c.roundToX(t.z, n)
|
|
641
662
|
] : r;
|
|
642
663
|
}
|
|
643
|
-
function
|
|
664
|
+
function De(t, n = -1, r = [0, 0, 0, 0]) {
|
|
644
665
|
return t ? n === -1 ? [t.x, t.y, t.z, t.w] : [
|
|
645
666
|
c.roundToX(t.x, n),
|
|
646
667
|
c.roundToX(t.y, n),
|
|
@@ -648,160 +669,160 @@ function Ae(t, n = -1, r = [0, 0, 0, 0]) {
|
|
|
648
669
|
c.roundToX(t.w, n)
|
|
649
670
|
] : r;
|
|
650
671
|
}
|
|
651
|
-
function
|
|
672
|
+
function Re(t, n) {
|
|
652
673
|
return { x: n.x * t, y: n.y * t, z: n.z * t };
|
|
653
674
|
}
|
|
654
675
|
function wt(t) {
|
|
655
676
|
return { x: t.x * 180 / Math.PI, y: t.y * 180 / Math.PI, z: t.z * 180 / Math.PI };
|
|
656
677
|
}
|
|
657
|
-
function
|
|
678
|
+
function Ne(t) {
|
|
658
679
|
return { x: t.x * Math.PI / 180, y: t.y * Math.PI / 180, z: t.z * Math.PI / 180 };
|
|
659
680
|
}
|
|
660
|
-
function
|
|
681
|
+
function Te(t) {
|
|
661
682
|
return M.RotationYawPitchRoll(t.y, t.x, t.z);
|
|
662
683
|
}
|
|
663
|
-
function
|
|
684
|
+
function Le(t) {
|
|
664
685
|
return M.RotationYawPitchRoll(
|
|
665
686
|
t.y * Math.PI / 180,
|
|
666
687
|
t.x * Math.PI / 180,
|
|
667
688
|
t.z * Math.PI / 180
|
|
668
689
|
);
|
|
669
690
|
}
|
|
670
|
-
function
|
|
671
|
-
return new
|
|
691
|
+
function Se(t) {
|
|
692
|
+
return new nr(t.x, t.y, t.z);
|
|
672
693
|
}
|
|
673
|
-
function
|
|
694
|
+
function Ie(t) {
|
|
674
695
|
return { x: t.x, y: t.y, z: t.z };
|
|
675
696
|
}
|
|
676
|
-
function
|
|
697
|
+
function Ce(t, n = 0) {
|
|
677
698
|
return {
|
|
678
699
|
x: c.roundToX(t.x, n),
|
|
679
700
|
y: c.roundToX(t.y, n),
|
|
680
701
|
z: c.roundToX(t.z, n)
|
|
681
702
|
};
|
|
682
703
|
}
|
|
683
|
-
function
|
|
704
|
+
function de(t) {
|
|
684
705
|
return isFinite(t.x) && isFinite(t.y) && isFinite(t.z);
|
|
685
706
|
}
|
|
686
|
-
function
|
|
707
|
+
function Pe(t) {
|
|
687
708
|
return t.x !== 0 && t.y !== 0 && t.z !== 0;
|
|
688
709
|
}
|
|
689
|
-
function
|
|
710
|
+
function Ue(t, n) {
|
|
690
711
|
return { x: n.x * t, y: n.y * t, z: n.z * t, w: n.w * t };
|
|
691
712
|
}
|
|
692
713
|
function X(t) {
|
|
693
714
|
return new M(t.x, t.y, t.z, t.w);
|
|
694
715
|
}
|
|
695
|
-
function
|
|
716
|
+
function me(t) {
|
|
696
717
|
return X(t).toEulerAngles();
|
|
697
718
|
}
|
|
698
|
-
function
|
|
719
|
+
function we(t) {
|
|
699
720
|
const n = X(t);
|
|
700
721
|
return wt(n.toEulerAngles());
|
|
701
722
|
}
|
|
702
|
-
function
|
|
723
|
+
function gt(t) {
|
|
703
724
|
return "w" in t;
|
|
704
725
|
}
|
|
705
|
-
function
|
|
706
|
-
return
|
|
726
|
+
function ge(t) {
|
|
727
|
+
return gt(t) ? [t.x, t.y, t.z, t.w] : [t.x, t.y, t.z];
|
|
707
728
|
}
|
|
708
|
-
function
|
|
729
|
+
function xe(t) {
|
|
709
730
|
return { x: t.x, y: t.y, z: t.z, w: t.w };
|
|
710
731
|
}
|
|
711
|
-
function
|
|
712
|
-
return
|
|
732
|
+
function Be(t, n = 0) {
|
|
733
|
+
return gt(t) ? [
|
|
713
734
|
c.roundToX(t.x, n),
|
|
714
735
|
c.roundToX(t.y, n),
|
|
715
736
|
c.roundToX(t.z, n),
|
|
716
737
|
c.roundToX(t.w, n)
|
|
717
738
|
] : [c.roundToX(t.x, n), c.roundToX(t.y, n), c.roundToX(t.z, n)];
|
|
718
739
|
}
|
|
719
|
-
const
|
|
720
|
-
xyToArray:
|
|
721
|
-
xyzToArray:
|
|
722
|
-
xyzwToArray:
|
|
723
|
-
scaleV3:
|
|
740
|
+
const Qe = {
|
|
741
|
+
xyToArray: Ae,
|
|
742
|
+
xyzToArray: Oe,
|
|
743
|
+
xyzwToArray: De,
|
|
744
|
+
scaleV3: Re,
|
|
724
745
|
radiansToDegrees: wt,
|
|
725
|
-
degreeToRadians:
|
|
726
|
-
radiansToQuaternion:
|
|
727
|
-
degreesToQuaternion:
|
|
728
|
-
toVector3:
|
|
729
|
-
fromVector3:
|
|
730
|
-
withRound:
|
|
731
|
-
isFiniteVector:
|
|
732
|
-
noZero:
|
|
733
|
-
scaleV4:
|
|
746
|
+
degreeToRadians: Ne,
|
|
747
|
+
radiansToQuaternion: Te,
|
|
748
|
+
degreesToQuaternion: Le,
|
|
749
|
+
toVector3: Se,
|
|
750
|
+
fromVector3: Ie,
|
|
751
|
+
withRound: Ce,
|
|
752
|
+
isFiniteVector: de,
|
|
753
|
+
noZero: Pe,
|
|
754
|
+
scaleV4: Ue,
|
|
734
755
|
toQuaternionVector: X,
|
|
735
|
-
toEulerRadians:
|
|
736
|
-
toEulerDegrees:
|
|
737
|
-
toArray:
|
|
738
|
-
fromQuaternion:
|
|
739
|
-
toArrayWithRound4:
|
|
756
|
+
toEulerRadians: me,
|
|
757
|
+
toEulerDegrees: we,
|
|
758
|
+
toArray: ge,
|
|
759
|
+
fromQuaternion: xe,
|
|
760
|
+
toArrayWithRound4: Be
|
|
740
761
|
};
|
|
741
762
|
export {
|
|
742
|
-
|
|
743
|
-
|
|
763
|
+
Me as AcceptMime,
|
|
764
|
+
Dn as AttributeType,
|
|
744
765
|
K as ContextMenu,
|
|
745
766
|
H as CryptoUtils,
|
|
746
|
-
|
|
767
|
+
We as DataUtils,
|
|
747
768
|
Q as Dialog,
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
769
|
+
Ar as DialogContentAlign,
|
|
770
|
+
He as DomNotFoundError,
|
|
771
|
+
In as EnableLevel,
|
|
772
|
+
ye as FileUtils,
|
|
773
|
+
hr as FirstLoadModelServiceEventType,
|
|
774
|
+
lr as FirstLoadModelServiceStatus,
|
|
775
|
+
Dr as FirstLoadServiceEventType,
|
|
776
|
+
Or as FirstLoadServiceStatus,
|
|
777
|
+
ln as FocusMode,
|
|
778
|
+
Rn as HistoryServiceEventType,
|
|
779
|
+
cr as IconPluginPosition,
|
|
780
|
+
_e as LabelInfo,
|
|
760
781
|
j as LabelTheme,
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
782
|
+
rn as LocalDataServiceEventType,
|
|
783
|
+
nn as LocalDataStatus,
|
|
784
|
+
en as LocalDataType,
|
|
785
|
+
sn as Locale,
|
|
786
|
+
zn as MathUtils,
|
|
787
|
+
cn as MeetingStatus,
|
|
767
788
|
$ as MenuLine,
|
|
768
789
|
V as MenuLineType,
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
790
|
+
Fe as Message,
|
|
791
|
+
ke as NativeEventUtils,
|
|
792
|
+
ze as NetworkUtils,
|
|
793
|
+
ir as NotFoundError,
|
|
773
794
|
c as NumberUtils,
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
795
|
+
on as OssUploadInstanceStatus,
|
|
796
|
+
un as OssUploadServiceEventType,
|
|
797
|
+
En as PageMode,
|
|
798
|
+
I as PageType,
|
|
799
|
+
Xe as PageUtils,
|
|
800
|
+
an as PluginEventType,
|
|
801
|
+
fr as PluginType,
|
|
802
|
+
ar as RsModelServiceEventType,
|
|
803
|
+
Er as RsModelStatus,
|
|
804
|
+
dn as RvAttachType,
|
|
805
|
+
Ln as RvBasicType,
|
|
806
|
+
Nn as RvFileServiceEventType,
|
|
807
|
+
Tn as RvFileType,
|
|
808
|
+
sr as RvMaterialType,
|
|
809
|
+
Sn as RvModelOrigin,
|
|
810
|
+
Un as RvPresetType,
|
|
811
|
+
mn as RvResourceServiceEventType,
|
|
812
|
+
Pn as RvResourceType,
|
|
813
|
+
Ye as RvUtils,
|
|
814
|
+
hn as ScreenSize,
|
|
815
|
+
fn as ShareMode,
|
|
816
|
+
Ve as StaticClassInstantiationError,
|
|
796
817
|
wn as TChangeType,
|
|
797
|
-
|
|
818
|
+
An as ThemeBackground,
|
|
798
819
|
J as ThemeColor,
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
820
|
+
On as ThemeShape,
|
|
821
|
+
$e as TimeUtils,
|
|
822
|
+
ur as TransparencyMode,
|
|
823
|
+
Je as UrlUtils,
|
|
824
|
+
Qe as VectorUtils,
|
|
825
|
+
Cn as VersionPoint,
|
|
826
|
+
je as sleep,
|
|
827
|
+
Ke as throttle
|
|
807
828
|
};
|