@thatopen/components 2.3.11 → 2.3.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/core/Components/index.d.ts +1 -1
- package/dist/index.cjs +9 -9
- package/dist/index.mjs +309 -285
- package/dist/namespace.d.ts +2456 -2454
- package/dist/openbim/IDSSpecifications/src/facets/Property.d.ts +2 -0
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -2,7 +2,7 @@ var Ao = Object.defineProperty;
|
|
|
2
2
|
var Fo = (c, i, t) => i in c ? Ao(c, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[i] = t;
|
|
3
3
|
var C = (c, i, t) => (Fo(c, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
4
|
import * as D from "three";
|
|
5
|
-
import { BufferAttribute as Zr, Vector3 as Q, Vector2 as ai, Plane as Dn, Line3 as Ee, Triangle as ii, Sphere as So, Matrix4 as pe, Box3 as ae, BackSide as Oo, DoubleSide as jr, FrontSide as Xn, Mesh as rt, Ray as No, Raycaster as yo, Quaternion as de, Object3D as In, Euler as Lo, MeshBasicMaterial as qr, LineBasicMaterial as
|
|
5
|
+
import { BufferAttribute as Zr, Vector3 as Q, Vector2 as ai, Plane as Dn, Line3 as Ee, Triangle as ii, Sphere as So, Matrix4 as pe, Box3 as ae, BackSide as Oo, DoubleSide as jr, FrontSide as Xn, Mesh as rt, Ray as No, Raycaster as yo, Quaternion as de, Object3D as In, Euler as Lo, MeshBasicMaterial as qr, LineBasicMaterial as Po, CylinderGeometry as Vt, BoxGeometry as Ut, BufferGeometry as $n, Float32BufferAttribute as Zn, OctahedronGeometry as Gi, Line as Ae, SphereGeometry as _o, TorusGeometry as Ii, PlaneGeometry as wo } from "three";
|
|
6
6
|
import * as Qt from "@thatopen/fragments";
|
|
7
7
|
import { FragmentsGroup as Mo, Serializer as Do } from "@thatopen/fragments";
|
|
8
8
|
import * as z from "web-ifc";
|
|
@@ -739,10 +739,10 @@ class ea extends vn {
|
|
|
739
739
|
}
|
|
740
740
|
}
|
|
741
741
|
const $t = /* @__PURE__ */ new ea();
|
|
742
|
-
function
|
|
742
|
+
function zt(c, i) {
|
|
743
743
|
return i[c + 15] === 65535;
|
|
744
744
|
}
|
|
745
|
-
function
|
|
745
|
+
function kt(c, i) {
|
|
746
746
|
return i[c + 6];
|
|
747
747
|
}
|
|
748
748
|
function Zt(c, i) {
|
|
@@ -770,44 +770,44 @@ class ia {
|
|
|
770
770
|
}
|
|
771
771
|
}
|
|
772
772
|
const Ft = new ia();
|
|
773
|
-
let
|
|
773
|
+
let Pe, si;
|
|
774
774
|
const ze = [], Wi = /* @__PURE__ */ new vn(() => new ae());
|
|
775
775
|
function sa(c, i, t, e, s, n) {
|
|
776
|
-
|
|
776
|
+
Pe = Wi.getPrimitive(), si = Wi.getPrimitive(), ze.push(Pe, si), Ft.setBuffer(c._roots[i]);
|
|
777
777
|
const r = dn(0, c.geometry, t, e, s, n);
|
|
778
|
-
Ft.clearBuffer(), Wi.releasePrimitive(
|
|
778
|
+
Ft.clearBuffer(), Wi.releasePrimitive(Pe), Wi.releasePrimitive(si), ze.pop(), ze.pop();
|
|
779
779
|
const o = ze.length;
|
|
780
|
-
return o > 0 && (si = ze[o - 1],
|
|
780
|
+
return o > 0 && (si = ze[o - 1], Pe = ze[o - 2]), r;
|
|
781
781
|
}
|
|
782
782
|
function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
783
783
|
const { float32Array: o, uint16Array: a, uint32Array: l } = Ft;
|
|
784
784
|
let h = c * 2;
|
|
785
|
-
if (
|
|
786
|
-
const I =
|
|
787
|
-
return Nt(c, o,
|
|
785
|
+
if (zt(h, a)) {
|
|
786
|
+
const I = kt(c, l), u = Zt(h, a);
|
|
787
|
+
return Nt(c, o, Pe), e(I, u, !1, r, n + c, Pe);
|
|
788
788
|
} else {
|
|
789
789
|
let b = function(N) {
|
|
790
790
|
const { uint16Array: M, uint32Array: g } = Ft;
|
|
791
791
|
let v = N * 2;
|
|
792
|
-
for (; !
|
|
792
|
+
for (; !zt(v, M); )
|
|
793
793
|
N = jt(N), v = N * 2;
|
|
794
|
-
return
|
|
794
|
+
return kt(N, g);
|
|
795
795
|
}, Y = function(N) {
|
|
796
796
|
const { uint16Array: M, uint32Array: g } = Ft;
|
|
797
797
|
let v = N * 2;
|
|
798
|
-
for (; !
|
|
798
|
+
for (; !zt(v, M); )
|
|
799
799
|
N = qt(N, g), v = N * 2;
|
|
800
|
-
return
|
|
800
|
+
return kt(N, g) + Zt(v, M);
|
|
801
801
|
};
|
|
802
802
|
const I = jt(c), u = qt(c, l);
|
|
803
803
|
let d = I, E = u, T, p, m, F;
|
|
804
|
-
if (s && (m =
|
|
804
|
+
if (s && (m = Pe, F = si, Nt(d, o, m), Nt(E, o, F), T = s(m), p = s(F), p < T)) {
|
|
805
805
|
d = u, E = I;
|
|
806
806
|
const N = T;
|
|
807
807
|
T = p, p = N, m = F;
|
|
808
808
|
}
|
|
809
|
-
m || (m =
|
|
810
|
-
const R =
|
|
809
|
+
m || (m = Pe, Nt(d, o, m));
|
|
810
|
+
const R = zt(d * 2, a), S = t(m, R, T, r + 1, n + d);
|
|
811
811
|
let O;
|
|
812
812
|
if (S === jn) {
|
|
813
813
|
const N = b(d), g = Y(d) - N;
|
|
@@ -825,7 +825,7 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
825
825
|
if (O)
|
|
826
826
|
return !0;
|
|
827
827
|
F = si, Nt(E, o, F);
|
|
828
|
-
const y =
|
|
828
|
+
const y = zt(E * 2, a), w = t(F, y, p, r + 1, n + E);
|
|
829
829
|
let L;
|
|
830
830
|
if (w === jn) {
|
|
831
831
|
const N = b(E), g = Y(E) - N;
|
|
@@ -994,8 +994,8 @@ function da(c, i, t, e, s) {
|
|
|
994
994
|
}
|
|
995
995
|
function En(c, i, t, e, s) {
|
|
996
996
|
const { float32Array: n, uint16Array: r, uint32Array: o } = Ft, a = c * 2;
|
|
997
|
-
if (
|
|
998
|
-
const h =
|
|
997
|
+
if (zt(a, r)) {
|
|
998
|
+
const h = kt(c, o), f = Zt(a, r);
|
|
999
999
|
aa(i, t, e, h, f, s);
|
|
1000
1000
|
} else {
|
|
1001
1001
|
const h = jt(c);
|
|
@@ -1013,8 +1013,8 @@ function pa(c, i, t, e) {
|
|
|
1013
1013
|
function pn(c, i, t, e) {
|
|
1014
1014
|
const { float32Array: s, uint16Array: n, uint32Array: r } = Ft;
|
|
1015
1015
|
let o = c * 2;
|
|
1016
|
-
if (
|
|
1017
|
-
const l =
|
|
1016
|
+
if (zt(o, n)) {
|
|
1017
|
+
const l = kt(c, r), h = Zt(o, n);
|
|
1018
1018
|
return ca(i, t, e, l, h);
|
|
1019
1019
|
} else {
|
|
1020
1020
|
const l = to(c, r), h = Ea[l], I = e.direction[h] >= 0;
|
|
@@ -1042,8 +1042,8 @@ function Ca(c, i, t, e) {
|
|
|
1042
1042
|
function Cn(c, i, t, e, s = null) {
|
|
1043
1043
|
const { float32Array: n, uint16Array: r, uint32Array: o } = Ft;
|
|
1044
1044
|
let a = c * 2;
|
|
1045
|
-
if (s === null && (t.boundingBox || t.computeBoundingBox(), or.set(t.boundingBox.min, t.boundingBox.max, e), s = or),
|
|
1046
|
-
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E =
|
|
1045
|
+
if (s === null && (t.boundingBox || t.computeBoundingBox(), or.set(t.boundingBox.min, t.boundingBox.max, e), s = or), zt(a, r)) {
|
|
1046
|
+
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = kt(c, o), T = Zt(a, r);
|
|
1047
1047
|
if (pi.copy(e).invert(), t.boundsTree)
|
|
1048
1048
|
return Nt(c, n, Qi), Qi.matrix.copy(pi), Qi.needsUpdate = !0, t.boundsTree.shapecast({
|
|
1049
1049
|
intersectsBounds: (m) => Qi.intersectsBox(m),
|
|
@@ -1157,8 +1157,8 @@ function Sa(c, i, t, e, s) {
|
|
|
1157
1157
|
}
|
|
1158
1158
|
function Tn(c, i, t, e, s) {
|
|
1159
1159
|
const { float32Array: n, uint16Array: r, uint32Array: o } = Ft, a = c * 2;
|
|
1160
|
-
if (
|
|
1161
|
-
const h =
|
|
1160
|
+
if (zt(a, r)) {
|
|
1161
|
+
const h = kt(c, o), f = Zt(a, r);
|
|
1162
1162
|
ua(i, t, e, h, f, s);
|
|
1163
1163
|
} else {
|
|
1164
1164
|
const h = jt(c);
|
|
@@ -1176,8 +1176,8 @@ function Na(c, i, t, e) {
|
|
|
1176
1176
|
function mn(c, i, t, e) {
|
|
1177
1177
|
const { float32Array: s, uint16Array: n, uint32Array: r } = Ft;
|
|
1178
1178
|
let o = c * 2;
|
|
1179
|
-
if (
|
|
1180
|
-
const l =
|
|
1179
|
+
if (zt(o, n)) {
|
|
1180
|
+
const l = kt(c, r), h = Zt(o, n);
|
|
1181
1181
|
return fa(i, t, e, l, h);
|
|
1182
1182
|
} else {
|
|
1183
1183
|
const l = to(c, r), h = Oa[l], I = e.direction[h] >= 0;
|
|
@@ -1205,8 +1205,8 @@ function ya(c, i, t, e) {
|
|
|
1205
1205
|
function Rn(c, i, t, e, s = null) {
|
|
1206
1206
|
const { float32Array: n, uint16Array: r, uint32Array: o } = Ft;
|
|
1207
1207
|
let a = c * 2;
|
|
1208
|
-
if (s === null && (t.boundingBox || t.computeBoundingBox(), lr.set(t.boundingBox.min, t.boundingBox.max, e), s = lr),
|
|
1209
|
-
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E =
|
|
1208
|
+
if (s === null && (t.boundingBox || t.computeBoundingBox(), lr.set(t.boundingBox.min, t.boundingBox.max, e), s = lr), zt(a, r)) {
|
|
1209
|
+
const h = i.geometry, f = h.index, I = h.attributes.position, u = t.index, d = t.attributes.position, E = kt(c, o), T = Zt(a, r);
|
|
1210
1210
|
if (Ti.copy(e).invert(), t.boundsTree)
|
|
1211
1211
|
return Nt(c, n, ts), ts.matrix.copy(Ti), ts.needsUpdate = !0, t.boundsTree.shapecast({
|
|
1212
1212
|
intersectsBounds: (m) => ts.intersectsBox(m),
|
|
@@ -1230,12 +1230,12 @@ function Rn(c, i, t, e, s = null) {
|
|
|
1230
1230
|
return Nt(h, n, Ji), !!(s.intersectsBox(Ji) && Rn(h, i, t, e, s) || (Nt(f, n, Ji), s.intersectsBox(Ji) && Rn(f, i, t, e, s)));
|
|
1231
1231
|
}
|
|
1232
1232
|
}
|
|
1233
|
-
const es = /* @__PURE__ */ new pe(), Qs = /* @__PURE__ */ new Bt(), mi = /* @__PURE__ */ new Bt(), La = /* @__PURE__ */ new Q(),
|
|
1233
|
+
const es = /* @__PURE__ */ new pe(), Qs = /* @__PURE__ */ new Bt(), mi = /* @__PURE__ */ new Bt(), La = /* @__PURE__ */ new Q(), Pa = /* @__PURE__ */ new Q(), _a = /* @__PURE__ */ new Q(), wa = /* @__PURE__ */ new Q();
|
|
1234
1234
|
function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
1235
1235
|
i.boundingBox || i.computeBoundingBox(), Qs.set(i.boundingBox.min, i.boundingBox.max, t), Qs.needsUpdate = !0;
|
|
1236
1236
|
const o = c.geometry, a = o.attributes.position, l = o.index, h = i.attributes.position, f = i.index, I = $t.getPrimitive(), u = $t.getPrimitive();
|
|
1237
|
-
let d = La, E =
|
|
1238
|
-
s && (T =
|
|
1237
|
+
let d = La, E = Pa, T = null, p = null;
|
|
1238
|
+
s && (T = _a, p = wa);
|
|
1239
1239
|
let m = 1 / 0, F = null, R = null;
|
|
1240
1240
|
return es.copy(t).invert(), mi.matrix.copy(es), c.shapecast(
|
|
1241
1241
|
{
|
|
@@ -1315,22 +1315,22 @@ function ba(c, i, t, e) {
|
|
|
1315
1315
|
function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
1316
1316
|
let f, I;
|
|
1317
1317
|
h ? (f = ps, I = wi) : (f = wi, I = ps);
|
|
1318
|
-
const u = f.float32Array, d = f.uint32Array, E = f.uint16Array, T = I.float32Array, p = I.uint32Array, m = I.uint16Array, F = c * 2, R = i * 2, S =
|
|
1318
|
+
const u = f.float32Array, d = f.uint32Array, E = f.uint16Array, T = I.float32Array, p = I.uint32Array, m = I.uint16Array, F = c * 2, R = i * 2, S = zt(F, E), O = zt(R, m);
|
|
1319
1319
|
let y = !1;
|
|
1320
1320
|
if (O && S)
|
|
1321
1321
|
h ? y = s(
|
|
1322
|
-
|
|
1322
|
+
kt(i, p),
|
|
1323
1323
|
Zt(i * 2, m),
|
|
1324
|
-
|
|
1324
|
+
kt(c, d),
|
|
1325
1325
|
Zt(c * 2, E),
|
|
1326
1326
|
a,
|
|
1327
1327
|
r + i,
|
|
1328
1328
|
o,
|
|
1329
1329
|
n + c
|
|
1330
1330
|
) : y = s(
|
|
1331
|
-
|
|
1331
|
+
kt(c, d),
|
|
1332
1332
|
Zt(c * 2, E),
|
|
1333
|
-
|
|
1333
|
+
kt(i, p),
|
|
1334
1334
|
Zt(i * 2, m),
|
|
1335
1335
|
o,
|
|
1336
1336
|
n + c,
|
|
@@ -1765,7 +1765,7 @@ class j {
|
|
|
1765
1765
|
this.handlers.length = 0;
|
|
1766
1766
|
}
|
|
1767
1767
|
}
|
|
1768
|
-
class
|
|
1768
|
+
class _e {
|
|
1769
1769
|
constructor() {
|
|
1770
1770
|
/** Triggers all the callbacks assigned to this event. */
|
|
1771
1771
|
C(this, "trigger", async (i) => {
|
|
@@ -2542,8 +2542,8 @@ function qa(c) {
|
|
|
2542
2542
|
while (Ct !== ft.edge);
|
|
2543
2543
|
const Ht = n.length - 2;
|
|
2544
2544
|
for (let Dt = 1, A = Ht; Dt <= A; Dt++) {
|
|
2545
|
-
const X = n[0].vertex, k = n[Dt + 0].vertex,
|
|
2546
|
-
r.push(X.point.x, X.point.y, X.point.z), r.push(k.point.x, k.point.y, k.point.z), r.push(
|
|
2545
|
+
const X = n[0].vertex, k = n[Dt + 0].vertex, _ = n[Dt + 1].vertex;
|
|
2546
|
+
r.push(X.point.x, X.point.y, X.point.z), r.push(k.point.x, k.point.y, k.point.z), r.push(_.point.x, _.point.y, _.point.z);
|
|
2547
2547
|
}
|
|
2548
2548
|
}
|
|
2549
2549
|
const o = new D.Vector3(), a = new D.Vector3(), l = new D.Vector3(), h = new D.Vector3(), f = new D.Vector3(), I = new D.Vector3(), u = new D.Vector3(), d = new D.Vector3();
|
|
@@ -2590,15 +2590,15 @@ class pr {
|
|
|
2590
2590
|
return i.transparent && i.opacity < 1;
|
|
2591
2591
|
}
|
|
2592
2592
|
}
|
|
2593
|
-
const
|
|
2593
|
+
const Pt = class Pt {
|
|
2594
2594
|
// Copied from three.js source
|
|
2595
2595
|
// Original source: http://stackoverflow.com/questions/105034/how-to-create-a-guid-uuid-in-javascript/21963136#21963136
|
|
2596
2596
|
static create() {
|
|
2597
2597
|
const i = Math.random() * 4294967295 | 0, t = Math.random() * 4294967295 | 0, e = Math.random() * 4294967295 | 0, s = Math.random() * 4294967295 | 0;
|
|
2598
|
-
return `${
|
|
2598
|
+
return `${Pt._lut[i & 255] + Pt._lut[i >> 8 & 255] + Pt._lut[i >> 16 & 255] + Pt._lut[i >> 24 & 255]}-${Pt._lut[t & 255]}${Pt._lut[t >> 8 & 255]}-${Pt._lut[t >> 16 & 15 | 64]}${Pt._lut[t >> 24 & 255]}-${Pt._lut[e & 63 | 128]}${Pt._lut[e >> 8 & 255]}-${Pt._lut[e >> 16 & 255]}${Pt._lut[e >> 24 & 255]}${Pt._lut[s & 255]}${Pt._lut[s >> 8 & 255]}${Pt._lut[s >> 16 & 255]}${Pt._lut[s >> 24 & 255]}`.toLowerCase();
|
|
2599
2599
|
}
|
|
2600
2600
|
static validate(i) {
|
|
2601
|
-
if (!
|
|
2601
|
+
if (!Pt._pattern.test(i))
|
|
2602
2602
|
throw new Error(
|
|
2603
2603
|
`${i} is not a valid UUID v4.
|
|
2604
2604
|
|
|
@@ -2608,8 +2608,8 @@ const _t = class _t {
|
|
|
2608
2608
|
);
|
|
2609
2609
|
}
|
|
2610
2610
|
};
|
|
2611
|
-
C(
|
|
2612
|
-
C(
|
|
2611
|
+
C(Pt, "_pattern", /^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-4[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}$/), // prettier-ignore
|
|
2612
|
+
C(Pt, "_lut", [
|
|
2613
2613
|
"00",
|
|
2614
2614
|
"01",
|
|
2615
2615
|
"02",
|
|
@@ -2867,7 +2867,7 @@ C(_t, "_lut", [
|
|
|
2867
2867
|
"fe",
|
|
2868
2868
|
"ff"
|
|
2869
2869
|
]);
|
|
2870
|
-
let oe =
|
|
2870
|
+
let oe = Pt;
|
|
2871
2871
|
class Th extends At {
|
|
2872
2872
|
constructor(t, e) {
|
|
2873
2873
|
super(t);
|
|
@@ -3137,7 +3137,7 @@ const Fs = class Fs {
|
|
|
3137
3137
|
/**
|
|
3138
3138
|
* The version of the @thatopen/components library.
|
|
3139
3139
|
*/
|
|
3140
|
-
C(Fs, "release", "2.3.
|
|
3140
|
+
C(Fs, "release", "2.3.13");
|
|
3141
3141
|
let Cs = Fs;
|
|
3142
3142
|
class Qa extends xn {
|
|
3143
3143
|
constructor() {
|
|
@@ -5296,7 +5296,7 @@ class lc {
|
|
|
5296
5296
|
* meshes that are currently visible, and the ones that were visible
|
|
5297
5297
|
* just before but not anymore.
|
|
5298
5298
|
*/
|
|
5299
|
-
C(this, "onViewUpdated", new
|
|
5299
|
+
C(this, "onViewUpdated", new _e());
|
|
5300
5300
|
/**
|
|
5301
5301
|
* Whether this renderer is active or not. If not, it won't render anything.
|
|
5302
5302
|
*/
|
|
@@ -6438,7 +6438,7 @@ const xe = new yo(), bt = new Q(), Se = new Q(), Ot = new de(), Nr = {
|
|
|
6438
6438
|
X: new Q(1, 0, 0),
|
|
6439
6439
|
Y: new Q(0, 1, 0),
|
|
6440
6440
|
Z: new Q(0, 0, 1)
|
|
6441
|
-
}, un = { type: "change" }, yr = { type: "mouseDown" }, Lr = { type: "mouseUp", mode: null },
|
|
6441
|
+
}, un = { type: "change" }, yr = { type: "mouseDown" }, Lr = { type: "mouseUp", mode: null }, Pr = { type: "objectChange" };
|
|
6442
6442
|
class pc extends In {
|
|
6443
6443
|
constructor(i, t) {
|
|
6444
6444
|
super(), t === void 0 && (console.warn('THREE.TransformControls: The second parameter "domElement" is now mandatory.'), t = document), this.isTransformControls = !0, this.visible = !1, this.domElement = t, this.domElement.style.touchAction = "none";
|
|
@@ -6503,7 +6503,7 @@ class pc extends In {
|
|
|
6503
6503
|
let a = !1;
|
|
6504
6504
|
t === "XYZE" ? (this.rotationAxis.copy(this._offset).cross(this.eye).normalize(), this.rotationAngle = this._offset.dot(bt.copy(this.rotationAxis).cross(this.eye)) * o) : (t === "X" || t === "Y" || t === "Z") && (this.rotationAxis.copy(Nr[t]), bt.copy(Nr[t]), n === "local" && bt.applyQuaternion(this.worldQuaternion), bt.cross(this.eye), bt.length() === 0 ? a = !0 : this.rotationAngle = this._offset.dot(bt.normalize()) * o), (t === "E" || a) && (this.rotationAxis.copy(this.eye), this.rotationAngle = this.pointEnd.angleTo(this.pointStart), this._startNorm.copy(this.pointStart).normalize(), this._endNorm.copy(this.pointEnd).normalize(), this.rotationAngle *= this._endNorm.cross(this._startNorm).dot(this.eye) < 0 ? 1 : -1), this.rotationSnap && (this.rotationAngle = Math.round(this.rotationAngle / this.rotationSnap) * this.rotationSnap), n === "local" && t !== "E" && t !== "XYZE" ? (s.quaternion.copy(this._quaternionStart), s.quaternion.multiply(Ot.setFromAxisAngle(this.rotationAxis, this.rotationAngle)).normalize()) : (this.rotationAxis.applyQuaternion(this._parentQuaternionInv), s.quaternion.copy(Ot.setFromAxisAngle(this.rotationAxis, this.rotationAngle)), s.quaternion.multiply(this._quaternionStart).normalize());
|
|
6505
6505
|
}
|
|
6506
|
-
this.dispatchEvent(un), this.dispatchEvent(
|
|
6506
|
+
this.dispatchEvent(un), this.dispatchEvent(Pr);
|
|
6507
6507
|
}
|
|
6508
6508
|
}
|
|
6509
6509
|
pointerUp(i) {
|
|
@@ -6523,7 +6523,7 @@ class pc extends In {
|
|
|
6523
6523
|
return this.object = void 0, this.visible = !1, this.axis = null, this;
|
|
6524
6524
|
}
|
|
6525
6525
|
reset() {
|
|
6526
|
-
this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(un), this.dispatchEvent(
|
|
6526
|
+
this.enabled && this.dragging && (this.object.position.copy(this._positionStart), this.object.quaternion.copy(this._quaternionStart), this.object.scale.copy(this._scaleStart), this.dispatchEvent(un), this.dispatchEvent(Pr), this.pointStart.copy(this.pointEnd));
|
|
6527
6527
|
}
|
|
6528
6528
|
getRaycaster() {
|
|
6529
6529
|
return xe;
|
|
@@ -6592,7 +6592,7 @@ function fn(c, i, t) {
|
|
|
6592
6592
|
return e[s];
|
|
6593
6593
|
return !1;
|
|
6594
6594
|
}
|
|
6595
|
-
const cs = new Lo(), mt = new Q(0, 1, 0),
|
|
6595
|
+
const cs = new Lo(), mt = new Q(0, 1, 0), _r = new Q(0, 0, 0), wr = new pe(), ls = new de(), Es = new de(), ue = new Q(), Mr = new pe(), Pi = new Q(1, 0, 0), Be = new Q(0, 1, 0), _i = new Q(0, 0, 1), hs = new Q(), Oi = new Q(), Ni = new Q();
|
|
6596
6596
|
class Ac extends In {
|
|
6597
6597
|
constructor() {
|
|
6598
6598
|
super(), this.isTransformControlsGizmo = !0, this.type = "TransformControlsGizmo";
|
|
@@ -6602,7 +6602,7 @@ class Ac extends In {
|
|
|
6602
6602
|
fog: !1,
|
|
6603
6603
|
toneMapped: !1,
|
|
6604
6604
|
transparent: !0
|
|
6605
|
-
}), t = new
|
|
6605
|
+
}), t = new Po({
|
|
6606
6606
|
depthTest: !1,
|
|
6607
6607
|
depthWrite: !1,
|
|
6608
6608
|
fog: !1,
|
|
@@ -6740,7 +6740,7 @@ class Ac extends In {
|
|
|
6740
6740
|
]
|
|
6741
6741
|
}, b = {
|
|
6742
6742
|
XYZE: [
|
|
6743
|
-
[new rt(new
|
|
6743
|
+
[new rt(new _o(0.25, 10, 8), e)]
|
|
6744
6744
|
],
|
|
6745
6745
|
X: [
|
|
6746
6746
|
[new rt(new Ii(0.5, 0.1, 4, 24), e), [0, 0, 0], [0, -Math.PI / 2, -Math.PI / 2]]
|
|
@@ -6842,10 +6842,10 @@ class Ac extends In {
|
|
|
6842
6842
|
r.visible = !0, r.rotation.set(0, 0, 0), r.position.copy(this.worldPosition);
|
|
6843
6843
|
let o;
|
|
6844
6844
|
if (this.camera.isOrthographicCamera ? o = (this.camera.top - this.camera.bottom) / this.camera.zoom : o = this.worldPosition.distanceTo(this.cameraPosition) * Math.min(1.9 * Math.tan(Math.PI * this.camera.fov / 360) / this.camera.zoom, 7), r.scale.set(1, 1, 1).multiplyScalar(o * this.size / 4), r.tag === "helper") {
|
|
6845
|
-
r.visible = !1, r.name === "AXIS" ? (r.visible = !!this.axis, this.axis === "X" && (Ot.setFromEuler(cs.set(0, 0, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(
|
|
6845
|
+
r.visible = !1, r.name === "AXIS" ? (r.visible = !!this.axis, this.axis === "X" && (Ot.setFromEuler(cs.set(0, 0, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Y" && (Ot.setFromEuler(cs.set(0, 0, Math.PI / 2)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "Z" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), r.quaternion.copy(e).multiply(Ot), Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.9 && (r.visible = !1)), this.axis === "XYZE" && (Ot.setFromEuler(cs.set(0, Math.PI / 2, 0)), mt.copy(this.rotationAxis), r.quaternion.setFromRotationMatrix(wr.lookAt(_r, mt, Be)), r.quaternion.multiply(Ot), r.visible = this.dragging), this.axis === "E" && (r.visible = !1)) : r.name === "START" ? (r.position.copy(this.worldPositionStart), r.visible = this.dragging) : r.name === "END" ? (r.position.copy(this.worldPosition), r.visible = this.dragging) : r.name === "DELTA" ? (r.position.copy(this.worldPositionStart), r.quaternion.copy(this.worldQuaternionStart), bt.set(1e-10, 1e-10, 1e-10).add(this.worldPositionStart).sub(this.worldPosition).multiplyScalar(-1), bt.applyQuaternion(this.worldQuaternionStart.clone().invert()), r.scale.copy(bt), r.visible = this.dragging) : (r.quaternion.copy(e), this.dragging ? r.position.copy(this.worldPositionStart) : r.position.copy(this.worldPosition), this.axis && (r.visible = this.axis.search(r.name) !== -1));
|
|
6846
6846
|
continue;
|
|
6847
6847
|
}
|
|
6848
|
-
r.quaternion.copy(e), this.mode === "translate" || this.mode === "scale" ? (r.name === "X" && Math.abs(mt.copy(
|
|
6848
|
+
r.quaternion.copy(e), this.mode === "translate" || this.mode === "scale" ? (r.name === "X" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Y" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "Z" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) > 0.99 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XY" && Math.abs(mt.copy(_i).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "YZ" && Math.abs(mt.copy(Pi).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1), r.name === "XZ" && Math.abs(mt.copy(Be).applyQuaternion(e).dot(this.eye)) < 0.2 && (r.scale.set(1e-10, 1e-10, 1e-10), r.visible = !1)) : this.mode === "rotate" && (ls.copy(e), mt.copy(this.eye).applyQuaternion(Ot.copy(e).invert()), r.name.search("E") !== -1 && r.quaternion.setFromRotationMatrix(wr.lookAt(this.eye, _r, Be)), r.name === "X" && (Ot.setFromAxisAngle(Pi, Math.atan2(-mt.y, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Y" && (Ot.setFromAxisAngle(Be, Math.atan2(mt.x, mt.z)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot)), r.name === "Z" && (Ot.setFromAxisAngle(_i, Math.atan2(mt.y, mt.x)), Ot.multiplyQuaternions(ls, Ot), r.quaternion.copy(Ot))), r.visible = r.visible && (r.name.indexOf("X") === -1 || this.showX), r.visible = r.visible && (r.name.indexOf("Y") === -1 || this.showY), r.visible = r.visible && (r.name.indexOf("Z") === -1 || this.showZ), r.visible = r.visible && (r.name.indexOf("E") === -1 || this.showX && this.showY && this.showZ), r.material._color = r.material._color || r.material.color.clone(), r.material._opacity = r.material._opacity || r.material.opacity, r.material.color.copy(r.material._color), r.material.opacity = r.material._opacity, this.enabled && this.axis && (r.name === this.axis || this.axis.split("").some(function(a) {
|
|
6849
6849
|
return r.name === a;
|
|
6850
6850
|
})) && (r.material.color.setHex(16776960), r.material.opacity = 1);
|
|
6851
6851
|
}
|
|
@@ -6861,7 +6861,7 @@ class Fc extends rt {
|
|
|
6861
6861
|
}
|
|
6862
6862
|
updateMatrixWorld(i) {
|
|
6863
6863
|
let t = this.space;
|
|
6864
|
-
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), hs.copy(
|
|
6864
|
+
switch (this.position.copy(this.worldPosition), this.mode === "scale" && (t = "local"), hs.copy(Pi).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Oi.copy(Be).applyQuaternion(t === "local" ? this.worldQuaternion : Es), Ni.copy(_i).applyQuaternion(t === "local" ? this.worldQuaternion : Es), mt.copy(Oi), this.mode) {
|
|
6865
6865
|
case "translate":
|
|
6866
6866
|
case "scale":
|
|
6867
6867
|
switch (this.axis) {
|
|
@@ -6959,9 +6959,11 @@ class Vn {
|
|
|
6959
6959
|
* @param {boolean} state - The new enabled state.
|
|
6960
6960
|
*/
|
|
6961
6961
|
set enabled(i) {
|
|
6962
|
-
if (!this.world.
|
|
6963
|
-
|
|
6964
|
-
|
|
6962
|
+
if (!this.world.isDisposing) {
|
|
6963
|
+
if (!this.world.renderer)
|
|
6964
|
+
throw new Error("No renderer found for clipping plane!");
|
|
6965
|
+
this._enabled = i, this.world.renderer.setPlane(i, this.three);
|
|
6966
|
+
}
|
|
6965
6967
|
}
|
|
6966
6968
|
/** {@link Hideable.visible } */
|
|
6967
6969
|
get visible() {
|
|
@@ -7529,7 +7531,7 @@ class Lc {
|
|
|
7529
7531
|
i.position.copy(t.position), i.quaternion.copy(t.quaternion), this._component.controls.mouseButtons.wheel = vt.ACTION.DOLLY, this.matchOrthoDistanceEnabled ? this._component.controls.distance = this.getDistance() : this._component.controls.distance = this._previousDistance, await this._component.controls.zoomTo(1), i.updateProjectionMatrix(), this._component.controls.camera = i, this.camera = i, this.current = "Perspective";
|
|
7530
7532
|
}
|
|
7531
7533
|
}
|
|
7532
|
-
class
|
|
7534
|
+
class Pc extends xi {
|
|
7533
7535
|
constructor(t) {
|
|
7534
7536
|
super(t);
|
|
7535
7537
|
/**
|
|
@@ -7750,7 +7752,7 @@ const Dr = /* @__PURE__ */ new Map([
|
|
|
7750
7752
|
forRelating: "DocumentRefForObjects"
|
|
7751
7753
|
}
|
|
7752
7754
|
]
|
|
7753
|
-
]),
|
|
7755
|
+
]), _c = {
|
|
7754
7756
|
103090709: "IFCPROJECT",
|
|
7755
7757
|
4097777520: "IFCSITE",
|
|
7756
7758
|
4031249490: "IFCBUILDING",
|
|
@@ -7891,7 +7893,7 @@ const Dr = /* @__PURE__ */ new Map([
|
|
|
7891
7893
|
};
|
|
7892
7894
|
class gh {
|
|
7893
7895
|
getAll(i, t) {
|
|
7894
|
-
const e = {}, s = Object.keys(
|
|
7896
|
+
const e = {}, s = Object.keys(_c).map((n) => parseInt(n, 10));
|
|
7895
7897
|
for (let n = 0; n < s.length; n++) {
|
|
7896
7898
|
const r = s[n], o = i.GetLineIDsWithType(t, r), a = o.size();
|
|
7897
7899
|
for (let l = 0; l < a; l++)
|
|
@@ -11290,7 +11292,7 @@ const Dc = {
|
|
|
11290
11292
|
* @deprecated Use indexer.addEntitiesRelation instead. This will be removed in future releases.
|
|
11291
11293
|
*/
|
|
11292
11294
|
addElementToPset(t, e, ...s) {
|
|
11293
|
-
this.components.get(
|
|
11295
|
+
this.components.get(Gt).addEntitiesRelation(
|
|
11294
11296
|
t,
|
|
11295
11297
|
e,
|
|
11296
11298
|
{ type: z.IFCRELDEFINESBYPROPERTIES, inv: "IsDefinedBy" },
|
|
@@ -11363,7 +11365,7 @@ const Dc = {
|
|
|
11363
11365
|
*/
|
|
11364
11366
|
async saveToIfc(t, e) {
|
|
11365
11367
|
const s = this.components.get(Nn), n = s.webIfc, r = await s.readIfcFile(e);
|
|
11366
|
-
await this.components.get(
|
|
11368
|
+
await this.components.get(Gt).applyRelationChanges();
|
|
11367
11369
|
const a = this.changeMap[t.uuid] ?? [];
|
|
11368
11370
|
for (const h of a) {
|
|
11369
11371
|
const f = await t.getProperties(h);
|
|
@@ -11957,8 +11959,8 @@ const vi = class vi extends At {
|
|
|
11957
11959
|
* This UUID is used to register the component within the Components system.
|
|
11958
11960
|
*/
|
|
11959
11961
|
C(vi, "uuid", "23a889ab-83b3-44a4-8bee-ead83438370b");
|
|
11960
|
-
let
|
|
11961
|
-
const
|
|
11962
|
+
let Gt = vi;
|
|
11963
|
+
const Ps = class Ps extends At {
|
|
11962
11964
|
constructor(t) {
|
|
11963
11965
|
super(t);
|
|
11964
11966
|
/** {@link Disposable.onDisposed} */
|
|
@@ -11986,7 +11988,7 @@ const _s = class _s extends At {
|
|
|
11986
11988
|
/** {@link Component.enabled} */
|
|
11987
11989
|
C(this, "enabled", !0);
|
|
11988
11990
|
C(this, "_loader", new Do());
|
|
11989
|
-
this.components.add(
|
|
11991
|
+
this.components.add(Ps.uuid, this);
|
|
11990
11992
|
}
|
|
11991
11993
|
/**
|
|
11992
11994
|
* Getter for the meshes of all fragments in the FragmentsManager.
|
|
@@ -12035,7 +12037,7 @@ const _s = class _s extends At {
|
|
|
12035
12037
|
e && (h.isStreamed = e.isStreamed || !1), o && (h.name = o);
|
|
12036
12038
|
for (const f of h.items)
|
|
12037
12039
|
f.group = h, this.list.set(f.id, f);
|
|
12038
|
-
return r && this.coordinate([h]), this.groups.set(h.uuid, h), a && h.setLocalProperties(a), l && this.components.get(
|
|
12040
|
+
return r && this.coordinate([h]), this.groups.set(h.uuid, h), a && h.setLocalProperties(a), l && this.components.get(Gt).setRelationMap(h, l), this.onFragmentsLoaded.trigger(h), h;
|
|
12039
12041
|
}
|
|
12040
12042
|
/**
|
|
12041
12043
|
* Export the specified fragmentsgroup to binary data.
|
|
@@ -12182,8 +12184,8 @@ const _s = class _s extends At {
|
|
|
12182
12184
|
* A unique identifier for the component.
|
|
12183
12185
|
* This UUID is used to register the component within the Components system.
|
|
12184
12186
|
*/
|
|
12185
|
-
C(
|
|
12186
|
-
let Tt =
|
|
12187
|
+
C(Ps, "uuid", "fef46874-46a3-461b-8c44-2922ab77c806");
|
|
12188
|
+
let Tt = Ps;
|
|
12187
12189
|
var us = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
12188
12190
|
function vc(c) {
|
|
12189
12191
|
return c && c.__esModule && Object.prototype.hasOwnProperty.call(c, "default") ? c.default : c;
|
|
@@ -13730,42 +13732,42 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13730
13732
|
A.pending_buf[A.pending++] = X >>> 8 & 255, A.pending_buf[A.pending++] = 255 & X;
|
|
13731
13733
|
}
|
|
13732
13734
|
function tt(A, X) {
|
|
13733
|
-
var k,
|
|
13734
|
-
A.prev_length >= A.good_match && (
|
|
13735
|
+
var k, _, P = A.max_chain_length, U = A.strstart, $ = A.prev_length, Z = A.nice_match, B = A.strstart > A.w_size - Y ? A.strstart - (A.w_size - Y) : 0, K = A.window, st = A.w_mask, J = A.prev, ct = A.strstart + b, Rt = K[U + $ - 1], dt = K[U + $];
|
|
13736
|
+
A.prev_length >= A.good_match && (P >>= 2), Z > A.lookahead && (Z = A.lookahead);
|
|
13735
13737
|
do
|
|
13736
13738
|
if (K[(k = X) + $] === dt && K[k + $ - 1] === Rt && K[k] === K[U] && K[++k] === K[U + 1]) {
|
|
13737
13739
|
U += 2, k++;
|
|
13738
13740
|
do
|
|
13739
13741
|
;
|
|
13740
13742
|
while (K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && K[++U] === K[++k] && U < ct);
|
|
13741
|
-
if (
|
|
13742
|
-
if (A.match_start = X, Z <= ($ =
|
|
13743
|
+
if (_ = b - (ct - U), U = ct - b, $ < _) {
|
|
13744
|
+
if (A.match_start = X, Z <= ($ = _))
|
|
13743
13745
|
break;
|
|
13744
13746
|
Rt = K[U + $ - 1], dt = K[U + $];
|
|
13745
13747
|
}
|
|
13746
13748
|
}
|
|
13747
|
-
while ((X = J[X & st]) > B && --
|
|
13749
|
+
while ((X = J[X & st]) > B && --P != 0);
|
|
13748
13750
|
return $ <= A.lookahead ? $ : A.lookahead;
|
|
13749
13751
|
}
|
|
13750
13752
|
function St(A) {
|
|
13751
|
-
var X, k,
|
|
13753
|
+
var X, k, _, P, U, $, Z, B, K, st, J = A.w_size;
|
|
13752
13754
|
do {
|
|
13753
|
-
if (
|
|
13754
|
-
for (r.arraySet(A.window, A.window, J, J, 0), A.match_start -= J, A.strstart -= J, A.block_start -= J, X = k = A.hash_size;
|
|
13755
|
+
if (P = A.window_size - A.lookahead - A.strstart, A.strstart >= J + (J - Y)) {
|
|
13756
|
+
for (r.arraySet(A.window, A.window, J, J, 0), A.match_start -= J, A.strstart -= J, A.block_start -= J, X = k = A.hash_size; _ = A.head[--X], A.head[X] = J <= _ ? _ - J : 0, --k; )
|
|
13755
13757
|
;
|
|
13756
|
-
for (X = k = J;
|
|
13758
|
+
for (X = k = J; _ = A.prev[--X], A.prev[X] = J <= _ ? _ - J : 0, --k; )
|
|
13757
13759
|
;
|
|
13758
|
-
|
|
13760
|
+
P += J;
|
|
13759
13761
|
}
|
|
13760
13762
|
if (A.strm.avail_in === 0)
|
|
13761
13763
|
break;
|
|
13762
|
-
if ($ = A.strm, Z = A.window, B = A.strstart + A.lookahead, K =
|
|
13764
|
+
if ($ = A.strm, Z = A.window, B = A.strstart + A.lookahead, K = P, st = void 0, st = $.avail_in, K < st && (st = K), k = st === 0 ? 0 : ($.avail_in -= st, r.arraySet(Z, $.input, $.next_in, st, B), $.state.wrap === 1 ? $.adler = a($.adler, Z, st, B) : $.state.wrap === 2 && ($.adler = l($.adler, Z, st, B)), $.next_in += st, $.total_in += st, st), A.lookahead += k, A.lookahead + A.insert >= L)
|
|
13763
13765
|
for (U = A.strstart - A.insert, A.ins_h = A.window[U], A.ins_h = (A.ins_h << A.hash_shift ^ A.window[U + 1]) & A.hash_mask; A.insert && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[U + L - 1]) & A.hash_mask, A.prev[U & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = U, U++, A.insert--, !(A.lookahead + A.insert < L)); )
|
|
13764
13766
|
;
|
|
13765
13767
|
} while (A.lookahead < Y && A.strm.avail_in !== 0);
|
|
13766
13768
|
}
|
|
13767
13769
|
function yt(A, X) {
|
|
13768
|
-
for (var k,
|
|
13770
|
+
for (var k, _; ; ) {
|
|
13769
13771
|
if (A.lookahead < Y) {
|
|
13770
13772
|
if (St(A), A.lookahead < Y && X === f)
|
|
13771
13773
|
return g;
|
|
@@ -13773,21 +13775,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13773
13775
|
break;
|
|
13774
13776
|
}
|
|
13775
13777
|
if (k = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), k !== 0 && A.strstart - k <= A.w_size - Y && (A.match_length = tt(A, k)), A.match_length >= L)
|
|
13776
|
-
if (
|
|
13778
|
+
if (_ = o._tr_tally(A, A.strstart - A.match_start, A.match_length - L), A.lookahead -= A.match_length, A.match_length <= A.max_lazy_match && A.lookahead >= L) {
|
|
13777
13779
|
for (A.match_length--; A.strstart++, A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart, --A.match_length != 0; )
|
|
13778
13780
|
;
|
|
13779
13781
|
A.strstart++;
|
|
13780
13782
|
} else
|
|
13781
13783
|
A.strstart += A.match_length, A.match_length = 0, A.ins_h = A.window[A.strstart], A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + 1]) & A.hash_mask;
|
|
13782
13784
|
else
|
|
13783
|
-
|
|
13784
|
-
if (
|
|
13785
|
+
_ = o._tr_tally(A, 0, A.window[A.strstart]), A.lookahead--, A.strstart++;
|
|
13786
|
+
if (_ && (x(A, !1), A.strm.avail_out === 0))
|
|
13785
13787
|
return g;
|
|
13786
13788
|
}
|
|
13787
13789
|
return A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
|
|
13788
13790
|
}
|
|
13789
13791
|
function at(A, X) {
|
|
13790
|
-
for (var k,
|
|
13792
|
+
for (var k, _, P; ; ) {
|
|
13791
13793
|
if (A.lookahead < Y) {
|
|
13792
13794
|
if (St(A), A.lookahead < Y && X === f)
|
|
13793
13795
|
return g;
|
|
@@ -13795,20 +13797,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13795
13797
|
break;
|
|
13796
13798
|
}
|
|
13797
13799
|
if (k = 0, A.lookahead >= L && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), A.prev_length = A.match_length, A.prev_match = A.match_start, A.match_length = L - 1, k !== 0 && A.prev_length < A.max_lazy_match && A.strstart - k <= A.w_size - Y && (A.match_length = tt(A, k), A.match_length <= 5 && (A.strategy === 1 || A.match_length === L && 4096 < A.strstart - A.match_start) && (A.match_length = L - 1)), A.prev_length >= L && A.match_length <= A.prev_length) {
|
|
13798
|
-
for (
|
|
13800
|
+
for (P = A.strstart + A.lookahead - L, _ = o._tr_tally(A, A.strstart - 1 - A.prev_match, A.prev_length - L), A.lookahead -= A.prev_length - 1, A.prev_length -= 2; ++A.strstart <= P && (A.ins_h = (A.ins_h << A.hash_shift ^ A.window[A.strstart + L - 1]) & A.hash_mask, k = A.prev[A.strstart & A.w_mask] = A.head[A.ins_h], A.head[A.ins_h] = A.strstart), --A.prev_length != 0; )
|
|
13799
13801
|
;
|
|
13800
|
-
if (A.match_available = 0, A.match_length = L - 1, A.strstart++,
|
|
13802
|
+
if (A.match_available = 0, A.match_length = L - 1, A.strstart++, _ && (x(A, !1), A.strm.avail_out === 0))
|
|
13801
13803
|
return g;
|
|
13802
13804
|
} else if (A.match_available) {
|
|
13803
|
-
if ((
|
|
13805
|
+
if ((_ = o._tr_tally(A, 0, A.window[A.strstart - 1])) && x(A, !1), A.strstart++, A.lookahead--, A.strm.avail_out === 0)
|
|
13804
13806
|
return g;
|
|
13805
13807
|
} else
|
|
13806
13808
|
A.match_available = 1, A.strstart++, A.lookahead--;
|
|
13807
13809
|
}
|
|
13808
|
-
return A.match_available && (
|
|
13810
|
+
return A.match_available && (_ = o._tr_tally(A, 0, A.window[A.strstart - 1]), A.match_available = 0), A.insert = A.strstart < L - 1 ? A.strstart : L - 1, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : A.last_lit && (x(A, !1), A.strm.avail_out === 0) ? g : v;
|
|
13809
13811
|
}
|
|
13810
|
-
function It(A, X, k,
|
|
13811
|
-
this.good_length = A, this.max_lazy = X, this.nice_length = k, this.max_chain =
|
|
13812
|
+
function It(A, X, k, _, P) {
|
|
13813
|
+
this.good_length = A, this.max_lazy = X, this.nice_length = k, this.max_chain = _, this.func = P;
|
|
13812
13814
|
}
|
|
13813
13815
|
function ft() {
|
|
13814
13816
|
this.strm = null, this.status = 0, this.pending_buf = null, this.pending_buf_size = 0, this.pending_out = 0, this.pending = 0, this.wrap = 0, this.gzhead = null, this.gzindex = 0, this.method = m, this.last_flush = -1, this.w_size = 0, this.w_bits = 0, this.w_mask = 0, this.window = null, this.window_size = 0, this.prev = null, this.head = null, this.ins_h = 0, this.hash_size = 0, this.hash_bits = 0, this.hash_mask = 0, this.hash_shift = 0, this.block_start = 0, this.match_length = 0, this.prev_match = 0, this.match_available = 0, this.strstart = 0, this.match_start = 0, this.lookahead = 0, this.prev_length = 0, this.max_chain_length = 0, this.max_lazy_match = 0, this.level = 0, this.strategy = 0, this.good_match = 0, this.nice_match = 0, this.dyn_ltree = new r.Buf16(2 * y), this.dyn_dtree = new r.Buf16(2 * (2 * S + 1)), this.bl_tree = new r.Buf16(2 * (2 * O + 1)), nt(this.dyn_ltree), nt(this.dyn_dtree), nt(this.bl_tree), this.l_desc = null, this.d_desc = null, this.bl_desc = null, this.bl_count = new r.Buf16(w + 1), this.heap = new r.Buf16(2 * R + 1), nt(this.heap), this.heap_len = 0, this.heap_max = 0, this.depth = new r.Buf16(2 * R + 1), nt(this.depth), this.l_buf = 0, this.lit_bufsize = 0, this.last_lit = 0, this.d_buf = 0, this.opt_len = 0, this.static_len = 0, this.matches = 0, this.insert = 0, this.bi_buf = 0, this.bi_valid = 0;
|
|
@@ -13823,15 +13825,15 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13823
13825
|
k.window_size = 2 * k.w_size, nt(k.head), k.max_lazy_match = n[k.level].max_lazy, k.good_match = n[k.level].good_length, k.nice_match = n[k.level].nice_length, k.max_chain_length = n[k.level].max_chain, k.strstart = 0, k.block_start = 0, k.lookahead = 0, k.insert = 0, k.match_length = k.prev_length = L - 1, k.match_available = 0, k.ins_h = 0;
|
|
13824
13826
|
}(A.state), X;
|
|
13825
13827
|
}
|
|
13826
|
-
function Dt(A, X, k,
|
|
13828
|
+
function Dt(A, X, k, _, P, U) {
|
|
13827
13829
|
if (!A)
|
|
13828
13830
|
return d;
|
|
13829
13831
|
var $ = 1;
|
|
13830
|
-
if (X === E && (X = 6),
|
|
13832
|
+
if (X === E && (X = 6), _ < 0 ? ($ = 0, _ = -_) : 15 < _ && ($ = 2, _ -= 16), P < 1 || F < P || k !== m || _ < 8 || 15 < _ || X < 0 || 9 < X || U < 0 || T < U)
|
|
13831
13833
|
return et(A, d);
|
|
13832
|
-
|
|
13834
|
+
_ === 8 && (_ = 9);
|
|
13833
13835
|
var Z = new ft();
|
|
13834
|
-
return (A.state = Z).strm = A, Z.wrap = $, Z.gzhead = null, Z.w_bits =
|
|
13836
|
+
return (A.state = Z).strm = A, Z.wrap = $, Z.gzhead = null, Z.w_bits = _, Z.w_size = 1 << Z.w_bits, Z.w_mask = Z.w_size - 1, Z.hash_bits = P + 7, Z.hash_size = 1 << Z.hash_bits, Z.hash_mask = Z.hash_size - 1, Z.hash_shift = ~~((Z.hash_bits + L - 1) / L), Z.window = new r.Buf8(2 * Z.w_size), Z.head = new r.Buf16(Z.hash_size), Z.prev = new r.Buf16(Z.w_size), Z.lit_bufsize = 1 << P + 6, Z.pending_buf_size = 4 * Z.lit_bufsize, Z.pending_buf = new r.Buf8(Z.pending_buf_size), Z.d_buf = 1 * Z.lit_bufsize, Z.l_buf = 3 * Z.lit_bufsize, Z.level = X, Z.strategy = U, Z.method = k, Ht(A);
|
|
13835
13837
|
}
|
|
13836
13838
|
n = [new It(0, 0, 0, 0, function(A, X) {
|
|
13837
13839
|
var k = 65535;
|
|
@@ -13843,8 +13845,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13843
13845
|
break;
|
|
13844
13846
|
}
|
|
13845
13847
|
A.strstart += A.lookahead, A.lookahead = 0;
|
|
13846
|
-
var
|
|
13847
|
-
if ((A.strstart === 0 || A.strstart >=
|
|
13848
|
+
var _ = A.block_start + k;
|
|
13849
|
+
if ((A.strstart === 0 || A.strstart >= _) && (A.lookahead = A.strstart - _, A.strstart = _, x(A, !1), A.strm.avail_out === 0) || A.strstart - A.block_start >= A.w_size - Y && (x(A, !1), A.strm.avail_out === 0))
|
|
13848
13850
|
return g;
|
|
13849
13851
|
}
|
|
13850
13852
|
return A.insert = 0, X === I ? (x(A, !0), A.strm.avail_out === 0 ? q : G) : (A.strstart > A.block_start && (x(A, !1), A.strm.avail_out), g);
|
|
@@ -13853,60 +13855,60 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13853
13855
|
}, s.deflateInit2 = Dt, s.deflateReset = Ht, s.deflateResetKeep = Ct, s.deflateSetHeader = function(A, X) {
|
|
13854
13856
|
return A && A.state ? A.state.wrap !== 2 ? d : (A.state.gzhead = X, u) : d;
|
|
13855
13857
|
}, s.deflate = function(A, X) {
|
|
13856
|
-
var k,
|
|
13858
|
+
var k, _, P, U;
|
|
13857
13859
|
if (!A || !A.state || 5 < X || X < 0)
|
|
13858
13860
|
return A ? et(A, d) : d;
|
|
13859
|
-
if (
|
|
13861
|
+
if (_ = A.state, !A.output || !A.input && A.avail_in !== 0 || _.status === 666 && X !== I)
|
|
13860
13862
|
return et(A, A.avail_out === 0 ? -5 : d);
|
|
13861
|
-
if (
|
|
13862
|
-
if (
|
|
13863
|
-
A.adler = 0, ot(
|
|
13863
|
+
if (_.strm = A, k = _.last_flush, _.last_flush = X, _.status === N)
|
|
13864
|
+
if (_.wrap === 2)
|
|
13865
|
+
A.adler = 0, ot(_, 31), ot(_, 139), ot(_, 8), _.gzhead ? (ot(_, (_.gzhead.text ? 1 : 0) + (_.gzhead.hcrc ? 2 : 0) + (_.gzhead.extra ? 4 : 0) + (_.gzhead.name ? 8 : 0) + (_.gzhead.comment ? 16 : 0)), ot(_, 255 & _.gzhead.time), ot(_, _.gzhead.time >> 8 & 255), ot(_, _.gzhead.time >> 16 & 255), ot(_, _.gzhead.time >> 24 & 255), ot(_, _.level === 9 ? 2 : 2 <= _.strategy || _.level < 2 ? 4 : 0), ot(_, 255 & _.gzhead.os), _.gzhead.extra && _.gzhead.extra.length && (ot(_, 255 & _.gzhead.extra.length), ot(_, _.gzhead.extra.length >> 8 & 255)), _.gzhead.hcrc && (A.adler = l(A.adler, _.pending_buf, _.pending, 0)), _.gzindex = 0, _.status = 69) : (ot(_, 0), ot(_, 0), ot(_, 0), ot(_, 0), ot(_, 0), ot(_, _.level === 9 ? 2 : 2 <= _.strategy || _.level < 2 ? 4 : 0), ot(_, 3), _.status = M);
|
|
13864
13866
|
else {
|
|
13865
|
-
var $ = m + (
|
|
13866
|
-
$ |= (2 <=
|
|
13867
|
+
var $ = m + (_.w_bits - 8 << 4) << 8;
|
|
13868
|
+
$ |= (2 <= _.strategy || _.level < 2 ? 0 : _.level < 6 ? 1 : _.level === 6 ? 2 : 3) << 6, _.strstart !== 0 && ($ |= 32), $ += 31 - $ % 31, _.status = M, it(_, $), _.strstart !== 0 && (it(_, A.adler >>> 16), it(_, 65535 & A.adler)), A.adler = 1;
|
|
13867
13869
|
}
|
|
13868
|
-
if (
|
|
13869
|
-
if (
|
|
13870
|
-
for (
|
|
13871
|
-
ot(
|
|
13872
|
-
|
|
13870
|
+
if (_.status === 69)
|
|
13871
|
+
if (_.gzhead.extra) {
|
|
13872
|
+
for (P = _.pending; _.gzindex < (65535 & _.gzhead.extra.length) && (_.pending !== _.pending_buf_size || (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending !== _.pending_buf_size)); )
|
|
13873
|
+
ot(_, 255 & _.gzhead.extra[_.gzindex]), _.gzindex++;
|
|
13874
|
+
_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), _.gzindex === _.gzhead.extra.length && (_.gzindex = 0, _.status = 73);
|
|
13873
13875
|
} else
|
|
13874
|
-
|
|
13875
|
-
if (
|
|
13876
|
-
if (
|
|
13877
|
-
|
|
13876
|
+
_.status = 73;
|
|
13877
|
+
if (_.status === 73)
|
|
13878
|
+
if (_.gzhead.name) {
|
|
13879
|
+
P = _.pending;
|
|
13878
13880
|
do {
|
|
13879
|
-
if (
|
|
13881
|
+
if (_.pending === _.pending_buf_size && (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending === _.pending_buf_size)) {
|
|
13880
13882
|
U = 1;
|
|
13881
13883
|
break;
|
|
13882
13884
|
}
|
|
13883
|
-
U =
|
|
13885
|
+
U = _.gzindex < _.gzhead.name.length ? 255 & _.gzhead.name.charCodeAt(_.gzindex++) : 0, ot(_, U);
|
|
13884
13886
|
} while (U !== 0);
|
|
13885
|
-
|
|
13887
|
+
_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), U === 0 && (_.gzindex = 0, _.status = 91);
|
|
13886
13888
|
} else
|
|
13887
|
-
|
|
13888
|
-
if (
|
|
13889
|
-
if (
|
|
13890
|
-
|
|
13889
|
+
_.status = 91;
|
|
13890
|
+
if (_.status === 91)
|
|
13891
|
+
if (_.gzhead.comment) {
|
|
13892
|
+
P = _.pending;
|
|
13891
13893
|
do {
|
|
13892
|
-
if (
|
|
13894
|
+
if (_.pending === _.pending_buf_size && (_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), V(A), P = _.pending, _.pending === _.pending_buf_size)) {
|
|
13893
13895
|
U = 1;
|
|
13894
13896
|
break;
|
|
13895
13897
|
}
|
|
13896
|
-
U =
|
|
13898
|
+
U = _.gzindex < _.gzhead.comment.length ? 255 & _.gzhead.comment.charCodeAt(_.gzindex++) : 0, ot(_, U);
|
|
13897
13899
|
} while (U !== 0);
|
|
13898
|
-
|
|
13900
|
+
_.gzhead.hcrc && _.pending > P && (A.adler = l(A.adler, _.pending_buf, _.pending - P, P)), U === 0 && (_.status = 103);
|
|
13899
13901
|
} else
|
|
13900
|
-
|
|
13901
|
-
if (
|
|
13902
|
+
_.status = 103;
|
|
13903
|
+
if (_.status === 103 && (_.gzhead.hcrc ? (_.pending + 2 > _.pending_buf_size && V(A), _.pending + 2 <= _.pending_buf_size && (ot(_, 255 & A.adler), ot(_, A.adler >> 8 & 255), A.adler = 0, _.status = M)) : _.status = M), _.pending !== 0) {
|
|
13902
13904
|
if (V(A), A.avail_out === 0)
|
|
13903
|
-
return
|
|
13905
|
+
return _.last_flush = -1, u;
|
|
13904
13906
|
} else if (A.avail_in === 0 && W(X) <= W(k) && X !== I)
|
|
13905
13907
|
return et(A, -5);
|
|
13906
|
-
if (
|
|
13908
|
+
if (_.status === 666 && A.avail_in !== 0)
|
|
13907
13909
|
return et(A, -5);
|
|
13908
|
-
if (A.avail_in !== 0 ||
|
|
13909
|
-
var Z =
|
|
13910
|
+
if (A.avail_in !== 0 || _.lookahead !== 0 || X !== f && _.status !== 666) {
|
|
13911
|
+
var Z = _.strategy === 2 ? function(B, K) {
|
|
13910
13912
|
for (var st; ; ) {
|
|
13911
13913
|
if (B.lookahead === 0 && (St(B), B.lookahead === 0)) {
|
|
13912
13914
|
if (K === f)
|
|
@@ -13917,7 +13919,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13917
13919
|
return g;
|
|
13918
13920
|
}
|
|
13919
13921
|
return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ? q : G) : B.last_lit && (x(B, !1), B.strm.avail_out === 0) ? g : v;
|
|
13920
|
-
}(
|
|
13922
|
+
}(_, X) : _.strategy === 3 ? function(B, K) {
|
|
13921
13923
|
for (var st, J, ct, Rt, dt = B.window; ; ) {
|
|
13922
13924
|
if (B.lookahead <= b) {
|
|
13923
13925
|
if (St(B), B.lookahead <= b && K === f)
|
|
@@ -13936,24 +13938,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13936
13938
|
return g;
|
|
13937
13939
|
}
|
|
13938
13940
|
return B.insert = 0, K === I ? (x(B, !0), B.strm.avail_out === 0 ? q : G) : B.last_lit && (x(B, !1), B.strm.avail_out === 0) ? g : v;
|
|
13939
|
-
}(
|
|
13940
|
-
if (Z !== q && Z !== G || (
|
|
13941
|
-
return A.avail_out === 0 && (
|
|
13942
|
-
if (Z === v && (X === 1 ? o._tr_align(
|
|
13943
|
-
return
|
|
13941
|
+
}(_, X) : n[_.level].func(_, X);
|
|
13942
|
+
if (Z !== q && Z !== G || (_.status = 666), Z === g || Z === q)
|
|
13943
|
+
return A.avail_out === 0 && (_.last_flush = -1), u;
|
|
13944
|
+
if (Z === v && (X === 1 ? o._tr_align(_) : X !== 5 && (o._tr_stored_block(_, 0, 0, !1), X === 3 && (nt(_.head), _.lookahead === 0 && (_.strstart = 0, _.block_start = 0, _.insert = 0))), V(A), A.avail_out === 0))
|
|
13945
|
+
return _.last_flush = -1, u;
|
|
13944
13946
|
}
|
|
13945
|
-
return X !== I ? u :
|
|
13947
|
+
return X !== I ? u : _.wrap <= 0 ? 1 : (_.wrap === 2 ? (ot(_, 255 & A.adler), ot(_, A.adler >> 8 & 255), ot(_, A.adler >> 16 & 255), ot(_, A.adler >> 24 & 255), ot(_, 255 & A.total_in), ot(_, A.total_in >> 8 & 255), ot(_, A.total_in >> 16 & 255), ot(_, A.total_in >> 24 & 255)) : (it(_, A.adler >>> 16), it(_, 65535 & A.adler)), V(A), 0 < _.wrap && (_.wrap = -_.wrap), _.pending !== 0 ? u : 1);
|
|
13946
13948
|
}, s.deflateEnd = function(A) {
|
|
13947
13949
|
var X;
|
|
13948
13950
|
return A && A.state ? (X = A.state.status) !== N && X !== 69 && X !== 73 && X !== 91 && X !== 103 && X !== M && X !== 666 ? et(A, d) : (A.state = null, X === M ? et(A, -3) : u) : d;
|
|
13949
13951
|
}, s.deflateSetDictionary = function(A, X) {
|
|
13950
|
-
var k,
|
|
13952
|
+
var k, _, P, U, $, Z, B, K, st = X.length;
|
|
13951
13953
|
if (!A || !A.state || (U = (k = A.state).wrap) === 2 || U === 1 && k.status !== N || k.lookahead)
|
|
13952
13954
|
return d;
|
|
13953
13955
|
for (U === 1 && (A.adler = a(A.adler, X, st, 0)), k.wrap = 0, st >= k.w_size && (U === 0 && (nt(k.head), k.strstart = 0, k.block_start = 0, k.insert = 0), K = new r.Buf8(k.w_size), r.arraySet(K, X, st - k.w_size, k.w_size, 0), X = K, st = k.w_size), $ = A.avail_in, Z = A.next_in, B = A.input, A.avail_in = st, A.next_in = 0, A.input = X, St(k); k.lookahead >= L; ) {
|
|
13954
|
-
for (
|
|
13956
|
+
for (_ = k.strstart, P = k.lookahead - (L - 1); k.ins_h = (k.ins_h << k.hash_shift ^ k.window[_ + L - 1]) & k.hash_mask, k.prev[_ & k.w_mask] = k.head[k.ins_h], k.head[k.ins_h] = _, _++, --P; )
|
|
13955
13957
|
;
|
|
13956
|
-
k.strstart =
|
|
13958
|
+
k.strstart = _, k.lookahead = L - 1, St(k);
|
|
13957
13959
|
}
|
|
13958
13960
|
return k.strstart += k.lookahead, k.block_start = k.strstart, k.insert = k.lookahead, k.lookahead = 0, k.match_length = k.prev_length = L - 1, k.match_available = 0, A.next_in = Z, A.input = B, A.avail_in = $, k.wrap = U, u;
|
|
13959
13961
|
}, s.deflateInfo = "pako deflate (from Nodeca project)";
|
|
@@ -14091,7 +14093,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14091
14093
|
s.inflateReset = R, s.inflateReset2 = S, s.inflateResetKeep = F, s.inflateInit = function(N) {
|
|
14092
14094
|
return O(N, 15);
|
|
14093
14095
|
}, s.inflateInit2 = O, s.inflate = function(N, M) {
|
|
14094
|
-
var g, v, q, G, et, W, nt, V, x, ot, it, tt, St, yt, at, It, ft, Ct, Ht, Dt, A, X, k,
|
|
14096
|
+
var g, v, q, G, et, W, nt, V, x, ot, it, tt, St, yt, at, It, ft, Ct, Ht, Dt, A, X, k, _, P = 0, U = new n.Buf8(4), $ = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15];
|
|
14095
14097
|
if (!N || !N.state || !N.output || !N.input && N.avail_in !== 0)
|
|
14096
14098
|
return u;
|
|
14097
14099
|
(g = N.state).mode === 12 && (g.mode = 13), et = N.next_out, q = N.output, nt = N.avail_out, G = N.next_in, v = N.input, W = N.avail_in, V = g.hold, x = g.bits, ot = W, it = nt, X = I;
|
|
@@ -14302,7 +14304,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14302
14304
|
g.have = 0, g.mode = 19;
|
|
14303
14305
|
case 19:
|
|
14304
14306
|
for (; g.have < g.nlen + g.ndist; ) {
|
|
14305
|
-
for (; It = (
|
|
14307
|
+
for (; It = (P = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
|
|
14306
14308
|
if (W === 0)
|
|
14307
14309
|
break t;
|
|
14308
14310
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14311,7 +14313,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14311
14313
|
V >>>= at, x -= at, g.lens[g.have++] = ft;
|
|
14312
14314
|
else {
|
|
14313
14315
|
if (ft === 16) {
|
|
14314
|
-
for (
|
|
14316
|
+
for (_ = at + 2; x < _; ) {
|
|
14315
14317
|
if (W === 0)
|
|
14316
14318
|
break t;
|
|
14317
14319
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14322,14 +14324,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14322
14324
|
}
|
|
14323
14325
|
A = g.lens[g.have - 1], tt = 3 + (3 & V), V >>>= 2, x -= 2;
|
|
14324
14326
|
} else if (ft === 17) {
|
|
14325
|
-
for (
|
|
14327
|
+
for (_ = at + 3; x < _; ) {
|
|
14326
14328
|
if (W === 0)
|
|
14327
14329
|
break t;
|
|
14328
14330
|
W--, V += v[G++] << x, x += 8;
|
|
14329
14331
|
}
|
|
14330
14332
|
x -= at, A = 0, tt = 3 + (7 & (V >>>= at)), V >>>= 3, x -= 3;
|
|
14331
14333
|
} else {
|
|
14332
|
-
for (
|
|
14334
|
+
for (_ = at + 7; x < _; ) {
|
|
14333
14335
|
if (W === 0)
|
|
14334
14336
|
break t;
|
|
14335
14337
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14367,13 +14369,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14367
14369
|
N.next_out = et, N.avail_out = nt, N.next_in = G, N.avail_in = W, g.hold = V, g.bits = x, a(N, it), et = N.next_out, q = N.output, nt = N.avail_out, G = N.next_in, v = N.input, W = N.avail_in, V = g.hold, x = g.bits, g.mode === 12 && (g.back = -1);
|
|
14368
14370
|
break;
|
|
14369
14371
|
}
|
|
14370
|
-
for (g.back = 0; It = (
|
|
14372
|
+
for (g.back = 0; It = (P = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
|
|
14371
14373
|
if (W === 0)
|
|
14372
14374
|
break t;
|
|
14373
14375
|
W--, V += v[G++] << x, x += 8;
|
|
14374
14376
|
}
|
|
14375
14377
|
if (It && !(240 & It)) {
|
|
14376
|
-
for (Ct = at, Ht = It, Dt = ft; It = (
|
|
14378
|
+
for (Ct = at, Ht = It, Dt = ft; It = (P = g.lencode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & P, !(Ct + (at = P >>> 24) <= x); ) {
|
|
14377
14379
|
if (W === 0)
|
|
14378
14380
|
break t;
|
|
14379
14381
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14395,7 +14397,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14395
14397
|
g.extra = 15 & It, g.mode = 22;
|
|
14396
14398
|
case 22:
|
|
14397
14399
|
if (g.extra) {
|
|
14398
|
-
for (
|
|
14400
|
+
for (_ = g.extra; x < _; ) {
|
|
14399
14401
|
if (W === 0)
|
|
14400
14402
|
break t;
|
|
14401
14403
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14404,13 +14406,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14404
14406
|
}
|
|
14405
14407
|
g.was = g.length, g.mode = 23;
|
|
14406
14408
|
case 23:
|
|
14407
|
-
for (; It = (
|
|
14409
|
+
for (; It = (P = g.distcode[V & (1 << g.distbits) - 1]) >>> 16 & 255, ft = 65535 & P, !((at = P >>> 24) <= x); ) {
|
|
14408
14410
|
if (W === 0)
|
|
14409
14411
|
break t;
|
|
14410
14412
|
W--, V += v[G++] << x, x += 8;
|
|
14411
14413
|
}
|
|
14412
14414
|
if (!(240 & It)) {
|
|
14413
|
-
for (Ct = at, Ht = It, Dt = ft; It = (
|
|
14415
|
+
for (Ct = at, Ht = It, Dt = ft; It = (P = g.distcode[Dt + ((V & (1 << Ct + Ht) - 1) >> Ct)]) >>> 16 & 255, ft = 65535 & P, !(Ct + (at = P >>> 24) <= x); ) {
|
|
14414
14416
|
if (W === 0)
|
|
14415
14417
|
break t;
|
|
14416
14418
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14424,7 +14426,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14424
14426
|
g.offset = ft, g.extra = 15 & It, g.mode = 24;
|
|
14425
14427
|
case 24:
|
|
14426
14428
|
if (g.extra) {
|
|
14427
|
-
for (
|
|
14429
|
+
for (_ = g.extra; x < _; ) {
|
|
14428
14430
|
if (W === 0)
|
|
14429
14431
|
break t;
|
|
14430
14432
|
W--, V += v[G++] << x, x += 8;
|
|
@@ -14558,9 +14560,9 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14558
14560
|
e.exports = { 2: "need dictionary", 1: "stream end", 0: "", "-1": "file error", "-2": "stream error", "-3": "data error", "-4": "insufficient memory", "-5": "buffer error", "-6": "incompatible version" };
|
|
14559
14561
|
}, {}], 52: [function(t, e, s) {
|
|
14560
14562
|
var n = t("../utils/common"), r = 0, o = 1;
|
|
14561
|
-
function a(
|
|
14562
|
-
for (var U =
|
|
14563
|
-
|
|
14563
|
+
function a(P) {
|
|
14564
|
+
for (var U = P.length; 0 <= --U; )
|
|
14565
|
+
P[U] = 0;
|
|
14564
14566
|
}
|
|
14565
14567
|
var l = 0, h = 29, f = 256, I = f + 1 + h, u = 30, d = 19, E = 2 * I + 1, T = 15, p = 16, m = 7, F = 256, R = 16, S = 17, O = 18, y = [0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 3, 3, 4, 4, 4, 4, 5, 5, 5, 5, 0], w = [0, 0, 0, 0, 1, 1, 2, 2, 3, 3, 4, 4, 5, 5, 6, 6, 7, 7, 8, 8, 9, 9, 10, 10, 11, 11, 12, 12, 13, 13], L = [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 7], b = [16, 17, 18, 0, 8, 7, 9, 6, 10, 5, 11, 4, 12, 3, 13, 2, 14, 1, 15], Y = new Array(2 * (I + 2));
|
|
14566
14568
|
a(Y);
|
|
@@ -14573,78 +14575,78 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14573
14575
|
var v = new Array(h);
|
|
14574
14576
|
a(v);
|
|
14575
14577
|
var q, G, et, W = new Array(u);
|
|
14576
|
-
function nt(
|
|
14577
|
-
this.static_tree =
|
|
14578
|
+
function nt(P, U, $, Z, B) {
|
|
14579
|
+
this.static_tree = P, this.extra_bits = U, this.extra_base = $, this.elems = Z, this.max_length = B, this.has_stree = P && P.length;
|
|
14578
14580
|
}
|
|
14579
|
-
function V(
|
|
14580
|
-
this.dyn_tree =
|
|
14581
|
+
function V(P, U) {
|
|
14582
|
+
this.dyn_tree = P, this.max_code = 0, this.stat_desc = U;
|
|
14581
14583
|
}
|
|
14582
|
-
function x(
|
|
14583
|
-
return
|
|
14584
|
+
function x(P) {
|
|
14585
|
+
return P < 256 ? M[P] : M[256 + (P >>> 7)];
|
|
14584
14586
|
}
|
|
14585
|
-
function ot(
|
|
14586
|
-
|
|
14587
|
+
function ot(P, U) {
|
|
14588
|
+
P.pending_buf[P.pending++] = 255 & U, P.pending_buf[P.pending++] = U >>> 8 & 255;
|
|
14587
14589
|
}
|
|
14588
|
-
function it(
|
|
14589
|
-
|
|
14590
|
+
function it(P, U, $) {
|
|
14591
|
+
P.bi_valid > p - $ ? (P.bi_buf |= U << P.bi_valid & 65535, ot(P, P.bi_buf), P.bi_buf = U >> p - P.bi_valid, P.bi_valid += $ - p) : (P.bi_buf |= U << P.bi_valid & 65535, P.bi_valid += $);
|
|
14590
14592
|
}
|
|
14591
|
-
function tt(
|
|
14592
|
-
it(
|
|
14593
|
+
function tt(P, U, $) {
|
|
14594
|
+
it(P, $[2 * U], $[2 * U + 1]);
|
|
14593
14595
|
}
|
|
14594
|
-
function St(
|
|
14595
|
-
for (var $ = 0; $ |= 1 &
|
|
14596
|
+
function St(P, U) {
|
|
14597
|
+
for (var $ = 0; $ |= 1 & P, P >>>= 1, $ <<= 1, 0 < --U; )
|
|
14596
14598
|
;
|
|
14597
14599
|
return $ >>> 1;
|
|
14598
14600
|
}
|
|
14599
|
-
function yt(
|
|
14601
|
+
function yt(P, U, $) {
|
|
14600
14602
|
var Z, B, K = new Array(T + 1), st = 0;
|
|
14601
14603
|
for (Z = 1; Z <= T; Z++)
|
|
14602
14604
|
K[Z] = st = st + $[Z - 1] << 1;
|
|
14603
14605
|
for (B = 0; B <= U; B++) {
|
|
14604
|
-
var J =
|
|
14605
|
-
J !== 0 && (
|
|
14606
|
+
var J = P[2 * B + 1];
|
|
14607
|
+
J !== 0 && (P[2 * B] = St(K[J]++, J));
|
|
14606
14608
|
}
|
|
14607
14609
|
}
|
|
14608
|
-
function at(
|
|
14610
|
+
function at(P) {
|
|
14609
14611
|
var U;
|
|
14610
14612
|
for (U = 0; U < I; U++)
|
|
14611
|
-
|
|
14613
|
+
P.dyn_ltree[2 * U] = 0;
|
|
14612
14614
|
for (U = 0; U < u; U++)
|
|
14613
|
-
|
|
14615
|
+
P.dyn_dtree[2 * U] = 0;
|
|
14614
14616
|
for (U = 0; U < d; U++)
|
|
14615
|
-
|
|
14616
|
-
|
|
14617
|
+
P.bl_tree[2 * U] = 0;
|
|
14618
|
+
P.dyn_ltree[2 * F] = 1, P.opt_len = P.static_len = 0, P.last_lit = P.matches = 0;
|
|
14617
14619
|
}
|
|
14618
|
-
function It(
|
|
14619
|
-
8 <
|
|
14620
|
+
function It(P) {
|
|
14621
|
+
8 < P.bi_valid ? ot(P, P.bi_buf) : 0 < P.bi_valid && (P.pending_buf[P.pending++] = P.bi_buf), P.bi_buf = 0, P.bi_valid = 0;
|
|
14620
14622
|
}
|
|
14621
|
-
function ft(
|
|
14623
|
+
function ft(P, U, $, Z) {
|
|
14622
14624
|
var B = 2 * U, K = 2 * $;
|
|
14623
|
-
return
|
|
14625
|
+
return P[B] < P[K] || P[B] === P[K] && Z[U] <= Z[$];
|
|
14624
14626
|
}
|
|
14625
|
-
function Ct(
|
|
14626
|
-
for (var Z =
|
|
14627
|
-
|
|
14628
|
-
|
|
14627
|
+
function Ct(P, U, $) {
|
|
14628
|
+
for (var Z = P.heap[$], B = $ << 1; B <= P.heap_len && (B < P.heap_len && ft(U, P.heap[B + 1], P.heap[B], P.depth) && B++, !ft(U, Z, P.heap[B], P.depth)); )
|
|
14629
|
+
P.heap[$] = P.heap[B], $ = B, B <<= 1;
|
|
14630
|
+
P.heap[$] = Z;
|
|
14629
14631
|
}
|
|
14630
|
-
function Ht(
|
|
14632
|
+
function Ht(P, U, $) {
|
|
14631
14633
|
var Z, B, K, st, J = 0;
|
|
14632
|
-
if (
|
|
14633
|
-
for (; Z =
|
|
14634
|
+
if (P.last_lit !== 0)
|
|
14635
|
+
for (; Z = P.pending_buf[P.d_buf + 2 * J] << 8 | P.pending_buf[P.d_buf + 2 * J + 1], B = P.pending_buf[P.l_buf + J], J++, Z === 0 ? tt(P, B, U) : (tt(P, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(P, B -= v[K], st), tt(P, K = x(--Z), $), (st = w[K]) !== 0 && it(P, Z -= W[K], st)), J < P.last_lit; )
|
|
14634
14636
|
;
|
|
14635
|
-
tt(
|
|
14637
|
+
tt(P, F, U);
|
|
14636
14638
|
}
|
|
14637
|
-
function Dt(
|
|
14639
|
+
function Dt(P, U) {
|
|
14638
14640
|
var $, Z, B, K = U.dyn_tree, st = U.stat_desc.static_tree, J = U.stat_desc.has_stree, ct = U.stat_desc.elems, Rt = -1;
|
|
14639
|
-
for (
|
|
14640
|
-
K[2 * $] !== 0 ? (
|
|
14641
|
-
for (;
|
|
14642
|
-
K[2 * (B =
|
|
14643
|
-
for (U.max_code = Rt, $ =
|
|
14644
|
-
Ct(
|
|
14645
|
-
for (B = ct; $ =
|
|
14641
|
+
for (P.heap_len = 0, P.heap_max = E, $ = 0; $ < ct; $++)
|
|
14642
|
+
K[2 * $] !== 0 ? (P.heap[++P.heap_len] = Rt = $, P.depth[$] = 0) : K[2 * $ + 1] = 0;
|
|
14643
|
+
for (; P.heap_len < 2; )
|
|
14644
|
+
K[2 * (B = P.heap[++P.heap_len] = Rt < 2 ? ++Rt : 0)] = 1, P.depth[B] = 0, P.opt_len--, J && (P.static_len -= st[2 * B + 1]);
|
|
14645
|
+
for (U.max_code = Rt, $ = P.heap_len >> 1; 1 <= $; $--)
|
|
14646
|
+
Ct(P, K, $);
|
|
14647
|
+
for (B = ct; $ = P.heap[1], P.heap[1] = P.heap[P.heap_len--], Ct(P, K, 1), Z = P.heap[1], P.heap[--P.heap_max] = $, P.heap[--P.heap_max] = Z, K[2 * B] = K[2 * $] + K[2 * Z], P.depth[B] = (P.depth[$] >= P.depth[Z] ? P.depth[$] : P.depth[Z]) + 1, K[2 * $ + 1] = K[2 * Z + 1] = B, P.heap[1] = B++, Ct(P, K, 1), 2 <= P.heap_len; )
|
|
14646
14648
|
;
|
|
14647
|
-
|
|
14649
|
+
P.heap[--P.heap_max] = P.heap[1], function(dt, Wt) {
|
|
14648
14650
|
var hi, ce, ui, Lt, Vi, Hs, Ce = Wt.dyn_tree, Hn = Wt.max_code, mo = Wt.stat_desc.static_tree, Ro = Wt.stat_desc.has_stree, go = Wt.stat_desc.extra_bits, Wn = Wt.stat_desc.extra_base, fi = Wt.stat_desc.max_length, Yi = 0;
|
|
14649
14651
|
for (Lt = 0; Lt <= T; Lt++)
|
|
14650
14652
|
dt.bl_count[Lt] = 0;
|
|
@@ -14660,33 +14662,33 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14660
14662
|
for (ce = dt.bl_count[Lt]; ce !== 0; )
|
|
14661
14663
|
Hn < (ui = dt.heap[--hi]) || (Ce[2 * ui + 1] !== Lt && (dt.opt_len += (Lt - Ce[2 * ui + 1]) * Ce[2 * ui], Ce[2 * ui + 1] = Lt), ce--);
|
|
14662
14664
|
}
|
|
14663
|
-
}(
|
|
14665
|
+
}(P, U), yt(K, Rt, P.bl_count);
|
|
14664
14666
|
}
|
|
14665
|
-
function A(
|
|
14667
|
+
function A(P, U, $) {
|
|
14666
14668
|
var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
|
|
14667
14669
|
for (st === 0 && (ct = 138, Rt = 3), U[2 * ($ + 1) + 1] = 65535, Z = 0; Z <= $; Z++)
|
|
14668
|
-
B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ?
|
|
14670
|
+
B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ? P.bl_tree[2 * B] += J : B !== 0 ? (B !== K && P.bl_tree[2 * B]++, P.bl_tree[2 * R]++) : J <= 10 ? P.bl_tree[2 * S]++ : P.bl_tree[2 * O]++, K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4));
|
|
14669
14671
|
}
|
|
14670
|
-
function X(
|
|
14672
|
+
function X(P, U, $) {
|
|
14671
14673
|
var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
|
|
14672
14674
|
for (st === 0 && (ct = 138, Rt = 3), Z = 0; Z <= $; Z++)
|
|
14673
14675
|
if (B = st, st = U[2 * (Z + 1) + 1], !(++J < ct && B === st)) {
|
|
14674
14676
|
if (J < Rt)
|
|
14675
|
-
for (; tt(
|
|
14677
|
+
for (; tt(P, B, P.bl_tree), --J != 0; )
|
|
14676
14678
|
;
|
|
14677
14679
|
else
|
|
14678
|
-
B !== 0 ? (B !== K && (tt(
|
|
14680
|
+
B !== 0 ? (B !== K && (tt(P, B, P.bl_tree), J--), tt(P, R, P.bl_tree), it(P, J - 3, 2)) : J <= 10 ? (tt(P, S, P.bl_tree), it(P, J - 3, 3)) : (tt(P, O, P.bl_tree), it(P, J - 11, 7));
|
|
14679
14681
|
K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4);
|
|
14680
14682
|
}
|
|
14681
14683
|
}
|
|
14682
14684
|
a(W);
|
|
14683
14685
|
var k = !1;
|
|
14684
|
-
function P
|
|
14685
|
-
it(
|
|
14686
|
+
function _(P, U, $, Z) {
|
|
14687
|
+
it(P, (l << 1) + (Z ? 1 : 0), 3), function(B, K, st, J) {
|
|
14686
14688
|
It(B), ot(B, st), ot(B, ~st), n.arraySet(B.pending_buf, B.window, K, st, B.pending), B.pending += st;
|
|
14687
|
-
}(
|
|
14689
|
+
}(P, U, $);
|
|
14688
14690
|
}
|
|
14689
|
-
s._tr_init = function(
|
|
14691
|
+
s._tr_init = function(P) {
|
|
14690
14692
|
k || (function() {
|
|
14691
14693
|
var U, $, Z, B, K, st = new Array(T + 1);
|
|
14692
14694
|
for (B = Z = 0; B < h - 1; B++)
|
|
@@ -14711,10 +14713,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14711
14713
|
for (yt(Y, I + 1, st), U = 0; U < u; U++)
|
|
14712
14714
|
N[2 * U + 1] = 5, N[2 * U] = St(U, 5);
|
|
14713
14715
|
q = new nt(Y, y, f + 1, I, T), G = new nt(N, w, 0, u, T), et = new nt(new Array(0), L, 0, d, m);
|
|
14714
|
-
}(), k = !0),
|
|
14715
|
-
}, s._tr_stored_block =
|
|
14716
|
+
}(), k = !0), P.l_desc = new V(P.dyn_ltree, q), P.d_desc = new V(P.dyn_dtree, G), P.bl_desc = new V(P.bl_tree, et), P.bi_buf = 0, P.bi_valid = 0, at(P);
|
|
14717
|
+
}, s._tr_stored_block = _, s._tr_flush_block = function(P, U, $, Z) {
|
|
14716
14718
|
var B, K, st = 0;
|
|
14717
|
-
0 <
|
|
14719
|
+
0 < P.level ? (P.strm.data_type === 2 && (P.strm.data_type = function(J) {
|
|
14718
14720
|
var ct, Rt = 4093624447;
|
|
14719
14721
|
for (ct = 0; ct <= 31; ct++, Rt >>>= 1)
|
|
14720
14722
|
if (1 & Rt && J.dyn_ltree[2 * ct] !== 0)
|
|
@@ -14725,23 +14727,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14725
14727
|
if (J.dyn_ltree[2 * ct] !== 0)
|
|
14726
14728
|
return o;
|
|
14727
14729
|
return r;
|
|
14728
|
-
}(
|
|
14730
|
+
}(P)), Dt(P, P.l_desc), Dt(P, P.d_desc), st = function(J) {
|
|
14729
14731
|
var ct;
|
|
14730
14732
|
for (A(J, J.dyn_ltree, J.l_desc.max_code), A(J, J.dyn_dtree, J.d_desc.max_code), Dt(J, J.bl_desc), ct = d - 1; 3 <= ct && J.bl_tree[2 * b[ct] + 1] === 0; ct--)
|
|
14731
14733
|
;
|
|
14732
14734
|
return J.opt_len += 3 * (ct + 1) + 5 + 5 + 4, ct;
|
|
14733
|
-
}(
|
|
14735
|
+
}(P), B = P.opt_len + 3 + 7 >>> 3, (K = P.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? _(P, U, $, Z) : P.strategy === 4 || K === B ? (it(P, 2 + (Z ? 1 : 0), 3), Ht(P, Y, N)) : (it(P, 4 + (Z ? 1 : 0), 3), function(J, ct, Rt, dt) {
|
|
14734
14736
|
var Wt;
|
|
14735
14737
|
for (it(J, ct - 257, 5), it(J, Rt - 1, 5), it(J, dt - 4, 4), Wt = 0; Wt < dt; Wt++)
|
|
14736
14738
|
it(J, J.bl_tree[2 * b[Wt] + 1], 3);
|
|
14737
14739
|
X(J, J.dyn_ltree, ct - 1), X(J, J.dyn_dtree, Rt - 1);
|
|
14738
|
-
}(
|
|
14739
|
-
}, s._tr_tally = function(
|
|
14740
|
-
return
|
|
14741
|
-
}, s._tr_align = function(
|
|
14742
|
-
it(
|
|
14740
|
+
}(P, P.l_desc.max_code + 1, P.d_desc.max_code + 1, st + 1), Ht(P, P.dyn_ltree, P.dyn_dtree)), at(P), Z && It(P);
|
|
14741
|
+
}, s._tr_tally = function(P, U, $) {
|
|
14742
|
+
return P.pending_buf[P.d_buf + 2 * P.last_lit] = U >>> 8 & 255, P.pending_buf[P.d_buf + 2 * P.last_lit + 1] = 255 & U, P.pending_buf[P.l_buf + P.last_lit] = 255 & $, P.last_lit++, U === 0 ? P.dyn_ltree[2 * $]++ : (P.matches++, U--, P.dyn_ltree[2 * (g[$] + f + 1)]++, P.dyn_dtree[2 * x(U)]++), P.last_lit === P.lit_bufsize - 1;
|
|
14743
|
+
}, s._tr_align = function(P) {
|
|
14744
|
+
it(P, 2, 3), tt(P, F, Y), function(U) {
|
|
14743
14745
|
U.bi_valid === 16 ? (ot(U, U.bi_buf), U.bi_buf = 0, U.bi_valid = 0) : 8 <= U.bi_valid && (U.pending_buf[U.pending++] = 255 & U.bi_buf, U.bi_buf >>= 8, U.bi_valid -= 8);
|
|
14744
|
-
}(
|
|
14746
|
+
}(P);
|
|
14745
14747
|
};
|
|
14746
14748
|
}, { "../utils/common": 41 }], 53: [function(t, e, s) {
|
|
14747
14749
|
e.exports = function() {
|
|
@@ -14890,11 +14892,11 @@ Gn.validate = function(c, i) {
|
|
|
14890
14892
|
a += c[n];
|
|
14891
14893
|
if (a = a.trim(), a[a.length - 1] === "/" && (a = a.substring(0, a.length - 1), n--), !Wc(a)) {
|
|
14892
14894
|
let f;
|
|
14893
|
-
return a.trim().length === 0 ? f = "Invalid space after '<'." : f = "Tag '" + a + "' is an invalid name.",
|
|
14895
|
+
return a.trim().length === 0 ? f = "Invalid space after '<'." : f = "Tag '" + a + "' is an invalid name.", _t("InvalidTag", f, xt(c, n));
|
|
14894
14896
|
}
|
|
14895
14897
|
const l = Yc(c, n);
|
|
14896
14898
|
if (l === !1)
|
|
14897
|
-
return
|
|
14899
|
+
return _t("InvalidAttr", "Attributes for '" + a + "' have open quote.", xt(c, n));
|
|
14898
14900
|
let h = l.value;
|
|
14899
14901
|
if (n = l.index, h[h.length - 1] === "/") {
|
|
14900
14902
|
const f = n - h.length;
|
|
@@ -14903,18 +14905,18 @@ Gn.validate = function(c, i) {
|
|
|
14903
14905
|
if (I === !0)
|
|
14904
14906
|
e = !0;
|
|
14905
14907
|
else
|
|
14906
|
-
return
|
|
14908
|
+
return _t(I.err.code, I.err.msg, xt(c, f + I.err.line));
|
|
14907
14909
|
} else if (o)
|
|
14908
14910
|
if (l.tagClosed) {
|
|
14909
14911
|
if (h.trim().length > 0)
|
|
14910
|
-
return
|
|
14912
|
+
return _t("InvalidTag", "Closing tag '" + a + "' can't have attributes or invalid starting.", xt(c, r));
|
|
14911
14913
|
if (t.length === 0)
|
|
14912
|
-
return
|
|
14914
|
+
return _t("InvalidTag", "Closing tag '" + a + "' has not been opened.", xt(c, r));
|
|
14913
14915
|
{
|
|
14914
14916
|
const f = t.pop();
|
|
14915
14917
|
if (a !== f.tagName) {
|
|
14916
14918
|
let I = xt(c, f.tagStartPos);
|
|
14917
|
-
return
|
|
14919
|
+
return _t(
|
|
14918
14920
|
"InvalidTag",
|
|
14919
14921
|
"Expected closing tag '" + f.tagName + "' (opened in line " + I.line + ", col " + I.col + ") instead of closing tag '" + a + "'.",
|
|
14920
14922
|
xt(c, r)
|
|
@@ -14923,13 +14925,13 @@ Gn.validate = function(c, i) {
|
|
|
14923
14925
|
t.length == 0 && (s = !0);
|
|
14924
14926
|
}
|
|
14925
14927
|
} else
|
|
14926
|
-
return
|
|
14928
|
+
return _t("InvalidTag", "Closing tag '" + a + "' doesn't have proper closing.", xt(c, n));
|
|
14927
14929
|
else {
|
|
14928
14930
|
const f = Br(h, i);
|
|
14929
14931
|
if (f !== !0)
|
|
14930
|
-
return
|
|
14932
|
+
return _t(f.err.code, f.err.msg, xt(c, n - h.length + f.err.line));
|
|
14931
14933
|
if (s === !0)
|
|
14932
|
-
return
|
|
14934
|
+
return _t("InvalidXml", "Multiple possible root nodes found.", xt(c, n));
|
|
14933
14935
|
i.unpairedTags.indexOf(a) !== -1 || t.push({ tagName: a, tagStartPos: r }), e = !0;
|
|
14934
14936
|
}
|
|
14935
14937
|
for (n++; n < c.length; n++)
|
|
@@ -14945,24 +14947,24 @@ Gn.validate = function(c, i) {
|
|
|
14945
14947
|
else if (c[n] === "&") {
|
|
14946
14948
|
const f = kc(c, n);
|
|
14947
14949
|
if (f == -1)
|
|
14948
|
-
return
|
|
14950
|
+
return _t("InvalidChar", "char '&' is not expected.", xt(c, n));
|
|
14949
14951
|
n = f;
|
|
14950
14952
|
} else if (s === !0 && !vr(c[n]))
|
|
14951
|
-
return
|
|
14953
|
+
return _t("InvalidXml", "Extra text at the end", xt(c, n));
|
|
14952
14954
|
c[n] === "<" && n--;
|
|
14953
14955
|
}
|
|
14954
14956
|
} else {
|
|
14955
14957
|
if (vr(c[n]))
|
|
14956
14958
|
continue;
|
|
14957
|
-
return
|
|
14959
|
+
return _t("InvalidChar", "char '" + c[n] + "' is not expected.", xt(c, n));
|
|
14958
14960
|
}
|
|
14959
14961
|
if (e) {
|
|
14960
14962
|
if (t.length == 1)
|
|
14961
|
-
return
|
|
14963
|
+
return _t("InvalidTag", "Unclosed tag '" + t[0].tagName + "'.", xt(c, t[0].tagStartPos));
|
|
14962
14964
|
if (t.length > 0)
|
|
14963
|
-
return
|
|
14965
|
+
return _t("InvalidXml", "Invalid '" + JSON.stringify(t.map((n) => n.tagName), null, 4).replace(/\r?\n/g, "") + "' found.", { line: 1, col: 1 });
|
|
14964
14966
|
} else
|
|
14965
|
-
return
|
|
14967
|
+
return _t("InvalidXml", "Start tag expected.", 1);
|
|
14966
14968
|
return !0;
|
|
14967
14969
|
};
|
|
14968
14970
|
function vr(c) {
|
|
@@ -14975,7 +14977,7 @@ function Ur(c, i) {
|
|
|
14975
14977
|
if (c[i] == "?" || c[i] == " ") {
|
|
14976
14978
|
const e = c.substr(t, i - t);
|
|
14977
14979
|
if (i > 5 && e === "xml")
|
|
14978
|
-
return
|
|
14980
|
+
return _t("InvalidXml", "XML declaration allowed only at the start of the document.", xt(c, i));
|
|
14979
14981
|
if (c[i] == "?" && c[i + 1] == ">") {
|
|
14980
14982
|
i++;
|
|
14981
14983
|
break;
|
|
@@ -15030,18 +15032,18 @@ function Br(c, i) {
|
|
|
15030
15032
|
const t = zn.getAllMatches(c, Gc), e = {};
|
|
15031
15033
|
for (let s = 0; s < t.length; s++) {
|
|
15032
15034
|
if (t[s][1].length === 0)
|
|
15033
|
-
return
|
|
15035
|
+
return _t("InvalidAttr", "Attribute '" + t[s][2] + "' has no space in starting.", yi(t[s]));
|
|
15034
15036
|
if (t[s][3] !== void 0 && t[s][4] === void 0)
|
|
15035
|
-
return
|
|
15037
|
+
return _t("InvalidAttr", "Attribute '" + t[s][2] + "' is without value.", yi(t[s]));
|
|
15036
15038
|
if (t[s][3] === void 0 && !i.allowBooleanAttributes)
|
|
15037
|
-
return
|
|
15039
|
+
return _t("InvalidAttr", "boolean attribute '" + t[s][2] + "' is not allowed.", yi(t[s]));
|
|
15038
15040
|
const n = t[s][2];
|
|
15039
15041
|
if (!Hc(n))
|
|
15040
|
-
return
|
|
15042
|
+
return _t("InvalidAttr", "Attribute '" + n + "' is an invalid name.", yi(t[s]));
|
|
15041
15043
|
if (!e.hasOwnProperty(n))
|
|
15042
15044
|
e[n] = 1;
|
|
15043
15045
|
else
|
|
15044
|
-
return
|
|
15046
|
+
return _t("InvalidAttr", "Attribute '" + n + "' is repeated.", yi(t[s]));
|
|
15045
15047
|
}
|
|
15046
15048
|
return !0;
|
|
15047
15049
|
}
|
|
@@ -15069,7 +15071,7 @@ function kc(c, i) {
|
|
|
15069
15071
|
}
|
|
15070
15072
|
return i;
|
|
15071
15073
|
}
|
|
15072
|
-
function
|
|
15074
|
+
function _t(c, i, t) {
|
|
15073
15075
|
return {
|
|
15074
15076
|
err: {
|
|
15075
15077
|
code: c,
|
|
@@ -15306,7 +15308,7 @@ function El(c, i, t, e, s, n, r) {
|
|
|
15306
15308
|
if (c !== void 0 && (this.options.trimValues && !e && (c = c.trim()), c.length > 0)) {
|
|
15307
15309
|
r || (c = this.replaceEntitiesValue(c));
|
|
15308
15310
|
const o = this.options.tagValueProcessor(i, c, t, s, n);
|
|
15309
|
-
return o == null ? c : typeof o != typeof c || o !== c ? o : this.options.trimValues ?
|
|
15311
|
+
return o == null ? c : typeof o != typeof c || o !== c ? o : this.options.trimValues ? Pn(c, this.options.parseTagValue, this.options.numberParseOptions) : c.trim() === c ? Pn(c, this.options.parseTagValue, this.options.numberParseOptions) : c;
|
|
15310
15312
|
}
|
|
15311
15313
|
}
|
|
15312
15314
|
function pl(c) {
|
|
@@ -15329,7 +15331,7 @@ function Tl(c, i, t) {
|
|
|
15329
15331
|
if (this.options.transformAttributeName && (l = this.options.transformAttributeName(l)), l === "__proto__" && (l = "#__proto__"), a !== void 0) {
|
|
15330
15332
|
this.options.trimValues && (a = a.trim()), a = this.replaceEntitiesValue(a);
|
|
15331
15333
|
const h = this.options.attributeValueProcessor(o, a, i);
|
|
15332
|
-
h == null ? n[l] = a : typeof h != typeof a || h !== a ? n[l] = h : n[l] =
|
|
15334
|
+
h == null ? n[l] = a : typeof h != typeof a || h !== a ? n[l] = h : n[l] = Pn(
|
|
15333
15335
|
a,
|
|
15334
15336
|
this.options.parseAttributeValue,
|
|
15335
15337
|
this.options.numberParseOptions
|
|
@@ -15544,7 +15546,7 @@ function Ol(c, i, t) {
|
|
|
15544
15546
|
n && ((n && n.tagName) === i && n.tagExp[n.tagExp.length - 1] !== "/" && s++, t = n.closeIndex);
|
|
15545
15547
|
}
|
|
15546
15548
|
}
|
|
15547
|
-
function
|
|
15549
|
+
function Pn(c, i, t) {
|
|
15548
15550
|
if (i && typeof c == "string") {
|
|
15549
15551
|
const e = c.trim();
|
|
15550
15552
|
return e === "true" ? !0 : e === "false" ? !1 : fl(c, t);
|
|
@@ -15568,8 +15570,8 @@ function Io(c, i, t) {
|
|
|
15568
15570
|
continue;
|
|
15569
15571
|
if (r[o]) {
|
|
15570
15572
|
let l = Io(r[o], i, a);
|
|
15571
|
-
const h =
|
|
15572
|
-
r[":@"] ?
|
|
15573
|
+
const h = _l(l, i);
|
|
15574
|
+
r[":@"] ? Pl(l, r[":@"], a, i) : Object.keys(l).length === 1 && l[i.textNodeName] !== void 0 && !i.alwaysCreateTextNode ? l = l[i.textNodeName] : Object.keys(l).length === 0 && (i.alwaysCreateTextNode ? l[i.textNodeName] = "" : l = ""), s[o] !== void 0 && s.hasOwnProperty(o) ? (Array.isArray(s[o]) || (s[o] = [s[o]]), s[o].push(l)) : i.isArray(o, a, h) ? s[o] = [l] : s[o] = l;
|
|
15573
15575
|
}
|
|
15574
15576
|
}
|
|
15575
15577
|
}
|
|
@@ -15583,7 +15585,7 @@ function Ll(c) {
|
|
|
15583
15585
|
return e;
|
|
15584
15586
|
}
|
|
15585
15587
|
}
|
|
15586
|
-
function
|
|
15588
|
+
function Pl(c, i, t, e) {
|
|
15587
15589
|
if (i) {
|
|
15588
15590
|
const s = Object.keys(i), n = s.length;
|
|
15589
15591
|
for (let r = 0; r < n; r++) {
|
|
@@ -15592,7 +15594,7 @@ function _l(c, i, t, e) {
|
|
|
15592
15594
|
}
|
|
15593
15595
|
}
|
|
15594
15596
|
}
|
|
15595
|
-
function
|
|
15597
|
+
function _l(c, i) {
|
|
15596
15598
|
const { textNodeName: t } = i, e = Object.keys(c).length;
|
|
15597
15599
|
return !!(e === 0 || e === 1 && (c[t] || typeof c[t] == "boolean" || c[t] === 0));
|
|
15598
15600
|
}
|
|
@@ -15860,7 +15862,7 @@ var Co = {
|
|
|
15860
15862
|
XMLValidator: Zl,
|
|
15861
15863
|
XMLBuilder: ql
|
|
15862
15864
|
};
|
|
15863
|
-
class
|
|
15865
|
+
class _n {
|
|
15864
15866
|
/**
|
|
15865
15867
|
* Constructs a new BCF Topic Comment instance.
|
|
15866
15868
|
* @param components - The Components instance.
|
|
@@ -16082,7 +16084,7 @@ const Ie = class Ie {
|
|
|
16082
16084
|
* ```
|
|
16083
16085
|
*/
|
|
16084
16086
|
createComment(i, t) {
|
|
16085
|
-
const e = new
|
|
16087
|
+
const e = new _n(this._components, i);
|
|
16086
16088
|
return e.viewpoint = t, e.topic = this, this.comments.set(e.guid, e), e;
|
|
16087
16089
|
}
|
|
16088
16090
|
createLabelTags(i = this._managerVersion) {
|
|
@@ -16608,9 +16610,9 @@ ${o}
|
|
|
16608
16610
|
Comment: r,
|
|
16609
16611
|
Viewpoint: o
|
|
16610
16612
|
} = t;
|
|
16611
|
-
if (!(e && s && n && (
|
|
16613
|
+
if (!(e && s && n && (_n || o)))
|
|
16612
16614
|
return null;
|
|
16613
|
-
const a = this.components.get(ie), l = new
|
|
16615
|
+
const a = this.components.get(ie), l = new _n(this.components, r ?? "");
|
|
16614
16616
|
return l.guid = e, l.date = new Date(s), l.author = n, l.viewpoint = o != null && o.Guid ? a.list.get(o.Guid) : void 0, l.modifiedAuthor = t.ModifiedAuthor, l.modifiedDate = t.ModifiedDate ? new Date(t.ModifiedDate) : void 0, l;
|
|
16615
16617
|
}
|
|
16616
16618
|
getMarkupComments(t, e) {
|
|
@@ -17091,7 +17093,7 @@ const ee = class ee extends At {
|
|
|
17091
17093
|
};
|
|
17092
17094
|
C(ee, "uuid", "d1444724-dba6-4cdd-a0c7-68ee1450d166");
|
|
17093
17095
|
let wn = ee;
|
|
17094
|
-
const
|
|
17096
|
+
const _s = class _s {
|
|
17095
17097
|
constructor(i) {
|
|
17096
17098
|
/**
|
|
17097
17099
|
* Event used to notify the progress when performing a query on an IFC file.
|
|
@@ -17123,7 +17125,7 @@ const Ps = class Ps {
|
|
|
17123
17125
|
* @param data the data of the query to import as a serializable object.
|
|
17124
17126
|
*/
|
|
17125
17127
|
static import(i, t) {
|
|
17126
|
-
const e =
|
|
17128
|
+
const e = _s.importers.get(t.type);
|
|
17127
17129
|
return e ? e(i, t) : (console.warn("Invalid query data:.", t), null);
|
|
17128
17130
|
}
|
|
17129
17131
|
/**
|
|
@@ -17329,8 +17331,8 @@ const Ps = class Ps {
|
|
|
17329
17331
|
/**
|
|
17330
17332
|
* The list of functions to import the queries. If you create your own custom query, you should add its importer here. See the other queries provided by the library for reference.
|
|
17331
17333
|
*/
|
|
17332
|
-
C(
|
|
17333
|
-
let se =
|
|
17334
|
+
C(_s, "importers", /* @__PURE__ */ new Map());
|
|
17335
|
+
let se = _s;
|
|
17334
17336
|
class Yr {
|
|
17335
17337
|
constructor(i) {
|
|
17336
17338
|
/**
|
|
@@ -17496,7 +17498,7 @@ const Ms = class Ms extends se {
|
|
|
17496
17498
|
* {@link IfcFinderQuery.items}
|
|
17497
17499
|
*/
|
|
17498
17500
|
get items() {
|
|
17499
|
-
const t = this.components.get(
|
|
17501
|
+
const t = this.components.get(Gt), e = this.components.get(Tt), s = [];
|
|
17500
17502
|
for (const n in this.ids) {
|
|
17501
17503
|
const r = e.groups.get(n);
|
|
17502
17504
|
if (!r) {
|
|
@@ -17881,7 +17883,7 @@ const bs = class bs extends At {
|
|
|
17881
17883
|
*/
|
|
17882
17884
|
async bySpatialStructure(t, e = {}) {
|
|
17883
17885
|
var l, h;
|
|
17884
|
-
const s = this.components.get(
|
|
17886
|
+
const s = this.components.get(Gt), n = s.relationMaps[t.uuid];
|
|
17885
17887
|
if (!n)
|
|
17886
17888
|
throw new Error(
|
|
17887
17889
|
`Classifier: model relations of ${t.name || t.uuid} have to exists to group by spatial structure.`
|
|
@@ -18154,22 +18156,22 @@ const xs = class xs extends At {
|
|
|
18154
18156
|
* Event triggered when geometry is streamed.
|
|
18155
18157
|
* Contains the streamed geometry data and its buffer.
|
|
18156
18158
|
*/
|
|
18157
|
-
C(this, "onGeometryStreamed", new
|
|
18159
|
+
C(this, "onGeometryStreamed", new _e());
|
|
18158
18160
|
/**
|
|
18159
18161
|
* Event triggered when assets are streamed.
|
|
18160
18162
|
* Contains the streamed assets.
|
|
18161
18163
|
*/
|
|
18162
|
-
C(this, "onAssetStreamed", new
|
|
18164
|
+
C(this, "onAssetStreamed", new _e());
|
|
18163
18165
|
/**
|
|
18164
18166
|
* Event triggered to indicate the progress of the streaming process.
|
|
18165
18167
|
* Contains the progress percentage.
|
|
18166
18168
|
*/
|
|
18167
|
-
C(this, "onProgress", new
|
|
18169
|
+
C(this, "onProgress", new _e());
|
|
18168
18170
|
/**
|
|
18169
18171
|
* Event triggered when the IFC file is loaded.
|
|
18170
18172
|
* Contains the loaded IFC file data.
|
|
18171
18173
|
*/
|
|
18172
|
-
C(this, "onIfcLoaded", new
|
|
18174
|
+
C(this, "onIfcLoaded", new _e());
|
|
18173
18175
|
/** {@link Disposable.onDisposed} */
|
|
18174
18176
|
C(this, "onDisposed", new j());
|
|
18175
18177
|
/**
|
|
@@ -18423,17 +18425,17 @@ class eh extends At {
|
|
|
18423
18425
|
* An event that is triggered when properties are streamed from the IFC file.
|
|
18424
18426
|
* The event provides the type of the IFC entity and the corresponding data.
|
|
18425
18427
|
*/
|
|
18426
|
-
C(this, "onPropertiesStreamed", new
|
|
18428
|
+
C(this, "onPropertiesStreamed", new _e());
|
|
18427
18429
|
/**
|
|
18428
18430
|
* An event that is triggered to indicate the progress of the streaming process.
|
|
18429
18431
|
* The event provides a number between 0 and 1 representing the progress percentage.
|
|
18430
18432
|
*/
|
|
18431
|
-
C(this, "onProgress", new
|
|
18433
|
+
C(this, "onProgress", new _e());
|
|
18432
18434
|
/**
|
|
18433
18435
|
* An event that is triggered when indices are streamed from the IFC file.
|
|
18434
18436
|
* The event provides a map of indices, where the key is the entity type and the value is another map of indices.
|
|
18435
18437
|
*/
|
|
18436
|
-
C(this, "onIndicesStreamed", new
|
|
18438
|
+
C(this, "onIndicesStreamed", new _e());
|
|
18437
18439
|
/** {@link Disposable.onDisposed} */
|
|
18438
18440
|
C(this, "onDisposed", new j());
|
|
18439
18441
|
/** {@link Component.enabled} */
|
|
@@ -18523,7 +18525,7 @@ class eh extends At {
|
|
|
18523
18525
|
r / e.size > n && (n = Math.round(n * 100) / 100, await this.onProgress.trigger(n), n += 0.01);
|
|
18524
18526
|
}
|
|
18525
18527
|
await this.onProgress.trigger(1);
|
|
18526
|
-
const a = await this.components.get(
|
|
18528
|
+
const a = await this.components.get(Gt).processFromWebIfc(this.webIfc, 0);
|
|
18527
18529
|
await this.onIndicesStreamed.trigger(a);
|
|
18528
18530
|
}
|
|
18529
18531
|
cleanUp() {
|
|
@@ -18746,7 +18748,7 @@ class To {
|
|
|
18746
18748
|
throw new Error(
|
|
18747
18749
|
"Viewpoint: the world's camera need controls to set the viewpoint."
|
|
18748
18750
|
);
|
|
18749
|
-
t instanceof
|
|
18751
|
+
t instanceof Pc && t.projection.set(this.projection);
|
|
18750
18752
|
const e = new D.Vector3(
|
|
18751
18753
|
this.camera.position.x,
|
|
18752
18754
|
this.camera.position.y,
|
|
@@ -19847,7 +19849,7 @@ class oh extends ks {
|
|
|
19847
19849
|
const E = await t.getProperties(d);
|
|
19848
19850
|
!E || !this.evalSystem(E) || !this.evalValue(u) || !this.evalURI(u) || a.push(I);
|
|
19849
19851
|
}
|
|
19850
|
-
const l = this.components.get(
|
|
19852
|
+
const l = this.components.get(Gt);
|
|
19851
19853
|
for (const f of a) {
|
|
19852
19854
|
const I = l.getEntitiesWithRelation(
|
|
19853
19855
|
t,
|
|
@@ -19914,7 +19916,7 @@ class oh extends ks {
|
|
|
19914
19916
|
}
|
|
19915
19917
|
async getSystems(t, e) {
|
|
19916
19918
|
var f;
|
|
19917
|
-
const s = [], n = this.components.get(
|
|
19919
|
+
const s = [], n = this.components.get(Gt), r = n.getEntityRelations(
|
|
19918
19920
|
t,
|
|
19919
19921
|
e,
|
|
19920
19922
|
"HasAssociations"
|
|
@@ -20077,7 +20079,7 @@ class ah extends ks {
|
|
|
20077
20079
|
var l, h, f, I;
|
|
20078
20080
|
if (!this.predefinedType)
|
|
20079
20081
|
return null;
|
|
20080
|
-
const n = this.components.get(
|
|
20082
|
+
const n = this.components.get(Gt), r = typeof this.predefinedType.parameter == "string" && this.predefinedType.parameter === "USERDEFINED";
|
|
20081
20083
|
let o = (l = e.PredefinedType) == null ? void 0 : l.value;
|
|
20082
20084
|
if (o === "USERDEFINED" && !r) {
|
|
20083
20085
|
const d = Object.keys(e).find(
|
|
@@ -20117,6 +20119,7 @@ class ch extends ks {
|
|
|
20117
20119
|
C(this, "value");
|
|
20118
20120
|
C(this, "dataType");
|
|
20119
20121
|
C(this, "uri");
|
|
20122
|
+
// These are defined by the IDS specification
|
|
20120
20123
|
C(this, "_unsupportedTypes", [
|
|
20121
20124
|
z.IFCCOMPLEXPROPERTY,
|
|
20122
20125
|
z.IFCPHYSICALCOMPLEXQUANTITY
|
|
@@ -20161,7 +20164,7 @@ class ch extends ks {
|
|
|
20161
20164
|
}
|
|
20162
20165
|
}
|
|
20163
20166
|
}
|
|
20164
|
-
const a = this.components.get(
|
|
20167
|
+
const a = this.components.get(Gt);
|
|
20165
20168
|
for (const f of o) {
|
|
20166
20169
|
const I = a.getEntitiesWithRelation(
|
|
20167
20170
|
t,
|
|
@@ -20261,9 +20264,34 @@ class ch extends ks {
|
|
|
20261
20264
|
(e) => e.endsWith("Value") || e.endsWith("Values")
|
|
20262
20265
|
);
|
|
20263
20266
|
}
|
|
20264
|
-
|
|
20267
|
+
async getPsetProps(t, e, s) {
|
|
20268
|
+
const n = structuredClone(e), r = [], o = n[s];
|
|
20269
|
+
if (!o)
|
|
20270
|
+
return r;
|
|
20271
|
+
for (const { value: a } of o) {
|
|
20272
|
+
const l = await t.getProperties(a);
|
|
20273
|
+
l && r.push(l);
|
|
20274
|
+
}
|
|
20275
|
+
return n[s] = r, n;
|
|
20276
|
+
}
|
|
20277
|
+
async getTypePsets(t, e) {
|
|
20278
|
+
const s = [], r = this.components.get(Gt).getEntityRelations(t, e, "IsTypedBy");
|
|
20279
|
+
if (!(r && r[0]))
|
|
20280
|
+
return s;
|
|
20281
|
+
const o = await t.getProperties(r[0]);
|
|
20282
|
+
if (!(o && "HasPropertySets" in o && Array.isArray(o.HasPropertySets)))
|
|
20283
|
+
return s;
|
|
20284
|
+
for (const { value: a } of o.HasPropertySets) {
|
|
20285
|
+
const l = await t.getProperties(a);
|
|
20286
|
+
if (!(l && "HasProperties" in l && Array.isArray(l.HasProperties)))
|
|
20287
|
+
continue;
|
|
20288
|
+
const h = await this.getPsetProps(t, l, "HasProperties");
|
|
20289
|
+
s.push(h);
|
|
20290
|
+
}
|
|
20291
|
+
return s;
|
|
20292
|
+
}
|
|
20265
20293
|
async getPsets(t, e) {
|
|
20266
|
-
const s =
|
|
20294
|
+
const s = await this.getTypePsets(t, e), r = this.components.get(Gt).getEntityRelations(
|
|
20267
20295
|
t,
|
|
20268
20296
|
e,
|
|
20269
20297
|
"IsDefinedBy"
|
|
@@ -20277,12 +20305,8 @@ class ch extends ks {
|
|
|
20277
20305
|
const l = this.getItemsAttrName(a.type);
|
|
20278
20306
|
if (!l)
|
|
20279
20307
|
continue;
|
|
20280
|
-
const h =
|
|
20281
|
-
|
|
20282
|
-
const u = await t.getProperties(I);
|
|
20283
|
-
u && f.push(u);
|
|
20284
|
-
}
|
|
20285
|
-
h[l] = f, s.push(h);
|
|
20308
|
+
const h = await this.getPsetProps(t, a, l);
|
|
20309
|
+
s.push(h);
|
|
20286
20310
|
}
|
|
20287
20311
|
return s;
|
|
20288
20312
|
}
|
|
@@ -20624,7 +20648,7 @@ C(ri, "uuid", "9f0b9f78-9b2e-481a-b766-2fbfd01f342c"), C(ri, "xmlParser", new Co
|
|
|
20624
20648
|
}));
|
|
20625
20649
|
let $r = ri;
|
|
20626
20650
|
export {
|
|
20627
|
-
|
|
20651
|
+
_e as AsyncEvent,
|
|
20628
20652
|
Mt as BCFTopics,
|
|
20629
20653
|
Kl as BCFTopicsConfigManager,
|
|
20630
20654
|
xn as Base,
|
|
@@ -20635,7 +20659,7 @@ export {
|
|
|
20635
20659
|
wn as BoundingBoxer,
|
|
20636
20660
|
Bi as Classifier,
|
|
20637
20661
|
Sn as Clipper,
|
|
20638
|
-
|
|
20662
|
+
_n as Comment,
|
|
20639
20663
|
At as Component,
|
|
20640
20664
|
ph as ComponentWithUI,
|
|
20641
20665
|
Cs as Components,
|
|
@@ -20663,7 +20687,7 @@ export {
|
|
|
20663
20687
|
gs as IfcBasicQuery,
|
|
20664
20688
|
gh as IfcCategories,
|
|
20665
20689
|
ms as IfcCategoryMap,
|
|
20666
|
-
|
|
20690
|
+
_c as IfcElements,
|
|
20667
20691
|
Gr as IfcFinder,
|
|
20668
20692
|
se as IfcFinderQuery,
|
|
20669
20693
|
Yn as IfcFragmentSettings,
|
|
@@ -20674,7 +20698,7 @@ export {
|
|
|
20674
20698
|
eh as IfcPropertiesTiler,
|
|
20675
20699
|
oi as IfcPropertiesUtils,
|
|
20676
20700
|
As as IfcPropertyQuery,
|
|
20677
|
-
|
|
20701
|
+
Gt as IfcRelationsIndexer,
|
|
20678
20702
|
Jl as IfcStreamingSettings,
|
|
20679
20703
|
pr as MaterialsUtils,
|
|
20680
20704
|
Wr as MeasurementUtils,
|
|
@@ -20684,7 +20708,7 @@ export {
|
|
|
20684
20708
|
Hr as MiniMaps,
|
|
20685
20709
|
fc as Mouse,
|
|
20686
20710
|
Nc as OrbitMode,
|
|
20687
|
-
|
|
20711
|
+
Pc as OrthoPerspectiveCamera,
|
|
20688
20712
|
yc as PlanMode,
|
|
20689
20713
|
Lc as ProjectionManager,
|
|
20690
20714
|
th as PropertiesStreamingSettings,
|