@thatopen/components 2.3.8 → 2.3.10
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 +614 -607
- package/dist/namespace.d.ts +3640 -3640
- package/dist/openbim/IDSSpecifications/index.d.ts +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -95,12 +95,12 @@ function $s(c, i, t, e, s = null) {
|
|
|
95
95
|
let n = 1 / 0, r = 1 / 0, o = 1 / 0, a = -1 / 0, l = -1 / 0, h = -1 / 0, f = 1 / 0, I = 1 / 0, u = 1 / 0, d = -1 / 0, E = -1 / 0, T = -1 / 0;
|
|
96
96
|
const p = s !== null;
|
|
97
97
|
for (let m = i * 6, F = (i + t) * 6; m < F; m += 6) {
|
|
98
|
-
const R = c[m + 0], S = c[m + 1],
|
|
99
|
-
|
|
100
|
-
const
|
|
101
|
-
b < r && (r = b), Y > l && (l = Y), p &&
|
|
102
|
-
const
|
|
103
|
-
g < o && (o = g), v > h && (h = v), p &&
|
|
98
|
+
const R = c[m + 0], S = c[m + 1], O = R - S, y = R + S;
|
|
99
|
+
O < n && (n = O), y > a && (a = y), p && R < f && (f = R), p && R > d && (d = R);
|
|
100
|
+
const w = c[m + 2], L = c[m + 3], b = w - L, Y = w + L;
|
|
101
|
+
b < r && (r = b), Y > l && (l = Y), p && w < I && (I = w), p && w > E && (E = w);
|
|
102
|
+
const N = c[m + 4], M = c[m + 5], g = N - M, v = N + M;
|
|
103
|
+
g < o && (o = g), v > h && (h = v), p && N < u && (u = N), p && N > T && (T = N);
|
|
104
104
|
}
|
|
105
105
|
e[0] = n, e[1] = r, e[2] = o, e[3] = a, e[4] = l, e[5] = h, p && (s[0] = f, s[1] = I, s[2] = u, s[3] = d, s[4] = E, s[5] = T);
|
|
106
106
|
}
|
|
@@ -131,10 +131,10 @@ function ko(c, i) {
|
|
|
131
131
|
r ? (m = t[h[p]](d), F = t[h[p]](E), R = t[h[p]](T)) : (m = o[d + p], F = o[E + p], R = o[T + p]);
|
|
132
132
|
let S = m;
|
|
133
133
|
F < S && (S = F), R < S && (S = R);
|
|
134
|
-
let
|
|
135
|
-
F >
|
|
136
|
-
const y = (
|
|
137
|
-
n[u +
|
|
134
|
+
let O = m;
|
|
135
|
+
F > O && (O = F), R > O && (O = R);
|
|
136
|
+
const y = (O - S) / 2, w = p * 2;
|
|
137
|
+
n[u + w + 0] = S + y, n[u + w + 1] = y + (Math.abs(S) + y) * Uo, S < i[p] && (i[p] = S), O > i[p + 3] && (i[p + 3] = O);
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
return n;
|
|
@@ -166,13 +166,13 @@ function Wo(c, i, t, e, s, n) {
|
|
|
166
166
|
const S = p[m];
|
|
167
167
|
S.candidate = t[R + 2 * I], S.count = 0;
|
|
168
168
|
const {
|
|
169
|
-
bounds:
|
|
169
|
+
bounds: O,
|
|
170
170
|
leftCacheBounds: y,
|
|
171
|
-
rightCacheBounds:
|
|
171
|
+
rightCacheBounds: w
|
|
172
172
|
} = S;
|
|
173
173
|
for (let L = 0; L < 3; L++)
|
|
174
|
-
|
|
175
|
-
zi(R, t,
|
|
174
|
+
w[L] = 1 / 0, w[L + 3] = -1 / 0, y[L] = 1 / 0, y[L + 3] = -1 / 0, O[L] = 1 / 0, O[L + 3] = -1 / 0;
|
|
175
|
+
zi(R, t, O);
|
|
176
176
|
}
|
|
177
177
|
p.sort(Ho);
|
|
178
178
|
let F = s;
|
|
@@ -183,32 +183,32 @@ function Wo(c, i, t, e, s, n) {
|
|
|
183
183
|
}
|
|
184
184
|
for (let R = h; R < f; R += 6) {
|
|
185
185
|
const S = t[R + 2 * I];
|
|
186
|
-
for (let
|
|
187
|
-
const y = p[
|
|
186
|
+
for (let O = 0; O < F; O++) {
|
|
187
|
+
const y = p[O];
|
|
188
188
|
S >= y.candidate ? zi(R, t, y.rightCacheBounds) : (zi(R, t, y.leftCacheBounds), y.count++);
|
|
189
189
|
}
|
|
190
190
|
}
|
|
191
191
|
for (let R = 0; R < F; R++) {
|
|
192
|
-
const S = p[R],
|
|
192
|
+
const S = p[R], O = S.count, y = s - S.count, w = S.leftCacheBounds, L = S.rightCacheBounds;
|
|
193
193
|
let b = 0;
|
|
194
|
-
|
|
194
|
+
O !== 0 && (b = di(w) / a);
|
|
195
195
|
let Y = 0;
|
|
196
196
|
y !== 0 && (Y = di(L) / a);
|
|
197
|
-
const
|
|
198
|
-
|
|
197
|
+
const N = qn + Ws * (b * O + Y * y);
|
|
198
|
+
N < l && (r = I, l = N, o = S.candidate);
|
|
199
199
|
}
|
|
200
200
|
} else {
|
|
201
201
|
for (let F = 0; F < Te; F++) {
|
|
202
202
|
const R = Fe[F];
|
|
203
203
|
R.count = 0, R.candidate = u + T + F * T;
|
|
204
204
|
const S = R.bounds;
|
|
205
|
-
for (let
|
|
206
|
-
S[
|
|
205
|
+
for (let O = 0; O < 3; O++)
|
|
206
|
+
S[O] = 1 / 0, S[O + 3] = -1 / 0;
|
|
207
207
|
}
|
|
208
208
|
for (let F = h; F < f; F += 6) {
|
|
209
|
-
let
|
|
210
|
-
|
|
211
|
-
const y = Fe[
|
|
209
|
+
let O = ~~((t[F + 2 * I] - u) / T);
|
|
210
|
+
O >= Te && (O = Te - 1);
|
|
211
|
+
const y = Fe[O];
|
|
212
212
|
y.count++, zi(F, t, y.bounds);
|
|
213
213
|
}
|
|
214
214
|
const p = Fe[Te - 1];
|
|
@@ -219,14 +219,14 @@ function Wo(c, i, t, e, s, n) {
|
|
|
219
219
|
}
|
|
220
220
|
let m = 0;
|
|
221
221
|
for (let F = 0; F < Te - 1; F++) {
|
|
222
|
-
const R = Fe[F], S = R.count,
|
|
223
|
-
S !== 0 && (m === 0 ? Kn(
|
|
222
|
+
const R = Fe[F], S = R.count, O = R.bounds, w = Fe[F + 1].rightCacheBounds;
|
|
223
|
+
S !== 0 && (m === 0 ? Kn(O, ki) : Jn(O, ki, ki)), m += S;
|
|
224
224
|
let L = 0, b = 0;
|
|
225
225
|
m !== 0 && (L = di(ki) / a);
|
|
226
226
|
const Y = s - m;
|
|
227
|
-
Y !== 0 && (b = di(
|
|
228
|
-
const
|
|
229
|
-
|
|
227
|
+
Y !== 0 && (b = di(w) / a);
|
|
228
|
+
const N = qn + Ws * (L * m + b * Y);
|
|
229
|
+
N < l && (r = I, l = N, o = R.candidate);
|
|
230
230
|
}
|
|
231
231
|
}
|
|
232
232
|
}
|
|
@@ -308,21 +308,21 @@ function qo(c, i) {
|
|
|
308
308
|
function m(R) {
|
|
309
309
|
a && a(R / l);
|
|
310
310
|
}
|
|
311
|
-
function F(R, S,
|
|
312
|
-
if (!f &&
|
|
313
|
-
return m(S +
|
|
314
|
-
const L = Wo(R.boundingData, y, d, S,
|
|
311
|
+
function F(R, S, O, y = null, w = 0) {
|
|
312
|
+
if (!f && w >= s && (f = !0, n && (console.warn(`MeshBVH: Max depth of ${s} reached when generating BVH. Consider increasing maxDepth.`), console.warn(t))), O <= r || w >= s)
|
|
313
|
+
return m(S + O), R.offset = S, R.count = O, R;
|
|
314
|
+
const L = Wo(R.boundingData, y, d, S, O, o);
|
|
315
315
|
if (L.axis === -1)
|
|
316
|
-
return m(S +
|
|
317
|
-
const b = E(h, e, d, S,
|
|
318
|
-
if (b === S || b === S +
|
|
319
|
-
m(S +
|
|
316
|
+
return m(S + O), R.offset = S, R.count = O, R;
|
|
317
|
+
const b = E(h, e, d, S, O, L);
|
|
318
|
+
if (b === S || b === S + O)
|
|
319
|
+
m(S + O), R.offset = S, R.count = O;
|
|
320
320
|
else {
|
|
321
321
|
R.splitAxis = L.axis;
|
|
322
|
-
const Y = new Hi(),
|
|
323
|
-
R.left = Y, Y.boundingData = new Float32Array(6), $s(d,
|
|
324
|
-
const g = new Hi(), v = b, q =
|
|
325
|
-
R.right = g, g.boundingData = new Float32Array(6), $s(d, v, q, g.boundingData, u), F(g, v, q, u,
|
|
322
|
+
const Y = new Hi(), N = S, M = b - S;
|
|
323
|
+
R.left = Y, Y.boundingData = new Float32Array(6), $s(d, N, M, Y.boundingData, u), F(Y, N, M, u, w + 1);
|
|
324
|
+
const g = new Hi(), v = b, q = O - M;
|
|
325
|
+
R.right = g, g.boundingData = new Float32Array(6), $s(d, v, q, g.boundingData, u), F(g, v, q, u, w + 1);
|
|
326
326
|
}
|
|
327
327
|
return R;
|
|
328
328
|
}
|
|
@@ -493,17 +493,17 @@ ne.prototype.intersectsTriangle = function() {
|
|
|
493
493
|
const m = E.points;
|
|
494
494
|
let F = 0, R = -1;
|
|
495
495
|
for (let S = 0; S < 3; S++) {
|
|
496
|
-
const { start:
|
|
497
|
-
|
|
498
|
-
const
|
|
499
|
-
if (Zs(T.normal.dot(r)) &&
|
|
496
|
+
const { start: O, end: y } = h;
|
|
497
|
+
O.copy(m[S]), y.copy(m[(S + 1) % 3]), h.delta(r);
|
|
498
|
+
const w = Zs(T.distanceToPoint(O));
|
|
499
|
+
if (Zs(T.normal.dot(r)) && w) {
|
|
500
500
|
p.copy(h), F = 2;
|
|
501
501
|
break;
|
|
502
502
|
}
|
|
503
503
|
const L = T.intersectLine(h, u);
|
|
504
|
-
if (!L &&
|
|
504
|
+
if (!L && w && u.copy(O), (L || w) && !Zs(u.distanceTo(y))) {
|
|
505
505
|
if (F <= 1)
|
|
506
|
-
(F === 1 ? p.start : p.end).copy(u),
|
|
506
|
+
(F === 1 ? p.start : p.end).copy(u), w && (R = F);
|
|
507
507
|
else if (F >= 2) {
|
|
508
508
|
(R === 1 ? p.start : p.end).copy(u), F = 2;
|
|
509
509
|
break;
|
|
@@ -518,25 +518,25 @@ ne.prototype.intersectsTriangle = function() {
|
|
|
518
518
|
this.needsUpdate && this.update(), T.isExtendedTriangle ? T.needsUpdate && T.update() : (c.copy(T), c.update(), T = c);
|
|
519
519
|
const F = this.plane, R = T.plane;
|
|
520
520
|
if (Math.abs(F.normal.dot(R.normal)) > 1 - 1e-10) {
|
|
521
|
-
const S = this.satBounds,
|
|
521
|
+
const S = this.satBounds, O = this.satAxes;
|
|
522
522
|
t[0] = T.a, t[1] = T.b, t[2] = T.c;
|
|
523
523
|
for (let L = 0; L < 4; L++) {
|
|
524
|
-
const b = S[L], Y =
|
|
524
|
+
const b = S[L], Y = O[L];
|
|
525
525
|
if (e.setFromPoints(Y, t), b.isSeparated(e))
|
|
526
526
|
return !1;
|
|
527
527
|
}
|
|
528
|
-
const y = T.satBounds,
|
|
528
|
+
const y = T.satBounds, w = T.satAxes;
|
|
529
529
|
i[0] = this.a, i[1] = this.b, i[2] = this.c;
|
|
530
530
|
for (let L = 0; L < 4; L++) {
|
|
531
|
-
const b = y[L], Y =
|
|
531
|
+
const b = y[L], Y = w[L];
|
|
532
532
|
if (e.setFromPoints(Y, i), b.isSeparated(e))
|
|
533
533
|
return !1;
|
|
534
534
|
}
|
|
535
535
|
for (let L = 0; L < 4; L++) {
|
|
536
|
-
const b =
|
|
536
|
+
const b = O[L];
|
|
537
537
|
for (let Y = 0; Y < 4; Y++) {
|
|
538
|
-
const
|
|
539
|
-
if (n.crossVectors(b,
|
|
538
|
+
const N = w[Y];
|
|
539
|
+
if (n.crossVectors(b, N), e.setFromPoints(n, i), s.setFromPoints(n, t), e.isSeparated(s))
|
|
540
540
|
return !1;
|
|
541
541
|
}
|
|
542
542
|
}
|
|
@@ -547,17 +547,17 @@ ne.prototype.intersectsTriangle = function() {
|
|
|
547
547
|
return p && (p.start.copy(f.end), p.end.copy(f.end)), !0;
|
|
548
548
|
if (S !== 2)
|
|
549
549
|
return !1;
|
|
550
|
-
const
|
|
551
|
-
if (
|
|
550
|
+
const O = d(T, F, I);
|
|
551
|
+
if (O === 1 && this.containsPoint(I.end))
|
|
552
552
|
return p && (p.start.copy(I.end), p.end.copy(I.end)), !0;
|
|
553
|
-
if (
|
|
553
|
+
if (O !== 2)
|
|
554
554
|
return !1;
|
|
555
555
|
if (f.delta(o), I.delta(a), o.dot(a) < 0) {
|
|
556
|
-
let
|
|
557
|
-
I.start = I.end, I.end =
|
|
556
|
+
let M = I.start;
|
|
557
|
+
I.start = I.end, I.end = M;
|
|
558
558
|
}
|
|
559
|
-
const y = f.start.dot(o),
|
|
560
|
-
return y !== b && L !==
|
|
559
|
+
const y = f.start.dot(o), w = f.end.dot(o), L = I.start.dot(o), b = I.end.dot(o), Y = w < L, N = y < b;
|
|
560
|
+
return y !== b && L !== w && Y === N ? !1 : (p && (l.subVectors(f.start, I.start), l.dot(o) > 0 ? p.start.copy(f.start) : p.start.copy(I.start), l.subVectors(f.end, I.end), l.dot(o) < 0 ? p.end.copy(f.end) : p.end.copy(I.end)), !0);
|
|
561
561
|
}
|
|
562
562
|
};
|
|
563
563
|
}();
|
|
@@ -695,10 +695,10 @@ Bt.prototype.distanceToBox = function() {
|
|
|
695
695
|
for (let T = 0; T < 3; T++)
|
|
696
696
|
for (let p = 0; p <= 1; p++)
|
|
697
697
|
for (let m = 0; m <= 1; m++) {
|
|
698
|
-
const F = (T + 1) % 3, R = (T + 2) % 3, S = p << F | m << R,
|
|
699
|
-
i[E].set(y,
|
|
700
|
-
const b = c[T], Y = c[F],
|
|
701
|
-
g[b] = f[b], g[Y] = p ? f[Y] : I[Y], g[
|
|
698
|
+
const F = (T + 1) % 3, R = (T + 2) % 3, S = p << F | m << R, O = 1 << T | p << F | m << R, y = u[S], w = u[O];
|
|
699
|
+
i[E].set(y, w);
|
|
700
|
+
const b = c[T], Y = c[F], N = c[R], M = t[E], g = M.start, v = M.end;
|
|
701
|
+
g[b] = f[b], g[Y] = p ? f[Y] : I[Y], g[N] = m ? f[N] : I[Y], v[b] = I[b], v[Y] = p ? f[Y] : I[Y], v[N] = m ? f[N] : I[Y], E++;
|
|
702
702
|
}
|
|
703
703
|
for (let T = 0; T <= 1; T++)
|
|
704
704
|
for (let p = 0; p <= 1; p++)
|
|
@@ -786,34 +786,34 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
786
786
|
const I = zt(c, l), u = Zt(h, a);
|
|
787
787
|
return Nt(c, o, _e), e(I, u, !1, r, n + c, _e);
|
|
788
788
|
} else {
|
|
789
|
-
let b = function(
|
|
790
|
-
const { uint16Array:
|
|
791
|
-
let v =
|
|
792
|
-
for (; !Gt(v,
|
|
793
|
-
|
|
794
|
-
return zt(
|
|
795
|
-
}, Y = function(
|
|
796
|
-
const { uint16Array:
|
|
797
|
-
let v =
|
|
798
|
-
for (; !Gt(v,
|
|
799
|
-
|
|
800
|
-
return zt(
|
|
789
|
+
let b = function(N) {
|
|
790
|
+
const { uint16Array: M, uint32Array: g } = Ft;
|
|
791
|
+
let v = N * 2;
|
|
792
|
+
for (; !Gt(v, M); )
|
|
793
|
+
N = jt(N), v = N * 2;
|
|
794
|
+
return zt(N, g);
|
|
795
|
+
}, Y = function(N) {
|
|
796
|
+
const { uint16Array: M, uint32Array: g } = Ft;
|
|
797
|
+
let v = N * 2;
|
|
798
|
+
for (; !Gt(v, M); )
|
|
799
|
+
N = qt(N, g), v = N * 2;
|
|
800
|
+
return zt(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
804
|
if (s && (m = _e, 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
|
-
const
|
|
807
|
-
T = p, p =
|
|
806
|
+
const N = T;
|
|
807
|
+
T = p, p = N, m = F;
|
|
808
808
|
}
|
|
809
809
|
m || (m = _e, Nt(d, o, m));
|
|
810
810
|
const R = Gt(d * 2, a), S = t(m, R, T, r + 1, n + d);
|
|
811
|
-
let
|
|
811
|
+
let O;
|
|
812
812
|
if (S === jn) {
|
|
813
|
-
const
|
|
814
|
-
|
|
813
|
+
const N = b(d), g = Y(d) - N;
|
|
814
|
+
O = e(N, g, !0, r + 1, n + d, m);
|
|
815
815
|
} else
|
|
816
|
-
|
|
816
|
+
O = S && dn(
|
|
817
817
|
d,
|
|
818
818
|
i,
|
|
819
819
|
t,
|
|
@@ -822,16 +822,16 @@ function dn(c, i, t, e, s = null, n = 0, r = 0) {
|
|
|
822
822
|
n,
|
|
823
823
|
r + 1
|
|
824
824
|
);
|
|
825
|
-
if (
|
|
825
|
+
if (O)
|
|
826
826
|
return !0;
|
|
827
827
|
F = si, Nt(E, o, F);
|
|
828
|
-
const y = Gt(E * 2, a),
|
|
828
|
+
const y = Gt(E * 2, a), w = t(F, y, p, r + 1, n + E);
|
|
829
829
|
let L;
|
|
830
|
-
if (
|
|
831
|
-
const
|
|
832
|
-
L = e(
|
|
830
|
+
if (w === jn) {
|
|
831
|
+
const N = b(E), g = Y(E) - N;
|
|
832
|
+
L = e(N, g, !0, r + 1, n + E, F);
|
|
833
833
|
} else
|
|
834
|
-
L =
|
|
834
|
+
L = w && dn(
|
|
835
835
|
E,
|
|
836
836
|
i,
|
|
837
837
|
t,
|
|
@@ -933,29 +933,29 @@ function ha(c, i = null) {
|
|
|
933
933
|
const E = I * 2;
|
|
934
934
|
if (o[E + 15] === Ys) {
|
|
935
935
|
const p = r[I + 6], m = o[E + 14];
|
|
936
|
-
let F = 1 / 0, R = 1 / 0, S = 1 / 0,
|
|
936
|
+
let F = 1 / 0, R = 1 / 0, S = 1 / 0, O = -1 / 0, y = -1 / 0, w = -1 / 0;
|
|
937
937
|
for (let L = 3 * p, b = 3 * (p + m); L < b; L++) {
|
|
938
938
|
let Y = e[L];
|
|
939
|
-
const
|
|
940
|
-
|
|
939
|
+
const N = s.getX(Y), M = s.getY(Y), g = s.getZ(Y);
|
|
940
|
+
N < F && (F = N), N > O && (O = N), M < R && (R = M), M > y && (y = M), g < S && (S = g), g > w && (w = g);
|
|
941
941
|
}
|
|
942
|
-
return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !==
|
|
942
|
+
return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !== O || a[I + 4] !== y || a[I + 5] !== w ? (a[I + 0] = F, a[I + 1] = R, a[I + 2] = S, a[I + 3] = O, a[I + 4] = y, a[I + 5] = w, !0) : !1;
|
|
943
943
|
} else {
|
|
944
944
|
const p = I + 8, m = r[I + 6], F = p + u, R = m + u;
|
|
945
|
-
let S = d,
|
|
946
|
-
i ? S || (
|
|
947
|
-
const
|
|
945
|
+
let S = d, O = !1, y = !1;
|
|
946
|
+
i ? S || (O = i.has(F), y = i.has(R), S = !O && !y) : (O = !0, y = !0);
|
|
947
|
+
const w = S || O, L = S || y;
|
|
948
948
|
let b = !1;
|
|
949
|
-
|
|
949
|
+
w && (b = f(p, u, S));
|
|
950
950
|
let Y = !1;
|
|
951
951
|
L && (Y = f(m, u, S));
|
|
952
|
-
const
|
|
953
|
-
if (
|
|
954
|
-
for (let
|
|
955
|
-
const g = p +
|
|
956
|
-
a[I +
|
|
952
|
+
const N = b || Y;
|
|
953
|
+
if (N)
|
|
954
|
+
for (let M = 0; M < 3; M++) {
|
|
955
|
+
const g = p + M, v = m + M, q = a[g], G = a[g + 3], et = a[v], W = a[v + 3];
|
|
956
|
+
a[I + M] = q < et ? q : et, a[I + M + 3] = G > W ? G : W;
|
|
957
957
|
}
|
|
958
|
-
return
|
|
958
|
+
return N;
|
|
959
959
|
}
|
|
960
960
|
}
|
|
961
961
|
}
|
|
@@ -1076,19 +1076,19 @@ function Aa(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
|
1076
1076
|
return Ki.copy(t).invert(), Ci.matrix.copy(Ki), c.shapecast(
|
|
1077
1077
|
{
|
|
1078
1078
|
boundsTraverseOrder: (S) => qs.distanceToBox(S),
|
|
1079
|
-
intersectsBounds: (S,
|
|
1080
|
-
intersectsRange: (S,
|
|
1079
|
+
intersectsBounds: (S, O, y) => y < m && y < r ? (O && (Ci.min.copy(S.min), Ci.max.copy(S.max), Ci.needsUpdate = !0), !0) : !1,
|
|
1080
|
+
intersectsRange: (S, O) => {
|
|
1081
1081
|
if (i.boundsTree)
|
|
1082
1082
|
return i.boundsTree.shapecast({
|
|
1083
|
-
boundsTraverseOrder: (
|
|
1084
|
-
intersectsBounds: (
|
|
1085
|
-
intersectsRange: (
|
|
1086
|
-
for (let b =
|
|
1083
|
+
boundsTraverseOrder: (w) => Ci.distanceToBox(w),
|
|
1084
|
+
intersectsBounds: (w, L, b) => b < m && b < r,
|
|
1085
|
+
intersectsRange: (w, L) => {
|
|
1086
|
+
for (let b = w, Y = w + L; b < Y; b++) {
|
|
1087
1087
|
wt(u, 3 * b, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
1088
|
-
for (let
|
|
1089
|
-
wt(I, 3 *
|
|
1088
|
+
for (let N = S, M = S + O; N < M; N++) {
|
|
1089
|
+
wt(I, 3 * N, l, a), I.needsUpdate = !0;
|
|
1090
1090
|
const g = I.distanceToTriangle(u, d, T);
|
|
1091
|
-
if (g < m && (E.copy(d), p && p.copy(T), m = g, F =
|
|
1091
|
+
if (g < m && (E.copy(d), p && p.copy(T), m = g, F = N, R = b), g < n)
|
|
1092
1092
|
return !0;
|
|
1093
1093
|
}
|
|
1094
1094
|
}
|
|
@@ -1096,12 +1096,12 @@ function Aa(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
|
1096
1096
|
});
|
|
1097
1097
|
{
|
|
1098
1098
|
const y = li(i);
|
|
1099
|
-
for (let
|
|
1100
|
-
wt(u, 3 *
|
|
1101
|
-
for (let b = S, Y = S +
|
|
1099
|
+
for (let w = 0, L = y; w < L; w++) {
|
|
1100
|
+
wt(u, 3 * w, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
1101
|
+
for (let b = S, Y = S + O; b < Y; b++) {
|
|
1102
1102
|
wt(I, 3 * b, l, a), I.needsUpdate = !0;
|
|
1103
|
-
const
|
|
1104
|
-
if (
|
|
1103
|
+
const N = I.distanceToTriangle(u, d, T);
|
|
1104
|
+
if (N < m && (E.copy(d), p && p.copy(T), m = N, F = b, R = w), N < n)
|
|
1105
1105
|
return !0;
|
|
1106
1106
|
}
|
|
1107
1107
|
}
|
|
@@ -1121,33 +1121,33 @@ function Fa(c, i = null) {
|
|
|
1121
1121
|
const E = I * 2;
|
|
1122
1122
|
if (o[E + 15] === Ys) {
|
|
1123
1123
|
const p = r[I + 6], m = o[E + 14];
|
|
1124
|
-
let F = 1 / 0, R = 1 / 0, S = 1 / 0,
|
|
1124
|
+
let F = 1 / 0, R = 1 / 0, S = 1 / 0, O = -1 / 0, y = -1 / 0, w = -1 / 0;
|
|
1125
1125
|
for (let L = p, b = p + m; L < b; L++) {
|
|
1126
1126
|
const Y = 3 * c.resolveTriangleIndex(L);
|
|
1127
|
-
for (let
|
|
1128
|
-
let
|
|
1129
|
-
|
|
1130
|
-
const g = s.getX(
|
|
1131
|
-
g < F && (F = g), g >
|
|
1127
|
+
for (let N = 0; N < 3; N++) {
|
|
1128
|
+
let M = Y + N;
|
|
1129
|
+
M = e ? e[M] : M;
|
|
1130
|
+
const g = s.getX(M), v = s.getY(M), q = s.getZ(M);
|
|
1131
|
+
g < F && (F = g), g > O && (O = g), v < R && (R = v), v > y && (y = v), q < S && (S = q), q > w && (w = q);
|
|
1132
1132
|
}
|
|
1133
1133
|
}
|
|
1134
|
-
return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !==
|
|
1134
|
+
return a[I + 0] !== F || a[I + 1] !== R || a[I + 2] !== S || a[I + 3] !== O || a[I + 4] !== y || a[I + 5] !== w ? (a[I + 0] = F, a[I + 1] = R, a[I + 2] = S, a[I + 3] = O, a[I + 4] = y, a[I + 5] = w, !0) : !1;
|
|
1135
1135
|
} else {
|
|
1136
1136
|
const p = I + 8, m = r[I + 6], F = p + u, R = m + u;
|
|
1137
|
-
let S = d,
|
|
1138
|
-
i ? S || (
|
|
1139
|
-
const
|
|
1137
|
+
let S = d, O = !1, y = !1;
|
|
1138
|
+
i ? S || (O = i.has(F), y = i.has(R), S = !O && !y) : (O = !0, y = !0);
|
|
1139
|
+
const w = S || O, L = S || y;
|
|
1140
1140
|
let b = !1;
|
|
1141
|
-
|
|
1141
|
+
w && (b = f(p, u, S));
|
|
1142
1142
|
let Y = !1;
|
|
1143
1143
|
L && (Y = f(m, u, S));
|
|
1144
|
-
const
|
|
1145
|
-
if (
|
|
1146
|
-
for (let
|
|
1147
|
-
const g = p +
|
|
1148
|
-
a[I +
|
|
1144
|
+
const N = b || Y;
|
|
1145
|
+
if (N)
|
|
1146
|
+
for (let M = 0; M < 3; M++) {
|
|
1147
|
+
const g = p + M, v = m + M, q = a[g], G = a[g + 3], et = a[v], W = a[v + 3];
|
|
1148
|
+
a[I + M] = q < et ? q : et, a[I + M + 3] = G > W ? G : W;
|
|
1149
1149
|
}
|
|
1150
|
-
return
|
|
1150
|
+
return N;
|
|
1151
1151
|
}
|
|
1152
1152
|
}
|
|
1153
1153
|
}
|
|
@@ -1240,22 +1240,22 @@ function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
|
1240
1240
|
return es.copy(t).invert(), mi.matrix.copy(es), c.shapecast(
|
|
1241
1241
|
{
|
|
1242
1242
|
boundsTraverseOrder: (S) => Qs.distanceToBox(S),
|
|
1243
|
-
intersectsBounds: (S,
|
|
1244
|
-
intersectsRange: (S,
|
|
1243
|
+
intersectsBounds: (S, O, y) => y < m && y < r ? (O && (mi.min.copy(S.min), mi.max.copy(S.max), mi.needsUpdate = !0), !0) : !1,
|
|
1244
|
+
intersectsRange: (S, O) => {
|
|
1245
1245
|
if (i.boundsTree) {
|
|
1246
1246
|
const y = i.boundsTree;
|
|
1247
1247
|
return y.shapecast({
|
|
1248
|
-
boundsTraverseOrder: (
|
|
1249
|
-
intersectsBounds: (
|
|
1250
|
-
intersectsRange: (
|
|
1251
|
-
for (let b =
|
|
1252
|
-
const
|
|
1253
|
-
wt(u, 3 *
|
|
1254
|
-
for (let
|
|
1255
|
-
const v = c.resolveTriangleIndex(
|
|
1248
|
+
boundsTraverseOrder: (w) => mi.distanceToBox(w),
|
|
1249
|
+
intersectsBounds: (w, L, b) => b < m && b < r,
|
|
1250
|
+
intersectsRange: (w, L) => {
|
|
1251
|
+
for (let b = w, Y = w + L; b < Y; b++) {
|
|
1252
|
+
const N = y.resolveTriangleIndex(b);
|
|
1253
|
+
wt(u, 3 * N, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
1254
|
+
for (let M = S, g = S + O; M < g; M++) {
|
|
1255
|
+
const v = c.resolveTriangleIndex(M);
|
|
1256
1256
|
wt(I, 3 * v, l, a), I.needsUpdate = !0;
|
|
1257
1257
|
const q = I.distanceToTriangle(u, d, T);
|
|
1258
|
-
if (q < m && (E.copy(d), p && p.copy(T), m = q, F =
|
|
1258
|
+
if (q < m && (E.copy(d), p && p.copy(T), m = q, F = M, R = b), q < n)
|
|
1259
1259
|
return !0;
|
|
1260
1260
|
}
|
|
1261
1261
|
}
|
|
@@ -1263,13 +1263,13 @@ function Ma(c, i, t, e = {}, s = {}, n = 0, r = 1 / 0) {
|
|
|
1263
1263
|
});
|
|
1264
1264
|
} else {
|
|
1265
1265
|
const y = li(i);
|
|
1266
|
-
for (let
|
|
1267
|
-
wt(u, 3 *
|
|
1268
|
-
for (let b = S, Y = S +
|
|
1269
|
-
const
|
|
1270
|
-
wt(I, 3 *
|
|
1271
|
-
const
|
|
1272
|
-
if (
|
|
1266
|
+
for (let w = 0, L = y; w < L; w++) {
|
|
1267
|
+
wt(u, 3 * w, f, h), u.a.applyMatrix4(t), u.b.applyMatrix4(t), u.c.applyMatrix4(t), u.needsUpdate = !0;
|
|
1268
|
+
for (let b = S, Y = S + O; b < Y; b++) {
|
|
1269
|
+
const N = c.resolveTriangleIndex(b);
|
|
1270
|
+
wt(I, 3 * N, l, a), I.needsUpdate = !0;
|
|
1271
|
+
const M = I.distanceToTriangle(u, d, T);
|
|
1272
|
+
if (M < m && (E.copy(d), p && p.copy(T), m = M, F = b, R = w), M < n)
|
|
1273
1273
|
return !0;
|
|
1274
1274
|
}
|
|
1275
1275
|
}
|
|
@@ -1315,9 +1315,9 @@ 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 = Gt(F, E),
|
|
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 = Gt(F, E), O = Gt(R, m);
|
|
1319
1319
|
let y = !1;
|
|
1320
|
-
if (
|
|
1320
|
+
if (O && S)
|
|
1321
1321
|
h ? y = s(
|
|
1322
1322
|
zt(i, p),
|
|
1323
1323
|
Zt(i * 2, m),
|
|
@@ -1337,12 +1337,12 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1337
1337
|
a,
|
|
1338
1338
|
r + i
|
|
1339
1339
|
);
|
|
1340
|
-
else if (
|
|
1341
|
-
const
|
|
1342
|
-
Nt(i, T,
|
|
1340
|
+
else if (O) {
|
|
1341
|
+
const w = Ne.getPrimitive();
|
|
1342
|
+
Nt(i, T, w), w.applyMatrix4(t);
|
|
1343
1343
|
const L = jt(c), b = qt(c, d);
|
|
1344
1344
|
Nt(L, u, qe), Nt(b, u, Qe);
|
|
1345
|
-
const Y =
|
|
1345
|
+
const Y = w.intersectsBox(qe), N = w.intersectsBox(Qe);
|
|
1346
1346
|
y = Y && Kt(
|
|
1347
1347
|
i,
|
|
1348
1348
|
L,
|
|
@@ -1353,9 +1353,9 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1353
1353
|
n,
|
|
1354
1354
|
a,
|
|
1355
1355
|
o + 1,
|
|
1356
|
-
|
|
1356
|
+
w,
|
|
1357
1357
|
!h
|
|
1358
|
-
) ||
|
|
1358
|
+
) || N && Kt(
|
|
1359
1359
|
i,
|
|
1360
1360
|
b,
|
|
1361
1361
|
e,
|
|
@@ -1365,17 +1365,17 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1365
1365
|
n,
|
|
1366
1366
|
a,
|
|
1367
1367
|
o + 1,
|
|
1368
|
-
|
|
1368
|
+
w,
|
|
1369
1369
|
!h
|
|
1370
|
-
), Ne.releasePrimitive(
|
|
1370
|
+
), Ne.releasePrimitive(w);
|
|
1371
1371
|
} else {
|
|
1372
|
-
const
|
|
1373
|
-
Nt(
|
|
1372
|
+
const w = jt(i), L = qt(i, p);
|
|
1373
|
+
Nt(w, T, Ks), Nt(L, T, Js);
|
|
1374
1374
|
const b = l.intersectsBox(Ks), Y = l.intersectsBox(Js);
|
|
1375
1375
|
if (b && Y)
|
|
1376
1376
|
y = Kt(
|
|
1377
1377
|
c,
|
|
1378
|
-
|
|
1378
|
+
w,
|
|
1379
1379
|
t,
|
|
1380
1380
|
e,
|
|
1381
1381
|
s,
|
|
@@ -1402,7 +1402,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1402
1402
|
if (S)
|
|
1403
1403
|
y = Kt(
|
|
1404
1404
|
c,
|
|
1405
|
-
|
|
1405
|
+
w,
|
|
1406
1406
|
t,
|
|
1407
1407
|
e,
|
|
1408
1408
|
s,
|
|
@@ -1414,14 +1414,14 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1414
1414
|
h
|
|
1415
1415
|
);
|
|
1416
1416
|
else {
|
|
1417
|
-
const
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
Nt(
|
|
1421
|
-
const v =
|
|
1417
|
+
const N = Ne.getPrimitive();
|
|
1418
|
+
N.copy(Ks).applyMatrix4(t);
|
|
1419
|
+
const M = jt(c), g = qt(c, d);
|
|
1420
|
+
Nt(M, u, qe), Nt(g, u, Qe);
|
|
1421
|
+
const v = N.intersectsBox(qe), q = N.intersectsBox(Qe);
|
|
1422
1422
|
y = v && Kt(
|
|
1423
|
-
M,
|
|
1424
1423
|
w,
|
|
1424
|
+
M,
|
|
1425
1425
|
e,
|
|
1426
1426
|
t,
|
|
1427
1427
|
s,
|
|
@@ -1429,10 +1429,10 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1429
1429
|
n,
|
|
1430
1430
|
a,
|
|
1431
1431
|
o + 1,
|
|
1432
|
-
|
|
1432
|
+
N,
|
|
1433
1433
|
!h
|
|
1434
1434
|
) || q && Kt(
|
|
1435
|
-
|
|
1435
|
+
w,
|
|
1436
1436
|
g,
|
|
1437
1437
|
e,
|
|
1438
1438
|
t,
|
|
@@ -1441,9 +1441,9 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1441
1441
|
n,
|
|
1442
1442
|
a,
|
|
1443
1443
|
o + 1,
|
|
1444
|
-
|
|
1444
|
+
N,
|
|
1445
1445
|
!h
|
|
1446
|
-
), Ne.releasePrimitive(
|
|
1446
|
+
), Ne.releasePrimitive(N);
|
|
1447
1447
|
}
|
|
1448
1448
|
else if (Y)
|
|
1449
1449
|
if (S)
|
|
@@ -1461,14 +1461,14 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1461
1461
|
h
|
|
1462
1462
|
);
|
|
1463
1463
|
else {
|
|
1464
|
-
const
|
|
1465
|
-
|
|
1466
|
-
const
|
|
1467
|
-
Nt(
|
|
1468
|
-
const v =
|
|
1464
|
+
const N = Ne.getPrimitive();
|
|
1465
|
+
N.copy(Js).applyMatrix4(t);
|
|
1466
|
+
const M = jt(c), g = qt(c, d);
|
|
1467
|
+
Nt(M, u, qe), Nt(g, u, Qe);
|
|
1468
|
+
const v = N.intersectsBox(qe), q = N.intersectsBox(Qe);
|
|
1469
1469
|
y = v && Kt(
|
|
1470
1470
|
L,
|
|
1471
|
-
|
|
1471
|
+
M,
|
|
1472
1472
|
e,
|
|
1473
1473
|
t,
|
|
1474
1474
|
s,
|
|
@@ -1476,7 +1476,7 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1476
1476
|
n,
|
|
1477
1477
|
a,
|
|
1478
1478
|
o + 1,
|
|
1479
|
-
|
|
1479
|
+
N,
|
|
1480
1480
|
!h
|
|
1481
1481
|
) || q && Kt(
|
|
1482
1482
|
L,
|
|
@@ -1488,9 +1488,9 @@ function Kt(c, i, t, e, s, n = 0, r = 0, o = 0, a = 0, l = null, h = !1) {
|
|
|
1488
1488
|
n,
|
|
1489
1489
|
a,
|
|
1490
1490
|
o + 1,
|
|
1491
|
-
|
|
1491
|
+
N,
|
|
1492
1492
|
!h
|
|
1493
|
-
), Ne.releasePrimitive(
|
|
1493
|
+
), Ne.releasePrimitive(N);
|
|
1494
1494
|
}
|
|
1495
1495
|
}
|
|
1496
1496
|
return y;
|
|
@@ -1645,19 +1645,19 @@ class Un {
|
|
|
1645
1645
|
wt(h, d * 3, f, I);
|
|
1646
1646
|
};
|
|
1647
1647
|
if (n) {
|
|
1648
|
-
const d = (E, T, p, m, F, R, S,
|
|
1649
|
-
for (let y = p,
|
|
1648
|
+
const d = (E, T, p, m, F, R, S, O) => {
|
|
1649
|
+
for (let y = p, w = p + m; y < w; y++) {
|
|
1650
1650
|
u(y), h.a.applyMatrix4(t), h.b.applyMatrix4(t), h.c.applyMatrix4(t), h.needsUpdate = !0;
|
|
1651
1651
|
for (let L = E, b = E + T; L < b; L++)
|
|
1652
|
-
if (l(L), r.needsUpdate = !0, n(r, h, L, y, F, R, S,
|
|
1652
|
+
if (l(L), r.needsUpdate = !0, n(r, h, L, y, F, R, S, O))
|
|
1653
1653
|
return !0;
|
|
1654
1654
|
}
|
|
1655
1655
|
return !1;
|
|
1656
1656
|
};
|
|
1657
1657
|
if (s) {
|
|
1658
1658
|
const E = s;
|
|
1659
|
-
s = function(T, p, m, F, R, S,
|
|
1660
|
-
return E(T, p, m, F, R, S,
|
|
1659
|
+
s = function(T, p, m, F, R, S, O, y) {
|
|
1660
|
+
return E(T, p, m, F, R, S, O, y) ? !0 : d(T, p, m, F, R, S, O, y);
|
|
1661
1661
|
};
|
|
1662
1662
|
} else
|
|
1663
1663
|
s = d;
|
|
@@ -2554,18 +2554,18 @@ function qa(c) {
|
|
|
2554
2554
|
d.add(I.copy(u).multiplyScalar(ft)), E += ft, T += (9 * u.x * u.x + o.x * o.x + a.x * a.x + l.x * l.x) * (ft / 12), p += (9 * u.x * u.y + o.x * o.y + a.x * a.y + l.x * l.y) * (ft / 12), m += (9 * u.x * u.z + o.x * o.z + a.x * a.z + l.x * l.z) * (ft / 12), F += (9 * u.y * u.y + o.y * o.y + a.y * a.y + l.y * l.y) * (ft / 12), R += (9 * u.y * u.z + o.y * o.z + a.y * a.z + l.y * l.z) * (ft / 12), S += (9 * u.z * u.z + o.z * o.z + a.z * a.z + l.z * l.z) * (ft / 12);
|
|
2555
2555
|
}
|
|
2556
2556
|
d.divideScalar(E), T /= E, p /= E, m /= E, F /= E, R /= E, S /= E, T -= d.x * d.x, p -= d.x * d.y, m -= d.x * d.z, F -= d.y * d.y, R -= d.y * d.z, S -= d.z * d.z;
|
|
2557
|
-
const
|
|
2558
|
-
|
|
2559
|
-
const y = e.unitary,
|
|
2560
|
-
y.extractBasis(
|
|
2561
|
-
let Y = -1 / 0,
|
|
2557
|
+
const O = new D.Matrix3();
|
|
2558
|
+
O.elements[0] = T, O.elements[1] = p, O.elements[2] = m, O.elements[3] = p, O.elements[4] = F, O.elements[5] = R, O.elements[6] = m, O.elements[7] = R, O.elements[8] = S, ja(O, e);
|
|
2559
|
+
const y = e.unitary, w = new D.Vector3(), L = new D.Vector3(), b = new D.Vector3();
|
|
2560
|
+
y.extractBasis(w, L, b);
|
|
2561
|
+
let Y = -1 / 0, N = -1 / 0, M = -1 / 0, g = 1 / 0, v = 1 / 0, q = 1 / 0;
|
|
2562
2562
|
for (let at = 0, It = i.length; at < It; at++) {
|
|
2563
2563
|
const ft = i[at];
|
|
2564
|
-
Y = Math.max(
|
|
2564
|
+
Y = Math.max(w.dot(ft), Y), N = Math.max(L.dot(ft), N), M = Math.max(b.dot(ft), M), g = Math.min(w.dot(ft), g), v = Math.min(L.dot(ft), v), q = Math.min(b.dot(ft), q);
|
|
2565
2565
|
}
|
|
2566
|
-
|
|
2566
|
+
w.multiplyScalar(0.5 * (g + Y)), L.multiplyScalar(0.5 * (v + N)), b.multiplyScalar(0.5 * (q + M));
|
|
2567
2567
|
const G = new D.Vector3(), et = new D.Vector3(), W = new D.Matrix3();
|
|
2568
|
-
G.add(
|
|
2568
|
+
G.add(w).add(L).add(b), et.x = Y - g, et.y = N - v, et.z = M - q, et.multiplyScalar(0.5), W.copy(y);
|
|
2569
2569
|
const { x: nt, y: V, z: x } = et, ot = new D.Matrix4();
|
|
2570
2570
|
ot.makeScale(nt * 2, V * 2, x * 2);
|
|
2571
2571
|
const it = new D.Matrix4();
|
|
@@ -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.10");
|
|
3141
3141
|
let Cs = Fs;
|
|
3142
3142
|
class Qa extends xn {
|
|
3143
3143
|
constructor() {
|
|
@@ -3658,10 +3658,10 @@ function mr(c, i, t, e, s = 1 / 0, n, r) {
|
|
|
3658
3658
|
u = u / v * F, d = d / v * F, E = E / v * F;
|
|
3659
3659
|
}
|
|
3660
3660
|
h = c.x - u, f = c.y - d, I = c.z - E;
|
|
3661
|
-
const
|
|
3662
|
-
t.x = (t.x - o *
|
|
3663
|
-
const L = T - c.x, b = p - c.y, Y = m - c.z,
|
|
3664
|
-
return L *
|
|
3661
|
+
const O = (t.x + o * u) * n, y = (t.y + o * d) * n, w = (t.z + o * E) * n;
|
|
3662
|
+
t.x = (t.x - o * O) * l, t.y = (t.y - o * y) * l, t.z = (t.z - o * w) * l, r.x = h + (u + O) * l, r.y = f + (d + y) * l, r.z = I + (E + w) * l;
|
|
3663
|
+
const L = T - c.x, b = p - c.y, Y = m - c.z, N = r.x - T, M = r.y - p, g = r.z - m;
|
|
3664
|
+
return L * N + b * M + Y * g > 0 && (r.x = T, r.y = p, r.z = m, t.x = (r.x - T) / n, t.y = (r.y - p) / n, t.z = (r.z - m) / n), r;
|
|
3665
3665
|
}
|
|
3666
3666
|
function rn(c, i) {
|
|
3667
3667
|
i.set(0, 0), c.forEach((t) => {
|
|
@@ -3807,26 +3807,26 @@ class vt extends ic {
|
|
|
3807
3807
|
*/
|
|
3808
3808
|
constructor(i, t) {
|
|
3809
3809
|
super(), this.minPolarAngle = 0, this.maxPolarAngle = Math.PI, this.minAzimuthAngle = -1 / 0, this.maxAzimuthAngle = 1 / 0, this.minDistance = Number.EPSILON, this.maxDistance = 1 / 0, this.infinityDolly = !1, this.minZoom = 0.01, this.maxZoom = 1 / 0, this.smoothTime = 0.25, this.draggingSmoothTime = 0.125, this.maxSpeed = 1 / 0, this.azimuthRotateSpeed = 1, this.polarRotateSpeed = 1, this.dollySpeed = 1, this.dollyDragInverted = !1, this.truckSpeed = 2, this.dollyToCursor = !1, this.dragToOffset = !1, this.verticalDragToForward = !1, this.boundaryFriction = 0, this.restThreshold = 0.01, this.colliderMeshes = [], this.cancel = () => {
|
|
3810
|
-
}, this._enabled = !0, this._state = H.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = Ke.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new lt.Vector3(), this._focalOffsetVelocity = new lt.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (R, S,
|
|
3811
|
-
let y,
|
|
3810
|
+
}, this._enabled = !0, this._state = H.NONE, this._viewport = null, this._changedDolly = 0, this._changedZoom = 0, this._hasRested = !0, this._boundaryEnclosesCamera = !1, this._needsUpdate = !0, this._updatedLastTime = !1, this._elementRect = new DOMRect(), this._isDragging = !1, this._dragNeedsUpdate = !0, this._activePointers = [], this._lockedPointer = null, this._interactiveArea = new DOMRect(0, 0, 1, 1), this._isUserControllingRotate = !1, this._isUserControllingDolly = !1, this._isUserControllingTruck = !1, this._isUserControllingOffset = !1, this._isUserControllingZoom = !1, this._lastDollyDirection = Ke.NONE, this._thetaVelocity = { value: 0 }, this._phiVelocity = { value: 0 }, this._radiusVelocity = { value: 0 }, this._targetVelocity = new lt.Vector3(), this._focalOffsetVelocity = new lt.Vector3(), this._zoomVelocity = { value: 0 }, this._truckInternal = (R, S, O) => {
|
|
3811
|
+
let y, w;
|
|
3812
3812
|
if (ve(this._camera)) {
|
|
3813
3813
|
const L = ut.copy(this._camera.position).sub(this._target), b = this._camera.getEffectiveFOV() * Ri, Y = L.length() * Math.tan(b * 0.5);
|
|
3814
|
-
y = this.truckSpeed * R * Y / this._elementRect.height,
|
|
3814
|
+
y = this.truckSpeed * R * Y / this._elementRect.height, w = this.truckSpeed * S * Y / this._elementRect.height;
|
|
3815
3815
|
} else if (Oe(this._camera)) {
|
|
3816
3816
|
const L = this._camera;
|
|
3817
|
-
y = R * (L.right - L.left) / L.zoom / this._elementRect.width,
|
|
3817
|
+
y = R * (L.right - L.left) / L.zoom / this._elementRect.width, w = S * (L.top - L.bottom) / L.zoom / this._elementRect.height;
|
|
3818
3818
|
} else
|
|
3819
3819
|
return;
|
|
3820
|
-
this.verticalDragToForward ? (
|
|
3820
|
+
this.verticalDragToForward ? (O ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y, this._focalOffsetEnd.z, !0) : this.truck(y, 0, !0), this.forward(-w, !0)) : O ? this.setFocalOffset(this._focalOffsetEnd.x + y, this._focalOffsetEnd.y + w, this._focalOffsetEnd.z, !0) : this.truck(y, w, !0);
|
|
3821
3821
|
}, this._rotateInternal = (R, S) => {
|
|
3822
|
-
const
|
|
3823
|
-
this.rotate(
|
|
3824
|
-
}, this._dollyInternal = (R, S,
|
|
3825
|
-
const y = Math.pow(0.95, -R * this.dollySpeed),
|
|
3826
|
-
this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(L, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(Y, !0), this._dollyToNoClamp(b, !0)) : this._dollyToNoClamp(b, !0), this.dollyToCursor && (this._changedDolly += (this.infinityDolly ? L : b) -
|
|
3827
|
-
}, this._zoomInternal = (R, S,
|
|
3828
|
-
const y = Math.pow(0.95, R * this.dollySpeed),
|
|
3829
|
-
this.zoomTo(L, !0), this.dollyToCursor && (this._changedZoom += L -
|
|
3822
|
+
const O = Je * this.azimuthRotateSpeed * R / this._elementRect.height, y = Je * this.polarRotateSpeed * S / this._elementRect.height;
|
|
3823
|
+
this.rotate(O, y, !0);
|
|
3824
|
+
}, this._dollyInternal = (R, S, O) => {
|
|
3825
|
+
const y = Math.pow(0.95, -R * this.dollySpeed), w = this._sphericalEnd.radius, L = this._sphericalEnd.radius * y, b = Jt(L, this.minDistance, this.maxDistance), Y = b - L;
|
|
3826
|
+
this.infinityDolly && this.dollyToCursor ? this._dollyToNoClamp(L, !0) : this.infinityDolly && !this.dollyToCursor ? (this.dollyInFixed(Y, !0), this._dollyToNoClamp(b, !0)) : this._dollyToNoClamp(b, !0), this.dollyToCursor && (this._changedDolly += (this.infinityDolly ? L : b) - w, this._dollyControlCoord.set(S, O)), this._lastDollyDirection = Math.sign(-R);
|
|
3827
|
+
}, this._zoomInternal = (R, S, O) => {
|
|
3828
|
+
const y = Math.pow(0.95, R * this.dollySpeed), w = this._zoom, L = this._zoom * y;
|
|
3829
|
+
this.zoomTo(L, !0), this.dollyToCursor && (this._changedZoom += L - w, this._dollyControlCoord.set(S, O));
|
|
3830
3830
|
}, typeof lt > "u" && console.error("camera-controls: `THREE` is undefined. You must first run `CameraControls.install( { THREE: THREE } )`. Check the docs for further information."), this._camera = i, this._yAxisUpSpace = new lt.Quaternion().setFromUnitVectors(this._camera.up, os), this._yAxisUpSpaceInverse = this._yAxisUpSpace.clone().invert(), this._state = H.NONE, this._target = new lt.Vector3(), this._targetEnd = this._target.clone(), this._focalOffset = new lt.Vector3(), this._focalOffsetEnd = this._focalOffset.clone(), this._spherical = new lt.Spherical().setFromVector3(ut.copy(this._camera.position).applyQuaternion(this._yAxisUpSpace)), this._sphericalEnd = this._spherical.clone(), this._lastDistance = this._spherical.radius, this._zoom = this._camera.zoom, this._zoomEnd = this._zoom, this._lastZoom = this._zoom, this._nearPlaneCorners = [
|
|
3831
3831
|
new lt.Vector3(),
|
|
3832
3832
|
new lt.Vector3(),
|
|
@@ -3846,8 +3846,8 @@ class vt extends ic {
|
|
|
3846
3846
|
if (!this._enabled || !this._domElement)
|
|
3847
3847
|
return;
|
|
3848
3848
|
if (this._interactiveArea.left !== 0 || this._interactiveArea.top !== 0 || this._interactiveArea.width !== 1 || this._interactiveArea.height !== 1) {
|
|
3849
|
-
const y = this._domElement.getBoundingClientRect(),
|
|
3850
|
-
if (
|
|
3849
|
+
const y = this._domElement.getBoundingClientRect(), w = R.clientX / y.width, L = R.clientY / y.height;
|
|
3850
|
+
if (w < this._interactiveArea.left || w > this._interactiveArea.right || L < this._interactiveArea.top || L > this._interactiveArea.bottom)
|
|
3851
3851
|
return;
|
|
3852
3852
|
}
|
|
3853
3853
|
const S = R.pointerType !== "mouse" ? null : (R.buttons & ht.LEFT) === ht.LEFT ? ht.LEFT : (R.buttons & ht.MIDDLE) === ht.MIDDLE ? ht.MIDDLE : (R.buttons & ht.RIGHT) === ht.RIGHT ? ht.RIGHT : null;
|
|
@@ -3857,7 +3857,7 @@ class vt extends ic {
|
|
|
3857
3857
|
}
|
|
3858
3858
|
if ((R.buttons & ht.LEFT) === ht.LEFT && this._lockedPointer)
|
|
3859
3859
|
return;
|
|
3860
|
-
const
|
|
3860
|
+
const O = {
|
|
3861
3861
|
pointerId: R.pointerId,
|
|
3862
3862
|
clientX: R.clientX,
|
|
3863
3863
|
clientY: R.clientY,
|
|
@@ -3865,13 +3865,13 @@ class vt extends ic {
|
|
|
3865
3865
|
deltaY: 0,
|
|
3866
3866
|
mouseButton: S
|
|
3867
3867
|
};
|
|
3868
|
-
this._activePointers.push(
|
|
3868
|
+
this._activePointers.push(O), this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.addEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.addEventListener("pointerup", h), this._isDragging = !0, E(R);
|
|
3869
3869
|
}, o = (R) => {
|
|
3870
3870
|
if (!this._enabled || !this._domElement || this._lockedPointer)
|
|
3871
3871
|
return;
|
|
3872
3872
|
if (this._interactiveArea.left !== 0 || this._interactiveArea.top !== 0 || this._interactiveArea.width !== 1 || this._interactiveArea.height !== 1) {
|
|
3873
|
-
const y = this._domElement.getBoundingClientRect(),
|
|
3874
|
-
if (
|
|
3873
|
+
const y = this._domElement.getBoundingClientRect(), w = R.clientX / y.width, L = R.clientY / y.height;
|
|
3874
|
+
if (w < this._interactiveArea.left || w > this._interactiveArea.right || L < this._interactiveArea.top || L > this._interactiveArea.bottom)
|
|
3875
3875
|
return;
|
|
3876
3876
|
}
|
|
3877
3877
|
const S = (R.buttons & ht.LEFT) === ht.LEFT ? ht.LEFT : (R.buttons & ht.MIDDLE) === ht.MIDDLE ? ht.MIDDLE : (R.buttons & ht.RIGHT) === ht.RIGHT ? ht.RIGHT : null;
|
|
@@ -3879,7 +3879,7 @@ class vt extends ic {
|
|
|
3879
3879
|
const y = this._findPointerByMouseButton(S);
|
|
3880
3880
|
y && this._disposePointer(y);
|
|
3881
3881
|
}
|
|
3882
|
-
const
|
|
3882
|
+
const O = {
|
|
3883
3883
|
pointerId: 1,
|
|
3884
3884
|
clientX: R.clientX,
|
|
3885
3885
|
clientY: R.clientY,
|
|
@@ -3887,12 +3887,12 @@ class vt extends ic {
|
|
|
3887
3887
|
deltaY: 0,
|
|
3888
3888
|
mouseButton: (R.buttons & ht.LEFT) === ht.LEFT ? ht.LEFT : (R.buttons & ht.MIDDLE) === ht.LEFT ? ht.MIDDLE : (R.buttons & ht.RIGHT) === ht.LEFT ? ht.RIGHT : null
|
|
3889
3889
|
};
|
|
3890
|
-
this._activePointers.push(
|
|
3890
|
+
this._activePointers.push(O), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("mouseup", f), this._domElement.ownerDocument.addEventListener("mousemove", l), this._domElement.ownerDocument.addEventListener("mouseup", f), this._isDragging = !0, E(R);
|
|
3891
3891
|
}, a = (R) => {
|
|
3892
3892
|
R.cancelable && R.preventDefault();
|
|
3893
|
-
const S = R.pointerId,
|
|
3894
|
-
if (
|
|
3895
|
-
if (
|
|
3893
|
+
const S = R.pointerId, O = this._lockedPointer || this._findPointerById(S);
|
|
3894
|
+
if (O) {
|
|
3895
|
+
if (O.clientX = R.clientX, O.clientY = R.clientY, O.deltaX = R.movementX, O.deltaY = R.movementY, this._state = 0, R.pointerType === "touch")
|
|
3896
3896
|
switch (this._activePointers.length) {
|
|
3897
3897
|
case 1:
|
|
3898
3898
|
this._state = this.touches.one;
|
|
@@ -3950,7 +3950,7 @@ class vt extends ic {
|
|
|
3950
3950
|
const L = performance.now();
|
|
3951
3951
|
I - L < 1e3 && this._getClientRect(this._elementRect), I = L;
|
|
3952
3952
|
}
|
|
3953
|
-
const S = nc ? -1 : -3,
|
|
3953
|
+
const S = nc ? -1 : -3, O = R.deltaMode === 1 ? R.deltaY / S : R.deltaY / (S * 10), y = this.dollyToCursor ? (R.clientX - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, w = this.dollyToCursor ? (R.clientY - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
|
|
3954
3954
|
switch (this.mouseButtons.wheel) {
|
|
3955
3955
|
case H.ROTATE: {
|
|
3956
3956
|
this._rotateInternal(R.deltaX, R.deltaY), this._isUserControllingRotate = !0;
|
|
@@ -3965,11 +3965,11 @@ class vt extends ic {
|
|
|
3965
3965
|
break;
|
|
3966
3966
|
}
|
|
3967
3967
|
case H.DOLLY: {
|
|
3968
|
-
this._dollyInternal(-
|
|
3968
|
+
this._dollyInternal(-O, y, w), this._isUserControllingDolly = !0;
|
|
3969
3969
|
break;
|
|
3970
3970
|
}
|
|
3971
3971
|
case H.ZOOM: {
|
|
3972
|
-
this._zoomInternal(-
|
|
3972
|
+
this._zoomInternal(-O, y, w), this._isUserControllingZoom = !0;
|
|
3973
3973
|
break;
|
|
3974
3974
|
}
|
|
3975
3975
|
}
|
|
@@ -3977,8 +3977,8 @@ class vt extends ic {
|
|
|
3977
3977
|
}, d = (R) => {
|
|
3978
3978
|
if (!(!this._domElement || !this._enabled)) {
|
|
3979
3979
|
if (this.mouseButtons.right === vt.ACTION.NONE) {
|
|
3980
|
-
const S = R instanceof PointerEvent ? R.pointerId : (R instanceof MouseEvent, 0),
|
|
3981
|
-
|
|
3980
|
+
const S = R instanceof PointerEvent ? R.pointerId : (R instanceof MouseEvent, 0), O = this._findPointerById(S);
|
|
3981
|
+
O && this._disposePointer(O), this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("mouseup", f);
|
|
3982
3982
|
return;
|
|
3983
3983
|
}
|
|
3984
3984
|
R.preventDefault();
|
|
@@ -3987,8 +3987,8 @@ class vt extends ic {
|
|
|
3987
3987
|
if (!this._enabled)
|
|
3988
3988
|
return;
|
|
3989
3989
|
if (rn(this._activePointers, Yt), this._getClientRect(this._elementRect), e.copy(Yt), s.copy(Yt), this._activePointers.length >= 2) {
|
|
3990
|
-
const
|
|
3991
|
-
n.set(0,
|
|
3990
|
+
const O = Yt.x - this._activePointers[1].clientX, y = Yt.y - this._activePointers[1].clientY, w = Math.sqrt(O * O + y * y);
|
|
3991
|
+
n.set(0, w);
|
|
3992
3992
|
const L = (this._activePointers[0].clientX + this._activePointers[1].clientX) * 0.5, b = (this._activePointers[0].clientY + this._activePointers[1].clientY) * 0.5;
|
|
3993
3993
|
s.set(L, b);
|
|
3994
3994
|
}
|
|
@@ -4013,18 +4013,18 @@ class vt extends ic {
|
|
|
4013
4013
|
if (!this._enabled || !this._dragNeedsUpdate)
|
|
4014
4014
|
return;
|
|
4015
4015
|
this._dragNeedsUpdate = !1, rn(this._activePointers, Yt);
|
|
4016
|
-
const S = this._domElement && document.pointerLockElement === this._domElement ? this._lockedPointer || this._activePointers[0] : null,
|
|
4017
|
-
if (s.copy(Yt), ((this._state & H.ROTATE) === H.ROTATE || (this._state & H.TOUCH_ROTATE) === H.TOUCH_ROTATE || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_ZOOM_ROTATE) === H.TOUCH_ZOOM_ROTATE) && (this._rotateInternal(
|
|
4018
|
-
const
|
|
4019
|
-
(this._state & H.DOLLY) === H.DOLLY ? (this._dollyInternal(b * y * rs,
|
|
4016
|
+
const S = this._domElement && document.pointerLockElement === this._domElement ? this._lockedPointer || this._activePointers[0] : null, O = S ? -S.deltaX : s.x - Yt.x, y = S ? -S.deltaY : s.y - Yt.y;
|
|
4017
|
+
if (s.copy(Yt), ((this._state & H.ROTATE) === H.ROTATE || (this._state & H.TOUCH_ROTATE) === H.TOUCH_ROTATE || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_ZOOM_ROTATE) === H.TOUCH_ZOOM_ROTATE) && (this._rotateInternal(O, y), this._isUserControllingRotate = !0), (this._state & H.DOLLY) === H.DOLLY || (this._state & H.ZOOM) === H.ZOOM) {
|
|
4018
|
+
const w = this.dollyToCursor ? (e.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, L = this.dollyToCursor ? (e.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0, b = this.dollyDragInverted ? -1 : 1;
|
|
4019
|
+
(this._state & H.DOLLY) === H.DOLLY ? (this._dollyInternal(b * y * rs, w, L), this._isUserControllingDolly = !0) : (this._zoomInternal(b * y * rs, w, L), this._isUserControllingZoom = !0);
|
|
4020
4020
|
}
|
|
4021
4021
|
if ((this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_ZOOM) === H.TOUCH_ZOOM || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_ZOOM_TRUCK) === H.TOUCH_ZOOM_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET || (this._state & H.TOUCH_ZOOM_OFFSET) === H.TOUCH_ZOOM_OFFSET || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_ZOOM_ROTATE) === H.TOUCH_ZOOM_ROTATE) {
|
|
4022
|
-
const
|
|
4022
|
+
const w = Yt.x - this._activePointers[1].clientX, L = Yt.y - this._activePointers[1].clientY, b = Math.sqrt(w * w + L * L), Y = n.y - b;
|
|
4023
4023
|
n.set(0, b);
|
|
4024
|
-
const
|
|
4025
|
-
(this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(Y * rs,
|
|
4024
|
+
const N = this.dollyToCursor ? (s.x - this._elementRect.x) / this._elementRect.width * 2 - 1 : 0, M = this.dollyToCursor ? (s.y - this._elementRect.y) / this._elementRect.height * -2 + 1 : 0;
|
|
4025
|
+
(this._state & H.TOUCH_DOLLY) === H.TOUCH_DOLLY || (this._state & H.TOUCH_DOLLY_ROTATE) === H.TOUCH_DOLLY_ROTATE || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET ? (this._dollyInternal(Y * rs, N, M), this._isUserControllingDolly = !0) : (this._zoomInternal(Y * rs, N, M), this._isUserControllingZoom = !0);
|
|
4026
4026
|
}
|
|
4027
|
-
((this._state & H.TRUCK) === H.TRUCK || (this._state & H.TOUCH_TRUCK) === H.TOUCH_TRUCK || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_ZOOM_TRUCK) === H.TOUCH_ZOOM_TRUCK) && (this._truckInternal(
|
|
4027
|
+
((this._state & H.TRUCK) === H.TRUCK || (this._state & H.TOUCH_TRUCK) === H.TOUCH_TRUCK || (this._state & H.TOUCH_DOLLY_TRUCK) === H.TOUCH_DOLLY_TRUCK || (this._state & H.TOUCH_ZOOM_TRUCK) === H.TOUCH_ZOOM_TRUCK) && (this._truckInternal(O, y, !1), this._isUserControllingTruck = !0), ((this._state & H.OFFSET) === H.OFFSET || (this._state & H.TOUCH_OFFSET) === H.TOUCH_OFFSET || (this._state & H.TOUCH_DOLLY_OFFSET) === H.TOUCH_DOLLY_OFFSET || (this._state & H.TOUCH_ZOOM_OFFSET) === H.TOUCH_ZOOM_OFFSET) && (this._truckInternal(O, y, !0), this._isUserControllingOffset = !0), this.dispatchEvent({ type: "control" });
|
|
4028
4028
|
}, p = () => {
|
|
4029
4029
|
rn(this._activePointers, Yt), s.copy(Yt), this._dragNeedsUpdate = !1, (this._activePointers.length === 0 || this._activePointers.length === 1 && this._activePointers[0] === this._lockedPointer) && (this._isDragging = !1), this._activePointers.length === 0 && this._domElement && (this._domElement.ownerDocument.removeEventListener("pointermove", a, { passive: !1 }), this._domElement.ownerDocument.removeEventListener("mousemove", l), this._domElement.ownerDocument.removeEventListener("pointerup", h), this._domElement.ownerDocument.removeEventListener("mouseup", f), this.dispatchEvent({ type: "controlend" }));
|
|
4030
4030
|
};
|
|
@@ -4492,8 +4492,8 @@ class vt extends ic {
|
|
|
4492
4492
|
Si.setFromVector3(m.sub(p).applyQuaternion(this._yAxisUpSpace)), this._targetEnd.copy(E.lerp(p, u));
|
|
4493
4493
|
const F = Si.theta - Xt.theta, R = Si.phi - Xt.phi, S = Si.radius - Xt.radius;
|
|
4494
4494
|
this._sphericalEnd.set(Xt.radius + S * u, Xt.phi + R * u, Xt.theta + F * u), this.normalizeRotations(), this._needsUpdate = !0, d || (this._target.copy(this._targetEnd), this._spherical.copy(this._sphericalEnd));
|
|
4495
|
-
const
|
|
4496
|
-
return this._createOnRestPromise(
|
|
4495
|
+
const O = !d || pt(this._target.x, this._targetEnd.x, this.restThreshold) && pt(this._target.y, this._targetEnd.y, this.restThreshold) && pt(this._target.z, this._targetEnd.z, this.restThreshold) && pt(this._spherical.theta, this._sphericalEnd.theta, this.restThreshold) && pt(this._spherical.phi, this._sphericalEnd.phi, this.restThreshold) && pt(this._spherical.radius, this._sphericalEnd.radius, this.restThreshold);
|
|
4496
|
+
return this._createOnRestPromise(O);
|
|
4497
4497
|
}
|
|
4498
4498
|
/**
|
|
4499
4499
|
* Set angle and distance by given position.
|
|
@@ -4736,18 +4736,18 @@ class vt extends ic {
|
|
|
4736
4736
|
if (ve(this._camera) && this._changedDolly !== 0) {
|
|
4737
4737
|
const f = this._spherical.radius - this._lastDistance, I = this._camera, u = this._getCameraDirection(Fi), d = ut.copy(u).cross(I.up).normalize();
|
|
4738
4738
|
d.lengthSq() === 0 && (d.x = 1);
|
|
4739
|
-
const E = Et.crossVectors(d, u), T = this._sphericalEnd.radius * Math.tan(I.getEffectiveFOV() * Ri * 0.5), m = (this._sphericalEnd.radius - f - this._sphericalEnd.radius) / this._sphericalEnd.radius, F = ti.copy(this._targetEnd).add(d.multiplyScalar(this._dollyControlCoord.x * T * I.aspect)).add(E.multiplyScalar(this._dollyControlCoord.y * T)), R = ut.copy(this._targetEnd).lerp(F, m), S = this._lastDollyDirection === Ke.IN && this._spherical.radius <= this.minDistance,
|
|
4740
|
-
if (this.infinityDolly && (S ||
|
|
4739
|
+
const E = Et.crossVectors(d, u), T = this._sphericalEnd.radius * Math.tan(I.getEffectiveFOV() * Ri * 0.5), m = (this._sphericalEnd.radius - f - this._sphericalEnd.radius) / this._sphericalEnd.radius, F = ti.copy(this._targetEnd).add(d.multiplyScalar(this._dollyControlCoord.x * T * I.aspect)).add(E.multiplyScalar(this._dollyControlCoord.y * T)), R = ut.copy(this._targetEnd).lerp(F, m), S = this._lastDollyDirection === Ke.IN && this._spherical.radius <= this.minDistance, O = this._lastDollyDirection === Ke.OUT && this.maxDistance <= this._spherical.radius;
|
|
4740
|
+
if (this.infinityDolly && (S || O)) {
|
|
4741
4741
|
this._sphericalEnd.radius -= f, this._spherical.radius -= f;
|
|
4742
|
-
const
|
|
4743
|
-
R.add(
|
|
4742
|
+
const w = Et.copy(u).multiplyScalar(-f);
|
|
4743
|
+
R.add(w);
|
|
4744
4744
|
}
|
|
4745
4745
|
this._boundary.clampPoint(R, R);
|
|
4746
4746
|
const y = Et.subVectors(R, this._targetEnd);
|
|
4747
4747
|
this._targetEnd.copy(R), this._target.add(y), this._changedDolly -= f, gt(this._changedDolly) && (this._changedDolly = 0);
|
|
4748
4748
|
} else if (Oe(this._camera) && this._changedZoom !== 0) {
|
|
4749
|
-
const f = this._zoom - this._lastZoom, I = this._camera, u = ut.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (I.near + I.far) / (I.near - I.far)).unproject(I), d = Et.set(0, 0, -1).applyQuaternion(I.quaternion), E = ti.copy(u).add(d.multiplyScalar(-u.dot(I.up))), p = -(this._zoom - f - this._zoom) / this._zoom, m = this._getCameraDirection(Fi), F = this._targetEnd.dot(m), R = ut.copy(this._targetEnd).lerp(E, p), S = R.dot(m),
|
|
4750
|
-
R.sub(
|
|
4749
|
+
const f = this._zoom - this._lastZoom, I = this._camera, u = ut.set(this._dollyControlCoord.x, this._dollyControlCoord.y, (I.near + I.far) / (I.near - I.far)).unproject(I), d = Et.set(0, 0, -1).applyQuaternion(I.quaternion), E = ti.copy(u).add(d.multiplyScalar(-u.dot(I.up))), p = -(this._zoom - f - this._zoom) / this._zoom, m = this._getCameraDirection(Fi), F = this._targetEnd.dot(m), R = ut.copy(this._targetEnd).lerp(E, p), S = R.dot(m), O = m.multiplyScalar(S - F);
|
|
4750
|
+
R.sub(O), this._boundary.clampPoint(R, R);
|
|
4751
4751
|
const y = Et.subVectors(R, this._targetEnd);
|
|
4752
4752
|
this._targetEnd.copy(R), this._target.add(y), this._changedZoom -= f, gt(this._changedZoom) && (this._changedZoom = 0);
|
|
4753
4753
|
}
|
|
@@ -6674,7 +6674,7 @@ class Ac extends In {
|
|
|
6674
6674
|
XZ: [
|
|
6675
6675
|
[new rt(new Ut(0.15, 0.15, 0.01), l.clone()), [0.15, 0, 0.15], [-Math.PI / 2, 0, 0]]
|
|
6676
6676
|
]
|
|
6677
|
-
},
|
|
6677
|
+
}, O = {
|
|
6678
6678
|
X: [
|
|
6679
6679
|
[new rt(new Vt(0.2, 0, 0.6, 4), e), [0.3, 0, 0], [0, 0, -Math.PI / 2]],
|
|
6680
6680
|
[new rt(new Vt(0.2, 0, 0.6, 4), e), [-0.3, 0, 0], [0, 0, Math.PI / 2]]
|
|
@@ -6718,7 +6718,7 @@ class Ac extends In {
|
|
|
6718
6718
|
Z: [
|
|
6719
6719
|
[new Ae(p, s.clone()), [0, 0, -1e3], [0, -Math.PI / 2, 0], [1e6, 1, 1], "helper"]
|
|
6720
6720
|
]
|
|
6721
|
-
},
|
|
6721
|
+
}, w = {
|
|
6722
6722
|
XYZE: [
|
|
6723
6723
|
[new rt(F(0.5, 1), d), null, [0, Math.PI / 2, 0]]
|
|
6724
6724
|
],
|
|
@@ -6782,7 +6782,7 @@ class Ac extends In {
|
|
|
6782
6782
|
XYZ: [
|
|
6783
6783
|
[new rt(new Ut(0.1, 0.1, 0.1), f.clone())]
|
|
6784
6784
|
]
|
|
6785
|
-
},
|
|
6785
|
+
}, N = {
|
|
6786
6786
|
X: [
|
|
6787
6787
|
[new rt(new Vt(0.2, 0, 0.6, 4), e), [0.3, 0, 0], [0, 0, -Math.PI / 2]],
|
|
6788
6788
|
[new rt(new Vt(0.2, 0, 0.6, 4), e), [-0.3, 0, 0], [0, 0, Math.PI / 2]]
|
|
@@ -6807,7 +6807,7 @@ class Ac extends In {
|
|
|
6807
6807
|
XYZ: [
|
|
6808
6808
|
[new rt(new Ut(0.2, 0.2, 0.2), e), [0, 0, 0]]
|
|
6809
6809
|
]
|
|
6810
|
-
},
|
|
6810
|
+
}, M = {
|
|
6811
6811
|
X: [
|
|
6812
6812
|
[new Ae(p, s.clone()), [-1e3, 0, 0], null, [1e6, 1, 1], "helper"]
|
|
6813
6813
|
],
|
|
@@ -6829,7 +6829,7 @@ class Ac extends In {
|
|
|
6829
6829
|
}
|
|
6830
6830
|
return q;
|
|
6831
6831
|
}
|
|
6832
|
-
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = g(S)), this.add(this.gizmo.rotate = g(
|
|
6832
|
+
this.gizmo = {}, this.picker = {}, this.helper = {}, this.add(this.gizmo.translate = g(S)), this.add(this.gizmo.rotate = g(w)), this.add(this.gizmo.scale = g(Y)), this.add(this.picker.translate = g(O)), this.add(this.picker.rotate = g(b)), this.add(this.picker.scale = g(N)), this.add(this.helper.translate = g(y)), this.add(this.helper.rotate = g(L)), this.add(this.helper.scale = g(M)), this.picker.translate.visible = !1, this.picker.rotate.visible = !1, this.picker.scale.visible = !1;
|
|
6833
6833
|
}
|
|
6834
6834
|
// updateMatrixWorld will update transformations and appearance of individual handles
|
|
6835
6835
|
updateMatrixWorld(i) {
|
|
@@ -10559,7 +10559,7 @@ class oo {
|
|
|
10559
10559
|
const [I, u] = r;
|
|
10560
10560
|
I != null && I.value && (t.author.name = I.value), u != null && u.value && (t.author.email = u.value);
|
|
10561
10561
|
}
|
|
10562
|
-
return (f = o[0]) != null && f.value && (t.organization = o[0].value), a != null && a.value && (t.preprocessorVersion = a == null ? void 0 : a.value), l != null && l.value && (t.originatingSystem = l == null ? void 0 : l.value), h != null && h.value && (t.authorization = h == null ? void 0 : h.value), t;
|
|
10562
|
+
return o && ((f = o[0]) != null && f.value) && (t.organization = o[0].value), a != null && a.value && (t.preprocessorVersion = a == null ? void 0 : a.value), l != null && l.value && (t.originatingSystem = l == null ? void 0 : l.value), h != null && h.value && (t.authorization = h == null ? void 0 : h.value), t;
|
|
10563
10563
|
}
|
|
10564
10564
|
getDescriptionInfo(i) {
|
|
10565
10565
|
var r;
|
|
@@ -10967,10 +10967,10 @@ const bi = class bi extends At {
|
|
|
10967
10967
|
for (let r = 0; r < s; r++) {
|
|
10968
10968
|
const o = t.geometries.get(r), { x: a, y: l, z: h, w: f } = o.color, I = f !== 1, { geometryExpressID: u } = o, d = `${u}-${I}`;
|
|
10969
10969
|
if (!this._visitedFragments.has(d)) {
|
|
10970
|
-
const S = this.getGeometry(this.webIfc, u),
|
|
10970
|
+
const S = this.getGeometry(this.webIfc, u), O = I ? this._materialT : this._material, y = new Qt.Fragment(S, O, 1);
|
|
10971
10971
|
e.add(y.mesh), e.items.push(y);
|
|
10972
|
-
const
|
|
10973
|
-
this._visitedFragments.set(d, { index:
|
|
10972
|
+
const w = this._visitedFragments.size;
|
|
10973
|
+
this._visitedFragments.set(d, { index: w, fragment: y });
|
|
10974
10974
|
}
|
|
10975
10975
|
const E = new D.Color().setRGB(a, l, h, "srgb"), T = new D.Matrix4();
|
|
10976
10976
|
T.fromArray(o.flatTransformation);
|
|
@@ -12330,20 +12330,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12330
12330
|
return T;
|
|
12331
12331
|
}
|
|
12332
12332
|
function r(u, d, E, T, p, m) {
|
|
12333
|
-
var F, R, S = u.file,
|
|
12333
|
+
var F, R, S = u.file, O = u.compression, y = m !== l.utf8encode, w = o.transformTo("string", m(S.name)), L = o.transformTo("string", l.utf8encode(S.name)), b = S.comment, Y = o.transformTo("string", m(b)), N = o.transformTo("string", l.utf8encode(b)), M = L.length !== S.name.length, g = N.length !== b.length, v = "", q = "", G = "", et = S.dir, W = S.date, nt = { crc32: 0, compressedSize: 0, uncompressedSize: 0 };
|
|
12334
12334
|
d && !E || (nt.crc32 = u.crc32, nt.compressedSize = u.compressedSize, nt.uncompressedSize = u.uncompressedSize);
|
|
12335
12335
|
var V = 0;
|
|
12336
|
-
d && (V |= 8), y || !
|
|
12336
|
+
d && (V |= 8), y || !M && !g || (V |= 2048);
|
|
12337
12337
|
var x = 0, ot = 0;
|
|
12338
12338
|
et && (x |= 16), p === "UNIX" ? (ot = 798, x |= function(tt, St) {
|
|
12339
12339
|
var yt = tt;
|
|
12340
12340
|
return tt || (yt = St ? 16893 : 33204), (65535 & yt) << 16;
|
|
12341
12341
|
}(S.unixPermissions, et)) : (ot = 20, x |= function(tt) {
|
|
12342
12342
|
return 63 & (tt || 0);
|
|
12343
|
-
}(S.dosPermissions)), F = W.getUTCHours(), F <<= 6, F |= W.getUTCMinutes(), F <<= 5, F |= W.getUTCSeconds() / 2, R = W.getUTCFullYear() - 1980, R <<= 4, R |= W.getUTCMonth() + 1, R <<= 5, R |= W.getUTCDate(),
|
|
12343
|
+
}(S.dosPermissions)), F = W.getUTCHours(), F <<= 6, F |= W.getUTCMinutes(), F <<= 5, F |= W.getUTCSeconds() / 2, R = W.getUTCFullYear() - 1980, R <<= 4, R |= W.getUTCMonth() + 1, R <<= 5, R |= W.getUTCDate(), M && (q = n(1, 1) + n(h(w), 4) + L, v += "up" + n(q.length, 2) + q), g && (G = n(1, 1) + n(h(Y), 4) + N, v += "uc" + n(G.length, 2) + G);
|
|
12344
12344
|
var it = "";
|
|
12345
12345
|
return it += `
|
|
12346
|
-
\0`, it += n(V, 2), it +=
|
|
12346
|
+
\0`, it += n(V, 2), it += O.magic, it += n(F, 2), it += n(R, 2), it += n(nt.crc32, 4), it += n(nt.compressedSize, 4), it += n(nt.uncompressedSize, 4), it += n(w.length, 2), it += n(v.length, 2), { fileRecord: f.LOCAL_FILE_HEADER + it + w + v, dirRecord: f.CENTRAL_FILE_HEADER + n(ot, 2) + it + n(Y.length, 2) + "\0\0\0\0" + n(x, 4) + n(T, 4) + w + v + Y };
|
|
12347
12347
|
}
|
|
12348
12348
|
var o = t("../utils"), a = t("../stream/GenericWorker"), l = t("../utf8"), h = t("../crc32"), f = t("../signature");
|
|
12349
12349
|
function I(u, d, E, T) {
|
|
@@ -12375,8 +12375,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12375
12375
|
for (var u = this.bytesWritten, d = 0; d < this.dirRecords.length; d++)
|
|
12376
12376
|
this.push({ data: this.dirRecords[d], meta: { percent: 100 } });
|
|
12377
12377
|
var E = this.bytesWritten - u, T = function(p, m, F, R, S) {
|
|
12378
|
-
var
|
|
12379
|
-
return f.CENTRAL_DIRECTORY_END + "\0\0\0\0" + n(p, 2) + n(p, 2) + n(m, 4) + n(F, 4) + n(
|
|
12378
|
+
var O = o.transformTo("string", S(R));
|
|
12379
|
+
return f.CENTRAL_DIRECTORY_END + "\0\0\0\0" + n(p, 2) + n(p, 2) + n(m, 4) + n(F, 4) + n(O.length, 2) + O;
|
|
12380
12380
|
}(this.dirRecords.length, E, u, this.zipComment, this.encodeFileName);
|
|
12381
12381
|
this.push({ data: T, meta: { percent: 100 } });
|
|
12382
12382
|
}, I.prototype.prepareNextSource = function() {
|
|
@@ -12528,24 +12528,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12528
12528
|
return n && typeof n.on == "function" && typeof n.pause == "function" && typeof n.resume == "function";
|
|
12529
12529
|
} };
|
|
12530
12530
|
}, {}], 15: [function(t, e, s) {
|
|
12531
|
-
function n(S,
|
|
12532
|
-
var
|
|
12533
|
-
b.date = b.date || /* @__PURE__ */ new Date(), b.compression !== null && (b.compression = b.compression.toUpperCase()), typeof b.unixPermissions == "string" && (b.unixPermissions = parseInt(b.unixPermissions, 8)), b.unixPermissions && 16384 & b.unixPermissions && (b.dir = !0), b.dosPermissions && 16 & b.dosPermissions && (b.dir = !0), b.dir && (S = p(S)), b.createFolders && (
|
|
12531
|
+
function n(S, O, y) {
|
|
12532
|
+
var w, L = o.getTypeOf(O), b = o.extend(y || {}, h);
|
|
12533
|
+
b.date = b.date || /* @__PURE__ */ new Date(), b.compression !== null && (b.compression = b.compression.toUpperCase()), typeof b.unixPermissions == "string" && (b.unixPermissions = parseInt(b.unixPermissions, 8)), b.unixPermissions && 16384 & b.unixPermissions && (b.dir = !0), b.dosPermissions && 16 & b.dosPermissions && (b.dir = !0), b.dir && (S = p(S)), b.createFolders && (w = T(S)) && m.call(this, w, !0);
|
|
12534
12534
|
var Y = L === "string" && b.binary === !1 && b.base64 === !1;
|
|
12535
|
-
y && y.binary !== void 0 || (b.binary = !Y), (
|
|
12536
|
-
var
|
|
12537
|
-
|
|
12538
|
-
var
|
|
12539
|
-
this.files[S] =
|
|
12535
|
+
y && y.binary !== void 0 || (b.binary = !Y), (O instanceof f && O.uncompressedSize === 0 || b.dir || !O || O.length === 0) && (b.base64 = !1, b.binary = !0, O = "", b.compression = "STORE", L = "string");
|
|
12536
|
+
var N = null;
|
|
12537
|
+
N = O instanceof f || O instanceof a ? O : d.isNode && d.isStream(O) ? new E(S, O) : o.prepareContent(S, O, b.binary, b.optimizedBinaryString, b.base64);
|
|
12538
|
+
var M = new I(S, N, b);
|
|
12539
|
+
this.files[S] = M;
|
|
12540
12540
|
}
|
|
12541
12541
|
var r = t("./utf8"), o = t("./utils"), a = t("./stream/GenericWorker"), l = t("./stream/StreamHelper"), h = t("./defaults"), f = t("./compressedObject"), I = t("./zipObject"), u = t("./generate"), d = t("./nodejsUtils"), E = t("./nodejs/NodejsStreamInputAdapter"), T = function(S) {
|
|
12542
12542
|
S.slice(-1) === "/" && (S = S.substring(0, S.length - 1));
|
|
12543
|
-
var
|
|
12544
|
-
return 0 <
|
|
12543
|
+
var O = S.lastIndexOf("/");
|
|
12544
|
+
return 0 < O ? S.substring(0, O) : "";
|
|
12545
12545
|
}, p = function(S) {
|
|
12546
12546
|
return S.slice(-1) !== "/" && (S += "/"), S;
|
|
12547
|
-
}, m = function(S,
|
|
12548
|
-
return
|
|
12547
|
+
}, m = function(S, O) {
|
|
12548
|
+
return O = O !== void 0 ? O : h.createFolders, S = p(S), this.files[S] || n.call(this, S, null, { dir: !0, createFolders: O }), this.files[S];
|
|
12549
12549
|
};
|
|
12550
12550
|
function F(S) {
|
|
12551
12551
|
return Object.prototype.toString.call(S) === "[object RegExp]";
|
|
@@ -12553,21 +12553,21 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12553
12553
|
var R = { load: function() {
|
|
12554
12554
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
12555
12555
|
}, forEach: function(S) {
|
|
12556
|
-
var
|
|
12557
|
-
for (
|
|
12558
|
-
|
|
12556
|
+
var O, y, w;
|
|
12557
|
+
for (O in this.files)
|
|
12558
|
+
w = this.files[O], (y = O.slice(this.root.length, O.length)) && O.slice(0, this.root.length) === this.root && S(y, w);
|
|
12559
12559
|
}, filter: function(S) {
|
|
12560
|
-
var
|
|
12561
|
-
return this.forEach(function(y,
|
|
12562
|
-
S(y,
|
|
12563
|
-
}),
|
|
12564
|
-
}, file: function(S,
|
|
12560
|
+
var O = [];
|
|
12561
|
+
return this.forEach(function(y, w) {
|
|
12562
|
+
S(y, w) && O.push(w);
|
|
12563
|
+
}), O;
|
|
12564
|
+
}, file: function(S, O, y) {
|
|
12565
12565
|
if (arguments.length !== 1)
|
|
12566
|
-
return S = this.root + S, n.call(this, S,
|
|
12566
|
+
return S = this.root + S, n.call(this, S, O, y), this;
|
|
12567
12567
|
if (F(S)) {
|
|
12568
|
-
var
|
|
12568
|
+
var w = S;
|
|
12569
12569
|
return this.filter(function(b, Y) {
|
|
12570
|
-
return !Y.dir &&
|
|
12570
|
+
return !Y.dir && w.test(b);
|
|
12571
12571
|
});
|
|
12572
12572
|
}
|
|
12573
12573
|
var L = this.files[this.root + S];
|
|
@@ -12579,37 +12579,37 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12579
12579
|
return this.filter(function(L, b) {
|
|
12580
12580
|
return b.dir && S.test(L);
|
|
12581
12581
|
});
|
|
12582
|
-
var
|
|
12583
|
-
return
|
|
12582
|
+
var O = this.root + S, y = m.call(this, O), w = this.clone();
|
|
12583
|
+
return w.root = y.name, w;
|
|
12584
12584
|
}, remove: function(S) {
|
|
12585
12585
|
S = this.root + S;
|
|
12586
|
-
var
|
|
12587
|
-
if (
|
|
12586
|
+
var O = this.files[S];
|
|
12587
|
+
if (O || (S.slice(-1) !== "/" && (S += "/"), O = this.files[S]), O && !O.dir)
|
|
12588
12588
|
delete this.files[S];
|
|
12589
12589
|
else
|
|
12590
12590
|
for (var y = this.filter(function(L, b) {
|
|
12591
12591
|
return b.name.slice(0, S.length) === S;
|
|
12592
|
-
}),
|
|
12593
|
-
delete this.files[y[
|
|
12592
|
+
}), w = 0; w < y.length; w++)
|
|
12593
|
+
delete this.files[y[w].name];
|
|
12594
12594
|
return this;
|
|
12595
12595
|
}, generate: function() {
|
|
12596
12596
|
throw new Error("This method has been removed in JSZip 3.0, please check the upgrade guide.");
|
|
12597
12597
|
}, generateInternalStream: function(S) {
|
|
12598
|
-
var
|
|
12598
|
+
var O, y = {};
|
|
12599
12599
|
try {
|
|
12600
12600
|
if ((y = o.extend(S || {}, { streamFiles: !1, compression: "STORE", compressionOptions: null, type: "", platform: "DOS", comment: null, mimeType: "application/zip", encodeFileName: r.utf8encode })).type = y.type.toLowerCase(), y.compression = y.compression.toUpperCase(), y.type === "binarystring" && (y.type = "string"), !y.type)
|
|
12601
12601
|
throw new Error("No output type specified.");
|
|
12602
12602
|
o.checkSupport(y.type), y.platform !== "darwin" && y.platform !== "freebsd" && y.platform !== "linux" && y.platform !== "sunos" || (y.platform = "UNIX"), y.platform === "win32" && (y.platform = "DOS");
|
|
12603
|
-
var
|
|
12604
|
-
|
|
12603
|
+
var w = y.comment || this.comment || "";
|
|
12604
|
+
O = u.generateWorker(this, y, w);
|
|
12605
12605
|
} catch (L) {
|
|
12606
|
-
(
|
|
12606
|
+
(O = new a("error")).error(L);
|
|
12607
12607
|
}
|
|
12608
|
-
return new l(
|
|
12609
|
-
}, generateAsync: function(S,
|
|
12610
|
-
return this.generateInternalStream(S).accumulate(
|
|
12611
|
-
}, generateNodeStream: function(S,
|
|
12612
|
-
return (S = S || {}).type || (S.type = "nodebuffer"), this.generateInternalStream(S).toNodejsStream(
|
|
12608
|
+
return new l(O, y.type || "string", y.mimeType);
|
|
12609
|
+
}, generateAsync: function(S, O) {
|
|
12610
|
+
return this.generateInternalStream(S).accumulate(O);
|
|
12611
|
+
}, generateNodeStream: function(S, O) {
|
|
12612
|
+
return (S = S || {}).type || (S.type = "nodebuffer"), this.generateInternalStream(S).toNodejsStream(O);
|
|
12613
12613
|
} };
|
|
12614
12614
|
e.exports = R;
|
|
12615
12615
|
}, { "./compressedObject": 2, "./defaults": 5, "./generate": 9, "./nodejs/NodejsStreamInputAdapter": 12, "./nodejsUtils": 14, "./stream/GenericWorker": 28, "./stream/StreamHelper": 29, "./utf8": 31, "./utils": 32, "./zipObject": 35 }], 16: [function(t, e, s) {
|
|
@@ -12848,41 +12848,41 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
12848
12848
|
function I(d, E) {
|
|
12849
12849
|
return new h.Promise(function(T, p) {
|
|
12850
12850
|
var m = [], F = d._internalType, R = d._outputType, S = d._mimeType;
|
|
12851
|
-
d.on("data", function(
|
|
12852
|
-
m.push(
|
|
12853
|
-
}).on("error", function(
|
|
12854
|
-
m = [], p(
|
|
12851
|
+
d.on("data", function(O, y) {
|
|
12852
|
+
m.push(O), E && E(y);
|
|
12853
|
+
}).on("error", function(O) {
|
|
12854
|
+
m = [], p(O);
|
|
12855
12855
|
}).on("end", function() {
|
|
12856
12856
|
try {
|
|
12857
|
-
var
|
|
12857
|
+
var O = function(y, w, L) {
|
|
12858
12858
|
switch (y) {
|
|
12859
12859
|
case "blob":
|
|
12860
|
-
return n.newBlob(n.transformTo("arraybuffer",
|
|
12860
|
+
return n.newBlob(n.transformTo("arraybuffer", w), L);
|
|
12861
12861
|
case "base64":
|
|
12862
|
-
return a.encode(
|
|
12862
|
+
return a.encode(w);
|
|
12863
12863
|
default:
|
|
12864
|
-
return n.transformTo(y,
|
|
12864
|
+
return n.transformTo(y, w);
|
|
12865
12865
|
}
|
|
12866
|
-
}(R, function(y,
|
|
12867
|
-
var L, b = 0, Y = null,
|
|
12868
|
-
for (L = 0; L <
|
|
12869
|
-
|
|
12866
|
+
}(R, function(y, w) {
|
|
12867
|
+
var L, b = 0, Y = null, N = 0;
|
|
12868
|
+
for (L = 0; L < w.length; L++)
|
|
12869
|
+
N += w[L].length;
|
|
12870
12870
|
switch (y) {
|
|
12871
12871
|
case "string":
|
|
12872
|
-
return
|
|
12872
|
+
return w.join("");
|
|
12873
12873
|
case "array":
|
|
12874
|
-
return Array.prototype.concat.apply([],
|
|
12874
|
+
return Array.prototype.concat.apply([], w);
|
|
12875
12875
|
case "uint8array":
|
|
12876
|
-
for (Y = new Uint8Array(
|
|
12877
|
-
Y.set(
|
|
12876
|
+
for (Y = new Uint8Array(N), L = 0; L < w.length; L++)
|
|
12877
|
+
Y.set(w[L], b), b += w[L].length;
|
|
12878
12878
|
return Y;
|
|
12879
12879
|
case "nodebuffer":
|
|
12880
|
-
return Buffer.concat(
|
|
12880
|
+
return Buffer.concat(w);
|
|
12881
12881
|
default:
|
|
12882
12882
|
throw new Error("concat : unsupported type '" + y + "'");
|
|
12883
12883
|
}
|
|
12884
12884
|
}(F, m), S);
|
|
12885
|
-
T(
|
|
12885
|
+
T(O);
|
|
12886
12886
|
} catch (y) {
|
|
12887
12887
|
p(y);
|
|
12888
12888
|
}
|
|
@@ -13138,18 +13138,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13138
13138
|
return p;
|
|
13139
13139
|
}, s.prepareContent = function(E, T, p, m, F) {
|
|
13140
13140
|
return a.Promise.resolve(T).then(function(R) {
|
|
13141
|
-
return n.blob && (R instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(R)) !== -1) && typeof FileReader < "u" ? new a.Promise(function(S,
|
|
13141
|
+
return n.blob && (R instanceof Blob || ["[object File]", "[object Blob]"].indexOf(Object.prototype.toString.call(R)) !== -1) && typeof FileReader < "u" ? new a.Promise(function(S, O) {
|
|
13142
13142
|
var y = new FileReader();
|
|
13143
|
-
y.onload = function(
|
|
13144
|
-
S(
|
|
13145
|
-
}, y.onerror = function(
|
|
13146
|
-
|
|
13143
|
+
y.onload = function(w) {
|
|
13144
|
+
S(w.target.result);
|
|
13145
|
+
}, y.onerror = function(w) {
|
|
13146
|
+
O(w.target.error);
|
|
13147
13147
|
}, y.readAsArrayBuffer(R);
|
|
13148
13148
|
}) : R;
|
|
13149
13149
|
}).then(function(R) {
|
|
13150
13150
|
var S = s.getTypeOf(R);
|
|
13151
|
-
return S ? (S === "arraybuffer" ? R = s.transformTo("uint8array", R) : S === "string" && (F ? R = r.decode(R) : p && m !== !0 && (R = function(
|
|
13152
|
-
return h(
|
|
13151
|
+
return S ? (S === "arraybuffer" ? R = s.transformTo("uint8array", R) : S === "string" && (F ? R = r.decode(R) : p && m !== !0 && (R = function(O) {
|
|
13152
|
+
return h(O, n.uint8array ? new Uint8Array(O.length) : new Array(O.length));
|
|
13153
13153
|
}(R))), R) : a.Promise.reject(new Error("Can't read the data of '" + E + "'. Is it in a supported JavaScript type (String, Blob, ArrayBuffer, etc) ?"));
|
|
13154
13154
|
});
|
|
13155
13155
|
};
|
|
@@ -13403,10 +13403,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13403
13403
|
function S(y) {
|
|
13404
13404
|
F || (F = !0, o.resolve(p, y));
|
|
13405
13405
|
}
|
|
13406
|
-
var
|
|
13406
|
+
var O = T(function() {
|
|
13407
13407
|
m(S, R);
|
|
13408
13408
|
});
|
|
13409
|
-
|
|
13409
|
+
O.status === "error" && R(O.value);
|
|
13410
13410
|
}
|
|
13411
13411
|
function T(p, m) {
|
|
13412
13412
|
var F = {};
|
|
@@ -13454,7 +13454,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13454
13454
|
E(p, R);
|
|
13455
13455
|
else {
|
|
13456
13456
|
p.state = l, p.outcome = m;
|
|
13457
|
-
for (var S = -1,
|
|
13457
|
+
for (var S = -1, O = p.queue.length; ++S < O; )
|
|
13458
13458
|
p.queue[S].callFulfilled(m);
|
|
13459
13459
|
}
|
|
13460
13460
|
return p;
|
|
@@ -13475,14 +13475,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13475
13475
|
var F = p.length, R = !1;
|
|
13476
13476
|
if (!F)
|
|
13477
13477
|
return this.resolve([]);
|
|
13478
|
-
for (var S = new Array(F),
|
|
13478
|
+
for (var S = new Array(F), O = 0, y = -1, w = new this(r); ++y < F; )
|
|
13479
13479
|
L(p[y], y);
|
|
13480
|
-
return
|
|
13480
|
+
return w;
|
|
13481
13481
|
function L(b, Y) {
|
|
13482
|
-
m.resolve(b).then(function(
|
|
13483
|
-
S[Y] =
|
|
13484
|
-
}, function(
|
|
13485
|
-
R || (R = !0, o.reject(
|
|
13482
|
+
m.resolve(b).then(function(N) {
|
|
13483
|
+
S[Y] = N, ++O !== F || R || (R = !0, o.resolve(w, S));
|
|
13484
|
+
}, function(N) {
|
|
13485
|
+
R || (R = !0, o.reject(w, N));
|
|
13486
13486
|
});
|
|
13487
13487
|
}
|
|
13488
13488
|
}, f.race = function(p) {
|
|
@@ -13492,14 +13492,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13492
13492
|
var F = p.length, R = !1;
|
|
13493
13493
|
if (!F)
|
|
13494
13494
|
return this.resolve([]);
|
|
13495
|
-
for (var S = -1,
|
|
13496
|
-
y = p[S], m.resolve(y).then(function(
|
|
13497
|
-
R || (R = !0, o.resolve(
|
|
13498
|
-
}, function(
|
|
13499
|
-
R || (R = !0, o.reject(
|
|
13495
|
+
for (var S = -1, O = new this(r); ++S < F; )
|
|
13496
|
+
y = p[S], m.resolve(y).then(function(w) {
|
|
13497
|
+
R || (R = !0, o.resolve(O, w));
|
|
13498
|
+
}, function(w) {
|
|
13499
|
+
R || (R = !0, o.reject(O, w));
|
|
13500
13500
|
});
|
|
13501
13501
|
var y;
|
|
13502
|
-
return
|
|
13502
|
+
return O;
|
|
13503
13503
|
};
|
|
13504
13504
|
}, { immediate: 36 }], 38: [function(t, e, s) {
|
|
13505
13505
|
var n = {};
|
|
@@ -13529,12 +13529,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13529
13529
|
return F.result;
|
|
13530
13530
|
}
|
|
13531
13531
|
E.prototype.push = function(p, m) {
|
|
13532
|
-
var F, R, S = this.strm,
|
|
13532
|
+
var F, R, S = this.strm, O = this.options.chunkSize;
|
|
13533
13533
|
if (this.ended)
|
|
13534
13534
|
return !1;
|
|
13535
13535
|
R = m === ~~m ? m : m === !0 ? 4 : 0, typeof p == "string" ? S.input = o.string2buf(p) : h.call(p) === "[object ArrayBuffer]" ? S.input = new Uint8Array(p) : S.input = p, S.next_in = 0, S.avail_in = S.input.length;
|
|
13536
13536
|
do {
|
|
13537
|
-
if (S.avail_out === 0 && (S.output = new r.Buf8(
|
|
13537
|
+
if (S.avail_out === 0 && (S.output = new r.Buf8(O), S.next_out = 0, S.avail_out = O), (F = n.deflate(S, R)) !== 1 && F !== f)
|
|
13538
13538
|
return this.onEnd(F), !(this.ended = !0);
|
|
13539
13539
|
S.avail_out !== 0 && (S.avail_in !== 0 || R !== 4 && R !== 2) || (this.options.to === "string" ? this.onData(o.buf2binstring(r.shrinkBuf(S.output, S.next_out))) : this.onData(r.shrinkBuf(S.output, S.next_out)));
|
|
13540
13540
|
} while ((0 < S.avail_in || S.avail_out === 0) && F !== 1);
|
|
@@ -13568,14 +13568,14 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13568
13568
|
return p.result;
|
|
13569
13569
|
}
|
|
13570
13570
|
u.prototype.push = function(E, T) {
|
|
13571
|
-
var p, m, F, R, S,
|
|
13571
|
+
var p, m, F, R, S, O, y = this.strm, w = this.options.chunkSize, L = this.options.dictionary, b = !1;
|
|
13572
13572
|
if (this.ended)
|
|
13573
13573
|
return !1;
|
|
13574
13574
|
m = T === ~~T ? T : T === !0 ? a.Z_FINISH : a.Z_NO_FLUSH, typeof E == "string" ? y.input = o.binstring2buf(E) : I.call(E) === "[object ArrayBuffer]" ? y.input = new Uint8Array(E) : y.input = E, y.next_in = 0, y.avail_in = y.input.length;
|
|
13575
13575
|
do {
|
|
13576
|
-
if (y.avail_out === 0 && (y.output = new r.Buf8(
|
|
13576
|
+
if (y.avail_out === 0 && (y.output = new r.Buf8(w), y.next_out = 0, y.avail_out = w), (p = n.inflate(y, a.Z_NO_FLUSH)) === a.Z_NEED_DICT && L && (O = typeof L == "string" ? o.string2buf(L) : I.call(L) === "[object ArrayBuffer]" ? new Uint8Array(L) : L, p = n.inflateSetDictionary(this.strm, O)), p === a.Z_BUF_ERROR && b === !0 && (p = a.Z_OK, b = !1), p !== a.Z_STREAM_END && p !== a.Z_OK)
|
|
13577
13577
|
return this.onEnd(p), !(this.ended = !0);
|
|
13578
|
-
y.next_out && (y.avail_out !== 0 && p !== a.Z_STREAM_END && (y.avail_in !== 0 || m !== a.Z_FINISH && m !== a.Z_SYNC_FLUSH) || (this.options.to === "string" ? (F = o.utf8border(y.output, y.next_out), R = y.next_out - F, S = o.buf2string(y.output, F), y.next_out = R, y.avail_out =
|
|
13578
|
+
y.next_out && (y.avail_out !== 0 && p !== a.Z_STREAM_END && (y.avail_in !== 0 || m !== a.Z_FINISH && m !== a.Z_SYNC_FLUSH) || (this.options.to === "string" ? (F = o.utf8border(y.output, y.next_out), R = y.next_out - F, S = o.buf2string(y.output, F), y.next_out = R, y.avail_out = w - R, R && r.arraySet(y.output, y.output, F, R, 0), this.onData(S)) : this.onData(r.shrinkBuf(y.output, y.next_out)))), y.avail_in === 0 && y.avail_out === 0 && (b = !0);
|
|
13579
13579
|
} while ((0 < y.avail_in || y.avail_out === 0) && p !== a.Z_STREAM_END);
|
|
13580
13580
|
return p === a.Z_STREAM_END && (m = a.Z_FINISH), m === a.Z_FINISH ? (p = n.inflateEnd(this.strm), this.onEnd(p), this.ended = !0, p === a.Z_OK) : m !== a.Z_SYNC_FLUSH || (this.onEnd(a.Z_OK), !(y.avail_out = 0));
|
|
13581
13581
|
}, u.prototype.onData = function(E) {
|
|
@@ -13705,7 +13705,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13705
13705
|
return -1 ^ r;
|
|
13706
13706
|
};
|
|
13707
13707
|
}, {}], 46: [function(t, e, s) {
|
|
13708
|
-
var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), f = 0, I = 4, u = 0, d = -2, E = -1, T = 4, p = 2, m = 8, F = 9, R = 286, S = 30,
|
|
13708
|
+
var n, r = t("../utils/common"), o = t("./trees"), a = t("./adler32"), l = t("./crc32"), h = t("./messages"), f = 0, I = 4, u = 0, d = -2, E = -1, T = 4, p = 2, m = 8, F = 9, R = 286, S = 30, O = 19, y = 2 * R + 1, w = 15, L = 3, b = 258, Y = b + L + 1, N = 42, M = 113, g = 1, v = 2, q = 3, G = 4;
|
|
13709
13709
|
function et(A, X) {
|
|
13710
13710
|
return A.msg = h[X], X;
|
|
13711
13711
|
}
|
|
@@ -13811,11 +13811,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13811
13811
|
this.good_length = A, this.max_lazy = X, this.nice_length = k, this.max_chain = P, this.func = _;
|
|
13812
13812
|
}
|
|
13813
13813
|
function ft() {
|
|
13814
|
-
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 *
|
|
13814
|
+
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;
|
|
13815
13815
|
}
|
|
13816
13816
|
function Ct(A) {
|
|
13817
13817
|
var X;
|
|
13818
|
-
return A && A.state ? (A.total_in = A.total_out = 0, A.data_type = p, (X = A.state).pending = 0, X.pending_out = 0, X.wrap < 0 && (X.wrap = -X.wrap), X.status = X.wrap ?
|
|
13818
|
+
return A && A.state ? (A.total_in = A.total_out = 0, A.data_type = p, (X = A.state).pending = 0, X.pending_out = 0, X.wrap < 0 && (X.wrap = -X.wrap), X.status = X.wrap ? N : M, A.adler = X.wrap === 2 ? 0 : 1, X.last_flush = f, o._tr_init(X), u) : et(A, d);
|
|
13819
13819
|
}
|
|
13820
13820
|
function Ht(A) {
|
|
13821
13821
|
var X = Ct(A);
|
|
@@ -13858,12 +13858,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13858
13858
|
return A ? et(A, d) : d;
|
|
13859
13859
|
if (P = A.state, !A.output || !A.input && A.avail_in !== 0 || P.status === 666 && X !== I)
|
|
13860
13860
|
return et(A, A.avail_out === 0 ? -5 : d);
|
|
13861
|
-
if (P.strm = A, k = P.last_flush, P.last_flush = X, P.status ===
|
|
13861
|
+
if (P.strm = A, k = P.last_flush, P.last_flush = X, P.status === N)
|
|
13862
13862
|
if (P.wrap === 2)
|
|
13863
|
-
A.adler = 0, ot(P, 31), ot(P, 139), ot(P, 8), P.gzhead ? (ot(P, (P.gzhead.text ? 1 : 0) + (P.gzhead.hcrc ? 2 : 0) + (P.gzhead.extra ? 4 : 0) + (P.gzhead.name ? 8 : 0) + (P.gzhead.comment ? 16 : 0)), ot(P, 255 & P.gzhead.time), ot(P, P.gzhead.time >> 8 & 255), ot(P, P.gzhead.time >> 16 & 255), ot(P, P.gzhead.time >> 24 & 255), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 255 & P.gzhead.os), P.gzhead.extra && P.gzhead.extra.length && (ot(P, 255 & P.gzhead.extra.length), ot(P, P.gzhead.extra.length >> 8 & 255)), P.gzhead.hcrc && (A.adler = l(A.adler, P.pending_buf, P.pending, 0)), P.gzindex = 0, P.status = 69) : (ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 3), P.status =
|
|
13863
|
+
A.adler = 0, ot(P, 31), ot(P, 139), ot(P, 8), P.gzhead ? (ot(P, (P.gzhead.text ? 1 : 0) + (P.gzhead.hcrc ? 2 : 0) + (P.gzhead.extra ? 4 : 0) + (P.gzhead.name ? 8 : 0) + (P.gzhead.comment ? 16 : 0)), ot(P, 255 & P.gzhead.time), ot(P, P.gzhead.time >> 8 & 255), ot(P, P.gzhead.time >> 16 & 255), ot(P, P.gzhead.time >> 24 & 255), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 255 & P.gzhead.os), P.gzhead.extra && P.gzhead.extra.length && (ot(P, 255 & P.gzhead.extra.length), ot(P, P.gzhead.extra.length >> 8 & 255)), P.gzhead.hcrc && (A.adler = l(A.adler, P.pending_buf, P.pending, 0)), P.gzindex = 0, P.status = 69) : (ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, 0), ot(P, P.level === 9 ? 2 : 2 <= P.strategy || P.level < 2 ? 4 : 0), ot(P, 3), P.status = M);
|
|
13864
13864
|
else {
|
|
13865
13865
|
var $ = m + (P.w_bits - 8 << 4) << 8;
|
|
13866
|
-
$ |= (2 <= P.strategy || P.level < 2 ? 0 : P.level < 6 ? 1 : P.level === 6 ? 2 : 3) << 6, P.strstart !== 0 && ($ |= 32), $ += 31 - $ % 31, P.status =
|
|
13866
|
+
$ |= (2 <= P.strategy || P.level < 2 ? 0 : P.level < 6 ? 1 : P.level === 6 ? 2 : 3) << 6, P.strstart !== 0 && ($ |= 32), $ += 31 - $ % 31, P.status = M, it(P, $), P.strstart !== 0 && (it(P, A.adler >>> 16), it(P, 65535 & A.adler)), A.adler = 1;
|
|
13867
13867
|
}
|
|
13868
13868
|
if (P.status === 69)
|
|
13869
13869
|
if (P.gzhead.extra) {
|
|
@@ -13898,7 +13898,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13898
13898
|
P.gzhead.hcrc && P.pending > _ && (A.adler = l(A.adler, P.pending_buf, P.pending - _, _)), U === 0 && (P.status = 103);
|
|
13899
13899
|
} else
|
|
13900
13900
|
P.status = 103;
|
|
13901
|
-
if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size && V(A), P.pending + 2 <= P.pending_buf_size && (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), A.adler = 0, P.status =
|
|
13901
|
+
if (P.status === 103 && (P.gzhead.hcrc ? (P.pending + 2 > P.pending_buf_size && V(A), P.pending + 2 <= P.pending_buf_size && (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), A.adler = 0, P.status = M)) : P.status = M), P.pending !== 0) {
|
|
13902
13902
|
if (V(A), A.avail_out === 0)
|
|
13903
13903
|
return P.last_flush = -1, u;
|
|
13904
13904
|
} else if (A.avail_in === 0 && W(X) <= W(k) && X !== I)
|
|
@@ -13945,10 +13945,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13945
13945
|
return X !== I ? u : P.wrap <= 0 ? 1 : (P.wrap === 2 ? (ot(P, 255 & A.adler), ot(P, A.adler >> 8 & 255), ot(P, A.adler >> 16 & 255), ot(P, A.adler >> 24 & 255), ot(P, 255 & A.total_in), ot(P, A.total_in >> 8 & 255), ot(P, A.total_in >> 16 & 255), ot(P, A.total_in >> 24 & 255)) : (it(P, A.adler >>> 16), it(P, 65535 & A.adler)), V(A), 0 < P.wrap && (P.wrap = -P.wrap), P.pending !== 0 ? u : 1);
|
|
13946
13946
|
}, s.deflateEnd = function(A) {
|
|
13947
13947
|
var X;
|
|
13948
|
-
return A && A.state ? (X = A.state.status) !==
|
|
13948
|
+
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
13949
|
}, s.deflateSetDictionary = function(A, X) {
|
|
13950
13950
|
var k, P, _, U, $, Z, B, K, st = X.length;
|
|
13951
|
-
if (!A || !A.state || (U = (k = A.state).wrap) === 2 || U === 1 && k.status !==
|
|
13951
|
+
if (!A || !A.state || (U = (k = A.state).wrap) === 2 || U === 1 && k.status !== N || k.lookahead)
|
|
13952
13952
|
return d;
|
|
13953
13953
|
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
13954
|
for (P = k.strstart, _ = k.lookahead - (L - 1); k.ins_h = (k.ins_h << k.hash_shift ^ k.window[P + L - 1]) & k.hash_mask, k.prev[P & k.w_mask] = k.head[k.ins_h], k.head[k.ins_h] = P, P++, --_; )
|
|
@@ -13963,19 +13963,19 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13963
13963
|
};
|
|
13964
13964
|
}, {}], 48: [function(t, e, s) {
|
|
13965
13965
|
e.exports = function(n, r) {
|
|
13966
|
-
var o, a, l, h, f, I, u, d, E, T, p, m, F, R, S,
|
|
13967
|
-
o = n.state, a = n.next_in, g = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, f = h - (r - n.avail_out), I = h + (n.avail_out - 257), u = o.dmax, d = o.wsize, E = o.whave, T = o.wnext, p = o.window, m = o.hold, F = o.bits, R = o.lencode, S = o.distcode,
|
|
13966
|
+
var o, a, l, h, f, I, u, d, E, T, p, m, F, R, S, O, y, w, L, b, Y, N, M, g, v;
|
|
13967
|
+
o = n.state, a = n.next_in, g = n.input, l = a + (n.avail_in - 5), h = n.next_out, v = n.output, f = h - (r - n.avail_out), I = h + (n.avail_out - 257), u = o.dmax, d = o.wsize, E = o.whave, T = o.wnext, p = o.window, m = o.hold, F = o.bits, R = o.lencode, S = o.distcode, O = (1 << o.lenbits) - 1, y = (1 << o.distbits) - 1;
|
|
13968
13968
|
t:
|
|
13969
13969
|
do {
|
|
13970
|
-
F < 15 && (m += g[a++] << F, F += 8, m += g[a++] << F, F += 8),
|
|
13970
|
+
F < 15 && (m += g[a++] << F, F += 8, m += g[a++] << F, F += 8), w = R[m & O];
|
|
13971
13971
|
e:
|
|
13972
13972
|
for (; ; ) {
|
|
13973
|
-
if (m >>>= L =
|
|
13974
|
-
v[h++] = 65535 &
|
|
13973
|
+
if (m >>>= L = w >>> 24, F -= L, (L = w >>> 16 & 255) === 0)
|
|
13974
|
+
v[h++] = 65535 & w;
|
|
13975
13975
|
else {
|
|
13976
13976
|
if (!(16 & L)) {
|
|
13977
13977
|
if (!(64 & L)) {
|
|
13978
|
-
|
|
13978
|
+
w = R[(65535 & w) + (m & (1 << L) - 1)];
|
|
13979
13979
|
continue e;
|
|
13980
13980
|
}
|
|
13981
13981
|
if (32 & L) {
|
|
@@ -13985,18 +13985,18 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
13985
13985
|
n.msg = "invalid literal/length code", o.mode = 30;
|
|
13986
13986
|
break t;
|
|
13987
13987
|
}
|
|
13988
|
-
b = 65535 &
|
|
13988
|
+
b = 65535 & w, (L &= 15) && (F < L && (m += g[a++] << F, F += 8), b += m & (1 << L) - 1, m >>>= L, F -= L), F < 15 && (m += g[a++] << F, F += 8, m += g[a++] << F, F += 8), w = S[m & y];
|
|
13989
13989
|
i:
|
|
13990
13990
|
for (; ; ) {
|
|
13991
|
-
if (m >>>= L =
|
|
13991
|
+
if (m >>>= L = w >>> 24, F -= L, !(16 & (L = w >>> 16 & 255))) {
|
|
13992
13992
|
if (!(64 & L)) {
|
|
13993
|
-
|
|
13993
|
+
w = S[(65535 & w) + (m & (1 << L) - 1)];
|
|
13994
13994
|
continue i;
|
|
13995
13995
|
}
|
|
13996
13996
|
n.msg = "invalid distance code", o.mode = 30;
|
|
13997
13997
|
break t;
|
|
13998
13998
|
}
|
|
13999
|
-
if (Y = 65535 &
|
|
13999
|
+
if (Y = 65535 & w, F < (L &= 15) && (m += g[a++] << F, (F += 8) < L && (m += g[a++] << F, F += 8)), u < (Y += m & (1 << L) - 1)) {
|
|
14000
14000
|
n.msg = "invalid distance too far back", o.mode = 30;
|
|
14001
14001
|
break t;
|
|
14002
14002
|
}
|
|
@@ -14005,34 +14005,34 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14005
14005
|
n.msg = "invalid distance too far back", o.mode = 30;
|
|
14006
14006
|
break t;
|
|
14007
14007
|
}
|
|
14008
|
-
if (
|
|
14009
|
-
if (
|
|
14010
|
-
for (b -= L; v[h++] = p[
|
|
14008
|
+
if (M = p, (N = 0) === T) {
|
|
14009
|
+
if (N += d - L, L < b) {
|
|
14010
|
+
for (b -= L; v[h++] = p[N++], --L; )
|
|
14011
14011
|
;
|
|
14012
|
-
|
|
14012
|
+
N = h - Y, M = v;
|
|
14013
14013
|
}
|
|
14014
14014
|
} else if (T < L) {
|
|
14015
|
-
if (
|
|
14016
|
-
for (b -= L; v[h++] = p[
|
|
14015
|
+
if (N += d + T - L, (L -= T) < b) {
|
|
14016
|
+
for (b -= L; v[h++] = p[N++], --L; )
|
|
14017
14017
|
;
|
|
14018
|
-
if (
|
|
14019
|
-
for (b -= L = T; v[h++] = p[
|
|
14018
|
+
if (N = 0, T < b) {
|
|
14019
|
+
for (b -= L = T; v[h++] = p[N++], --L; )
|
|
14020
14020
|
;
|
|
14021
|
-
|
|
14021
|
+
N = h - Y, M = v;
|
|
14022
14022
|
}
|
|
14023
14023
|
}
|
|
14024
|
-
} else if (
|
|
14025
|
-
for (b -= L; v[h++] = p[
|
|
14024
|
+
} else if (N += T - L, L < b) {
|
|
14025
|
+
for (b -= L; v[h++] = p[N++], --L; )
|
|
14026
14026
|
;
|
|
14027
|
-
|
|
14027
|
+
N = h - Y, M = v;
|
|
14028
14028
|
}
|
|
14029
14029
|
for (; 2 < b; )
|
|
14030
|
-
v[h++] =
|
|
14031
|
-
b && (v[h++] =
|
|
14030
|
+
v[h++] = M[N++], v[h++] = M[N++], v[h++] = M[N++], b -= 3;
|
|
14031
|
+
b && (v[h++] = M[N++], 1 < b && (v[h++] = M[N++]));
|
|
14032
14032
|
} else {
|
|
14033
|
-
for (
|
|
14033
|
+
for (N = h - Y; v[h++] = v[N++], v[h++] = v[N++], v[h++] = v[N++], 2 < (b -= 3); )
|
|
14034
14034
|
;
|
|
14035
|
-
b && (v[h++] = v[
|
|
14035
|
+
b && (v[h++] = v[N++], 1 < b && (v[h++] = v[N++]));
|
|
14036
14036
|
}
|
|
14037
14037
|
break;
|
|
14038
14038
|
}
|
|
@@ -14044,57 +14044,57 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14044
14044
|
};
|
|
14045
14045
|
}, {}], 49: [function(t, e, s) {
|
|
14046
14046
|
var n = t("../utils/common"), r = t("./adler32"), o = t("./crc32"), a = t("./inffast"), l = t("./inftrees"), h = 1, f = 2, I = 0, u = -2, d = 1, E = 852, T = 592;
|
|
14047
|
-
function p(
|
|
14048
|
-
return (
|
|
14047
|
+
function p(N) {
|
|
14048
|
+
return (N >>> 24 & 255) + (N >>> 8 & 65280) + ((65280 & N) << 8) + ((255 & N) << 24);
|
|
14049
14049
|
}
|
|
14050
14050
|
function m() {
|
|
14051
14051
|
this.mode = 0, this.last = !1, this.wrap = 0, this.havedict = !1, this.flags = 0, this.dmax = 0, this.check = 0, this.total = 0, this.head = null, this.wbits = 0, this.wsize = 0, this.whave = 0, this.wnext = 0, this.window = null, this.hold = 0, this.bits = 0, this.length = 0, this.offset = 0, this.extra = 0, this.lencode = null, this.distcode = null, this.lenbits = 0, this.distbits = 0, this.ncode = 0, this.nlen = 0, this.ndist = 0, this.have = 0, this.next = null, this.lens = new n.Buf16(320), this.work = new n.Buf16(288), this.lendyn = null, this.distdyn = null, this.sane = 0, this.back = 0, this.was = 0;
|
|
14052
14052
|
}
|
|
14053
|
-
function F(
|
|
14054
|
-
var
|
|
14055
|
-
return
|
|
14053
|
+
function F(N) {
|
|
14054
|
+
var M;
|
|
14055
|
+
return N && N.state ? (M = N.state, N.total_in = N.total_out = M.total = 0, N.msg = "", M.wrap && (N.adler = 1 & M.wrap), M.mode = d, M.last = 0, M.havedict = 0, M.dmax = 32768, M.head = null, M.hold = 0, M.bits = 0, M.lencode = M.lendyn = new n.Buf32(E), M.distcode = M.distdyn = new n.Buf32(T), M.sane = 1, M.back = -1, I) : u;
|
|
14056
14056
|
}
|
|
14057
|
-
function R(
|
|
14058
|
-
var
|
|
14059
|
-
return
|
|
14057
|
+
function R(N) {
|
|
14058
|
+
var M;
|
|
14059
|
+
return N && N.state ? ((M = N.state).wsize = 0, M.whave = 0, M.wnext = 0, F(N)) : u;
|
|
14060
14060
|
}
|
|
14061
|
-
function S(
|
|
14061
|
+
function S(N, M) {
|
|
14062
14062
|
var g, v;
|
|
14063
|
-
return
|
|
14063
|
+
return N && N.state ? (v = N.state, M < 0 ? (g = 0, M = -M) : (g = 1 + (M >> 4), M < 48 && (M &= 15)), M && (M < 8 || 15 < M) ? u : (v.window !== null && v.wbits !== M && (v.window = null), v.wrap = g, v.wbits = M, R(N))) : u;
|
|
14064
14064
|
}
|
|
14065
|
-
function N
|
|
14065
|
+
function O(N, M) {
|
|
14066
14066
|
var g, v;
|
|
14067
|
-
return
|
|
14067
|
+
return N ? (v = new m(), (N.state = v).window = null, (g = S(N, M)) !== I && (N.state = null), g) : u;
|
|
14068
14068
|
}
|
|
14069
|
-
var y,
|
|
14070
|
-
function b(
|
|
14069
|
+
var y, w, L = !0;
|
|
14070
|
+
function b(N) {
|
|
14071
14071
|
if (L) {
|
|
14072
|
-
var
|
|
14073
|
-
for (y = new n.Buf32(512),
|
|
14074
|
-
|
|
14075
|
-
for (;
|
|
14076
|
-
|
|
14077
|
-
for (;
|
|
14078
|
-
|
|
14079
|
-
for (;
|
|
14080
|
-
|
|
14081
|
-
for (l(h,
|
|
14082
|
-
|
|
14083
|
-
l(f,
|
|
14072
|
+
var M;
|
|
14073
|
+
for (y = new n.Buf32(512), w = new n.Buf32(32), M = 0; M < 144; )
|
|
14074
|
+
N.lens[M++] = 8;
|
|
14075
|
+
for (; M < 256; )
|
|
14076
|
+
N.lens[M++] = 9;
|
|
14077
|
+
for (; M < 280; )
|
|
14078
|
+
N.lens[M++] = 7;
|
|
14079
|
+
for (; M < 288; )
|
|
14080
|
+
N.lens[M++] = 8;
|
|
14081
|
+
for (l(h, N.lens, 0, 288, y, 0, N.work, { bits: 9 }), M = 0; M < 32; )
|
|
14082
|
+
N.lens[M++] = 5;
|
|
14083
|
+
l(f, N.lens, 0, 32, w, 0, N.work, { bits: 5 }), L = !1;
|
|
14084
14084
|
}
|
|
14085
|
-
|
|
14085
|
+
N.lencode = y, N.lenbits = 9, N.distcode = w, N.distbits = 5;
|
|
14086
14086
|
}
|
|
14087
|
-
function Y(
|
|
14088
|
-
var q, G =
|
|
14089
|
-
return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new n.Buf8(G.wsize)), v >= G.wsize ? (n.arraySet(G.window,
|
|
14087
|
+
function Y(N, M, g, v) {
|
|
14088
|
+
var q, G = N.state;
|
|
14089
|
+
return G.window === null && (G.wsize = 1 << G.wbits, G.wnext = 0, G.whave = 0, G.window = new n.Buf8(G.wsize)), v >= G.wsize ? (n.arraySet(G.window, M, g - G.wsize, G.wsize, 0), G.wnext = 0, G.whave = G.wsize) : (v < (q = G.wsize - G.wnext) && (q = v), n.arraySet(G.window, M, g - v, q, G.wnext), (v -= q) ? (n.arraySet(G.window, M, g - v, v, 0), G.wnext = v, G.whave = G.wsize) : (G.wnext += q, G.wnext === G.wsize && (G.wnext = 0), G.whave < G.wsize && (G.whave += q))), 0;
|
|
14090
14090
|
}
|
|
14091
|
-
s.inflateReset = R, s.inflateReset2 = S, s.inflateResetKeep = F, s.inflateInit = function(
|
|
14092
|
-
return N
|
|
14093
|
-
}, s.inflateInit2 =
|
|
14091
|
+
s.inflateReset = R, s.inflateReset2 = S, s.inflateResetKeep = F, s.inflateInit = function(N) {
|
|
14092
|
+
return O(N, 15);
|
|
14093
|
+
}, s.inflateInit2 = O, s.inflate = function(N, M) {
|
|
14094
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, 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
|
-
if (!
|
|
14095
|
+
if (!N || !N.state || !N.output || !N.input && N.avail_in !== 0)
|
|
14096
14096
|
return u;
|
|
14097
|
-
(g =
|
|
14097
|
+
(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;
|
|
14098
14098
|
t:
|
|
14099
14099
|
for (; ; )
|
|
14100
14100
|
switch (g.mode) {
|
|
@@ -14113,20 +14113,20 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14113
14113
|
break;
|
|
14114
14114
|
}
|
|
14115
14115
|
if (g.flags = 0, g.head && (g.head.done = !1), !(1 & g.wrap) || (((255 & V) << 8) + (V >> 8)) % 31) {
|
|
14116
|
-
|
|
14116
|
+
N.msg = "incorrect header check", g.mode = 30;
|
|
14117
14117
|
break;
|
|
14118
14118
|
}
|
|
14119
14119
|
if ((15 & V) != 8) {
|
|
14120
|
-
|
|
14120
|
+
N.msg = "unknown compression method", g.mode = 30;
|
|
14121
14121
|
break;
|
|
14122
14122
|
}
|
|
14123
14123
|
if (x -= 4, A = 8 + (15 & (V >>>= 4)), g.wbits === 0)
|
|
14124
14124
|
g.wbits = A;
|
|
14125
14125
|
else if (A > g.wbits) {
|
|
14126
|
-
|
|
14126
|
+
N.msg = "invalid window size", g.mode = 30;
|
|
14127
14127
|
break;
|
|
14128
14128
|
}
|
|
14129
|
-
g.dmax = 1 << A,
|
|
14129
|
+
g.dmax = 1 << A, N.adler = g.check = 1, g.mode = 512 & V ? 10 : 12, x = V = 0;
|
|
14130
14130
|
break;
|
|
14131
14131
|
case 2:
|
|
14132
14132
|
for (; x < 16; ) {
|
|
@@ -14135,11 +14135,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14135
14135
|
W--, V += v[G++] << x, x += 8;
|
|
14136
14136
|
}
|
|
14137
14137
|
if (g.flags = V, (255 & g.flags) != 8) {
|
|
14138
|
-
|
|
14138
|
+
N.msg = "unknown compression method", g.mode = 30;
|
|
14139
14139
|
break;
|
|
14140
14140
|
}
|
|
14141
14141
|
if (57344 & g.flags) {
|
|
14142
|
-
|
|
14142
|
+
N.msg = "unknown header flags set", g.mode = 30;
|
|
14143
14143
|
break;
|
|
14144
14144
|
}
|
|
14145
14145
|
g.head && (g.head.text = V >> 8 & 1), 512 & g.flags && (U[0] = 255 & V, U[1] = V >>> 8 & 255, g.check = o(g.check, U, 2, 0)), x = V = 0, g.mode = 3;
|
|
@@ -14202,12 +14202,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14202
14202
|
W--, V += v[G++] << x, x += 8;
|
|
14203
14203
|
}
|
|
14204
14204
|
if (V !== (65535 & g.check)) {
|
|
14205
|
-
|
|
14205
|
+
N.msg = "header crc mismatch", g.mode = 30;
|
|
14206
14206
|
break;
|
|
14207
14207
|
}
|
|
14208
14208
|
x = V = 0;
|
|
14209
14209
|
}
|
|
14210
|
-
g.head && (g.head.hcrc = g.flags >> 9 & 1, g.head.done = !0),
|
|
14210
|
+
g.head && (g.head.hcrc = g.flags >> 9 & 1, g.head.done = !0), N.adler = g.check = 0, g.mode = 12;
|
|
14211
14211
|
break;
|
|
14212
14212
|
case 10:
|
|
14213
14213
|
for (; x < 32; ) {
|
|
@@ -14215,13 +14215,13 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14215
14215
|
break t;
|
|
14216
14216
|
W--, V += v[G++] << x, x += 8;
|
|
14217
14217
|
}
|
|
14218
|
-
|
|
14218
|
+
N.adler = g.check = p(V), x = V = 0, g.mode = 11;
|
|
14219
14219
|
case 11:
|
|
14220
14220
|
if (g.havedict === 0)
|
|
14221
|
-
return
|
|
14222
|
-
|
|
14221
|
+
return N.next_out = et, N.avail_out = nt, N.next_in = G, N.avail_in = W, g.hold = V, g.bits = x, 2;
|
|
14222
|
+
N.adler = g.check = 1, g.mode = 12;
|
|
14223
14223
|
case 12:
|
|
14224
|
-
if (
|
|
14224
|
+
if (M === 5 || M === 6)
|
|
14225
14225
|
break t;
|
|
14226
14226
|
case 13:
|
|
14227
14227
|
if (g.last) {
|
|
@@ -14238,7 +14238,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14238
14238
|
g.mode = 14;
|
|
14239
14239
|
break;
|
|
14240
14240
|
case 1:
|
|
14241
|
-
if (b(g), g.mode = 20,
|
|
14241
|
+
if (b(g), g.mode = 20, M !== 6)
|
|
14242
14242
|
break;
|
|
14243
14243
|
V >>>= 2, x -= 2;
|
|
14244
14244
|
break t;
|
|
@@ -14246,7 +14246,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14246
14246
|
g.mode = 17;
|
|
14247
14247
|
break;
|
|
14248
14248
|
case 3:
|
|
14249
|
-
|
|
14249
|
+
N.msg = "invalid block type", g.mode = 30;
|
|
14250
14250
|
}
|
|
14251
14251
|
V >>>= 2, x -= 2;
|
|
14252
14252
|
break;
|
|
@@ -14257,10 +14257,10 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14257
14257
|
W--, V += v[G++] << x, x += 8;
|
|
14258
14258
|
}
|
|
14259
14259
|
if ((65535 & V) != (V >>> 16 ^ 65535)) {
|
|
14260
|
-
|
|
14260
|
+
N.msg = "invalid stored block lengths", g.mode = 30;
|
|
14261
14261
|
break;
|
|
14262
14262
|
}
|
|
14263
|
-
if (g.length = 65535 & V, x = V = 0, g.mode = 15,
|
|
14263
|
+
if (g.length = 65535 & V, x = V = 0, g.mode = 15, M === 6)
|
|
14264
14264
|
break t;
|
|
14265
14265
|
case 15:
|
|
14266
14266
|
g.mode = 16;
|
|
@@ -14280,7 +14280,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14280
14280
|
W--, V += v[G++] << x, x += 8;
|
|
14281
14281
|
}
|
|
14282
14282
|
if (g.nlen = 257 + (31 & V), V >>>= 5, x -= 5, g.ndist = 1 + (31 & V), V >>>= 5, x -= 5, g.ncode = 4 + (15 & V), V >>>= 4, x -= 4, 286 < g.nlen || 30 < g.ndist) {
|
|
14283
|
-
|
|
14283
|
+
N.msg = "too many length or distance symbols", g.mode = 30;
|
|
14284
14284
|
break;
|
|
14285
14285
|
}
|
|
14286
14286
|
g.have = 0, g.mode = 18;
|
|
@@ -14296,7 +14296,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14296
14296
|
for (; g.have < 19; )
|
|
14297
14297
|
g.lens[$[g.have++]] = 0;
|
|
14298
14298
|
if (g.lencode = g.lendyn, g.lenbits = 7, k = { bits: g.lenbits }, X = l(0, g.lens, 0, 19, g.lencode, 0, g.work, k), g.lenbits = k.bits, X) {
|
|
14299
|
-
|
|
14299
|
+
N.msg = "invalid code lengths set", g.mode = 30;
|
|
14300
14300
|
break;
|
|
14301
14301
|
}
|
|
14302
14302
|
g.have = 0, g.mode = 19;
|
|
@@ -14317,7 +14317,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14317
14317
|
W--, V += v[G++] << x, x += 8;
|
|
14318
14318
|
}
|
|
14319
14319
|
if (V >>>= at, x -= at, g.have === 0) {
|
|
14320
|
-
|
|
14320
|
+
N.msg = "invalid bit length repeat", g.mode = 30;
|
|
14321
14321
|
break;
|
|
14322
14322
|
}
|
|
14323
14323
|
A = g.lens[g.have - 1], tt = 3 + (3 & V), V >>>= 2, x -= 2;
|
|
@@ -14337,7 +14337,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14337
14337
|
x -= at, A = 0, tt = 11 + (127 & (V >>>= at)), V >>>= 7, x -= 7;
|
|
14338
14338
|
}
|
|
14339
14339
|
if (g.have + tt > g.nlen + g.ndist) {
|
|
14340
|
-
|
|
14340
|
+
N.msg = "invalid bit length repeat", g.mode = 30;
|
|
14341
14341
|
break;
|
|
14342
14342
|
}
|
|
14343
14343
|
for (; tt--; )
|
|
@@ -14347,24 +14347,24 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14347
14347
|
if (g.mode === 30)
|
|
14348
14348
|
break;
|
|
14349
14349
|
if (g.lens[256] === 0) {
|
|
14350
|
-
|
|
14350
|
+
N.msg = "invalid code -- missing end-of-block", g.mode = 30;
|
|
14351
14351
|
break;
|
|
14352
14352
|
}
|
|
14353
14353
|
if (g.lenbits = 9, k = { bits: g.lenbits }, X = l(h, g.lens, 0, g.nlen, g.lencode, 0, g.work, k), g.lenbits = k.bits, X) {
|
|
14354
|
-
|
|
14354
|
+
N.msg = "invalid literal/lengths set", g.mode = 30;
|
|
14355
14355
|
break;
|
|
14356
14356
|
}
|
|
14357
14357
|
if (g.distbits = 6, g.distcode = g.distdyn, k = { bits: g.distbits }, X = l(f, g.lens, g.nlen, g.ndist, g.distcode, 0, g.work, k), g.distbits = k.bits, X) {
|
|
14358
|
-
|
|
14358
|
+
N.msg = "invalid distances set", g.mode = 30;
|
|
14359
14359
|
break;
|
|
14360
14360
|
}
|
|
14361
|
-
if (g.mode = 20,
|
|
14361
|
+
if (g.mode = 20, M === 6)
|
|
14362
14362
|
break t;
|
|
14363
14363
|
case 20:
|
|
14364
14364
|
g.mode = 21;
|
|
14365
14365
|
case 21:
|
|
14366
14366
|
if (6 <= W && 258 <= nt) {
|
|
14367
|
-
|
|
14367
|
+
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
14368
|
break;
|
|
14369
14369
|
}
|
|
14370
14370
|
for (g.back = 0; It = (_ = g.lencode[V & (1 << g.lenbits) - 1]) >>> 16 & 255, ft = 65535 & _, !((at = _ >>> 24) <= x); ) {
|
|
@@ -14389,7 +14389,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14389
14389
|
break;
|
|
14390
14390
|
}
|
|
14391
14391
|
if (64 & It) {
|
|
14392
|
-
|
|
14392
|
+
N.msg = "invalid literal/length code", g.mode = 30;
|
|
14393
14393
|
break;
|
|
14394
14394
|
}
|
|
14395
14395
|
g.extra = 15 & It, g.mode = 22;
|
|
@@ -14418,7 +14418,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14418
14418
|
V >>>= Ct, x -= Ct, g.back += Ct;
|
|
14419
14419
|
}
|
|
14420
14420
|
if (V >>>= at, x -= at, g.back += at, 64 & It) {
|
|
14421
|
-
|
|
14421
|
+
N.msg = "invalid distance code", g.mode = 30;
|
|
14422
14422
|
break;
|
|
14423
14423
|
}
|
|
14424
14424
|
g.offset = ft, g.extra = 15 & It, g.mode = 24;
|
|
@@ -14432,7 +14432,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14432
14432
|
g.offset += V & (1 << g.extra) - 1, V >>>= g.extra, x -= g.extra, g.back += g.extra;
|
|
14433
14433
|
}
|
|
14434
14434
|
if (g.offset > g.dmax) {
|
|
14435
|
-
|
|
14435
|
+
N.msg = "invalid distance too far back", g.mode = 30;
|
|
14436
14436
|
break;
|
|
14437
14437
|
}
|
|
14438
14438
|
g.mode = 25;
|
|
@@ -14441,7 +14441,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14441
14441
|
break t;
|
|
14442
14442
|
if (tt = it - nt, g.offset > tt) {
|
|
14443
14443
|
if ((tt = g.offset - tt) > g.whave && g.sane) {
|
|
14444
|
-
|
|
14444
|
+
N.msg = "invalid distance too far back", g.mode = 30;
|
|
14445
14445
|
break;
|
|
14446
14446
|
}
|
|
14447
14447
|
St = tt > g.wnext ? (tt -= g.wnext, g.wsize - tt) : g.wnext - tt, tt > g.length && (tt = g.length), yt = g.window;
|
|
@@ -14463,8 +14463,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14463
14463
|
break t;
|
|
14464
14464
|
W--, V |= v[G++] << x, x += 8;
|
|
14465
14465
|
}
|
|
14466
|
-
if (it -= nt,
|
|
14467
|
-
|
|
14466
|
+
if (it -= nt, N.total_out += it, g.total += it, it && (N.adler = g.check = g.flags ? o(g.check, q, it, et - it) : r(g.check, q, it, et - it)), it = nt, (g.flags ? V : p(V)) !== g.check) {
|
|
14467
|
+
N.msg = "incorrect data check", g.mode = 30;
|
|
14468
14468
|
break;
|
|
14469
14469
|
}
|
|
14470
14470
|
x = V = 0;
|
|
@@ -14478,7 +14478,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14478
14478
|
W--, V += v[G++] << x, x += 8;
|
|
14479
14479
|
}
|
|
14480
14480
|
if (V !== (4294967295 & g.total)) {
|
|
14481
|
-
|
|
14481
|
+
N.msg = "incorrect length check", g.mode = 30;
|
|
14482
14482
|
break;
|
|
14483
14483
|
}
|
|
14484
14484
|
x = V = 0;
|
|
@@ -14496,63 +14496,63 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14496
14496
|
default:
|
|
14497
14497
|
return u;
|
|
14498
14498
|
}
|
|
14499
|
-
return
|
|
14500
|
-
}, s.inflateEnd = function(
|
|
14501
|
-
if (!
|
|
14499
|
+
return N.next_out = et, N.avail_out = nt, N.next_in = G, N.avail_in = W, g.hold = V, g.bits = x, (g.wsize || it !== N.avail_out && g.mode < 30 && (g.mode < 27 || M !== 4)) && Y(N, N.output, N.next_out, it - N.avail_out) ? (g.mode = 31, -4) : (ot -= N.avail_in, it -= N.avail_out, N.total_in += ot, N.total_out += it, g.total += it, g.wrap && it && (N.adler = g.check = g.flags ? o(g.check, q, it, N.next_out - it) : r(g.check, q, it, N.next_out - it)), N.data_type = g.bits + (g.last ? 64 : 0) + (g.mode === 12 ? 128 : 0) + (g.mode === 20 || g.mode === 15 ? 256 : 0), (ot == 0 && it === 0 || M === 4) && X === I && (X = -5), X);
|
|
14500
|
+
}, s.inflateEnd = function(N) {
|
|
14501
|
+
if (!N || !N.state)
|
|
14502
14502
|
return u;
|
|
14503
|
-
var
|
|
14504
|
-
return
|
|
14505
|
-
}, s.inflateGetHeader = function(
|
|
14503
|
+
var M = N.state;
|
|
14504
|
+
return M.window && (M.window = null), N.state = null, I;
|
|
14505
|
+
}, s.inflateGetHeader = function(N, M) {
|
|
14506
14506
|
var g;
|
|
14507
|
-
return
|
|
14508
|
-
}, s.inflateSetDictionary = function(
|
|
14509
|
-
var g, v =
|
|
14510
|
-
return
|
|
14507
|
+
return N && N.state && 2 & (g = N.state).wrap ? ((g.head = M).done = !1, I) : u;
|
|
14508
|
+
}, s.inflateSetDictionary = function(N, M) {
|
|
14509
|
+
var g, v = M.length;
|
|
14510
|
+
return N && N.state ? (g = N.state).wrap !== 0 && g.mode !== 11 ? u : g.mode === 11 && r(1, M, v, 0) !== g.check ? -3 : Y(N, M, v, v) ? (g.mode = 31, -4) : (g.havedict = 1, I) : u;
|
|
14511
14511
|
}, s.inflateInfo = "pako inflate (from Nodeca project)";
|
|
14512
14512
|
}, { "../utils/common": 41, "./adler32": 43, "./crc32": 45, "./inffast": 48, "./inftrees": 50 }], 50: [function(t, e, s) {
|
|
14513
14513
|
var n = t("../utils/common"), r = [3, 4, 5, 6, 7, 8, 9, 10, 11, 13, 15, 17, 19, 23, 27, 31, 35, 43, 51, 59, 67, 83, 99, 115, 131, 163, 195, 227, 258, 0, 0], o = [16, 16, 16, 16, 16, 16, 16, 16, 17, 17, 17, 17, 18, 18, 18, 18, 19, 19, 19, 19, 20, 20, 20, 20, 21, 21, 21, 21, 16, 72, 78], a = [1, 2, 3, 4, 5, 7, 9, 13, 17, 25, 33, 49, 65, 97, 129, 193, 257, 385, 513, 769, 1025, 1537, 2049, 3073, 4097, 6145, 8193, 12289, 16385, 24577, 0, 0], l = [16, 16, 16, 16, 17, 17, 18, 18, 19, 19, 20, 20, 21, 21, 22, 22, 23, 23, 24, 24, 25, 25, 26, 26, 27, 27, 28, 28, 29, 29, 64, 64];
|
|
14514
14514
|
e.exports = function(h, f, I, u, d, E, T, p) {
|
|
14515
|
-
var m, F, R, S,
|
|
14516
|
-
for (
|
|
14517
|
-
it[
|
|
14518
|
-
for (
|
|
14519
|
-
it[f[I +
|
|
14515
|
+
var m, F, R, S, O, y, w, L, b, Y = p.bits, N = 0, M = 0, g = 0, v = 0, q = 0, G = 0, et = 0, W = 0, nt = 0, V = 0, x = null, ot = 0, it = new n.Buf16(16), tt = new n.Buf16(16), St = null, yt = 0;
|
|
14516
|
+
for (N = 0; N <= 15; N++)
|
|
14517
|
+
it[N] = 0;
|
|
14518
|
+
for (M = 0; M < u; M++)
|
|
14519
|
+
it[f[I + M]]++;
|
|
14520
14520
|
for (q = Y, v = 15; 1 <= v && it[v] === 0; v--)
|
|
14521
14521
|
;
|
|
14522
14522
|
if (v < q && (q = v), v === 0)
|
|
14523
14523
|
return d[E++] = 20971520, d[E++] = 20971520, p.bits = 1, 0;
|
|
14524
14524
|
for (g = 1; g < v && it[g] === 0; g++)
|
|
14525
14525
|
;
|
|
14526
|
-
for (q < g && (q = g),
|
|
14527
|
-
if (W <<= 1, (W -= it[
|
|
14526
|
+
for (q < g && (q = g), N = W = 1; N <= 15; N++)
|
|
14527
|
+
if (W <<= 1, (W -= it[N]) < 0)
|
|
14528
14528
|
return -1;
|
|
14529
14529
|
if (0 < W && (h === 0 || v !== 1))
|
|
14530
14530
|
return -1;
|
|
14531
|
-
for (tt[1] = 0,
|
|
14532
|
-
tt[
|
|
14533
|
-
for (
|
|
14534
|
-
f[I +
|
|
14535
|
-
if (y = h === 0 ? (x = St = T, 19) : h === 1 ? (x = r, ot -= 257, St = o, yt -= 257, 256) : (x = a, St = l, -1),
|
|
14531
|
+
for (tt[1] = 0, N = 1; N < 15; N++)
|
|
14532
|
+
tt[N + 1] = tt[N] + it[N];
|
|
14533
|
+
for (M = 0; M < u; M++)
|
|
14534
|
+
f[I + M] !== 0 && (T[tt[f[I + M]]++] = M);
|
|
14535
|
+
if (y = h === 0 ? (x = St = T, 19) : h === 1 ? (x = r, ot -= 257, St = o, yt -= 257, 256) : (x = a, St = l, -1), N = g, O = E, et = M = V = 0, R = -1, S = (nt = 1 << (G = q)) - 1, h === 1 && 852 < nt || h === 2 && 592 < nt)
|
|
14536
14536
|
return 1;
|
|
14537
14537
|
for (; ; ) {
|
|
14538
|
-
for (
|
|
14538
|
+
for (w = N - et, b = T[M] < y ? (L = 0, T[M]) : T[M] > y ? (L = St[yt + T[M]], x[ot + T[M]]) : (L = 96, 0), m = 1 << N - et, g = F = 1 << G; d[O + (V >> et) + (F -= m)] = w << 24 | L << 16 | b | 0, F !== 0; )
|
|
14539
14539
|
;
|
|
14540
|
-
for (m = 1 <<
|
|
14540
|
+
for (m = 1 << N - 1; V & m; )
|
|
14541
14541
|
m >>= 1;
|
|
14542
|
-
if (m !== 0 ? (V &= m - 1, V += m) : V = 0,
|
|
14543
|
-
if (
|
|
14542
|
+
if (m !== 0 ? (V &= m - 1, V += m) : V = 0, M++, --it[N] == 0) {
|
|
14543
|
+
if (N === v)
|
|
14544
14544
|
break;
|
|
14545
|
-
|
|
14545
|
+
N = f[I + T[M]];
|
|
14546
14546
|
}
|
|
14547
|
-
if (q <
|
|
14548
|
-
for (et === 0 && (et = q),
|
|
14547
|
+
if (q < N && (V & S) !== R) {
|
|
14548
|
+
for (et === 0 && (et = q), O += g, W = 1 << (G = N - et); G + et < v && !((W -= it[G + et]) <= 0); )
|
|
14549
14549
|
G++, W <<= 1;
|
|
14550
14550
|
if (nt += 1 << G, h === 1 && 852 < nt || h === 2 && 592 < nt)
|
|
14551
14551
|
return 1;
|
|
14552
|
-
d[R = V & S] = q << 24 | G << 16 |
|
|
14552
|
+
d[R = V & S] = q << 24 | G << 16 | O - E | 0;
|
|
14553
14553
|
}
|
|
14554
14554
|
}
|
|
14555
|
-
return V !== 0 && (d[
|
|
14555
|
+
return V !== 0 && (d[O + V] = N - et << 24 | 64 << 16 | 0), p.bits = q, 0;
|
|
14556
14556
|
};
|
|
14557
14557
|
}, { "../utils/common": 41 }], 51: [function(t, e, s) {
|
|
14558
14558
|
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" };
|
|
@@ -14562,12 +14562,12 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14562
14562
|
for (var U = _.length; 0 <= --U; )
|
|
14563
14563
|
_[U] = 0;
|
|
14564
14564
|
}
|
|
14565
|
-
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,
|
|
14565
|
+
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
14566
|
a(Y);
|
|
14567
|
-
var
|
|
14568
|
-
a(
|
|
14569
|
-
var
|
|
14570
|
-
a(
|
|
14567
|
+
var N = new Array(2 * u);
|
|
14568
|
+
a(N);
|
|
14569
|
+
var M = new Array(512);
|
|
14570
|
+
a(M);
|
|
14571
14571
|
var g = new Array(256);
|
|
14572
14572
|
a(g);
|
|
14573
14573
|
var v = new Array(h);
|
|
@@ -14580,7 +14580,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14580
14580
|
this.dyn_tree = _, this.max_code = 0, this.stat_desc = U;
|
|
14581
14581
|
}
|
|
14582
14582
|
function x(_) {
|
|
14583
|
-
return _ < 256 ?
|
|
14583
|
+
return _ < 256 ? M[_] : M[256 + (_ >>> 7)];
|
|
14584
14584
|
}
|
|
14585
14585
|
function ot(_, U) {
|
|
14586
14586
|
_.pending_buf[_.pending++] = 255 & U, _.pending_buf[_.pending++] = U >>> 8 & 255;
|
|
@@ -14630,7 +14630,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14630
14630
|
function Ht(_, U, $) {
|
|
14631
14631
|
var Z, B, K, st, J = 0;
|
|
14632
14632
|
if (_.last_lit !== 0)
|
|
14633
|
-
for (; Z = _.pending_buf[_.d_buf + 2 * J] << 8 | _.pending_buf[_.d_buf + 2 * J + 1], B = _.pending_buf[_.l_buf + J], J++, Z === 0 ? tt(_, B, U) : (tt(_, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(_, B -= v[K], st), tt(_, K = x(--Z), $), (st =
|
|
14633
|
+
for (; Z = _.pending_buf[_.d_buf + 2 * J] << 8 | _.pending_buf[_.d_buf + 2 * J + 1], B = _.pending_buf[_.l_buf + J], J++, Z === 0 ? tt(_, B, U) : (tt(_, (K = g[B]) + f + 1, U), (st = y[K]) !== 0 && it(_, B -= v[K], st), tt(_, K = x(--Z), $), (st = w[K]) !== 0 && it(_, Z -= W[K], st)), J < _.last_lit; )
|
|
14634
14634
|
;
|
|
14635
14635
|
tt(_, F, U);
|
|
14636
14636
|
}
|
|
@@ -14665,7 +14665,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14665
14665
|
function A(_, U, $) {
|
|
14666
14666
|
var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
|
|
14667
14667
|
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 ? _.bl_tree[2 * B] += J : B !== 0 ? (B !== K && _.bl_tree[2 * B]++, _.bl_tree[2 * R]++) : J <= 10 ? _.bl_tree[2 * S]++ : _.bl_tree[2 *
|
|
14668
|
+
B = st, st = U[2 * (Z + 1) + 1], ++J < ct && B === st || (J < Rt ? _.bl_tree[2 * B] += J : B !== 0 ? (B !== K && _.bl_tree[2 * B]++, _.bl_tree[2 * R]++) : J <= 10 ? _.bl_tree[2 * S]++ : _.bl_tree[2 * O]++, K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4));
|
|
14669
14669
|
}
|
|
14670
14670
|
function X(_, U, $) {
|
|
14671
14671
|
var Z, B, K = -1, st = U[1], J = 0, ct = 7, Rt = 4;
|
|
@@ -14675,7 +14675,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14675
14675
|
for (; tt(_, B, _.bl_tree), --J != 0; )
|
|
14676
14676
|
;
|
|
14677
14677
|
else
|
|
14678
|
-
B !== 0 ? (B !== K && (tt(_, B, _.bl_tree), J--), tt(_, R, _.bl_tree), it(_, J - 3, 2)) : J <= 10 ? (tt(_, S, _.bl_tree), it(_, J - 3, 3)) : (tt(_,
|
|
14678
|
+
B !== 0 ? (B !== K && (tt(_, B, _.bl_tree), J--), tt(_, R, _.bl_tree), it(_, J - 3, 2)) : J <= 10 ? (tt(_, S, _.bl_tree), it(_, J - 3, 3)) : (tt(_, O, _.bl_tree), it(_, J - 11, 7));
|
|
14679
14679
|
K = B, Rt = (J = 0) === st ? (ct = 138, 3) : B === st ? (ct = 6, 3) : (ct = 7, 4);
|
|
14680
14680
|
}
|
|
14681
14681
|
}
|
|
@@ -14693,11 +14693,11 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14693
14693
|
for (v[B] = Z, U = 0; U < 1 << y[B]; U++)
|
|
14694
14694
|
g[Z++] = B;
|
|
14695
14695
|
for (g[Z - 1] = B, B = K = 0; B < 16; B++)
|
|
14696
|
-
for (W[B] = K, U = 0; U < 1 <<
|
|
14697
|
-
|
|
14696
|
+
for (W[B] = K, U = 0; U < 1 << w[B]; U++)
|
|
14697
|
+
M[K++] = B;
|
|
14698
14698
|
for (K >>= 7; B < u; B++)
|
|
14699
|
-
for (W[B] = K << 7, U = 0; U < 1 <<
|
|
14700
|
-
|
|
14699
|
+
for (W[B] = K << 7, U = 0; U < 1 << w[B] - 7; U++)
|
|
14700
|
+
M[256 + K++] = B;
|
|
14701
14701
|
for ($ = 0; $ <= T; $++)
|
|
14702
14702
|
st[$] = 0;
|
|
14703
14703
|
for (U = 0; U <= 143; )
|
|
@@ -14709,8 +14709,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14709
14709
|
for (; U <= 287; )
|
|
14710
14710
|
Y[2 * U + 1] = 8, U++, st[8]++;
|
|
14711
14711
|
for (yt(Y, I + 1, st), U = 0; U < u; U++)
|
|
14712
|
-
|
|
14713
|
-
q = new nt(Y, y, f + 1, I, T), G = new nt(
|
|
14712
|
+
N[2 * U + 1] = 5, N[2 * U] = St(U, 5);
|
|
14713
|
+
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
14714
|
}(), k = !0), _.l_desc = new V(_.dyn_ltree, q), _.d_desc = new V(_.dyn_dtree, G), _.bl_desc = new V(_.bl_tree, et), _.bi_buf = 0, _.bi_valid = 0, at(_);
|
|
14715
14715
|
}, s._tr_stored_block = P, s._tr_flush_block = function(_, U, $, Z) {
|
|
14716
14716
|
var B, K, st = 0;
|
|
@@ -14730,7 +14730,7 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14730
14730
|
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
14731
|
;
|
|
14732
14732
|
return J.opt_len += 3 * (ct + 1) + 5 + 5 + 4, ct;
|
|
14733
|
-
}(_), B = _.opt_len + 3 + 7 >>> 3, (K = _.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? P(_, U, $, Z) : _.strategy === 4 || K === B ? (it(_, 2 + (Z ? 1 : 0), 3), Ht(_, Y,
|
|
14733
|
+
}(_), B = _.opt_len + 3 + 7 >>> 3, (K = _.static_len + 3 + 7 >>> 3) <= B && (B = K)) : B = K = $ + 5, $ + 4 <= B && U !== -1 ? P(_, U, $, Z) : _.strategy === 4 || K === B ? (it(_, 2 + (Z ? 1 : 0), 3), Ht(_, Y, N)) : (it(_, 4 + (Z ? 1 : 0), 3), function(J, ct, Rt, dt) {
|
|
14734
14734
|
var Wt;
|
|
14735
14735
|
for (it(J, ct - 257, 5), it(J, Rt - 1, 5), it(J, dt - 4, 4), Wt = 0; Wt < dt; Wt++)
|
|
14736
14736
|
it(J, J.bl_tree[2 * b[Wt] + 1], 3);
|
|
@@ -14778,8 +14778,8 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14778
14778
|
setTimeout(m, 0, R);
|
|
14779
14779
|
}, T.setImmediate = function(R) {
|
|
14780
14780
|
typeof R != "function" && (R = new Function("" + R));
|
|
14781
|
-
for (var S = new Array(arguments.length - 1),
|
|
14782
|
-
S[
|
|
14781
|
+
for (var S = new Array(arguments.length - 1), O = 0; O < S.length; O++)
|
|
14782
|
+
S[O] = arguments[O + 1];
|
|
14783
14783
|
var y = { callback: R, args: S };
|
|
14784
14784
|
return u[I] = y, a(I), I++;
|
|
14785
14785
|
}, T.clearImmediate = p;
|
|
@@ -14795,23 +14795,23 @@ https://github.com/nodeca/pako/blob/main/LICENSE
|
|
|
14795
14795
|
if (S) {
|
|
14796
14796
|
d = !0;
|
|
14797
14797
|
try {
|
|
14798
|
-
(function(
|
|
14799
|
-
var y =
|
|
14800
|
-
switch (
|
|
14798
|
+
(function(O) {
|
|
14799
|
+
var y = O.callback, w = O.args;
|
|
14800
|
+
switch (w.length) {
|
|
14801
14801
|
case 0:
|
|
14802
14802
|
y();
|
|
14803
14803
|
break;
|
|
14804
14804
|
case 1:
|
|
14805
|
-
y(
|
|
14805
|
+
y(w[0]);
|
|
14806
14806
|
break;
|
|
14807
14807
|
case 2:
|
|
14808
|
-
y(
|
|
14808
|
+
y(w[0], w[1]);
|
|
14809
14809
|
break;
|
|
14810
14810
|
case 3:
|
|
14811
|
-
y(
|
|
14811
|
+
y(w[0], w[1], w[2]);
|
|
14812
14812
|
break;
|
|
14813
14813
|
default:
|
|
14814
|
-
y.apply(o,
|
|
14814
|
+
y.apply(o, w);
|
|
14815
14815
|
}
|
|
14816
14816
|
})(S);
|
|
14817
14817
|
} finally {
|
|
@@ -16678,28 +16678,28 @@ ${o}
|
|
|
16678
16678
|
console.warn("Missing VisualizationInfo in Viewpoint");
|
|
16679
16679
|
continue;
|
|
16680
16680
|
}
|
|
16681
|
-
const
|
|
16681
|
+
const O = {}, {
|
|
16682
16682
|
Guid: y,
|
|
16683
|
-
ClippingPlanes:
|
|
16683
|
+
ClippingPlanes: w,
|
|
16684
16684
|
Components: L,
|
|
16685
16685
|
OrthogonalCamera: b,
|
|
16686
16686
|
PerspectiveCamera: Y
|
|
16687
16687
|
} = S;
|
|
16688
|
-
if (y && (
|
|
16689
|
-
const { Selection:
|
|
16690
|
-
if (
|
|
16691
|
-
const q = Array.isArray(
|
|
16692
|
-
|
|
16688
|
+
if (y && (O.guid = y), L) {
|
|
16689
|
+
const { Selection: M, Visibility: g } = L;
|
|
16690
|
+
if (M && M.Component) {
|
|
16691
|
+
const q = Array.isArray(M.Component) ? M.Component : [M.Component];
|
|
16692
|
+
O.selectionComponents = q.map((G) => G.IfcGuid).filter((G) => G);
|
|
16693
16693
|
}
|
|
16694
|
-
if (g && "DefaultVisibility" in g && (
|
|
16694
|
+
if (g && "DefaultVisibility" in g && (O.defaultVisibility = g.DefaultVisibility), g && g.Exceptions && "Component" in g.Exceptions) {
|
|
16695
16695
|
const { Component: q } = g.Exceptions, G = Array.isArray(q) ? q : [q];
|
|
16696
|
-
|
|
16696
|
+
O.exceptionComponents = G.map((et) => et.IfcGuid).filter((et) => et);
|
|
16697
16697
|
}
|
|
16698
16698
|
let v;
|
|
16699
|
-
l === "2.1" && (v = L.ViewSetupHints), l === "3" && (v = (m = L.Visibility) == null ? void 0 : m.ViewSetupHints), v && ("OpeningsVisible" in v && (
|
|
16699
|
+
l === "2.1" && (v = L.ViewSetupHints), l === "3" && (v = (m = L.Visibility) == null ? void 0 : m.ViewSetupHints), v && ("OpeningsVisible" in v && (O.openingsVisible = v.OpeningsVisible), "SpacesVisible" in v && (O.spacesVisible = v.SpacesVisible), "SpaceBoundariesVisible" in v && (O.spaceBoundariesVisible = v.SpaceBoundariesVisible));
|
|
16700
16700
|
}
|
|
16701
16701
|
if (b || Y) {
|
|
16702
|
-
const
|
|
16702
|
+
const M = S.PerspectiveCamera ?? S.OrthogonalCamera, { CameraViewPoint: g, CameraDirection: v } = M, q = new D.Vector3(
|
|
16703
16703
|
Number(g.X),
|
|
16704
16704
|
Number(g.Z),
|
|
16705
16705
|
Number(-g.Y)
|
|
@@ -16710,33 +16710,33 @@ ${o}
|
|
|
16710
16710
|
), et = {
|
|
16711
16711
|
position: { x: q.x, y: q.y, z: q.z },
|
|
16712
16712
|
direction: { x: G.x, y: G.y, z: G.z },
|
|
16713
|
-
aspectRatio: "AspectRatio" in
|
|
16713
|
+
aspectRatio: "AspectRatio" in M ? M.AspectRatio : 1
|
|
16714
16714
|
// Temporal simplification
|
|
16715
16715
|
};
|
|
16716
|
-
"ViewToWorldScale" in
|
|
16716
|
+
"ViewToWorldScale" in M && (O.camera = {
|
|
16717
16717
|
...et,
|
|
16718
|
-
viewToWorldScale:
|
|
16719
|
-
}), "FieldOfView" in
|
|
16718
|
+
viewToWorldScale: M.ViewToWorldScale
|
|
16719
|
+
}), "FieldOfView" in M && (O.camera = {
|
|
16720
16720
|
...et,
|
|
16721
|
-
fov:
|
|
16721
|
+
fov: M.FieldOfView
|
|
16722
16722
|
});
|
|
16723
16723
|
}
|
|
16724
|
-
const
|
|
16725
|
-
data:
|
|
16724
|
+
const N = new To(this.components, e, {
|
|
16725
|
+
data: O,
|
|
16726
16726
|
setCamera: !1
|
|
16727
16727
|
});
|
|
16728
16728
|
if (L) {
|
|
16729
|
-
const { Coloring:
|
|
16730
|
-
if (
|
|
16731
|
-
const g = Array.isArray(
|
|
16729
|
+
const { Coloring: M } = L;
|
|
16730
|
+
if (M && M.Color) {
|
|
16731
|
+
const g = Array.isArray(M.Color) ? M.Color : [M.Color];
|
|
16732
16732
|
for (const v of g) {
|
|
16733
16733
|
const { Color: q, Component: G } = v, W = (Array.isArray(G) ? G : [G]).map((nt) => nt.IfcGuid);
|
|
16734
|
-
|
|
16734
|
+
N.componentColors.set(q, W);
|
|
16735
16735
|
}
|
|
16736
16736
|
}
|
|
16737
16737
|
}
|
|
16738
|
-
if (I.push(
|
|
16739
|
-
const
|
|
16738
|
+
if (I.push(N), w) {
|
|
16739
|
+
const M = this.components.get(Sn), g = Array.isArray(w.ClippingPlane) ? w.ClippingPlane : [w.ClippingPlane];
|
|
16740
16740
|
for (const v of g) {
|
|
16741
16741
|
const { Location: q, Direction: G } = v;
|
|
16742
16742
|
if (!(q && G))
|
|
@@ -16749,53 +16749,53 @@ ${o}
|
|
|
16749
16749
|
G.X,
|
|
16750
16750
|
-G.Z,
|
|
16751
16751
|
G.Y
|
|
16752
|
-
), nt =
|
|
16752
|
+
), nt = M.createFromNormalAndCoplanarPoint(
|
|
16753
16753
|
e,
|
|
16754
16754
|
W,
|
|
16755
16755
|
et
|
|
16756
16756
|
);
|
|
16757
|
-
nt.visible = !1, nt.enabled = !1,
|
|
16757
|
+
nt.visible = !1, nt.enabled = !1, N.clippingPlanes.add(nt);
|
|
16758
16758
|
}
|
|
16759
16759
|
}
|
|
16760
16760
|
}
|
|
16761
16761
|
const E = {}, T = [], p = a.filter((F) => F.name.endsWith(".bcf"));
|
|
16762
16762
|
for (const F of p) {
|
|
16763
|
-
const R = await F.async("string"), S = Le.xmlParser.parse(R).Markup,
|
|
16763
|
+
const R = await F.async("string"), S = Le.xmlParser.parse(R).Markup, O = S.Topic, {
|
|
16764
16764
|
Guid: y,
|
|
16765
|
-
TopicType:
|
|
16765
|
+
TopicType: w,
|
|
16766
16766
|
TopicStatus: L,
|
|
16767
16767
|
Title: b,
|
|
16768
16768
|
CreationDate: Y,
|
|
16769
|
-
CreationAuthor:
|
|
16770
|
-
} =
|
|
16771
|
-
if (n && !(y &&
|
|
16769
|
+
CreationAuthor: N
|
|
16770
|
+
} = O;
|
|
16771
|
+
if (n && !(y && w && L && b && Y && N))
|
|
16772
16772
|
continue;
|
|
16773
|
-
const
|
|
16774
|
-
|
|
16773
|
+
const M = new Rs(this.components);
|
|
16774
|
+
M.guid = y ?? M.guid;
|
|
16775
16775
|
const g = this.getMarkupRelatedTopics(S, l);
|
|
16776
|
-
E[
|
|
16776
|
+
E[M.guid] = new Set(g), M.type = w ?? M.type, M.status = L ?? M.status, M.title = b ?? M.title, M.creationDate = Y ? new Date(Y) : M.creationDate, M.creationAuthor = N ?? M.creationAuthor, M.serverAssignedId = O.ServerAssignedId, M.priority = O.Priority, M.index = O.Index, M.modifiedDate = O.ModifiedDate ? new Date(O.ModifiedDate) : void 0, M.modifiedAuthor = O.ModifiedAuthor, M.dueDate = O.DueDate ? new Date(O.DueDate) : void 0, M.assignedTo = O.AssignedTo, M.description = O.Description, M.stage = O.Stage;
|
|
16777
16777
|
const v = this.getMarkupLabels(S, l);
|
|
16778
16778
|
for (const et of v)
|
|
16779
|
-
|
|
16779
|
+
M.labels.add(et);
|
|
16780
16780
|
const q = this.getMarkupComments(S, l);
|
|
16781
16781
|
for (const et of q)
|
|
16782
|
-
|
|
16782
|
+
M.comments.set(et.guid, et);
|
|
16783
16783
|
const G = this.getMarkupViewpoints(S, l);
|
|
16784
16784
|
for (const et of G) {
|
|
16785
16785
|
if (!(et && et.Guid))
|
|
16786
16786
|
continue;
|
|
16787
16787
|
const W = u.list.get(et.Guid);
|
|
16788
|
-
W &&
|
|
16788
|
+
W && M.viewpoints.add(W.guid);
|
|
16789
16789
|
}
|
|
16790
|
-
this.list.set(
|
|
16790
|
+
this.list.set(M.guid, M), T.push(M);
|
|
16791
16791
|
}
|
|
16792
16792
|
for (const F in E) {
|
|
16793
16793
|
const R = this.list.get(F);
|
|
16794
16794
|
if (!R)
|
|
16795
16795
|
continue;
|
|
16796
16796
|
const S = E[F];
|
|
16797
|
-
for (const
|
|
16798
|
-
R.relatedTopics.add(
|
|
16797
|
+
for (const O of S)
|
|
16798
|
+
R.relatedTopics.add(O);
|
|
16799
16799
|
}
|
|
16800
16800
|
return this.onBCFImported.trigger(T), { viewpoints: I, topics: T };
|
|
16801
16801
|
}
|
|
@@ -18264,8 +18264,8 @@ const xs = class xs extends At {
|
|
|
18264
18264
|
n[a].push(F);
|
|
18265
18265
|
const R = this.webIfc.GetLine(0, F);
|
|
18266
18266
|
if (R.GlobalId) {
|
|
18267
|
-
const
|
|
18268
|
-
r.globalToExpressIDs.set(
|
|
18267
|
+
const O = (R == null ? void 0 : R.GlobalId.value) || (R == null ? void 0 : R.GlobalId);
|
|
18268
|
+
r.globalToExpressIDs.set(O, F);
|
|
18269
18269
|
}
|
|
18270
18270
|
const S = this._spatialTree.itemsByFloor[F] || 0;
|
|
18271
18271
|
r.data.set(F, [[], [S, E]]), o++;
|
|
@@ -18366,16 +18366,16 @@ const xs = class xs extends At {
|
|
|
18366
18366
|
const v = r[g];
|
|
18367
18367
|
m.push(a[v * 3]), m.push(a[v * 3 + 1]), m.push(a[v * 3 + 2]), F.push(l[v * 3]), F.push(l[v * 3 + 1]), F.push(l[v * 3 + 2]);
|
|
18368
18368
|
}
|
|
18369
|
-
const S = new Uint32Array(p),
|
|
18369
|
+
const S = new Uint32Array(p), O = new Float32Array(m), y = new Float32Array(F), w = qa(O), L = new Float32Array(w.transformation.elements), b = !1, Y = I ? e : this._nextAvailableID++;
|
|
18370
18370
|
this._geometries.set(Y, {
|
|
18371
|
-
position:
|
|
18371
|
+
position: O,
|
|
18372
18372
|
normal: y,
|
|
18373
18373
|
index: S,
|
|
18374
18374
|
boundingBox: L,
|
|
18375
18375
|
hasHoles: b
|
|
18376
18376
|
}), I || (this._splittedGeometries.has(e) || this._splittedGeometries.set(e, /* @__PURE__ */ new Set()), this._splittedGeometries.get(e).add(Y));
|
|
18377
|
-
const
|
|
18378
|
-
this._visitedGeometries.set(s, { uuid:
|
|
18377
|
+
const N = this._visitedGeometries.size, M = D.MathUtils.generateUUID();
|
|
18378
|
+
this._visitedGeometries.set(s, { uuid: M, index: N }), this._geometryCount++, I = !1;
|
|
18379
18379
|
}
|
|
18380
18380
|
n.delete();
|
|
18381
18381
|
}
|
|
@@ -19414,14 +19414,14 @@ const Vs = class Vs extends At {
|
|
|
19414
19414
|
const d = /* @__PURE__ */ new Map();
|
|
19415
19415
|
for (const { id: S } of u)
|
|
19416
19416
|
if (h.has(S)) {
|
|
19417
|
-
const
|
|
19418
|
-
d.set(S,
|
|
19417
|
+
const O = h.get(S);
|
|
19418
|
+
d.set(S, O);
|
|
19419
19419
|
}
|
|
19420
19420
|
const E = u.map((S) => S.id);
|
|
19421
19421
|
if (!d.size) {
|
|
19422
19422
|
const S = l++;
|
|
19423
|
-
for (const { id:
|
|
19424
|
-
h.set(
|
|
19423
|
+
for (const { id: O } of u)
|
|
19424
|
+
h.set(O, S);
|
|
19425
19425
|
f.set(S, {
|
|
19426
19426
|
edges: new Set(E),
|
|
19427
19427
|
indices: /* @__PURE__ */ new Set([I])
|
|
@@ -19430,9 +19430,9 @@ const Vs = class Vs extends At {
|
|
|
19430
19430
|
}
|
|
19431
19431
|
let T = null;
|
|
19432
19432
|
const p = /* @__PURE__ */ new Set(), m = new Set(E);
|
|
19433
|
-
for (const [S,
|
|
19434
|
-
T === null ? T =
|
|
19435
|
-
const { edges: y } = f.get(
|
|
19433
|
+
for (const [S, O] of d) {
|
|
19434
|
+
T === null ? T = O : O !== T && p.add(O), h.delete(S);
|
|
19435
|
+
const { edges: y } = f.get(O);
|
|
19436
19436
|
y.delete(S), m.delete(S);
|
|
19437
19437
|
}
|
|
19438
19438
|
if (T === null)
|
|
@@ -19441,15 +19441,15 @@ const Vs = class Vs extends At {
|
|
|
19441
19441
|
R.add(I);
|
|
19442
19442
|
for (const S of m) {
|
|
19443
19443
|
h.set(S, T);
|
|
19444
|
-
const { edges:
|
|
19445
|
-
|
|
19444
|
+
const { edges: O } = F;
|
|
19445
|
+
O.add(S);
|
|
19446
19446
|
}
|
|
19447
19447
|
for (const S of p) {
|
|
19448
|
-
const
|
|
19449
|
-
for (const
|
|
19450
|
-
b.add(
|
|
19451
|
-
for (const
|
|
19452
|
-
Y.add(
|
|
19448
|
+
const O = f.get(S), { edges: y, indices: w } = O, L = f.get(T), { edges: b, indices: Y } = L;
|
|
19449
|
+
for (const N of y)
|
|
19450
|
+
b.add(N), h.set(N, T);
|
|
19451
|
+
for (const N of w)
|
|
19452
|
+
Y.add(N);
|
|
19453
19453
|
f.delete(S);
|
|
19454
19454
|
}
|
|
19455
19455
|
}
|
|
@@ -19481,8 +19481,8 @@ const Vs = class Vs extends At {
|
|
|
19481
19481
|
if (s !== void 0 && t instanceof D.InstancedMesh) {
|
|
19482
19482
|
const S = new D.Matrix4();
|
|
19483
19483
|
t.getMatrixAt(s, S);
|
|
19484
|
-
const
|
|
19485
|
-
|
|
19484
|
+
const O = new D.Matrix4();
|
|
19485
|
+
O.extractRotation(S), R.applyMatrix4(O), f.applyMatrix4(S), I.applyMatrix4(S), u.applyMatrix4(S);
|
|
19486
19486
|
}
|
|
19487
19487
|
return { p1: f, p2: I, p3: u, faceNormal: R };
|
|
19488
19488
|
}
|
|
@@ -20411,7 +20411,7 @@ const Re = (c) => {
|
|
|
20411
20411
|
if (!n)
|
|
20412
20412
|
continue;
|
|
20413
20413
|
const r = new ah(c, n);
|
|
20414
|
-
e.cardinality && (r.cardinality = e.cardinality), r.predefinedType = Re(e.predefinedType), t.push(r);
|
|
20414
|
+
e.cardinality && (r.cardinality = e.cardinality), r.predefinedType = Re(e.predefinedType), r.instructions = e.instructions, t.push(r);
|
|
20415
20415
|
}
|
|
20416
20416
|
return t;
|
|
20417
20417
|
}, hh = (c, i) => {
|
|
@@ -20421,7 +20421,7 @@ const Re = (c) => {
|
|
|
20421
20421
|
if (!n)
|
|
20422
20422
|
continue;
|
|
20423
20423
|
const r = new rh(c, n);
|
|
20424
|
-
e.cardinality && (r.cardinality = e.cardinality), r.value = Re(e.value), t.push(r);
|
|
20424
|
+
e.cardinality && (r.cardinality = e.cardinality), r.value = Re(e.value), r.instructions = e.instructions, t.push(r);
|
|
20425
20425
|
}
|
|
20426
20426
|
return t;
|
|
20427
20427
|
}, uh = (c, i) => {
|
|
@@ -20433,7 +20433,7 @@ const Re = (c) => {
|
|
|
20433
20433
|
const r = new oh(c, n);
|
|
20434
20434
|
e.cardinality && (r.cardinality = e.cardinality);
|
|
20435
20435
|
const o = Re(e.value);
|
|
20436
|
-
(o == null ? void 0 : o.type) === "simple" && (o.parameter = String(o.parameter)), (o == null ? void 0 : o.type) === "enumeration" && Array.isArray(o.parameter) && (o.parameter = o.parameter.map(String)), r.value = o, r.uri = e.uri, t.push(r);
|
|
20436
|
+
(o == null ? void 0 : o.type) === "simple" && (o.parameter = String(o.parameter)), (o == null ? void 0 : o.type) === "enumeration" && Array.isArray(o.parameter) && (o.parameter = o.parameter.map(String)), r.value = o, r.uri = e.uri, r.instructions = e.instructions, t.push(r);
|
|
20437
20437
|
}
|
|
20438
20438
|
return t;
|
|
20439
20439
|
}, fh = (c, i) => {
|
|
@@ -20445,7 +20445,7 @@ const Re = (c) => {
|
|
|
20445
20445
|
const a = new ch(c, r, o);
|
|
20446
20446
|
e.cardinality && (a.cardinality = e.cardinality);
|
|
20447
20447
|
const l = Re(e.value);
|
|
20448
|
-
(l == null ? void 0 : l.type) === "enumeration" && Array.isArray(l.parameter) && (l.parameter = l.parameter.map(String)), a.value = l, a.dataType = e.dataType, a.uri = e.uri, t.push(a);
|
|
20448
|
+
(l == null ? void 0 : l.type) === "enumeration" && Array.isArray(l.parameter) && (l.parameter = l.parameter.map(String)), a.value = l, a.dataType = e.dataType, a.uri = e.uri, a.instructions = e.instructions, t.push(a);
|
|
20449
20449
|
}
|
|
20450
20450
|
return t;
|
|
20451
20451
|
}, ri = class ri extends At {
|
|
@@ -20478,13 +20478,13 @@ const Re = (c) => {
|
|
|
20478
20478
|
*
|
|
20479
20479
|
* @returns The newly created IDSSpecification instance.
|
|
20480
20480
|
*/
|
|
20481
|
-
create(t, e) {
|
|
20482
|
-
const
|
|
20481
|
+
create(t, e, s) {
|
|
20482
|
+
const n = new lh(
|
|
20483
20483
|
this.components,
|
|
20484
20484
|
t,
|
|
20485
20485
|
e
|
|
20486
20486
|
);
|
|
20487
|
-
return this.list.set(
|
|
20487
|
+
return s && (n.identifier = s), this.list.set(n.identifier, n), n;
|
|
20488
20488
|
}
|
|
20489
20489
|
/**
|
|
20490
20490
|
* Parses and processes an XML string containing Information Delivery Specification (IDS) data.
|
|
@@ -20500,50 +20500,57 @@ const Re = (c) => {
|
|
|
20500
20500
|
if (n && n.specification) {
|
|
20501
20501
|
const r = Array.isArray(n.specification) ? n.specification : [n.specification];
|
|
20502
20502
|
for (const o of r) {
|
|
20503
|
-
const { name: a, ifcVersion: l } = o;
|
|
20503
|
+
const { name: a, ifcVersion: l, description: h, instructions: f, identifier: I } = o;
|
|
20504
20504
|
if (!(a && l))
|
|
20505
20505
|
continue;
|
|
20506
|
-
const
|
|
20507
|
-
if (
|
|
20508
|
-
const { maxOccurs:
|
|
20509
|
-
for (const
|
|
20510
|
-
for (const
|
|
20511
|
-
const
|
|
20512
|
-
if (
|
|
20513
|
-
const
|
|
20514
|
-
|
|
20506
|
+
const u = [], d = [], { applicability: E, requirements: T } = o;
|
|
20507
|
+
if (E) {
|
|
20508
|
+
const { maxOccurs: m, ...F } = E, R = Array.isArray(F) ? F : [F];
|
|
20509
|
+
for (const S of R)
|
|
20510
|
+
for (const O in S) {
|
|
20511
|
+
const y = Array.isArray(S[O]) ? S[O] : [S[O]];
|
|
20512
|
+
if (O === "entity") {
|
|
20513
|
+
const w = Xr(this.components, y);
|
|
20514
|
+
u.push(...w);
|
|
20515
20515
|
}
|
|
20516
20516
|
}
|
|
20517
20517
|
}
|
|
20518
|
-
|
|
20519
|
-
|
|
20520
|
-
|
|
20521
|
-
|
|
20522
|
-
|
|
20523
|
-
|
|
20524
|
-
|
|
20525
|
-
|
|
20518
|
+
let p;
|
|
20519
|
+
if (T) {
|
|
20520
|
+
const { maxOccurs: m, ...F } = T;
|
|
20521
|
+
p = T.description;
|
|
20522
|
+
const R = Array.isArray(F) ? F : [F];
|
|
20523
|
+
for (const S of R)
|
|
20524
|
+
for (const O in S) {
|
|
20525
|
+
const y = Array.isArray(S[O]) ? S[O] : [S[O]];
|
|
20526
|
+
if (O === "entity") {
|
|
20527
|
+
const w = Xr(this.components, y);
|
|
20528
|
+
d.push(...w);
|
|
20526
20529
|
}
|
|
20527
|
-
if (
|
|
20528
|
-
const
|
|
20529
|
-
|
|
20530
|
+
if (O === "attribute") {
|
|
20531
|
+
const w = hh(this.components, y);
|
|
20532
|
+
d.push(...w);
|
|
20530
20533
|
}
|
|
20531
|
-
if (
|
|
20532
|
-
const
|
|
20534
|
+
if (O === "classification") {
|
|
20535
|
+
const w = uh(
|
|
20533
20536
|
this.components,
|
|
20534
|
-
|
|
20537
|
+
y
|
|
20535
20538
|
);
|
|
20536
|
-
|
|
20539
|
+
d.push(...w);
|
|
20537
20540
|
}
|
|
20538
|
-
if (
|
|
20539
|
-
const
|
|
20540
|
-
|
|
20541
|
+
if (O === "property") {
|
|
20542
|
+
const w = fh(this.components, y);
|
|
20543
|
+
d.push(...w);
|
|
20541
20544
|
}
|
|
20542
20545
|
}
|
|
20543
20546
|
}
|
|
20544
|
-
if (
|
|
20545
|
-
const
|
|
20546
|
-
|
|
20547
|
+
if (u.length > 0 && d.length > 0) {
|
|
20548
|
+
const m = this.create(
|
|
20549
|
+
a,
|
|
20550
|
+
l.split(/\s+/),
|
|
20551
|
+
I
|
|
20552
|
+
);
|
|
20553
|
+
m.description = h, m.instructions = f, m.requirementsDescription = p, m.applicability.add(...u), m.requirements.add(...d), e.push(m);
|
|
20547
20554
|
}
|
|
20548
20555
|
}
|
|
20549
20556
|
}
|